joyce8/EMBER2024-capa huggingface dataset:
Function at 0x59f430
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x5ac4b0], 0x1b77
mov dword [ebp - 0x10], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [0x5ac4b0], 0x2357
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 8], eax
mov dword [0x5ac4b0], 0x2042
mov dword [ebp - 4], 0
jmp 0x59f503
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
movzx eax, word [eax + ecx*2 - 0x10]
cmp eax, 0x6c
je 0x59f4b2
jmp 0x59f582
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
movzx eax, word [ecx + eax*2 - 0x1a]
cmp eax, 0x6c
je 0x59f51d
jmp 0x59f58d
jmp 0x59f587
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
movzx eax, word [ecx + eax*2 - 0xe]
cmp eax, 0x6c
je 0x59f568
jmp 0x59f580
jmp 0x59f510
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
movzx eax, word [eax + ecx*2]
cmp eax, 0
je 0x59f50e
jmp 0x59f4cd
mov dword [0x5ac4b4], 0x2099
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
movzx eax, word [eax + ecx*2 - 0x16]
cmp eax, 0x61
je 0x59f531
jmp 0x59f589
cmp dword [ebp - 4], 0x104
jl 0x59f4cf
jmp 0x59f496
jmp 0x59f496
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
jmp 0x59f503
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
movzx eax, word [ecx + eax*2 - 0x18]
cmp eax, 0x6f
je 0x59f4e2
jmp 0x59f58b
mov dword [0x5ac4b0], 0xe2e
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
movzx eax, word [eax + ecx*2 - 0x14]
cmp eax, 0x64
jne 0x59f587
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
movzx eax, word [ecx + eax*2 - 0x12]
cmp eax, 0x64
je 0x59f47f
jmp 0x59f4ad
mov eax, dword [0x5ac4b0]
sub eax, 0x2531
mov dword [0x5ac4b4], eax
mov dword [ebp - 0xc], 1
jmp 0x59f594
jmp 0x59f582
jmp 0x59f4ad
jmp 0x59f589
jmp 0x59f58b
jmp 0x59f58d
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
add esp, 0x10
pop ebp
ret

Function at 0x59f710
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [fcn.0059f710]
mov dword [ebp - 8], eax
jmp 0x59f74f
mov al, 1
test al, 1
jne 0x59f74f
jmp 0x59f768
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov eax, dword [eax + 0x3c]
cmp dword [ecx + eax], 0x4550
je 0x59f75e
jmp 0x59f766
mov eax, dword [ebp - 8]
sub eax, 0x1000
and eax, 0xfffff000
mov dword [ebp - 8], eax
jmp 0x59f721
mov eax, dword [ebp - 8]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x59f729
jmp 0x59f73d
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x59f779
jmp 0x59f73d
mov dword [0x5ac4b4], 0x1b8b
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
add esp, 8
pop ebp
ret
Function at 0x406ca7
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
and dword [ebp - 8], 0
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 8]
mov dword [ebp - 0x30], edi
mov eax, dword [edi]
mov ebx, dword [edi + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [0x4171d0]
mov dword [ebp - 0x28], eax
mov eax, dword [0x4171d4]
mov dword [ebp - 0x2c], eax
call fcn.00406ca0
mov esi, dword [ebp - 8]
mov eax, dword [0x4171d8]
add esi, 0x23f
mov dword [ebp - 0x34], eax
mov eax, dword [0x4171dc]
push 0x20
mov dword [ebp - 8], esi
mov dword [ebp - 0x38], eax
pop edi
mov dword [ebp - 0x20], 2
add dword [ebp - 0x20], 3
mov edx, dword [ebp - 0x14]
mov eax, edx
mov ecx, dword [0x1e08be4]
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x406d3e
xor ecx, ecx
lea eax, [ebp - 0x3c]
push ecx
push eax
push ecx
lea eax, [ebp - 0x43c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
mov ecx, dword [0x1e08be4]
add eax, dword [ebp - 0x34]
cmp ecx, 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0x1e08be0]
mov dword [ebp - 0xc], 0xedeb2e40
cmove eax, dword [ebp - 0xc]
and dword [ebp - 0xc], 0
cmp ecx, 0x3eb
mov dword [0x1e08be0], eax
mov eax, dword [0x1e08b34]
cmove eax, dword [ebp - 0xc]
mov dword [0x1e08b34], eax
lea eax, [esi + edx]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
shr eax, 5
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x38]
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
and dword [ebp - 0x24], 0
mov dword [0x1e08bdc], 0xf4ea3dee
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
add dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
xor dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
xor eax, dword [ebp - 0x10]
sub ebx, eax
mov dword [ebp - 0x18], eax
mov eax, ebx
mov dword [ebp - 0x10], ebx
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 8]
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
nop
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x20]
mov eax, ebx
shr eax, cl
add eax, dword [ebp - 0x2c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
xor dword [ebp - 4], eax
cmp dword [0x1e08be4], 0xb03
jne 0x406e15
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthW]
push 0x406418
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov eax, dword [ebp - 4]
and dword [ebp - 8], 0
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0x14], eax
add esi, 0x61c88647
mov dword [ebp - 8], esi
dec edi
jne 0x406cfb
mov edi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x14]
mov dword [edi + 4], ebx
mov dword [edi], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41184b
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4166b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040d980
mov dword [ebp - 0x14], eax
cmp dword [0x8214d8], esi
jne 0x41193e
push 0x800
push esi
push 0x405b14
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4118cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x411a1e
push esi
push esi
push 0x405b14
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x411a1e
push 0x405b2c
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x411a1e
push eax
call ebx
push 0x405b38
push edi
mov dword [0x8214d8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x405b48
push edi
mov dword [0x8214dc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x405b5c
push edi
mov dword [0x8214e0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x8214e8], eax
test eax, eax
je 0x41193b
push 0x405b78
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x8214e4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x411963
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x411956
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x411978
push 4
pop eax
jmp 0x411a20
cmp dword [ebp - 0x14], esi
je 0x411978
push dword [0x8214d8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x41195d
mov eax, dword [0x8214e4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4119d6
cmp dword [0x8214e8], edi
je 0x4119d6
push eax
call ebx
push dword [0x8214e8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4119d6
test eax, eax
je 0x4119d6
call ecx
test eax, eax
je 0x4119cb
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4119cb
test byte [ebp - 8], 1
jne 0x4119d6
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x411a06
mov eax, dword [0x8214dc]
cmp eax, edi
je 0x411a03
push eax
call ebx
test eax, eax
je 0x411a03
call eax
mov esi, eax
test esi, esi
je 0x411a03
mov eax, dword [0x8214e0]
cmp eax, edi
je 0x411a03
push eax
call ebx
test eax, eax
je 0x411a03
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x8214d8]
call ebx
test eax, eax
je 0x411a1e
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x411a20
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040947b
mov esp, ebp
pop ebp
ret
Function at 0x409db0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ecea
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x458070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x28], esi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x2c], esi
call fcn.0040e5bd
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x409e70
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.std::exception.0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.bad_locale_name
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.00421b3e
add esp, 8
mov dword [ebp - 0x24], vtable.std::runtime_error.0
lea eax, [ebp - 0x24]
push 0x456ce4
push eax
call fcn.00421bfc
push edi
push esi
call fcn.0040e905
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004102a3
mov esp, ebp
pop ebp
ret 4

Function at 0x40b1e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ee2b
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x458070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x21c], esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x220], esi
mov dword [esi + 0x10], 0
jb 0x40b240
mov eax, dword [esi]
jmp 0x40b242
mov eax, esi
xor ecx, ecx
mov word [eax], cx
push 0x208
push ecx
lea eax, [ebp - 0x218]
mov dword [ebp - 4], ecx
push eax
call fcn.004225c0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp word [ebp - 0x218], 0
jne 0x40b27f
xor ecx, ecx
jmp 0x40b29f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b290
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00403300
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004102a3
mov esp, ebp
pop ebp
ret
Function at 0x40c8a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43efb8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x458070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x40ca48
cmp byte [ebx + 0x3e], 0
je 0x40ca48
mov eax, dword [ebx]
push 0xffff
call dword [eax + 0xc]
movzx eax, ax
mov ecx, 0xffff
cmp cx, ax
sete al
test al, al
je 0x40c904
xor al, al
jmp 0x40ca4a
push 0
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.0040c620
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
nop dword [eax]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x40c97c
sub eax, 1
je 0x40c980
sub eax, 2
je 0x40ca3a
lea ecx, [ebp - 0x28]
xor bl, bl
call fcn.00402fa0
mov al, bl
jmp 0x40ca4a
mov byte [ebx + 0x3e], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x40c9b5
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.00428bb8
add esp, 0x10
cmp esi, eax
jne 0x40c96b
mov ecx, dword [ebp - 0x14]
cmp byte [ebx + 0x3e], 0
je 0x40ca3a
test esi, esi
jne 0x40c930
mov edx, dword [ebp - 0x18]
or eax, 0xffffffff
sub eax, edx
cmp eax, 8
jbe 0x40ca30
lea esi, [edx + 8]
cmp esi, 0xfffffffe
ja 0x40ca30
cmp ecx, esi
jae 0x40ca17
push edx
push esi
lea ecx, [ebp - 0x28]
call fcn.004052a0
mov ecx, dword [ebp - 0x14]
test esi, esi
je 0x40c930
push 0
push 8
push dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
call fcn.0040cd40
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], esi
cmovae eax, dword [ebp - 0x28]
mov byte [eax + esi], 0
jmp 0x40c929
test esi, esi
jne 0x40c9f1
cmp ecx, 0x10
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
mov byte [eax], 0
jmp 0x40c929
push 0x44eca0
call fcn.0040e550
lea ecx, [ebp - 0x28]
mov bl, 1
call fcn.00402fa0
mov al, bl
jmp 0x40ca4a
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004102a3
mov esp, ebp
pop ebp
ret
Function at 0x40cdd0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e3a6
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x458070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.004102b4
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0040e802
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x420350
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4416c0
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push esi
mov eax, dword [0x458070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
mov dword [esi + 4], eax
push 0x44228c
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], 0
mov dword [esi], vtable.std::codecvt_wchar_t__char__struct__Mbstatet_.0
call fcn.00409db0
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 1
push eax
call fcn.0040ea8f
add esp, 4
lea ecx, [ebp - 0x70]
movups xmm0, xmmword [eax]
movups xmmword [esi + 8], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [esi + 0x18], xmm0
movq xmm0, qword [eax + 0x20]
movq qword [esi + 0x28], xmm0
mov eax, dword [eax + 0x28]
mov dword [esi + 0x30], eax
call fcn.00409ea0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x42de3f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042db02

Function at 0x42de4a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042dc83

Function at 0x43611b
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00435ddb
Function at 0x10b0058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.010b01a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x10b007e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10b006a
add dl, dl
jne 0x10b0089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10b00dc
xor eax, eax
add dl, dl
jne 0x10b0096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10b017d
add dl, dl
jne 0x10b00a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10b00b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10b00bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10b00c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x10b00d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10b0075
mov eax, 1
add dl, dl
jne 0x10b00ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10b00f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10b00e1
sub eax, ebx
mov ebx, 1
jne 0x10b0128
mov ecx, 1
add dl, dl
jne 0x10b010e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10b0119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10b0105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10b0075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x10b013f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10b014a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10b0136
cmp eax, 0x7d00
jae 0x10b016d
cmp eax, 0x500
jb 0x10b0168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10b0075
cmp eax, 0x7f
ja 0x10b0170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10b0075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x10b019e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x10b0075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x405e5f
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], esp
push dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
push dword [ebx]
mov ebx, dword [ebp + 8]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
nop
nop
cmp dword [ebp - 4], esp
je 0x405e9e
push 0x12
push 0x40144b9
push 6
call fcn.00407f75
add esp, 0xc
jmp 0x405ea3
mov esp, ebp
pop ebp
ret 0x10

Function at 0x408950
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x4089b9
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.004083f0
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret

Function at 0x408b00
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x408b92
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x408b84
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x408b7c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x408b45
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x408fd0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x408fee
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x408fe3
pop esi
ret
Function at 0x40a430
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, edx
push esi
push edi
mov esi, ebp
xor edi, edi
and esi, 3
mov eax, ecx
jle 0x40a451
mov dl, byte [eax]
inc eax
cmp dl, bl
je 0x40a4ab
inc edi
cmp edi, esi
jl 0x40a445
mov edi, ebx
and edi, 0xff
mov esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
lea edi, [ecx + ebp]
cmp eax, edi
jae 0x40a4e0
mov edx, dword [eax]
xor edx, esi
lea ebp, [edx - 0x1010101]
not edx
and ebp, edx
test ebp, 0x80808080
je 0x40a49a
cmp byte [eax], bl
je 0x40a4b5
cmp byte [eax + 1], bl
je 0x40a4be
cmp byte [eax + 2], bl
je 0x40a4c8
cmp byte [eax + 3], bl
je 0x40a4d4
add eax, 4
cmp eax, edi
jb 0x40a471
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
dec eax
pop ebx
ret 4
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
inc eax
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 2
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 3
pop ebx
ret 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4

Function at 0x41bc7a
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x41bca8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41bcc6
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041bbe0
jmp 0x41bcc6
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41bcc6
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0041bbe0
test edi, edi
mov eax, edi
jne 0x41bcb0
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8