joyce8/EMBER2024-capa huggingface dataset:
Function at 0x469670
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x651da0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov ecx, 0x67b54b
call fcn.0059f048
xor eax, eax
jne 0x469690
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
shl ecx, 1
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4696d3
mov eax, dword [ebp - 0xc]
jmp 0x469739
cmp dword [ebp - 0x10], 1
je 0x4696e6
cmp dword [ebp - 0x10], 2
je 0x4696e6
mov eax, 0xd
jmp 0x469739
cmp dword [ebp + 0xc], 0
je 0x46972d
cmp dword [ebp - 0x14], 0
je 0x46971c
mov eax, dword [ebp - 0x14]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x469713
mov eax, dword [ebp - 0x14]
shr eax, 1
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx + eax*2 - 2]
test edx, edx
je 0x46971a
mov eax, 0xd
jmp 0x469739
jmp 0x46972d
mov eax, 2
imul ecx, eax, 0
xor edx, edx
mov eax, dword [ebp + 0xc]
mov word [eax + ecx], dx
mov eax, dword [ebp - 0x14]
shr eax, 1
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059f07a
mov esp, ebp
pop ebp
ret 0xc
Function at 0x469fd0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d6ac0
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [0x651da0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ecx
mov ecx, 0x67b5d0
call fcn.0059f048
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x24130]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x24120]
push eax
push str._____RestartUIThread_Old_TID:_d_MsgHandle:0x_x
call fcn.004787b0
add esp, 0xc
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
sub ecx, 1
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x240a4], 0
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x240a8], 0
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x24130], 0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
add ecx, 0x24180
call fcn.00441040
test eax, eax
je 0x46a0a8
mov ecx, dword [ebp - 0x14]
add ecx, 0x24180
call fcn.00441140
mov ecx, eax
call fcn.00559a70
mov ecx, dword [ebp - 0x14]
add ecx, 0x24180
call fcn.00441140
mov ecx, eax
call fcn.005599b0
jmp 0x46a0b0
mov dword [ebp - 4], 0xffffffff
jmp 0x46a0c0
mov dword [ebp - 4], 2
cmp dword [ebp + 0xc], 0
jne 0x46a0e0
mov eax, dword [ebp - 0x14]
add eax, 0x2411c
push eax
mov ecx, dword [ebp - 0x14]
call fcn.00460000
jmp 0x46a11c
cmp dword [ebp + 0xc], 1
jne 0x46a0fb
push 1
mov eax, dword [ebp - 0x14]
add eax, 0x2411c
push eax
mov ecx, dword [ebp - 0x14]
call fcn.0045fe00
jmp 0x46a11c
cmp dword [ebp + 0xc], 2
jne 0x46a11c
call fcn.00473fe0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
jmp 0x46a1e2
jmp 0x46a12d
mov dword [ebp - 4], 0xffffffff
jmp 0x46a13d
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
jl 0x46a187
push 0x46e930
mov eax, dword [ebp - 0x14]
push eax
push 0
mov ecx, dword [ebp - 0x14]
add ecx, 0x2411c
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.00445770
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x24130], 0
jne 0x46a187
mov eax, dword [ebp + 8]
push eax
push 0xbb8
call fcn.00447870
add esp, 8
test eax, eax
jne 0x46a185
jmp 0x46a187
jmp 0x46a162
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x24130], 0
je 0x46a19c
mov dword [ebp - 0x5c], 1
jmp 0x46a1a3
mov dword [ebp - 0x5c], 0
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
je 0x46a1d2
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x24130]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x24120]
push eax
push str._____RestartUIThread_New_TID:_d_MsgHandle:0x_x
call fcn.004787b0
add esp, 0xc
jmp 0x46a1df
push str._____RestartUIThread_New_Failed_
call fcn.004787b0
add esp, 4
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x46acf0
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ecx, 0x67b5d0
call fcn.0059f048
cmp dword [ebp + 8], 0
je 0x46ad1a
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x46ad1f
jmp 0x46ada6
push str.__SendEnterByMessage
call fcn.004787b0
add esp, 4
mov dword [ebp - 8], 0xd
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
shl eax, 0x10
or eax, 1
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 0x100
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x850]
push ecx
push 0x37
push 0x14
call fcn.0046a200
add esp, 8
push eax
call fcn.004478b0
add esp, 8
mov eax, dword [ebp - 0x10]
or eax, 0xc0000000
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 0x101
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x46adb0
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ecx, 0x67b5d0
call fcn.0059f048
cmp dword [ebp + 8], 0
je 0x46adda
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x46addc
jmp 0x46ae21
push str.__SendKeyDownByMessage
call fcn.004787b0
add esp, 4
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
shl eax, 0x10
or eax, 1
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 0x100
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x46b250
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d6d00
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x651da0]
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 dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
mov ecx, 0x67b5d0
call fcn.0059f048
push 0x24
lea ecx, [ebp - 0x38]
call fcn.0040d070
lea ecx, [ebp - 0x38]
call fcn.0043cf80
mov byte [ebp - 4], 1
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x39], 0
mov dword [ebp - 0x40], 0
cmp dword [ebp + 0xc], 0
je 0x46b323
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x40], eax
movzx eax, word [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_VkKeyScanW]
mov word [ebp - 0x44], ax
movsx eax, word [ebp - 0x44]
and eax, 0xff
mov byte [ebp - 0x39], al
movsx eax, word [ebp - 0x44]
shr eax, 8
and eax, 0xff
movzx ecx, al
or ecx, dword [ebp + 0x14]
mov dword [ebp + 0x14], ecx
mov eax, dword [ebp + 0x14]
and eax, 2
je 0x46b310
mov eax, dword [ebp - 0x30]
or eax, 4
mov dword [ebp - 0x30], eax
jmp 0x46b321
mov eax, dword [ebp + 0x14]
and eax, 1
je 0x46b321
mov eax, dword [ebp - 0x30]
or eax, 2
mov dword [ebp - 0x30], eax
jmp 0x46b378
movzx eax, byte [ebp + 0x10]
mov dword [ebp + 0xc], eax
mov al, byte [ebp + 0x10]
mov byte [ebp - 0x39], al
movzx eax, byte [ebp + 0x10]
cmp eax, 0x11
jne 0x46b342
mov eax, dword [ebp - 0x30]
or eax, 4
mov dword [ebp - 0x30], eax
movzx eax, byte [ebp + 0x10]
cmp eax, 0x10
jne 0x46b354
mov eax, dword [ebp - 0x30]
or eax, 2
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x14]
and eax, 2
je 0x46b367
mov eax, dword [ebp - 0x30]
or eax, 4
mov dword [ebp - 0x30], eax
jmp 0x46b378
mov eax, dword [ebp + 0x14]
and eax, 1
je 0x46b378
mov eax, dword [ebp - 0x30]
or eax, 2
mov dword [ebp - 0x30], eax
push 0
movzx eax, byte [ebp - 0x39]
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
shl eax, 0x10
or eax, 1
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x34], 3
lea ecx, [ebp + 8]
call fcn.00441140
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0x8c]
push eax
mov ecx, dword [ebp - 0x90]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x90]
mov eax, dword [edx]
call eax
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x94]
mov dword [ebp - 0x98], ecx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x98]
call fcn.00441140
mov dword [ebp - 0x9c], eax
lea edx, [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x9c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x9c]
mov eax, dword [edx + 0x80]
call eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x8c]
call fcn.00440220
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.0043f280
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00440220
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.0059f07a
mov esp, ebp
pop ebp
ret 0x10
Function at 0x46b460
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ecx, 0x67b5d0
call fcn.0059f048
cmp dword [ebp + 8], 0
je 0x46b48a
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x46b48c
jmp 0x46b4dc
push str.__SendKeyUpByMessage
call fcn.004787b0
add esp, 4
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
shl eax, 0x10
or eax, 1
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
or eax, 0xc0000000
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 0x101
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x46de60
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d723f
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x8c
mov eax, dword [0x651da0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, 0x67b5d0
call fcn.0059f048
cmp dword [ebp + 0xc], 0
jne 0x46dea7
jmp 0x46e079
mov dword [ebp - 4], 0
push 0x824
call fcn.0059ebbe
add esp, 4
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x74], 0
je 0x46dee9
push 0x824
mov ecx, dword [ebp - 0x74]
call fcn.0040d070
push 0
push 0
mov ecx, dword [ebp - 0x74]
call fcn.00428020
mov dword [ebp - 0x98], eax
jmp 0x46def3
mov dword [ebp - 0x98], 0
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x70], eax
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x70]
mov dword [0x678eb8], ecx
push 0
lea eax, [ebp - 0x8c]
push eax
call fcn.00457b80
add esp, 8
mov dword [ebp - 0x98], eax
mov ecx, dword [ebp - 0x98]
mov dword [ebp - 0x9c], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x9c]
push edx
mov eax, dword [str.5A973C623B894ACDBDC85FA9D61BD1B4]
push eax
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00436ad0
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x8c]
call fcn.00404fb0
lea ecx, [ebp - 0x2c]
call fcn.0040d5e0
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x6793ac], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x46dfad
cmp dword [0x6793ac], 0
je 0x46df92
mov eax, dword [0x6793ac]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x6793ac], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00404fb0
jmp 0x46e079
cmp dword [0x678eb0], 0
jne 0x46e048
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x678e58], eax
push 0x24348
call fcn.0059ebbe
add esp, 4
mov dword [ebp - 0x94], eax
mov byte [ebp - 4], 5
cmp dword [ebp - 0x94], 0
je 0x46e018
push 0x24348
mov ecx, dword [ebp - 0x94]
call fcn.0040d070
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x94]
call fcn.0043ea40
mov dword [ebp - 0x98], eax
jmp 0x46e022
mov dword [ebp - 0x98], 0
mov edx, dword [ebp - 0x98]
mov dword [ebp - 0x90], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x90]
mov dword [0x678eb0], eax
mov ecx, dword [0x678eb0]
call fcn.0046dda0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00404fb0
jmp 0x46e069
mov dword [ebp - 4], 0xffffffff
jmp 0x46e079
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0059f07a
mov esp, ebp
pop ebp
ret
Function at 0x46e130
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1dc
mov eax, dword [0x651da0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ecx, 0x67b5d0
call fcn.0059f048
mov dword [ebp - 8], 1
push 0x190
push 0
lea eax, [ebp - 0x198]
push eax
call fcn.005a41c0
add esp, 0xc
lea eax, [ebp - 0x198]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x19c], eax
cmp dword [ebp - 0x19c], 0
je 0x46e1a9
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0x19c]
push eax
push str.WSAStartup_Failed__ret__d
call fcn.004787b0
add esp, 8
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059f07a
mov esp, ebp
pop ebp
ret
Function at 0x46f650
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d7567
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x651da0]
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 dword [ebp - 0x88], 0
mov ecx, 0x67b5d0
call fcn.0059f048
lea ecx, [ebp - 0x28]
call fcn.00404b80
mov dword [ebp - 4], 1
mov ecx, dword [ebp + 0xc]
call fcn.0040e960
movzx eax, al
test eax, eax
jne 0x46f6b9
call fcn.0046e130
test eax, eax
jne 0x46f6e8
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
call fcn.00404a30
mov ecx, dword [ebp - 0x88]
or ecx, 1
mov dword [ebp - 0x88], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00404fb0
mov eax, dword [ebp + 8]
jmp 0x46f78c
mov ecx, dword [ebp + 0xc]
call fcn.0040d5e0
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x46f75d
mov eax, dword [ebp - 0x2c]
movsx ecx, word [eax + 8]
cmp ecx, 2
jne 0x46f75d
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea ecx, [ebp - 0x84]
call fcn.00404ad0
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 0x8c]
mov dword [ebp - 0x90], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x90]
push edx
lea ecx, [ebp - 0x28]
call fcn.00409dd0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x84]
call fcn.00404fb0
call fcn.0046e450
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
call fcn.00404a30
mov ecx, dword [ebp - 0x88]
or ecx, 1
mov dword [ebp - 0x88], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00404fb0
mov eax, dword [ebp + 8]
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.0059f07a
mov esp, ebp
pop ebp
ret
Function at 0x46fa10
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d75fd
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x651da0]
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 ecx, 0x67b5d0
call fcn.0059f048
mov dword [ebp - 0x20], 0x10000
push 0x10000
call fcn.0059f0ae
add esp, 4
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x46fbd9
push 0x10000
push 0
mov eax, dword [ebp - 0x24]
push eax
call fcn.005a41c0
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00404ad0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.004752d0
movsx eax, byte [eax]
cmp eax, 0x5c
je 0x46faaf
push 0x5c
lea ecx, [ebp - 0x3c]
call fcn.00406320
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x3c]
call fcn.004418f0
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
lea ecx, [ebp - 0x3c]
call fcn.0040d5e0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x46fb8d
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
sub eax, 0x40
mov dword [ebp - 0x18], eax
push 0
push 0
push 0x40
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x18], 0
jbe 0x46fb62
cmp dword [ebp - 0x18], 0x10000
jbe 0x46fb46
push 0
lea eax, [ebp - 0x1c]
push eax
push 0x10000
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x18]
sub eax, 0x10000
mov dword [ebp - 0x18], eax
jmp 0x46fb60
push 0
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x46fb62
jmp 0x46fb11
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x84], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00404fb0
mov eax, dword [ebp - 0x84]
jmp 0x46fbdb
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp - 0x88]
push ecx
call fcn.0059f0b7
add esp, 4
cmp dword [ebp - 0x88], 0
jne 0x46fbba
mov dword [ebp - 0x8c], 0
jmp 0x46fbca
mov dword [ebp - 0x24], 0x8123
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x8c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00404fb0
xor eax, eax
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.0059f07a
mov esp, ebp
pop ebp
ret
Function at 0x473af0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ecx, 0x67b5ce
call fcn.0059f048
mov dword [ebp - 8], 0
jmp 0x473b18
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xe3
jae 0x473b84
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + eax*4 + 0x9c4]
and edx, 0x80000000
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + eax*4 + 0x9c8]
and eax, 0x7fffffff
or edx, eax
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
and eax, 1
je 0x473b5c
mov dword [ebp - 0x58], 0x9908b0df
jmp 0x473b63
mov dword [ebp - 0x58], 0
mov ecx, dword [ebp - 0xc]
shr ecx, 1
xor ecx, dword [ebp - 0x58]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
xor ecx, dword [eax + edx*4 + 0xff8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov dword [eax + edx*4 + 4], ecx
jmp 0x473b0f
jmp 0x473b8f
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x26f
jae 0x473bfb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + eax*4 + 0x9c4]
and edx, 0x80000000
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + eax*4 + 0x9c8]
and eax, 0x7fffffff
or edx, eax
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
and eax, 1
je 0x473bd3
mov dword [ebp - 0x58], 0x9908b0df
jmp 0x473bda
mov dword [ebp - 0x58], 0
mov ecx, dword [ebp - 0x10]
shr ecx, 1
xor ecx, dword [ebp - 0x58]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
xor ecx, dword [eax + edx*4 - 0x388]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov dword [eax + edx*4 + 4], ecx
jmp 0x473b86
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + eax*4 + 0x9c4]
and edx, 0x80000000
mov eax, 4
imul ecx, eax, 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + ecx + 4]
and ecx, 0x7fffffff
or edx, ecx
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
and eax, 1
je 0x473c39
mov dword [ebp - 0x58], 0x9908b0df
jmp 0x473c40
mov dword [ebp - 0x58], 0
mov ecx, dword [ebp - 0x14]
shr ecx, 1
xor ecx, dword [ebp - 0x58]
mov edx, 4
imul eax, edx, 0x18c
mov edx, dword [ebp - 4]
xor ecx, dword [edx + eax + 4]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [edx + eax*4 + 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x473c80
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ecx, 0x67b5ce
call fcn.0059f048
mov dword [ebp - 8], 0x270
jmp 0x473ca8
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x4e0
jae 0x473d14
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + eax*4 - 0x9bc]
and edx, 0x80000000
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + eax*4 - 0x9b8]
and eax, 0x7fffffff
or edx, eax
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
and eax, 1
je 0x473cec
mov dword [ebp - 0x50], 0x9908b0df
jmp 0x473cf3
mov dword [ebp - 0x50], 0
mov ecx, dword [ebp - 0xc]
shr ecx, 1
xor ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
xor ecx, dword [eax + edx*4 - 0x388]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov dword [eax + edx*4 + 4], ecx
jmp 0x473c9f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4787b0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d7cb0
mov eax, dword fs:[0]
push eax
mov eax, 0x12c8
call fcn.0059f1e0
mov eax, dword [0x651da0]
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 ecx, 0x67b5d0
call fcn.0059f048
mov dword [ebp - 0x14], 0x800
mov dword [ebp - 0x18], 0x64
mov dword [ebp - 0x1c], 0x896
push 0x800
push 0
lea eax, [ebp - 0x81c]
push eax
call fcn.005a41c0
add esp, 0xc
lea eax, [ebp + 0xc]
mov dword [ebp - 0x820], eax
mov eax, dword [ebp - 0x820]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0xffffffffffffffff
push 0x800
lea edx, [ebp - 0x81c]
push edx
call fcn.0047c9a0
add esp, 0x14
mov dword [ebp - 0x820], 0
push 0x896
push 0
lea eax, [ebp - 0x10b8]
push eax
call fcn.005a41c0
add esp, 0xc
lea eax, [ebp - 0x81c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.0045fed0
push eax
push str._d___5d___6d__s_n
lea ecx, [ebp - 0x10b8]
push ecx
call fcn.0043c620
add esp, 0x18
lea eax, [ebp - 0x10b8]
push eax
lea ecx, [ebp - 0x10d0]
call fcn.00404ad0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10d0]
call fcn.0040d5e0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [0x678eb8], 0
je 0x4788db
lea ecx, [ebp - 0x10d0]
call fcn.0040d5e0
push eax
mov ecx, dword [0x678eb8]
call fcn.004287e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10d0]
call fcn.00404fb0
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.0059f07a
mov esp, ebp
pop ebp
ret