joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ece9
Capabilities:
Enumerate pe sections
Get file size
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
mov esi, ecx
mov ecx, dword [ebp + 8]
push 0x80000000
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40ed98
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [ebp - 4], eax
call fcn.00406668
pop ecx
push ebx
lea ecx, [ebp + 8]
push ecx
push dword [ebp - 4]
mov dword [esi + 4], eax
push eax
push edi
mov dword [ebp + 8], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 4]
mov dword [esi + 0xc], eax
cmp eax, ebx
je 0x40ed98
mov ecx, 0x5a4d
cmp cx, word [eax]
jne 0x40ed98
mov ecx, dword [eax + 0x3c]
add eax, ecx
mov dword [esi + 0x10], eax
cmp eax, ebx
je 0x40ed98
cmp dword [eax], 0x4550
jne 0x40ed98
movzx eax, word [eax + 6]
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x10]
add eax, 0x18
mov dword [esi + 0x14], eax
mov eax, dword [eax + 0x10]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x14]
add eax, 0xe0
mov dword [esi + 0x1c], eax
xor eax, eax
inc eax
jmp 0x40ed9a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40ee3d
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x5c
push 0
push esi
call sub.MSVCR90.dll_memset
and dword [esi + 0x10], 0
and dword [esi + 0x14], 0
and dword [esi + 0x58], 0
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
pop esi
ret
Function at 0x41005a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41b2ec]
jne 0x410064
repz ret
jmp fcn.004107c6

Function at 0x4096fb
Capabilities:
Encode data using xor
Get number of processors

Disassembly:
pushal
stc
jb 0x40ad20
mov eax, 0xe30e0000
fucompi st(5)
mov al, byte [0xf9f303b9]
jb 0x40aa10
add bh, bl
xor byte [eax], al
cmpsb byte [esi], byte es:[edi]
or dword [eax], eax
push ss
in al, dx
mov dword [edi - 0x18], eax
push ebp
mov ebp, 0x40a43f
xchg dword [esp], ebp
ret
and dl, 0x18
nop
jmp 0x40a096
jne 0x409bc7
stc
jb 0x40ae23
add byte [esi - 0x74c16e00], cl
dec ebp
adc al, 0x55
mov ebp, 0x4093fe
xchg dword [esp], ebp
ret
mov eax, dword [esi]
push ebp
mov ebp, 0x4095d0
xchg dword [esp], ebp
ret
mov ecx, ebx
stc
jb 0x40ba38
add byte [eax - 0x1fff8256], ah
pop ecx
pop edx
add byte [esp - 0xbffff45], bh
sub dword [ebx - 0x4642aa0d], ecx
movsd dword es:[edi], dword [esi]
inc eax
add byte [edi + 0x19c3242c], al
mov es, word [eax]
and eax, dword [eax + 0x36004200]
push ebp
sub cl, byte [edi]
test byte [edx - 0x6000016], ch
jb 0x40b0a4
rol ecx, 0xa6
push 0x11fe8
add cl, bh
jb 0x4097af
add byte [edx - 0x72e70000], ah
adc al, 0x32
inc esi
dec dword [ebp + 0x28]
add ecx, dword [ebx + 0x3c]
nop

Function at 0x409769
Capabilities:
Get number of processors

Disassembly:
add byte [eax], al
lea edi, [eax]
sbb esp, dword [esi + 3]
jg 0x409254
xor dword [eax], ebp
add ecx, dword [ecx + 0x3c]
stc
jb 0x409fdc
add byte [eax], al
add byte [eax], dh
add byte [ebp + ecx*8 + 0xf], ah
test byte [ebx + 0x26], bl
add byte [eax], al
stc
jb 0x409cc6
jge 0x409233
pushal
stc
jb 0x40a5db
add byte [edi], ah
dec ecx
cmp dword [ebp + 0x4b], edi
mov esi, cs
jne 0x4095e3
stc
jb 0x40a3e2
mov word [ecx], ds
push cs
xor al, byte [eax]
out dx, eax
add eax, 4
push ecx
push ebp
mov ebp, 0x40aed8
xchg dword [esp], ebp
ret
mov ecx, dword [ecx + 0x38]
stc
jb 0x40abb4
in al, dx
inc ecx
in eax, dx
add byte [eax], al
hlt
mov ecx, dword [esp + 0xc]
stc
jb 0x40a7a0
add byte [eax], al
add byte [eax], al
add byte [ebx - 0x7df0066f], bh
add byte [eax], al
mov ebx, 0x820ff991
jle 0x40a3f0
invalid
mov ecx, ebx
stc
jb 0x409267
add byte [eax], al
mov al, byte [0x30aa0000]
cmp al, 3
int1
mov eax, dword [ecx + 0xb8]
stc
jb 0x409966
add byte [eax], al
add byte [eax - 0x607fc65], dh
jmp 0x40906a

Function at 0x40b16d
Capabilities:
Get number of processors

Disassembly:
push dword fs:[eax]
xor eax, eax
stc
jb 0x409944
mov al, byte [0xdf]
dec ebx
add byte [eax + 0xb840fdf], dl
add al, byte [eax]
add cl, bh
Function at 0x405380
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0x270
jne 0x40539e
mov ecx, dword [ebp - 8]
call fcn.00406850
jmp 0x4053b1
mov ecx, dword [ebp - 8]
cmp dword [ecx], 0x4e0
jb 0x4053b1
mov ecx, dword [ebp - 8]
call fcn.004066d0
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + eax*4 + 4]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
add ecx, 1
mov edx, dword [ebp - 8]
mov dword [edx], ecx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
shr ecx, 0xb
mov edx, dword [ebp - 8]
and ecx, dword [edx + 0x1384]
xor ecx, dword [ebp - 4]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
shl eax, 7
and eax, 0x9d2c5680
xor eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
shl ecx, 0xf
and ecx, 0xefc60000
xor ecx, dword [ebp - 4]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
shr edx, 0x12
xor edx, dword [ebp - 4]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4066d0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
jmp 0x4066eb
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xe3
jae 0x406757
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx*4 + 0x9c4]
and eax, 0x80000000
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ecx, dword [edx + ecx*4 + 0x9c8]
and ecx, 0x7fffffff
or eax, ecx
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
and edx, 1
je 0x40672f
mov dword [ebp - 0x10], 0x9908b0df
jmp 0x406736
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xc]
shr eax, 1
xor eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
xor eax, dword [edx + ecx*4 + 0xff8]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [edx + ecx*4 + 4], eax
jmp 0x4066e2
jmp 0x406762
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x26f
jae 0x4067ce
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx*4 + 0x9c4]
and eax, 0x80000000
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ecx, dword [edx + ecx*4 + 0x9c8]
and ecx, 0x7fffffff
or eax, ecx
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
and edx, 1
je 0x4067a6
mov dword [ebp - 0x18], 0x9908b0df
jmp 0x4067ad
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x14]
shr eax, 1
xor eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
xor eax, dword [edx + ecx*4 - 0x388]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [edx + ecx*4 + 4], eax
jmp 0x406759
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + eax*4 + 0x9c4]
and edx, 0x80000000
mov eax, 4
imul ecx, eax, 0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + ecx + 4]
and ecx, 0x7fffffff
or edx, ecx
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x1c]
and edx, 1
je 0x40680c
mov dword [ebp - 0x20], 0x9908b0df
jmp 0x406813
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x1c]
shr eax, 1
xor eax, dword [ebp - 0x20]
mov ecx, 4
imul edx, ecx, 0x18c
mov ecx, dword [ebp - 8]
xor eax, dword [ecx + edx + 4]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [ecx + edx*4 + 4], eax
mov edx, dword [ebp - 8]
mov dword [edx], 0
mov esp, ebp
pop ebp
ret
Function at 0x406850
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0x270
jmp 0x40686b
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x4e0
jae 0x4068d7
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx*4 - 0x9bc]
and eax, 0x80000000
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ecx, dword [edx + ecx*4 - 0x9b8]
and ecx, 0x7fffffff
or eax, ecx
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
and edx, 1
je 0x4068af
mov dword [ebp - 0x10], 0x9908b0df
jmp 0x4068b6
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xc]
shr eax, 1
xor eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
xor eax, dword [edx + ecx*4 - 0x388]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [edx + ecx*4 + 4], eax
jmp 0x406862
mov esp, ebp
pop ebp
ret
Function at 0x407130
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov eax, dword [ebp + 0x10]
mov cl, byte [eax + 0x100]
mov byte [ebp - 1], cl
mov edx, dword [ebp + 0x10]
mov al, byte [edx + 0x101]
mov byte [ebp - 2], al
mov ecx, 1
imul edx, ecx, 0
add edx, dword [ebp + 0x10]
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], 0
jmp 0x40716f
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp + 0xc]
jae 0x407210
movzx edx, byte [ebp - 1]
add edx, 1
and edx, 0xff
mov byte [ebp - 1], dl
movzx eax, byte [ebp - 1]
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + eax]
movzx eax, byte [ebp - 2]
add edx, eax
and edx, 0xff
mov byte [ebp - 2], dl
movzx ecx, byte [ebp - 1]
mov edx, dword [ebp - 8]
mov al, byte [edx + ecx]
mov byte [ebp - 3], al
movzx ecx, byte [ebp - 2]
movzx edx, byte [ebp - 1]
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 8]
mov cl, byte [esi + ecx]
mov byte [eax + edx], cl
movzx edx, byte [ebp - 2]
mov eax, dword [ebp - 8]
mov cl, byte [ebp - 3]
mov byte [eax + edx], cl
movzx edx, byte [ebp - 1]
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + edx]
movzx edx, byte [ebp - 2]
mov eax, dword [ebp - 8]
movzx edx, byte [eax + edx]
add ecx, edx
and ecx, 0xff
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + ecx]
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0xc]
movzx eax, byte [edx]
xor eax, ecx
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0xc]
mov byte [ecx], al
jmp 0x407166
mov edx, dword [ebp + 0x10]
mov al, byte [ebp - 1]
mov byte [edx + 0x100], al
mov ecx, dword [ebp + 0x10]
mov dl, byte [ebp - 2]
mov byte [ecx + 0x101], dl
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4083f0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x408411
xor eax, eax
jmp 0x4084d4
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp dword [edx], 0x4550
je 0x40842f
xor eax, eax
jmp 0x4084d4
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0x14]
lea eax, [edx + ecx + 0x78]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 8]
add edx, dword [ecx]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x20]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x24]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x1c]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
jmp 0x408489
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
cmp edx, dword [ecx + 0x14]
jae 0x4084d1
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax*4]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.004087e0
add esp, 4
cmp dword [ebp + 0xc], eax
jne 0x4084cf
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x24]
movzx eax, word [edx + ecx*2]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax*4]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
jmp 0x4084d4
jmp 0x408480
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x40ca40
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x414044]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x40ca67
mov ecx, 5
int 0x29
push 2
call fcn.0040c6b4
push 0x50
lea eax, [ebp - 0x320]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x2cc
lea eax, [ebp - 0x2d0]
push 0
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x320]
add esp, 0x1c
mov dword [ebp - 0x328], eax
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x234], edi
mov word [ebp - 0x208], ss
mov word [ebp - 0x214], cs
mov word [ebp - 0x238], ds
mov word [ebp - 0x23c], es
mov word [ebp - 0x240], fs
mov word [ebp - 0x244], gs
pushfd
pop dword [ebp - 0x210]
mov eax, dword [ebp + 4]
mov dword [ebp - 0x218], eax
lea eax, [ebp + 4]
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x2d0], 0x10001
mov eax, dword [eax - 4]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 4]
mov dword [ebp - 0x320], 0xc0000417
mov dword [ebp - 0x31c], 1
mov dword [ebp - 0x314], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x40cb72
test esi, esi
jne 0x40cb72
push 2
call fcn.0040c6b4
add esp, 4
push 0xc0000417
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040b75e
mov esp, ebp
pop ebp
ret

Function at 0x40d050
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0xa4]
shl ecx, 0x10
or ecx, dword [eax + 0xa8]
cmp ecx, 0x60000
jae 0x40d07a
mov eax, 2
pop ebp
ret
push esi
call fcn.0040c890
mov esi, eax
mov eax, dword [ebp + 8]
mov edx, dword [esi + 0x70]
mov ecx, edx
and cl, 2
movzx ecx, cl
neg ecx
sbb ecx, ecx
inc eax
cmp eax, 3
ja case.default.0x40d09a
jmp dword [eax*4 + 0x40d0d0]
or edx, 2
lea eax, [ecx + 2]
mov dword [esi + 0x70], edx
pop esi
pop ebp
ret
and edx, 0xfffffffd
mov dword [esi + 0x70], edx
lea eax, [ecx + 2]
pop esi
pop ebp
ret
call sub.msvcrt.dll__errno
mov dword [eax], 0x16
call fcn.0040c9d0
or eax, 0xffffffff
pop esi
pop ebp
ret
Function at 0x40d0e0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x504
mov eax, dword [0x414044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x40d1db
push 0x2d
push esi
call sub.msvcrt.dll_strchr
add esp, 8
test eax, eax
je 0x40d1db
xor ecx, ecx
mov al, byte [ecx + esi]
lea edx, [ecx + ecx]
test al, al
je 0x40d13a
cbw
inc ecx
mov word [ebp + edx - 0x204], ax
cmp ecx, 0x100
jne 0x40d118
jmp 0x40d1db
cmp edx, 0x200
jae 0x40d241
xor eax, eax
mov word [ebp + edx - 0x204], ax
lea eax, [ebp - 0x204]
push 0x2d
push eax
call sub.msvcrt.dll_wcsrchr
add esp, 8
test eax, eax
je 0x40d1db
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
lea eax, [ebp - 0x504]
push 0xff
push eax
push 0x1001
lea eax, [ebp - 0x204]
push eax
call edi
test eax, eax
je 0x40d1da
lea edx, [ebp - 0x504]
mov ecx, 0x5f
lea edx, [edx + eax*2]
mov word [edx - 2], cx
mov ecx, 0x100
sub ecx, eax
lea eax, [ebp - 0x204]
push ecx
push edx
push 0x1002
push eax
call edi
test eax, eax
je 0x40d1da
lea edi, [ebp - 0x504]
xor eax, eax
nop
movzx ecx, word [edi + eax*2]
lea edx, [ebp - 0x304]
test cx, cx
je 0x40d223
mov byte [edx + eax], cl
inc eax
cmp eax, 0x100
jne 0x40d1c0
pop edi
mov eax, dword [0x414dc8]
test eax, eax
jne 0x40d201
push str.setlocale
call fcn.0040e4a0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x40d1fc
or eax, 0xffffffff
mov dword [0x414dc8], eax
lea ecx, [eax + 1]
neg ecx
sbb ecx, ecx
and ecx, eax
je 0x40d22f
push esi
push ebx
call ecx
add esp, 8
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b75e
mov esp, ebp
pop ebp
ret
mov byte [edx + eax], 0
lea esi, [ebp - 0x304]
jmp 0x40d1da
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b75e
mov esp, ebp
pop ebp
ret
call fcn.0040c10c
int3

Function at 0x40da80
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.0040dab0
mov esi, dword [ebp + 8]
test al, al
je 0x40da9e
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call fcn.0040dac0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x40dbf0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 2
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40dc4c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40dc4c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40dc4c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40dc4c
cmp dword [ecx + 0x74], 0xe
jbe 0x40dc4c
cmp dword [ecx + 0xe8], 0
je 0x40dc4c
push dword [ebp + 8]
call fcn.0040dac0
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x414df8
call fcn.0040d890
add esp, 8
cmp dword [ebp - 8], 0
jne 0x40dc81
push dword [ebp + 8]
call fcn.0040da80
mov esp, ebp
pop ebp
ret
Function at 0x40dcc0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40dd1c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40dd1c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40dd1c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40dd1c
cmp dword [ecx + 0x74], 0xe
jbe 0x40dd1c
cmp dword [ecx + 0xe8], 0
je 0x40dd1c
push dword [ebp + 8]
call fcn.0040dac0
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x414df8
call fcn.0040d890
add esp, 8
cmp dword [ebp - 8], 0
jne 0x40dd51
push dword [ebp + 8]
call fcn.0040da80
mov esp, ebp
pop ebp
ret
Function at 0x43bc10
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0043541c
xor ebx, ebx
cmp dword [0x453af4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x43bce6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x43bdc6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x43bdc6
push eax
call fcn.004353ae
mov dword [esp], 0x4432f0
push edi
mov dword [0x453af4], eax
call esi
push eax
call fcn.004353ae
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x453af8], eax
call esi
push eax
call fcn.004353ae
mov dword [0x453afc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00435c2a
test eax, eax
pop ecx
pop ecx
je 0x43bcb4
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004328b2
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x43bce6
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004353ae
cmp eax, ebx
pop ecx
mov dword [0x453b04], eax
je 0x43bce6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004353ae
pop ecx
mov dword [0x453b00], eax
mov eax, dword [0x453b00]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x43bd6b
cmp dword [0x453b04], ecx
je 0x43bd6b
push eax
call fcn.00435425
push dword [0x453b04]
mov esi, eax
call fcn.00435425
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x43bd6b
cmp edi, ebx
je 0x43bd6b
call esi
cmp eax, ebx
je 0x43bd38
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43bd38
test byte [ebp - 0x18], 1
jne 0x43bd6b
lea eax, [ebp - 0x10]
push eax
call fcn.00435c61
test eax, eax
pop ecx
je 0x43bd53
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004328b2
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x43bd62
or dword [ebp + 0x10], 0x200000
jmp 0x43bda6
or dword [ebp + 0x10], 0x40000
jmp 0x43bda6
mov eax, dword [0x453af8]
cmp eax, dword [ebp - 8]
je 0x43bda6
push eax
call fcn.00435425
cmp eax, ebx
pop ecx
je 0x43bda6
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x43bda6
mov eax, dword [0x453afc]
cmp eax, dword [ebp - 8]
je 0x43bda6
push eax
call fcn.00435425
cmp eax, ebx
pop ecx
je 0x43bda6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x453af4]
call fcn.00435425
cmp eax, ebx
pop ecx
je 0x43bdc6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43bdc8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x20db2d2
Capabilities:
Encrypt data using rc4 prga

Disassembly:
pushfd
pop dword [esp + 0x34]
mov word [esp + 4], 0x886e
push dword [esp + 0x34]
pop dword [ebp]
mov word [esp + 4], di
mov word [esp + 0xc], ax
lea esp, [esp + 0x38]
jmp 0x20dc214