joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5a3f90
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x224
push esi
push 0
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x5a3fb1
xor eax, eax
pop esi
add esp, 0x224
ret
push edi
lea eax, [esp + 8]
mov dword [esp + 8], 0x224
push eax
push esi
xor edi, edi
call sub.KERNEL32.dll_Module32First
test eax, eax
je 0x5a400b
jmp 0x5a3fd0
lea eax, [esp + 0x28]
push 0x663e84
push eax
call fcn.005a2220
add esp, 8
test eax, eax
jne 0x5a4007
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x5a3fd0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x224
ret
mov edi, dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x224
ret

Function at 0x5a68a0
Capabilities:
Compress data via zlib inflate or deflate

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x34
push edi
test ecx, ecx
je 0x5a7ec7
mov edi, dword [ecx + 0x1c]
mov dword [esp + 0x14], edi
test edi, edi
je 0x5a7ec7
cmp dword [ecx + 0xc], 0
je 0x5a7ec7
cmp dword [ecx], 0
jne 0x5a68d8
cmp dword [ecx + 4], 0
jne 0x5a7ec7
cmp dword [edi], 0xb
jne 0x5a68e3
mov dword [edi], 0xc
mov eax, dword [ecx + 0xc]
mov edx, dword [edi + 0x38]
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 0x10]
push ebx
mov ebx, dword [ecx]
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], eax
xor eax, eax
push ebp
mov ebp, dword [ecx + 4]
mov dword [esp + 0x28], eax
mov eax, dword [edi]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 0x38], ebp
push esi
mov esi, dword [edi + 0x3c]
cmp eax, 0x1e
ja 0x5a7248
lea ebx, [edi + 0x54]
mov dword [esp + 0x40], ebx
mov ebx, dword [esp + 0x14]
jmp 0x5a6930
jmp dword [eax*4 + 0x5a7ed4]
pop esi
pop ebp
pop ebx
mov eax, 0xfffffffe
pop edi
add esp, 0x34
ret
mov eax, 0xfffffffe
pop edi
add esp, 0x34
ret

Function at 0x5a8a20
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x5a8a54
mov al, byte [ecx]
test al, al
je 0x5a8a54
mov edx, 0x811c9dc5
movsx eax, al
lea ecx, [ecx + 1]
or eax, 0x20
xor eax, edx
imul edx, eax, 0x1000193
mov al, byte [ecx]
test al, al
jne 0x5a8a33
xor edx, 0x2a
imul eax, edx, 0x1000193
ret
xor eax, eax
ret
Function at 0x5c2f62
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x6a1da0]
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.005bbce2
mov dword [ebp - 0x14], eax
cmp dword [0x74ce94], esi
jne 0x5c3055
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x5c2fe2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x5c3135
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x5c3135
push 0x66e2b0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x5c3135
push eax
call ebx
push 0x66e2bc
push edi
mov dword [0x74ce94], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x74ce98], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationA
push edi
mov dword [0x74ce9c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x74cea4], eax
test eax, eax
je 0x5c3052
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x74cea0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x5c307a
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x5c306d
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp - 0x14], esi
je 0x5c308f
push 4
pop eax
jmp 0x5c3137
cmp dword [ebp - 0x14], esi
je 0x5c308f
push dword [0x74ce94]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x5c3074
mov eax, dword [0x74cea0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x5c30ed
cmp dword [0x74cea4], edi
je 0x5c30ed
push eax
call ebx
push dword [0x74cea4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x5c30ed
test eax, eax
je 0x5c30ed
call ecx
test eax, eax
je 0x5c30e2
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 0x5c30e2
test byte [ebp - 8], 1
jne 0x5c30ed
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x5c311d
mov eax, dword [0x74ce98]
cmp eax, edi
je 0x5c311a
push eax
call ebx
test eax, eax
je 0x5c311a
call eax
mov esi, eax
test esi, esi
je 0x5c311a
mov eax, dword [0x74ce9c]
cmp eax, edi
je 0x5c311a
push eax
call ebx
test eax, eax
je 0x5c311a
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x74ce94]
call ebx
test eax, eax
je 0x5c3135
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x5c3137
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005aec53
mov esp, ebp
pop ebp
ret
Function at 0x5c76e6
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x6a1da0]
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.005bbce2
mov dword [ebp - 0x14], eax
cmp dword [0x74cf04], esi
jne 0x5c77d9
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x5c7766
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x5c78b9
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x5c78b9
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x5c78b9
push eax
call ebx
push 0x66e2bc
push edi
mov dword [0x74cf04], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x74cf08], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x74cf0c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x74cf14], eax
test eax, eax
je 0x5c77d6
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x74cf10], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x5c77fe
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x5c77f1
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x5c7813
push 4
pop eax
jmp 0x5c78bb
cmp dword [ebp - 0x14], esi
je 0x5c7813
push dword [0x74cf04]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x5c77f8
mov eax, dword [0x74cf10]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x5c7871
cmp dword [0x74cf14], edi
je 0x5c7871
push eax
call ebx
push dword [0x74cf14]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x5c7871
test eax, eax
je 0x5c7871
call ecx
test eax, eax
je 0x5c7866
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 0x5c7866
test byte [ebp - 8], 1
jne 0x5c7871
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x5c78a1
mov eax, dword [0x74cf08]
cmp eax, edi
je 0x5c789e
push eax
call ebx
test eax, eax
je 0x5c789e
call eax
mov esi, eax
test esi, esi
je 0x5c789e
mov eax, dword [0x74cf0c]
cmp eax, edi
je 0x5c789e
push eax
call ebx
test eax, eax
je 0x5c789e
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x74cf04]
call ebx
test eax, eax
je 0x5c78b9
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x5c78bb
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005aec53
mov esp, ebp
pop ebp
ret
Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403e6a
nop
nop
sub eax, 0x403e10
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
popal
nop
nop
jmp fcn.00401219
Function at 0x4029b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x410ea8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea eax, [edi + 0x70]
mov ecx, eax
mov edx, dword [ecx]
mov dword [esp + 0x24], edx
mov edx, dword [edi + 0x20]
mov eax, dword [ecx + 4]
push edx
mov dword [esp + 0x2c], eax
mov eax, dword [ecx + 8]
add eax, 0xffffffb2
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x28], eax
add eax, 0x3c
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call sub.MFC42.DLL_CDC::FromHandle
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
push 0
mov esi, eax
mov eax, dword [esp + 0x28]
push 0x808080
push 1
push ecx
push eax
push edx
push eax
sub esp, 0x10
mov ebx, esp
push esi
mov dword [ebx], eax
mov eax, dword [esp + 0x5c]
mov dword [ebx + 4], edx
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], ecx
call fcn.00401480
add esp, 0x30
lea ecx, [esp + 0x24]
push 0
push 0
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::Draw3dRect
mov edx, dword [esi]
lea eax, [edi + 0xf4]
push eax
mov ecx, esi
call dword [edx + 0x30]
mov edx, dword [esi]
push 0xffffff
mov ecx, esi
call dword [edx + 0x38]
push 1
mov ecx, esi
call sub.MFC42.DLL_CDC::SetBkMode
mov ecx, dword [0x41c970]
call fcn.004053e0
mov ebx, eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], ebx
fild qword [esp + 0x10]
fmul qword [edi + 0x1f8]
call sub.MSVCRT.dll__ftol
mov ecx, eax
mov eax, ebx
xor edx, edx
mov ebp, 0x1770
div ebp
mov eax, 0x51eb851f
mul edx
shr edx, 5
mov eax, 0x57619f1
push edx
mul ebx
shr edx, 7
push edx
mov eax, ecx
xor edx, edx
mov ebx, ebp
div ebx
mov eax, 0x51eb851f
mul edx
shr edx, 5
mov eax, 0x57619f1
push edx
mul ecx
shr edx, 7
push edx
lea eax, [esp + 0x44]
push str._d:_02d__d:_02d
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x18
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
lea ecx, [esp + 0x10]
call fcn.0041078e
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x30]
mov ebx, dword [esp + 0x20]
sub eax, ebx
mov ebx, dword [esp + 0x28]
sub eax, ebx
mov ebp, dword [esi]
cdq
sub eax, edx
mov dword [esp + 0x5c], 0
mov ecx, eax
mov eax, dword [esp + 0x2c]
sar ecx, 1
add ecx, ebx
mov ebx, dword [esp + 0x1c]
sub eax, ebx
mov ebx, dword [esp + 0x24]
sub eax, ebx
cdq
sub eax, edx
mov edx, dword [esp + 0x18]
sar eax, 1
add eax, ebx
mov ebx, dword [edx - 8]
push ebx
push edx
push ecx
push eax
mov ecx, esi
call dword [ebp + 0x64]
lea ecx, [esp + 0x18]
mov dword [esp + 0x5c], 0xffffffff
call fcn.0041078e
mov edx, dword [esi + 4]
mov eax, dword [edi + 0x20]
push edx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [esp + 0x54]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebp
pop ebx
add esp, 0x50
ret
Function at 0x4041b0
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
push edi
push 0x4180c0
push 0x4185cc
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x40423f
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push esi
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
mov edi, eax
push 0
lea eax, [edi - 4]
push eax
push esi
call ebx
push esi
push 1
lea ecx, [esp + 0x30]
push 4
push ecx
mov dword [esp + 0x38], 0
call dword [sym.imp.MSVCRT.dll_fread]
mov eax, dword [esp + 0x38]
add esp, 0x2c
test eax, eax
pop ebx
jbe 0x404235
cmp eax, 0x61a80
jae 0x404235
cmp eax, edi
jae 0x404235
push esi
mov dword [0x4187cc], eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, 1
pop edi
pop esi
pop ecx
ret 4
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
pop edi
xor eax, eax
pop esi
pop ecx
ret 4
Function at 0x405560
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
push 0x4180c0
mov dword [esp + 0xc], 0
lea eax, [esi + 0x38]
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40563f
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x14bd8]
push edi
mov edi, dword [esp + 0x18]
lea eax, [eax + eax*2]
push 0
shl eax, 4
mov edx, dword [ecx + eax + 5]
mov dword [edi], edx
mov ecx, dword [esi + 0x14bd8]
mov edx, dword [ecx + eax + 0xc]
push edx
push ebx
call dword [sym.imp.MSVCRT.dll_fseek]
mov eax, dword [edi]
push eax
call sub.MFC42.DLL_operatornew
add esp, 0x10
mov dword [esp + 0x14], eax
test eax, eax
je 0x40561b
mov edi, dword [edi]
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_fread]
cmp edi, 0x7530
mov esi, eax
jbe 0x405604
push ebx
push 1
push 0x7530
push esi
call ebp
add esp, 0x10
test eax, eax
je 0x405604
sub edi, 0x7530
add esi, 0x7530
cmp edi, 0x7530
ja 0x4055de
push ebx
push 1
push edi
push esi
call ebp
add esp, 0x10
test eax, eax
pop ebp
je 0x40561b
mov dword [esp + 0xc], 1
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x10]
add esp, 4
test eax, eax
mov eax, dword [esp + 0x14]
pop edi
jne 0x405641
test eax, eax
je 0x40563f
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
xor eax, eax
pop esi
pop ebx
pop ecx
ret 8

Function at 0x4080c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x41126a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov al, byte [esp + 3]
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esp + 0xc], esi
mov byte [esi + 4], al
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov cl, byte [esp + 0xb]
mov dword [esp + 0x18], edi
mov byte [esi + 0x14], cl
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dl, byte [esp + 0xb]
mov dword [esi + 0x28], edi
mov byte [esi + 0x24], dl
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov al, byte [esp + 0xb]
mov dword [esi + 0x3c], edi
mov byte [esi + 0x38], al
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
lea ecx, [esi + 0x484c]
mov byte [esp + 0x18], 3
call fcn.00409310
lea ecx, [esi + 0x60b8]
mov byte [esp + 0x18], 4
call fcn.00409310
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x7924], edi
mov dword [esi + 0x7970], edi
mov dword [esi], 0x4128a4
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x408190
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4112c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], 0x4128a4
mov dword [esp + 0x14], 5
call fcn.00408250
lea ecx, [esi + 0x60b8]
mov byte [esp + 0x14], 4
call fcn.004093c0
lea ecx, [esi + 0x484c]
mov byte [esp + 0x14], 3
call fcn.004093c0
mov eax, dword [esi + 0x3c]
push eax
mov dword [esp + 0xc], eax
call sub.MFC42.DLL_operatordelete
xor edi, edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov eax, dword [esi + 0x28]
push eax
mov dword [esp + 0x10], eax
call sub.MFC42.DLL_operatordelete
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov eax, dword [esi + 0x18]
push eax
mov dword [esp + 0x14], eax
call sub.MFC42.DLL_operatordelete
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov eax, dword [esi + 8]
push eax
mov dword [esp + 0x18], eax
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x1c]
add esp, 0x10
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..retplne
nop
mov ebx, 0x40de38
mov ecx, 0x6e250301
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..reloc
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x4ab45a0
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x402304
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402343
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402343
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402343
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402343
cmp dword [ecx + 0x74], 0xe
jbe 0x402343
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x408499
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x408536
push ebx
push esi
call fcn.00408462
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004083ab
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4084e3
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x408535
push edi
push eax
call fcn.00406dfb
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x408503
call fcn.00406fba
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x408534
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004083ab
add esp, 0x20
test eax, eax
jne 0x408522
push edi
call fcn.00406fba
jmp 0x40852a
push ebx
call fcn.00406fba
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x408539
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x40854a
pop esi
ret
push ebx
push edi
push esi
call fcn.00408462
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00406dfb
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x408572
push ebx
push esi
push edi
call fcn.00402c30
add esp, 0xc
push 0
call fcn.00406fba
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x408cbe
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004087e5

Function at 0x409e08
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4120f0
push 0x4120e8
push str.FlsAlloc
push 0x1e
call fcn.00409cc9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409e3c
push dword [ebp + 8]
mov ecx, esi
call dword [0x410134]
call esi
jmp 0x409e42
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x409e86
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x412100
push 0x4120f8
push str.FlsGetValue
push 0x20
call fcn.00409cc9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409ebd
push dword [ebp + 8]
mov ecx, esi
call dword [0x410134]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]