joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50ccf0
Capabilities:
Access peb ldr_data
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x590cbd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
lea ecx, [esi + 8]
mov dword [esi], vtable.PingManager.0
push edi
xor edi, edi
mov dword [ebp - 0x10], esi
mov dword [ecx], edi
mov dword [ecx + 4], edi
mov dword [ecx + 8], edi
mov dword [ecx + 0xc], edi
mov dword [ecx + 0x10], edi
mov dword [ecx + 0x14], edi
push 0x1e
mov dword [ebp - 4], edi
call fcn.00562410
push edi
push edi
push edi
push 0x50cc70
push edi
push edi
mov dword [esi + 0x2c], 1
mov dword [esi + 0x30], edi
call fcn.00571c9a
mov ecx, dword [ebp - 0xc]
add esp, 0x18
mov dword [esi + 4], eax
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x50ced0
Capabilities:
Create raw socket
Initialize winsock library
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
push esi
xor eax, eax
push 0x18e
mov esi, ecx
push eax
lea ecx, [ebp - 0x192]
push ecx
mov word [ebp - 0x194], ax
call fcn.0056e7c0
add esp, 0xc
lea edx, [ebp - 0x194]
push edx
push 0x102
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x50cf16
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push 1
push 3
push 2
call sub.WSOCK32.dll_socket
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x50cf0f
push 4
lea ecx, [ebp - 4]
push ecx
push 0x1006
push 0xffff
push eax
mov dword [ebp - 4], 0x7d0
call sub.WSOCK32.dll_setsockopt
cmp eax, 0xffffffff
je 0x50cf0f
mov eax, dword [esi + 4]
push 4
lea edx, [ebp - 4]
push edx
push 0x1005
push 0xffff
push eax
mov dword [ebp - 4], 0x7d0
call sub.WSOCK32.dll_setsockopt
cmp eax, 0xffffffff
setne al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x50d100
Capabilities:
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
mov esi, ecx
test edi, edi
je 0x50d29d
mov word [ebp - 0x10], ax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
mov dword [ebp - 6], eax
mov word [ebp - 2], ax
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x50d130
push 2
sub eax, edx
push eax
push edi
call sub.WSOCK32.dll_gethostbyaddr
push edi
test eax, eax
je 0x50d15a
mov ecx, 2
mov word [ebp - 0x10], cx
call sub.WSOCK32.dll_inet_addr
mov dword [ebp - 0xc], eax
jmp 0x50d18c
call sub.WSOCK32.dll_gethostbyname
test eax, eax
jne 0x50d16d
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
mov dx, word [eax + 8]
mov word [ebp - 0x10], dx
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
push ecx
push eax
lea ecx, [ebp - 0xc]
push ecx
call fcn.00570700
add esp, 0xc
push 0x3ff
lea edx, [ebp - 0x41f]
push 0
push edx
mov byte [ebp - 0x420], 0
call fcn.0056e7c0
push 0x3ff
lea eax, [ebp - 0x81f]
push 0
push eax
mov byte [ebp - 0x820], 0
call fcn.0056e7c0
mov edi, dword [ebp + 0xc]
add esp, 0x18
push edi
lea ecx, [ebp - 0x420]
push ecx
mov ecx, esi
call fcn.0050cf80
xor eax, eax
xor edx, edx
xor ecx, ecx
add edi, 0xc
mov word [ebp - 0x20], dx
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
mov word [ebp - 0x12], ax
mov word [ebp - 0x41e], ax
mov word [ebp - 0x41a], cx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
lea edx, [ebp - 0x420]
push edx
mov ecx, esi
mov dword [ebp - 0x418], eax
call fcn.0050cfd0
mov edx, dword [esi + 4]
push 0x10
mov word [ebp - 0x41e], ax
lea eax, [ebp - 0x10]
push eax
push 0
push edi
lea ecx, [ebp - 0x420]
push ecx
push edx
call sub.WSOCK32.dll_sendto
cmp eax, 0xffffffff
je 0x50d163
lea eax, [ebp + 8]
push eax
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x20]
push ecx
push 0
push 0x400
lea edx, [ebp - 0x820]
push edx
push eax
mov dword [ebp + 8], 0x10
call sub.WSOCK32.dll_recvfrom
cmp eax, 0xffffffff
je 0x50d163
lea ecx, [ebp - 0x20]
push ecx
push eax
lea edx, [ebp - 0x820]
push edx
mov ecx, esi
call fcn.0050d050
mov eax, dword [esi + 8]
test eax, eax
je 0x50d297
mov ecx, 1
cmp dword [eax + 0x24], ecx
jg 0x50d297
mov dword [eax + 0x24], ecx
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x24]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x515010
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push esi
mov esi, ecx
mov eax, dword [esi]
mov ecx, dword [eax + 0x20]
push esi
call ecx
test eax, eax
je 0x51504e
push 0x7c9
mov ecx, 0x6d8178
call fcn.004ca5b0
push eax
push 0x1d
push 0x6d8178
call fcn.004cb820
add esp, 0xc
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [0x7012dc]
mov dword [ebp - 4], 0
mov edx, dword [eax]
push eax
mov eax, dword [edx + 0x10]
call eax
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push 0x5a9838
push eax
mov eax, dword [ecx + 0x134]
call eax
test eax, eax
je 0x515047
cmp dword [esi + 0xc], 0
jne 0x5150b3
push 0x5a9848
mov ecx, esi
call fcn.00515480
test eax, eax
jns 0x515097
push 0x7ca
jmp 0x51502d
mov ecx, dword [esi]
mov edx, dword [ecx + 0xc]
push str.e5b68af6
push str.EYA_LUNAPLUS_20100218
push esi
call edx
cmp dword [esi + 0xc], 0
je 0x515178
mov eax, dword [esi]
mov ecx, dword [eax + 0x40]
push 0x3c
push 0x1e
push esi
call ecx
mov ecx, esi
call fcn.00514f30
push 0
mov ecx, 0x703de8
call fcn.005551b0
push eax
lea edx, [ebp - 0x108]
push str._sScreenShot
push edx
call fcn.0056ecd0
add esp, 0xc
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x515111
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x515111
push 0x7cc
jmp 0x51502d
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push 0x5a9888
push str.Capture
lea edx, [ebp - 0x108]
push edx
mov ecx, esi
call fcn.00514d10
lea eax, [ebp - 0x20c]
push eax
push 0x7cd
mov ecx, 0x6d8178
call fcn.004ca5b0
push eax
push 0x1d
push 0x6d8178
call fcn.004cb820
mov ecx, dword [ebp - 4]
add esp, 0x10
push ecx
push 4
push 0
lea edx, [ebp - 0x20c]
push edx
push esi
call fcn.00514d70
test eax, eax
js 0x515047
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x515830
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push esi
test eax, eax
jne 0x515884
mov eax, dword [ebp + 8]
push 0x5a9b80
push eax
call fcn.0056ec72
mov esi, eax
add esp, 8
test esi, esi
je 0x5158b8
mov edx, dword [ebp + 0xc]
mov eax, edx
push edi
lea edi, [eax + 1]
jmp 0x515860
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x515860
push esi
sub eax, edi
push 1
push eax
push edx
call fcn.0056eb3c
push esi
call fcn.0056e971
add esp, 0x14
pop edi
xor eax, eax
pop esi
pop ebp
ret 0xc
cmp eax, 1
jne 0x5158b8
mov ecx, dword [ebp + 8]
push 0x5a9b84
push ecx
call fcn.0056ec72
mov esi, eax
add esp, 8
test esi, esi
je 0x5158b8
mov edx, dword [ebp + 0xc]
push edx
push 0x5a9b88
push esi
call fcn.0056fbf1
push esi
call fcn.0056e971
add esp, 0x10
xor eax, eax
pop esi
pop ebp
ret 0xc
Function at 0x517080
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
test edi, edi
jne 0x51709e
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
push 0x5a9c14
push edi
call fcn.0056ec72
lea edx, [esi + 0x30]
add esp, 8
mov dword [esi + 4], eax
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x5170b6
mov eax, dword [esi + 4]
test eax, eax
je 0x517094
push ebx
push 2
push 0
push eax
call fcn.00571dc4
mov eax, dword [esi + 4]
push eax
call fcn.0057210c
mov ecx, dword [esi + 4]
push 0
push 0
push ecx
mov dword [ebp - 4], eax
call fcn.00571dc4
add esp, 0x1c
mov ecx, esi
call fcn.005165b0
mov edx, dword [esi + 4]
push edx
push 1
lea edi, [esi + 0x18]
push 0xc
push edi
call fcn.0056f629
mov eax, dword [edi]
sub eax, dword [esi + 0x1c]
add esp, 0x10
sub eax, dword [esi + 0x20]
lea ecx, [esi + 0x148]
push eax
call fcn.005683a0
test eax, eax
jne 0x517164
push eax
push 0x38
push 0x5a9c30
call fcn.0051c9f0
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x104]
push str.Bin_File_Version_Error_____s
push edx
call fcn.0056ecd0
add esp, 0x18
push 0
push 0
lea eax, [ebp - 0x104]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
lea ecx, [esi + 0x148]
call fcn.00568380
test eax, eax
je 0x51722a
mov edi, dword [ebp - 4]
add edi, 0xfffffff2
push edi
call fcn.0056e108
add esp, 4
mov dword [esi + 0x28], eax
test eax, eax
jne 0x5171a8
push eax
push 0x49
push 0x5a9c80
call fcn.0051c9f0
add esp, 0xc
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
push edi
push 0
push eax
call fcn.0056e7c0
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x28]
mov eax, dword [esi + 4]
add esp, 0xc
push ecx
push edi
push edx
push eax
lea ecx, [esi + 0x148]
call fcn.00568610
test eax, eax
jne 0x517206
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x204]
push str.File_Open_Error_:__s
push edx
call fcn.0056ecd0
add esp, 0xc
push 0
push 0
lea eax, [ebp - 0x204]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi + 4]
push ecx
call fcn.0056e971
add esp, 4
pop ebx
mov eax, 1
pop edi
mov dword [esi + 4], 0
mov dword [esi + 0x2c], eax
pop esi
mov esp, ebp
pop ebp
ret 4
mov edx, dword [esi + 4]
push edx
push 1
lea eax, [esi + 0x24]
push 1
push eax
call fcn.0056f629
mov eax, dword [esi + 0x20]
add esp, 0x10
test eax, eax
je 0x517261
push eax
call fcn.0056e108
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0x20]
push ecx
push edx
push 1
push eax
mov dword [esi + 0x28], eax
call fcn.0056f629
add esp, 0x14
mov eax, dword [esi + 4]
push eax
push 1
lea ecx, [esi + 0x25]
push 1
push ecx
call fcn.0056f629
mov edx, dword [esi + 4]
push edx
call fcn.0056e971
add esp, 0x14
mov ecx, esi
mov dword [esi + 4], 0
call fcn.00516a60
test eax, eax
je 0x517159
call fcn.00516570
test eax, eax
je 0x517159
pop ebx
mov eax, 1
pop edi
mov dword [esi + 0x2c], eax
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x518970
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff8
push esi
mov esi, ecx
cmp eax, 0x4e
ja case.0x51898c.10
movzx eax, byte [eax + 0x518af8]
jmp dword [eax*4 + 0x518ac4]
mov ecx, dword [esi + 4]
cmp dword [ecx + 0x40], 1
je case.0x51898c.10
call fcn.00517d20
mov eax, 1
pop esi
pop ebp
ret 0x10
mov ecx, dword [esi + 4]
call fcn.00517da0
mov eax, 1
pop esi
pop ebp
ret 0x10
mov ecx, dword [esi + 4]
call fcn.00517e20
mov eax, 1
pop esi
pop ebp
ret 0x10
mov ecx, dword [esi + 4]
call fcn.00517e90
mov eax, 1
pop esi
pop ebp
ret 0x10
mov ecx, dword [esi + 4]
cmp dword [ecx + 0x40], 1
je case.0x51898c.10
call fcn.00517f00
mov eax, 1
pop esi
pop ebp
ret 0x10
mov ecx, dword [esi + 4]
call fcn.00517f10
mov eax, 1
pop esi
pop ebp
ret 0x10
mov ecx, dword [esi + 4]
call fcn.00517c50
mov ecx, dword [esi + 4]
mov ecx, dword [ecx + 0x38]
test ecx, ecx
je case.0x51898c.10
push 8
call fcn.0043e360
mov eax, 1
pop esi
pop ebp
ret 0x10
mov ecx, dword [esi + 4]
call fcn.00517f50
mov eax, 1
pop esi
pop ebp
ret 0x10
mov ecx, dword [esi + 4]
call fcn.00518140
mov eax, 1
pop esi
pop ebp
ret 0x10
mov ecx, 0x6d5870
call fcn.0043ebc0
mov eax, 1
pop esi
pop ebp
ret 0x10
mov dword [esi + 0xc], 1
mov eax, 1
pop esi
pop ebp
ret 0x10
cmp dword [esi + 0xc], 0
je case.0x51898c.10
push 1
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je case.0x51898c.10
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je case.0x51898c.10
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ecx, dword [esi + 4]
push eax
call fcn.00518840
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, 1
pop esi
pop ebp
ret 0x10
Function at 0x51ac90
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
mov esi, dword [ebp + 8]
lea edx, [ebp - 0x110]
mov ebx, ecx
mov eax, esi
sub edx, esi
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x51acb0
movsx eax, byte [esi]
push eax
call fcn.005724aa
add esp, 4
test eax, eax
je 0x51ad2f
lea ecx, [ebp - 0x110]
push ecx
call sub.WSOCK32.dll_gethostbyname
mov esi, eax
test esi, esi
jne 0x51ace4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 0xc]
push edi
xor edi, edi
cmp dword [eax], edi
je 0x51ad2e
mov edi, edi
movsx edx, word [esi + 0xa]
mov eax, dword [eax]
push edx
push eax
lea ecx, [ebp - 0xc]
push ecx
call fcn.00570700
mov edx, dword [ebp - 0xc]
add esp, 0xc
push edx
call sub.WSOCK32.dll_inet_ntoa
push eax
lea eax, [ebp - 0x110]
push 0x5a9f60
push eax
call fcn.0056ecd0
mov ecx, dword [esi + 0xc]
inc edi
lea eax, [ecx + edi*4]
add esp, 0xc
cmp dword [eax], 0
jne 0x51acf0
pop edi
lea edx, [ebp - 0x110]
push edx
push 0x20
push 0x6e4ff4
call fcn.005723f5
mov eax, dword [0x6e5038]
mov esi, dword [ebp + 0xc]
imul eax, eax, 0x58
add esp, 0xc
cmp si, word [eax + 0x700390]
jne 0x51ad75
cmp dword [0x6e5018], 0
je 0x51ad75
cmp dword [0x6e5034], 0
jne 0x51ad75
mov ecx, 0x6e5018
call fcn.0050d7b0
mov eax, dword [ebx + 0x114]
mov ecx, dword [eax]
push esi
lea edx, [ebp - 0x110]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
xor ecx, ecx
test eax, eax
setne cl
mov dword [ebx + 0x118], eax
pop esi
pop ebx
mov eax, ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x51ae10
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, dword [ebp + 8]
mov bl, 0x53
push edi
mov edi, ecx
cmp byte [esi + 1], bl
jb 0x51ae39
push 0
push 0xb6
push 0x5a9f64
call fcn.0051c9f0
add esp, 0xc
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x56734661
mov dword [ebp - 0x24], 0x31313561
mov byte [ebp - 0x20], 0x41
mov byte [ebp - 0x1f], bl
mov dword [ebp - 0x1e], 0x61637646
mov byte [ebp - 0x1a], 0x4d
mov byte [ebp - 0x19], bl
mov byte [ebp - 0x18], bl
mov dword [ebp - 0x17], 0x40215e59
mov dword [ebp - 0x13], 0x5a767324
mov dword [ebp - 0xf], 0x26317241
mov dword [ebp - 0xb], 0x2a21405e
mov dword [ebp - 7], 0x786673
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x51ae88
sub eax, ecx
mov ecx, eax
mov eax, dword [ebp + 0xc]
xor edx, edx
lea ebx, [ecx - 1]
div ebx
lea ebx, [ecx - 1]
mov ecx, dword [ebp + 0xc]
movzx eax, byte [ebp + edx - 0x28]
xor byte [esi + 1], al
xor edx, edx
mov eax, ecx
div ebx
mov dl, byte [ebp + edx - 0x28]
xor byte [esi + 2], dl
movzx eax, byte [edi + 0x11c]
mov byte [esi], al
mov eax, dword [edi + 0x118]
inc byte [edi + 0x11c]
test eax, eax
je 0x51aee2
mov edi, dword [edi + 0x114]
mov edx, dword [edi]
push ecx
push esi
push eax
mov eax, dword [edx + 0x14]
push edi
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x51c4d0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x398
push 0x1ff
lea eax, [ebp - 0x30f]
push 0
push eax
mov byte [ebp - 0x310], 0
call fcn.0056e7c0
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
add esp, 0xc
test eax, eax
je 0x51c51c
push eax
push ecx
push edx
lea eax, [ebp - 0x310]
push str._s_line:_d__msg:_s_
push eax
call fcn.0056ecd0
add esp, 0x14
jmp 0x51c532
push ecx
push edx
lea eax, [ebp - 0x310]
push str._s_line:_d_
push eax
call fcn.0056ecd0
add esp, 0x10
push 0xff
lea ecx, [ebp - 0x10f]
push 0
push ecx
mov byte [ebp - 0x110], 0
call fcn.0056e7c0
add esp, 0xc
lea edx, [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0xa]
movzx ecx, word [ebp - 0xe]
movzx edx, word [ebp - 0x10]
push eax
push ecx
push edx
lea eax, [ebp - 0x110]
push str.._Log_Debug__4d_02d_02d.txt
push eax
call fcn.0056ecd0
add esp, 0x14
cmp dword [0x6e6c70], 0
jne 0x51c663
push esi
push edi
push 0
lea ecx, [ebp - 0x398]
push ecx
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov edi, eax
cmp edi, 0xffffffff
jne 0x51c5f4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x110]
push 0x5aa23c
push eax
call fcn.0056ec72
mov esi, eax
add esp, 8
test esi, esi
je 0x51c661
call fcn.0051bd70
push eax
lea ecx, [ebp - 0x310]
push ecx
push 0x5aa240
push esi
call fcn.0056fbf1
push esi
call fcn.0056e971
add esp, 0x14
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea edx, [ebp + 0x10]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [ebp + 0x10]
shl esi, 0x10
push edi
or esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xf4240
ja 0x51c657
lea eax, [ebp - 0x110]
push 0x5aa24c
push eax
call fcn.0056ec72
mov esi, eax
add esp, 8
test esi, esi
je 0x51c661
call fcn.0051bd70
push eax
lea ecx, [ebp - 0x310]
push ecx
push str._stime:_s_n
push esi
call fcn.0056fbf1
push esi
call fcn.0056e971
add esp, 0x14
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [0x6e6c70], 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x51c9f0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 0x29c
cmp dword [0x6e6a38], 0
je 0x51ca43
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
push 0x5aa0d8
push 0x6e6938
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push 0x40004
push 0
push 0x6e6938
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x51cbaa
int3
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x214]
test eax, eax
je 0x51ca66
push eax
mov eax, dword [ebp + 0xc]
push eax
push ecx
push 0x5aa104
push edx
call fcn.0056ecd0
add esp, 0x14
jmp 0x51ca79
mov eax, dword [ebp + 0xc]
push eax
push ecx
push 0x5aa11c
push edx
call fcn.0056ecd0
add esp, 0x10
push 0xff
lea eax, [ebp - 0x113]
push 0
push eax
mov byte [ebp - 0x114], 0
call fcn.0056e7c0
add esp, 0xc
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [ebp - 0xe]
movzx eax, word [ebp - 0x12]
movzx ecx, word [ebp - 0x14]
push edx
push eax
push ecx
lea edx, [ebp - 0x114]
push str.._Log_Assert__4d_02d_02d.txt
push edx
call fcn.0056ecd0
add esp, 0x14
cmp dword [0x6e6c98], 0
jne 0x51cbaa
push esi
push edi
push 0
lea eax, [ebp - 0x29c]
push eax
lea ecx, [ebp - 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov edi, eax
cmp edi, 0xffffffff
jne 0x51cb3b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x114]
push 0x5aa14c
push edx
call fcn.0056ec72
mov esi, eax
add esp, 8
test esi, esi
je 0x51cba8
call fcn.0051bd70
push eax
lea eax, [ebp - 0x214]
push eax
push 0x5aa150
push esi
call fcn.0056fbf1
push esi
call fcn.0056e971
add esp, 0x14
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 4]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [ebp - 4]
shl esi, 0x10
push edi
or esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xf4240
ja 0x51cb9e
lea edx, [ebp - 0x114]
push 0x5aa15c
push edx
call fcn.0056ec72
mov esi, eax
add esp, 8
test esi, esi
je 0x51cba8
call fcn.0051bd70
push eax
lea eax, [ebp - 0x214]
push eax
push 0x5aa160
push esi
call fcn.0056fbf1
push esi
call fcn.0056e971
add esp, 0x14
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [0x6e6c98], 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x52c170
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x591cb6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [ebp - 0x10], esi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [ebp - 4], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
push 0xa
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 1
call fcn.005692c0
lea ecx, [esi + 0x68]
mov byte [ebp - 4], 2
call fcn.0052e220
mov dword [esi + 0x94], edi
mov dword [esi + 0x98], edi
mov dword [esi + 0x9c], edi
mov dword [esi + 0xa0], edi
mov dword [esi + 0xa4], edi
mov dword [esi + 0xa8], edi
mov dword [esi + 0xb8], edi
mov dword [esi + 0xbc], edi
mov dword [esi + 0xc0], edi
mov dword [esi + 0xc4], edi
mov dword [esi + 0xc8], edi
mov dword [esi + 0xcc], edi
mov dword [esi + 0xdc], edi
mov dword [esi + 0xe0], edi
mov dword [esi + 0xe4], edi
mov dword [esi + 0xe8], edi
mov dword [esi + 0xec], edi
mov dword [esi + 0xf0], edi
mov dword [esi + 0x100], edi
mov dword [esi + 0x104], edi
mov dword [esi + 0x108], edi
mov dword [esi + 0x10c], edi
mov dword [esi + 0x110], edi
mov dword [esi + 0x114], edi
mov dword [esi + 0x124], edi
mov dword [esi + 0x128], edi
mov dword [esi + 0x12c], edi
mov dword [esi + 0x130], edi
mov dword [esi + 0x134], edi
mov dword [esi + 0x138], edi
mov dword [esi + 0x148], edi
mov dword [esi + 0x14c], edi
mov dword [esi + 0x150], edi
mov dword [esi + 0x154], edi
mov dword [esi + 0x158], edi
mov dword [esi + 0x15c], edi
push 0x80
push 0x5ab848
push 0x6c3df0
mov byte [ebp - 4], 9
call fcn.00570b30
add esp, 0xc
mov dword [0x6c3dec], 0x32
cmp dword [0x6c3de4], edi
jne 0x52c2f1
push 0x64
push 0x6c3de4
call fcn.0052d8e0
mov eax, dword [0x6c3de4]
add esp, 8
mov dword [0x6c3de8], eax
push 0x1e
lea ecx, [esi + 0x94]
mov dword [esi + 0x64], edi
call fcn.00562410
push 0x1e
lea ecx, [esi + 0xb8]
call fcn.00562410
push 0x1e
lea ecx, [esi + 0xdc]
call fcn.00562410
push 0x1e
lea ecx, [esi + 0x100]
call fcn.00562410
push 3
lea ecx, [esi + 0x124]
call fcn.00562410
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x16c], edi
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret