joyce8/EMBER2024-capa huggingface dataset:
Function at 0x443ce0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5904c0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 0
mov eax, ecx
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x20], eax
push ecx
push 4
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], 0xb5367df1
push ecx
push 0x10
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], 0x11cfcbac
push ecx
push 0xc8000006
push dword [eax + 4]
mov dword [ebp - 0xc], 0x8000ca95
mov dword [ebp - 8], 0x92a1485f
mov dword [ebp - 0x18], 0
call dword [sym.imp.WS2_32.dll_WSAIoctl]
push 1
push 0
push 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
jne 0x443d78
push str.Failed_to_create_socket_in_IOCP_setup.
call fcn.00444440
add esp, 4
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b62cf
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
push 0x57902c
call edi
push 0x57902c
call edi
mov eax, dword [0x579018]
cmp eax, dword [0x57901c]
push 0x57902c
sete bl
call esi
test bl, bl
je 0x443dc4
push 0x57902c
call esi
push 0x3e8
call fcn.00443200
add esp, 4
jmp 0x443d87
mov ecx, dword [0x57901c]
mov eax, dword [0x579014]
mov ebx, dword [eax + ecx*4]
inc ecx
mov dword [0x57901c], ecx
cmp ecx, dword [0x579024]
jl 0x443deb
mov eax, dword [0x579020]
mov dword [0x57901c], eax
push 0x57902c
call esi
push dword [ebx + 0x20]
call fcn.004b6324
mov ecx, dword [ebp - 0x20]
add esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x18], 3
mov dword [ebx + 0x14], ecx
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov eax, dword [ecx + 4]
push 0x592734
mov dword [ebx + 0x28], eax
call edi
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
push ebx
push eax
mov eax, dword [ebp - 0x20]
push 0x20
push 0x20
push 0
push 0x592780
push edi
push dword [eax + 4]
call dword [ebp - 0x24]
test eax, eax
jne 0x443ea7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x443ea7
push str.AcceptEx___Failed_and_IO_aint_pending.
call fcn.00444440
add esp, 4
mov ecx, ebx
call fcn.00443b20
push ebx
mov ecx, 0x579014
call fcn.00443910
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
push 0x592734
call esi
pop ebx
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b62cf
mov esp, ebp
pop ebp
ret
push 0x592734
call esi
mov ecx, dword [ebp - 4]
mov al, 1
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.004b62cf
mov esp, ebp
pop ebp
ret
Function at 0x444070
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x10
push esi
mov esi, ecx
push edi
lea edi, [esi + 4]
mov dword [esi + 0xc], eax
mov eax, dword [edi]
test eax, eax
je 0x444136
cmp eax, 0xffffffff
je 0x444136
mov ecx, dword [0x592714]
push 0
push eax
call fcn.00440500
test al, al
jne 0x4440bf
push str.Startup__:_Associate_Device_failed_for_pre_created_socket.
call fcn.00444440
add esp, 4
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
push 0x59271c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi]
mov ecx, 0x592774
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], esi
push eax
call fcn.004427c0
push 0x59271c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, esi
call fcn.004439a0
test al, al
jne 0x4441c5
push str.Startup__:_Register_Receive_failed.
call fcn.00444440
add esp, 4
push 0x59271c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
mov ecx, 0x592774
call fcn.00445080
push 0x59271c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
push 1
push 0
push 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x44416c
push str.Startup__:_Socket_Creation_Failure.
call fcn.00444440
add esp, 4
mov dword [edi], 0
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [0x592714]
push 0
push eax
call fcn.00440500
test al, al
jne 0x444195
push str.Startup__:_Associate_Device_failed.
call fcn.00444440
add esp, 4
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
push 0x59271c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi]
mov ecx, 0x592774
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], esi
push eax
call fcn.004427c0
push 0x59271c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x10], eax
test eax, eax
jne 0x4441d6
mov dword [esi + 0x10], 5
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x444440
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.004b66e0
mov eax, dword [0x5904c0]
xor eax, ebp
mov dword [ebp - 4], eax
push dword [ebp + 8]
lea eax, [ebp - 0x1004]
push 0x54a93c
push eax
call fcn.00442890
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push 0
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebp - 0x2004]
push 0x1000
push eax
call fcn.0043d680
push dword [eax + 4]
push dword [eax]
call fcn.005016af
add esp, 0x1c
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b62cf
mov esp, ebp
pop ebp
ret
Function at 0x445a30
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5904c0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x5927c8], 0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], ecx
je 0x445a92
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x445a5c
mov eax, dword [esi]
mov ecx, 0x5927c8
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x445a81
test dl, dl
je 0x445a7d
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x445a81
add ecx, 2
add eax, 2
test dl, dl
jne 0x445a61
xor eax, eax
jmp 0x445a86
sbb eax, eax
or eax, 1
test eax, eax
jne 0x445a92
mov edi, dword [0x5927c0]
jmp 0x445ac9
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x445a9c
mov eax, dword [esi]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
je 0x445b4a
cmp dword [esi + 0x14], 0x10
jb 0x445ab5
mov esi, dword [esi]
push esi
push 0x5927c8
call fcn.00445740
add esp, 8
mov dword [0x5927c0], edi
mov ebx, dword [ebp - 0x18]
push 0x33
push dword [ebx + 8]
push dword [ebx]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x445b4a
mov eax, dword [edi + 0xc]
mov ecx, 2
push dword [ebp + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebx + 4], eax
mov word [ebp - 0x14], cx
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push 0x10
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x445b35
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop edi
cmp eax, 0x2733
pop esi
sete al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b62cf
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b62cf
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b62cf
mov esp, ebp
pop ebp
ret 8
Function at 0x445c70
Capabilities:
Create tcp socket
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5904c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov edi, dword [esi]
mov dword [esi + 0x18], eax
cmp edi, 0xffffffff
jne 0x445ca7
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi], eax
cmp eax, edi
je 0x445d3f
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [esi + 8], eax
test eax, eax
je 0x445d3f
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 8]
test eax, eax
je 0x445d3f
cmp edi, 0xffffffff
je 0x445cff
push 0x23
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x445d3f
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x10
push eax
lea eax, [ebp - 0x14]
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_getpeername]
cmp eax, 0xffffffff
je 0x445d3f
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
lea eax, [esi + 0x14]
push eax
push 0
push esi
push 0x445820
push 0x10000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x10], eax
test eax, eax
je 0x445d3f
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x20], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b62cf
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.004b62cf
mov esp, ebp
pop ebp
ret 0xc

Function at 0x445f00
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5904c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0x10]
mov eax, 2
push edi
push dword [ebp + 0xc]
mov word [ebp - 0x14], ax
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp + 0x14]
push esi
push dword [edi]
call dword [sym.imp.WS2_32.dll_sendto]
mov ecx, dword [ebp - 4]
cmp eax, 0xffffffff
pop edi
setne al
xor ecx, ebp
pop esi
call fcn.004b62cf
mov esp, ebp
pop ebp
ret 0x10

Function at 0x44aa80
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x5904c0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x404]
push 0x400
push eax
call fcn.0043d680
push dword [eax + 4]
push dword [eax]
call fcn.005016af
add esp, 0x1c
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b62cf
mov esp, ebp
pop ebp
ret
Function at 0x44b250
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5416dd
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5904c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0xd]
mov dword [ebp - 4], 0
push eax
push 0x100
lea ecx, [ebp - 0x24]
call fcn.0044ad10
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
lea eax, [ebp - 0x14]
push eax
push 0
mov dword [ebp - 0x14], 0
call esi
push dword [ebp - 0x14]
call fcn.004b631b
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], ebx
push eax
push ebx
call esi
mov edi, dword [ebp - 0x24]
mov esi, ebx
test ebx, ebx
je 0x44b33e
mov ebx, dword [ebp - 0x20]
nop dword [eax]
cmp dword [esi + 0x1a0], 6
jne 0x44b335
cmp dword [esi + 0x190], 6
jne 0x44b335
movzx eax, byte [esi + 0x199]
push eax
movzx eax, byte [esi + 0x198]
push eax
movzx eax, byte [esi + 0x197]
push eax
movzx eax, byte [esi + 0x196]
push eax
movzx eax, byte [esi + 0x195]
push eax
movzx eax, byte [esi + 0x194]
push eax
mov eax, ebx
push str._02X__02X__02X__02X__02X__02X
sub eax, edi
push eax
push edi
call fcn.0043d700
add esp, 0x24
mov esi, dword [esi]
test esi, esi
jne 0x44b2e0
mov ebx, dword [ebp - 0x18]
push edi
call fcn.00448300
push ebx
mov esi, eax
call fcn.004b6324
add esp, 8
test edi, edi
je 0x44b37c
mov ecx, dword [ebp - 0x1c]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x44b372
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44b390
push ecx
push edi
call fcn.004b630d
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0050ee40
int3

Function at 0x44ce30
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5904c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov byte [ebp - 0x20e], 0
movsx eax, byte [esi]
push eax
call fcn.0051499a
mov byte [ebp - 0x210], al
movsx eax, al
push eax
call fcn.00513a20
add esp, 8
test eax, eax
jne 0x44ce78
mov byte [ebp - 0x210], 0x7a
movsx eax, byte [esi + 1]
push eax
call fcn.0051499a
mov byte [ebp - 0x20f], al
movsx eax, al
push eax
call fcn.00513a20
add esp, 8
test eax, eax
jne 0x44ce9f
mov byte [ebp - 0x20f], 0x7a
lea eax, [ebp - 0x210]
push eax
push str.names_s_names.dat
push 4
push edi
call fcn.0043d700
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00515675
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push str._s_names_
push eax
call fcn.0044cbc0
add esp, 0x24
lea eax, [ebp - 0x20c]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004b62cf
mov esp, ebp
pop ebp
ret
Function at 0x453ea0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x5904c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [edi + 0x7c], eax
mov dword [edi + 0x80], 0
cmp eax, 1
jne 0x454005
test esi, esi
jne 0x453ef0
pop edi
pop esi
mov eax, 0x80070057
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b62cf
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi]
test eax, eax
je 0x453f05
push eax
call fcn.004b6324
add esp, 4
mov dword [edi], 0
push 0x10000
push 0
push esi
call dword [sym.imp.WINMM.dll_mmioOpenA]
mov dword [edi + 4], eax
test eax, eax
jne 0x453fc3
push str.WAVE
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
jne 0x453f48
push 0x54b938
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x45401a
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x45401a
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x45401a
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x50], eax
test eax, eax
je 0x45401a
push ebx
call fcn.004b631b
push ebx
push dword [ebp - 0x50]
mov esi, eax
push esi
call fcn.004dcc80
push 0x48
lea eax, [ebp - 0x4c]
push 0
push eax
call fcn.004dd200
add esp, 0x1c
mov dword [ebp - 0x48], 0x204d454d
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], esi
push 0x10000
push eax
push 0
call dword [sym.imp.WINMM.dll_mmioOpenA]
mov dword [edi + 4], eax
mov ecx, edi
call fcn.004542b0
mov esi, eax
test esi, esi
jns 0x453ff0
push 0
push dword [edi + 4]
call dword [sym.imp.WINMM.dll_mmioClose]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b62cf
mov esp, ebp
pop ebp
ret 0xc
mov ecx, edi
call fcn.004544e0
mov ecx, eax
test ecx, ecx
js 0x45404d
mov eax, dword [edi + 0xc]
mov dword [edi + 0x30], eax
jmp 0x45404d
push 0x11002
push 0
push esi
call dword [sym.imp.WINMM.dll_mmioOpenA]
mov dword [edi + 4], eax
test eax, eax
jne 0x454032
pop edi
pop esi
mov eax, 0x80004005
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b62cf
mov esp, ebp
pop ebp
ret 0xc
push ebx
mov ecx, edi
call fcn.004547e0
mov esi, eax
test esi, esi
js 0x453fd0
mov ecx, edi
call fcn.004544e0
mov ecx, eax
test ecx, ecx
js 0x45404f
mov eax, ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b62cf
mov esp, ebp
pop ebp
ret 0xc
Function at 0x454b20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 8], 0x104
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftDirectX
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x454ba4
push esi
lea eax, [ebp - 8]
push eax
push 0x592898
lea eax, [ebp - 0xc]
push eax
push 0
push str.DX8SDK_Samples_Path
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x454ba4
mov edx, 0x592898
dec edx
mov cl, byte [edx + 1]
lea edx, [edx + 1]
test cl, cl
jne 0x454b80
mov ecx, dword [str.Media_]
mov eax, 0x592898
mov dword [edx], ecx
mov ecx, dword [0x54b994]
mov dword [edx + 4], ecx
mov esp, ebp
pop ebp
ret
mov eax, 0x592894
mov esp, ebp
pop ebp
ret
Function at 0x48acb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov esi, ecx
mov ecx, 0x59280c
push str.GroundObjectTiles::Generate
call fcn.004461f0
cmp dword [ebp + 0x14], 0
jne 0x48acd1
call fcn.00516264
mov ecx, dword [esi + 0x128]
test ecx, ecx
je 0x48aceb
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0x128], 0
push ebx
push 0x1c0000
mov dword [esi + 0x108], 0x100
mov dword [esi + 0x10c], 0x100
call fcn.004b631b
mov ecx, dword [esi + 0x10c]
add esp, 4
xor ebx, ebx
mov dword [esi + 0x120], eax
test ecx, ecx
jle 0x48adf1
nop dword [eax]
nop word [eax + eax]
xor edx, edx
cmp dword [esi + 0x108], edx
jle 0x48ade2
nop
xor edi, edi
mov eax, dword [esi + 0x108]
imul eax, ebx
add eax, edx
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [esi + 0x120]
lea eax, [eax + ecx*4]
mov byte [eax + edi], 0
mov eax, dword [esi + 0x108]
imul eax, ebx
add eax, edx
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [esi + 0x120]
lea eax, [eax + ecx*4]
mov byte [eax + edi + 1], 0
mov eax, dword [esi + 0x108]
imul eax, ebx
add eax, edx
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [esi + 0x120]
lea eax, [eax + ecx*4]
mov byte [eax + edi + 2], 0
mov eax, dword [esi + 0x108]
imul eax, ebx
add eax, edx
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [esi + 0x120]
lea eax, [eax + ecx*4]
mov byte [eax + edi + 3], 0
add edi, 4
cmp edi, 0x1c
jl 0x48ad42
inc edx
cmp edx, dword [esi + 0x108]
jl 0x48ad40
mov ecx, dword [esi + 0x10c]
inc ebx
cmp ebx, ecx
jl 0x48ad30
mov eax, dword [esi + 0x108]
imul eax, ecx
push eax
call fcn.004b631b
add esp, 4
mov dword [esi + 0x198], eax
mov eax, dword [esi + 0x110]
pop ebx
test eax, eax
jne 0x48ae20
push 0x54bcbc
push str.dat_roads_256.raw
jmp 0x48ae2f
cmp eax, 1
jne 0x48ae5b
push 0x54bcbc
push str.dat_roads2_256.raw
call fcn.0050f32d
mov ecx, dword [esi + 0x10c]
mov edi, eax
imul ecx, dword [esi + 0x108]
push edi
push ecx
push 1
push dword [esi + 0x198]
call fcn.005104bb
push edi
call fcn.0050f03f
add esp, 0x1c
push str.Done_n
mov ecx, 0x59280c
call fcn.004461f0
pop edi
pop esi
pop ebp
ret 0x10
Function at 0x495510
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
mov ecx, dword [0x594200]
push edi
call fcn.00460c60
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, 0xc8
mov byte [ebp - 0x14], 0x13
setne bl
lea ebx, [ebx*2 + 1]
cmp edi, 0xc9
jne 0x49554e
mov ebx, 2
jmp 0x49555c
cmp edi, 0xcb
mov eax, 4
cmove ebx, eax
mov ecx, dword [esi + 0x2b8]
push 0x19
add ecx, 0x140
call fcn.0044c320
test eax, eax
jne 0x4955e6
cmp edi, 0xc8
jne 0x4955ca
mov ecx, dword [esi + 0x2c0]
push 0x87
add ecx, 0x140
call fcn.0044c320
test eax, eax
jne 0x4955ca
mov ecx, dword [0x592b14]
lea edx, [ebp - 8]
push 0
push 0
mov byte [ebp - 8], 0x40
mov eax, dword [ecx]
push edx
push 5
call dword [eax + 4]
mov ecx, dword [esi + 0x2c0]
push dword [esi + 0x2fc]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [esi + 0x2c0]
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov ecx, dword [esi + 0x2b8]
push dword [esi + 0x2c0]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [esi + 0x2b8]
jmp 0x495684
mov ecx, dword [esi + 0x2c0]
add ecx, 0x140
cmp edi, dword [esi + 0x23bc]
je 0x4956b9
push 0x87
call fcn.0044c320
cmp edi, 0xc8
je 0x495669
test eax, eax
je 0x495689
mov ecx, dword [esi + 0x2b8]
push 0x86
add ecx, 0x140
call fcn.0044c320
test eax, eax
je 0x495650
mov ecx, dword [esi + 0x2b8]
push dword [esi + 0x2c8]
add ecx, 0x140
call fcn.0044c630
mov ecx, dword [esi + 0x2b8]
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov ecx, dword [esi + 0x2c0]
push dword [esi + 0x2fc]
add ecx, 0x140
call fcn.0044c630
jmp 0x49567e
test eax, eax
jne 0x495689
mov ecx, dword [esi + 0x2c0]
push dword [esi + 0x2fc]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [esi + 0x2c0]
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov ecx, dword [0x592b14]
lea edx, [ebp - 0x14]
mov eax, dword [esi + 0x23a4]
push 0
push 0
mov byte [ebp - 0xf], bl
mov dword [ebp - 0x13], eax
mov eax, dword [ecx]
push edx
push 0xa
call dword [eax + 4]
mov dword [esi + 0x23bc], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push dword [esi + 0x2fc]
call fcn.0044c630
mov ecx, dword [esi + 0x2c0]
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov ecx, dword [esi + 0x2b8]
push dword [esi + 0x2c0]
add ecx, 0x140
call fcn.0044c630
mov ecx, dword [esi + 0x2b8]
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov ecx, dword [esi + 0x2b8]
push dword [esi + 0x2c8]
add ecx, 0x140
call fcn.0044c630
mov ecx, dword [esi + 0x2b8]
mov eax, dword [ecx]
call dword [eax + 0x2c]
pop edi
mov dword [esi + 0x23bc], 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4b2840
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54522b
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5904c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
call dword [eax + 0x20]
lea eax, [edi + 0x10c]
push eax
mov eax, dword [0x5929f8]
push 0
push 0
push 0xffff00ff
push 0xffffffffffffffff
push 0xffffffffffffffff
push 1
push 0x15
push 0
push 0
push 0
push 0
push str.datmouseart.png
push dword [eax + 0x2a3d8]
call fcn.0040921a
push 0x170
call fcn.004b62dd
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x4b28ec
mov ecx, dword [0x5929f8]
push 0
push str.WINDOW
call fcn.00458380
mov ecx, dword [0x5929f8]
push eax
call fcn.00458390
push eax
push 0
push 0
push 0xffffffffffffffff
mov ecx, esi
call fcn.00465420
jmp 0x4b28ee
xor eax, eax
mov dword [edi + 0x19c], eax
mov byte [eax + 0x168], 0
mov eax, dword [edi + 0x19c]
push 0x1ac
mov dword [ebp - 4], 0xffffffff
mov byte [eax + 0x139], 1
call fcn.004b62dd
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 1
test esi, esi
je 0x4b2962
mov ecx, dword [0x5929f8]
push 0
push str.ARTTEXTBUTTON
call fcn.00458380
mov ecx, dword [0x5929f8]
push eax
push 0xff
call fcn.00458380
sub eax, 0x7f
mov ecx, esi
push eax
push 0
push 0
call fcn.004614d0
mov esi, eax
jmp 0x4b2964
xor esi, esi
mov eax, dword [esi]
mov ecx, esi
push str.Continue
mov dword [ebp - 4], 0xffffffff
call dword [eax + 0x30]
push 0
push str.datcornerButt2High.png
push 1
mov ecx, esi
mov byte [esi + 0x168], 0
mov dword [esi + 0x150], 0x4b2d90
mov dword [esi + 0x16c], 9
call fcn.00461700
push 0
push str.datcornerButt2Down.png
push 2
mov ecx, esi
call fcn.00461700
push 0
push str.datcornerButt2Up.png
push 0
mov ecx, esi
call fcn.00461700
mov dword [esi + 0x18c], 0xffffffd3
mov dword [esi + 0x190], 0x52
mov ecx, dword [edi + 0x19c]
push esi
mov eax, dword [ecx]
call dword [eax + 0x14]
push 0x17c
call fcn.004b62dd
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 2
test esi, esi
je 0x4b2a35
mov ecx, dword [0x5929f8]
push 0
push str.TEXTBOX
call fcn.00458380
mov ecx, dword [0x5929f8]
sub eax, 0x64
push eax
call fcn.00458390
sub eax, 0x46
mov ecx, esi
push eax
push 0x64
push 0x46
push 1
call fcn.00464c90
mov esi, eax
jmp 0x4b2a37
xor esi, esi
mov edx, dword [esi]
lea eax, [edi + 0x1a0]
push eax
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call dword [edx + 0x30]
mov dword [esi + 0x150], 0x4b2d90
mov byte [esi + 0x168], 0
mov dword [esi + 0x16c], 9
mov ecx, dword [edi + 0x19c]
push esi
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [edi + 0x19c]
mov eax, dword [ecx]
call dword [eax + 0x2c]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret