joyce8/EMBER2024-capa huggingface dataset:
Function at 0x474da8
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x474db6
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
not eax
mov ecx, 0xff
cmp edi, 8
jb 0x474e71
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4b6ae8]
movzx ebx, byte [edx + 1]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4b6ae8]
movzx ebx, byte [edx + 2]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4b6ae8]
movzx ebx, byte [edx + 3]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4b6ae8]
movzx ebx, byte [edx + 4]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4b6ae8]
movzx ebx, byte [edx + 5]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4b6ae8]
movzx ebx, byte [edx + 6]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4b6ae8]
movzx ebx, byte [edx + 7]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4b6ae8]
add edx, 8
sub edi, 8
dec esi
jne 0x474dd4
pop ebx
test edi, edi
je 0x474e8a
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x4b6ae8]
inc edx
dec edi
jne 0x474e75
pop edi
not eax
pop esi
pop ebp
ret

Function at 0x474e90
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
movsx edx, byte [ebp + 0xc]
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x4b6ae8]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x4b6ae8]
pop esi
mov dword [ecx + 8], eax
pop ebp
ret

Function at 0x475357
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x47538b
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x475386
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x4753b3
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x47539c
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x14]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.0043e7f0
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret
Function at 0x4763c7
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4ce574]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test ebx, ebx
je 0x4763fb
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4763fb
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx ecx, word [esi]
test cx, cx
je 0x4764a5
mov eax, esi
mov edx, esi
cmp cx, 0x2f
je 0x476417
cmp cx, 0x5c
jne 0x476419
mov eax, edx
add edx, 2
movzx ecx, word [edx]
test cx, cx
jne 0x47640b
cmp eax, esi
je 0x476459
sub eax, esi
push edi
sar eax, 1
lea edi, [eax + eax]
push edi
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.0043e7f0
xor eax, eax
mov word [ebp + edi - 0x414], ax
lea eax, [ebp - 0x414]
push eax
push ebx
call fcn.004763c7
add esp, 0x14
pop edi
xor eax, eax
mov word [ebp - 0x20c], ax
test ebx, ebx
je 0x476475
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004a0f87
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004a0f56
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4764a5
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0043badd
leave
ret

Function at 0x477a42
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x477aed
cmp dword [esi + 4], 0xffffffff
jne 0x477aed
push edi
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push edi
call fcn.0044863f
movzx eax, word [esi + eax*2 + 0x242]
pop ecx
cmp eax, 0x5c
je 0x477a94
cmp eax, 0x2f
je 0x477a94
push 0x4c3930
push edi
call fcn.004a0f56
pop ecx
pop ecx
cmp dword [ebp + 0x10], 1
pop edi
jne 0x477ab6
push 1
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x477ab6
mov eax, 0x2000000
jmp 0x477af2
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0047517c
add esp, 0x10
test eax, eax
jne 0x477ad4
mov eax, dword [ebp + 0x10]
jmp 0x477af2
push eax
call fcn.00477517
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
pop ecx
add eax, 0x200
jmp 0x477af2
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc
Function at 0x47a129
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x69c], ebx
je 0x47a191
cmp dword [ebp + 8], 0x100
jne 0x47a180
cmp word [ebp + 0xc], 0xd
jne 0x47a180
cmp byte [esi + 0x6a2], bl
je 0x47a167
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x47a180
cmp byte [esi + 0x6a3], bl
jne 0x47a180
mov ecx, dword [esi + 0x44]
cmp ecx, ebx
je 0x47a17c
push ebx
push ebx
push ebx
push str.return
push esi
call fcn.00459446
xor eax, eax
jmp 0x47a194
mov eax, dword [esi + 0x69c]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop esi
pop ebx
pop ebp
jmp dword [eax + 0xc]
xor eax, eax
inc eax
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x47d350
Capabilities:
Log keystrokes via polling

Disassembly:
sub ecx, 0x6c0
jmp fcn.0048f4c5

Function at 0x47ea7c
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4ce574]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push esi
mov dword [ebp - 0x210], esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov ebx, dword [ebp + 0xc]
push eax
push esi
push ebx
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov esi, eax
cmp ebx, 0x21
jb 0x47eacc
cmp ebx, 0x28
jbe 0x47eac6
cmp ebx, 0x2c
jbe 0x47eacc
cmp ebx, 0x2e
ja 0x47eacc
or esi, 0x100
cmp dword [ebp + 0x10], 0
je 0x47ead8
or esi, 0x1000000
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0043e050
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
shl esi, 0x10
push esi
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
push 0xffffffffffffffff
lea eax, [ebp - 0x20c]
push eax
mov ecx, edi
call fcn.00453fd3
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043badd
leave
ret 0xc

Function at 0x48c8af
Capabilities:
Log keystrokes via polling

Disassembly:
sub ecx, 0x6c0
jmp method.DuiLib::CMenuUI.2.virtual_312
Function at 0x48ce51
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4ce574]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
and dword [ebx + 0x764], 0
mov dword [ebx + 0x24], eax
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x1c]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 0x2c], ecx
mov ecx, dword [ebp + 0x20]
push edi
mov edi, dword [ebp + 0x18]
mov dword [ebx + 0x760], eax
mov dword [ebx + 0x768], ecx
test eax, eax
jne 0x48ceb9
call fcn.0048cd4f
mov edx, dword [eax]
push edi
mov ecx, eax
call dword [edx + 0xc]
test esi, esi
je 0x48ceb9
call fcn.0048cd4f
mov edx, dword [eax]
push esi
mov ecx, eax
call dword [edx + 0x14]
lea esi, [ebx + 0x10]
call fcn.0048cd4f
mov edx, dword [eax]
push esi
mov ecx, eax
call dword [edx]
mov ecx, dword [ebx + 0x760]
test ecx, ecx
jne 0x48ced6
mov ecx, edi
jmp 0x48cedd
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0045593a
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], eax
call fcn.0045389e
push 0
sub esp, 0x10
mov edi, esp
mov esi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x88
push bind
movsd dword es:[edi], dword [esi]
push 0
push dword [ebp - 0x18]
mov ecx, ebx
movsd dword es:[edi], dword [esi]
call fcn.0045383b
mov edi, dword [ebx + 4]
mov esi, dword [sym.imp.USER32.dll_GetParent]
jmp 0x48cf20
push edi
call esi
mov edi, eax
push edi
call esi
test eax, eax
jne 0x48cf1b
push 5
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 1
push 0x86
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043badd
leave
ret 0x1c
Function at 0x495816
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
mov eax, dword [0x4ce574]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x294]
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x495842
xor eax, eax
jmp 0x4958c1
push 0xfe
lea eax, [ebp - 0x103]
push 0
push eax
mov byte [ebp - 0x104], 0
call fcn.0043e050
add esp, 0xc
push 0xff
lea eax, [ebp - 0x104]
push eax
call sub.WS2_32.dll_gethostname
lea eax, [ebp - 0x104]
push eax
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x49583e
mov eax, dword [eax + 0xc]
push 4
push dword [eax]
lea eax, [ebp - 0x298]
push eax
call fcn.0043e7f0
movzx eax, byte [ebp - 0x298]
movzx ecx, byte [ebp - 0x297]
shl eax, 8
add eax, ecx
movzx ecx, byte [ebp - 0x296]
shl eax, 8
add eax, ecx
movzx ecx, byte [ebp - 0x295]
shl eax, 8
add esp, 0xc
add eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043badd
leave
ret

Function at 0x498d6f
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x4ce574]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp byte [esi + 0x18], bl
je 0x498dfb
cmp dword [esi + 0x10], ebx
je 0x498dfb
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.0044e3a0
mov dword [ebp - 8], esp
cmp esp, ebx
je 0x498dfb
push edi
push dword [ebp - 8]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push dword [ebp - 8]
add ecx, 0x1c8
call fcn.00453d3b
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
push ebx
push ebx
push ebx
push str.textchanged
push ecx
call dword [eax + 0x1c]
mov ecx, eax
call fcn.00459446
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.00455b58
test al, al
je 0x498dfb
mov ecx, dword [esi + 0x10]
call fcn.0046f888
xor eax, eax
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043badd
leave
ret 0x10
Function at 0x405f10
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 0x405f2e
mov ecx, dword [ebp - 8]
call fcn.00407550
jmp 0x405f41
mov ecx, dword [ebp - 8]
cmp dword [ecx], 0x4e0
jb 0x405f41
mov ecx, dword [ebp - 8]
call fcn.004073b0
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 0x406390
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x10], ecx
cmp dword [ebp + 8], 0
jne 0x4063a3
xor eax, eax
jmp 0x4063f3
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x4063bb
xor eax, eax
jmp 0x4063f3
mov dword [ebp - 0x14], 0x400
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x3c]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0x400
jle 0x4063d8
xor eax, eax
jmp 0x4063f3
mov edx, dword [ebp + 8]
add edx, dword [ebp - 8]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0x4550
je 0x4063f0
xor eax, eax
jmp 0x4063f3
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4

Function at 0x4064a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0xa
movzx eax, word [ebp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.004093a0
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.00407f60
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov esp, ebp
pop ebp
ret
Function at 0x4073b0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], ecx
mov dword [ebp - 0x28], 0x26f
mov dword [ebp - 0x2c], 0xe3
mov dword [ebp - 8], 0
jmp 0x4073d9
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xe3
jae 0x407445
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, dword [edx + ecx*4 + 0x9c4]
and eax, 0x80000000
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx*4 + 0x9c8]
and ecx, 0x7fffffff
or eax, ecx
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
and edx, 1
je 0x40741d
mov dword [ebp - 0x14], 0x9908b0df
jmp 0x407424
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x10]
shr eax, 1
xor eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
xor eax, dword [edx + ecx*4 + 0xff8]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [edx + ecx*4 + 4], eax
jmp 0x4073d0
mov dword [ebp - 0xc], 0xe3
jmp 0x407457
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x26f
jae 0x4074c3
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov eax, dword [edx + ecx*4 + 0x9c4]
and eax, 0x80000000
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx*4 + 0x9c8]
and ecx, 0x7fffffff
or eax, ecx
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
and edx, 1
je 0x40749b
mov dword [ebp - 0x1c], 0x9908b0df
jmp 0x4074a2
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x18]
shr eax, 1
xor eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
xor eax, dword [edx + ecx*4 - 0x388]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov dword [edx + ecx*4 + 4], eax
jmp 0x40744e
mov dword [ebp - 0x30], 0x26f
mov eax, 4
imul ecx, eax, 0x4df
mov edx, dword [ebp - 4]
mov eax, dword [edx + ecx + 4]
and eax, 0x80000000
mov ecx, 4
imul edx, ecx, 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + edx + 4]
and edx, 0x7fffffff
or eax, edx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
and eax, 1
je 0x40750c
mov dword [ebp - 0x24], 0x9908b0df
jmp 0x407513
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp - 0x20]
shr ecx, 1
xor ecx, dword [ebp - 0x24]
mov edx, 4
imul eax, edx, 0x18c
mov edx, dword [ebp - 4]
xor ecx, dword [edx + eax + 4]
mov eax, 4
imul edx, eax, 0x26f
mov eax, dword [ebp - 4]
mov dword [eax + edx + 4], ecx
mov ecx, dword [ebp - 4]
mov dword [ecx], 0
mov esp, ebp
pop ebp
ret
Function at 0x407550
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 0x40756b
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x4e0
jae 0x4075d7
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 0x4075af
mov dword [ebp - 0x10], 0x9908b0df
jmp 0x4075b6
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 0x407562
mov esp, ebp
pop ebp
ret
Function at 0x410930
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
push ebx
push esi
push edi
mov edi, ebp
xor ecx, ecx
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov esi, esp
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
cmp esi, esp
call fcn.0041f790
test eax, eax
je 0x410963
mov ecx, 5
int 0x29
push 1
push 0xc0000417
push 2
call fcn.00410620
add esp, 0xc
mov esi, esp
push 0xc0000417
mov edi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp edi, esp
call fcn.0041f790
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp esi, esp
call fcn.0041f790
pop edi
pop esi
pop ebx
add esp, 0xc0
cmp ebp, esp
call fcn.0041f790
mov esp, ebp
pop ebp
ret

Function at 0x415750
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x24]
mov ecx, 9
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x41578b
push 0x2d
mov eax, dword [ebp - 8]
push eax
call sub.msvcrt.dll_wcsrchr
add esp, 8
test eax, eax
jne 0x41578d
jmp 0x415808
mov eax, dword [ebp + 8]
sub eax, 1
mov esi, esp
push eax
mov ecx, dword [ebp - 0x14]
push ecx
push 0x1001
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
cmp esi, esp
call fcn.0041f790
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4157bb
jmp 0x415808
mov eax, 0x5f
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x14]
mov word [edx + ecx*2 - 2], ax
mov eax, dword [ebp + 8]
sub eax, dword [ebp - 0x20]
mov esi, esp
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x14]
lea eax, [edx + ecx*2]
push eax
push 0x1002
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
cmp esi, esp
call fcn.0041f790
test eax, eax
jne 0x4157fa
jmp 0x415808
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
xor eax, eax
jne 0x415773
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
add esp, 0xe4
cmp ebp, esp
call fcn.0041f790
mov esp, ebp
pop ebp
ret 4

Function at 0x419a40
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
push ebx
push esi
push edi
mov edi, ebp
xor ecx, ecx
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
call fcn.00419ba0
movzx eax, al
test eax, eax
je 0x419a86
mov esi, esp
mov eax, dword [ebp + 8]
push eax
mov edi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp edi, esp
call fcn.0041f790
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp esi, esp
call fcn.0041f790
mov eax, dword [ebp + 8]
push eax
call fcn.00419c20
add esp, 4
mov esi, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x419ae0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
push ebx
push esi
push edi
lea edi, [ebp - 0x18]
mov ecx, 6
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov esi, esp
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp esi, esp
call fcn.0041f790
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x419b19
xor al, al
jmp 0x419b7e
mov eax, dword [ebp - 8]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
je 0x419b2b
xor al, al
jmp 0x419b7e
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0x4550
je 0x419b46
xor al, al
jmp 0x419b7e
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x419b59
xor al, al
jmp 0x419b7e
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x74], 0xe
ja 0x419b66
xor al, al
jmp 0x419b7e
mov eax, 8
imul ecx, eax, 0xe
mov edx, dword [ebp - 0x14]
cmp dword [edx + ecx + 0x78], 0
jne 0x419b7c
xor al, al
jmp 0x419b7e
mov al, 1
pop edi
pop esi
pop ebx
add esp, 0xd8
cmp ebp, esp
call fcn.0041f790
mov esp, ebp
pop ebp
ret
Function at 0x41d5c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422510
mov eax, dword fs:[0]
push eax
sub esp, 0x6a8
push ebx
push esi
push edi
lea edi, [ebp - 0x474]
mov ecx, 0x11a
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x42d040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx eax, byte [0x2aadc88]
test eax, eax
je 0x41d62a
mov esi, esp
push 0x800
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp esi, esp
call fcn.0041f790
jmp 0x41d806
cmp dword [ebp + 8], 0
je 0x41d63a
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x41d641
xor eax, eax
jmp 0x41d806
mov esi, esp
push 0x200
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp esi, esp
call fcn.0041f790
mov dword [ebp - 0x420], eax
cmp dword [ebp - 0x420], 0
je 0x41d677
cmp dword [ebp - 0x420], 0x200
jb 0x41d67e
xor eax, eax
jmp 0x41d806
mov eax, 0x5c
mov ecx, dword [ebp - 0x420]
mov word [ebp + ecx*2 - 0x414], ax
mov edx, dword [ebp - 0x420]
add edx, 1
mov dword [ebp - 0x420], edx
cmp dword [ebp - 0x420], 0x200
jb 0x41d6b3
xor eax, eax
jmp 0x41d806
mov eax, dword [ebp + 8]
mov dword [ebp - 0x42c], eax
jmp 0x41d6cd
mov eax, dword [ebp - 0x42c]
add eax, 2
mov dword [ebp - 0x42c], eax
mov eax, dword [ebp - 0x42c]
movzx ecx, word [eax]
test ecx, ecx
je 0x41d715
mov eax, dword [ebp - 0x420]
mov ecx, dword [ebp - 0x42c]
mov dx, word [ecx]
mov word [ebp + eax*2 - 0x414], dx
mov eax, dword [ebp - 0x420]
add eax, 1
mov dword [ebp - 0x420], eax
cmp dword [ebp - 0x420], 0x200
jb 0x41d713
xor eax, eax
jmp 0x41d806
jmp 0x41d6be
mov eax, dword [ebp - 0x420]
shl eax, 1
mov dword [ebp - 0x6a8], eax
cmp dword [ebp - 0x6a8], 0x400
jae 0x41d731
jmp 0x41d736
call fcn.0040efb0
xor ecx, ecx
mov edx, dword [ebp - 0x6a8]
mov word [ebp + edx - 0x414], cx
mov eax, dword [0x2aadc8c]
push eax
call fcn.00419560
add esp, 4
mov dword [ebp - 0x438], eax
cmp dword [ebp - 0x438], 0
je 0x41d78f
mov eax, dword [ebp - 0x438]
mov dword [ebp - 0x6b0], eax
mov esi, esp
lea ecx, [ebp - 0x444]
push ecx
push 0
call dword [ebp - 0x6b0]
cmp esi, esp
call fcn.0041f790
mov dword [ebp - 0x6b4], eax
jmp 0x41d799
mov dword [ebp - 0x6b4], 0xc000000d
mov edx, dword [ebp - 0x6b4]
mov dword [ebp - 0x450], edx
mov esi, esp
push 8
push 0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp esi, esp
call fcn.0041f790
mov dword [ebp - 0x45c], eax
cmp dword [ebp - 0x450], 0
jl 0x41d800
cmp dword [ebp - 0x438], 0
je 0x41d800
mov eax, dword [ebp - 0x438]
mov dword [ebp - 0x6b0], eax
mov esi, esp
lea ecx, [ebp - 0x444]
push ecx
mov edx, dword [ebp - 0x444]
push edx
call dword [ebp - 0x6b0]
cmp esi, esp
call fcn.0041f790
mov eax, dword [ebp - 0x45c]
push edx
mov ecx, ebp
push eax
lea edx, [0x41d840]
call fcn.0041f730
pop eax
pop edx
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.0040e1e0
add esp, 0x6b4
cmp ebp, esp
call fcn.0041f790
mov esp, ebp
pop ebp
ret