joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48f2a5
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1fc
mov eax, dword [0x51f5d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
xor esi, esi
mov word [ebp - 0x68], si
lea edi, [ebp - 0x66]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x18e
stosw word es:[edi], ax
lea eax, [ebp - 0x1f6]
push esi
push eax
mov ebx, ecx
mov word [ebp - 0x1f8], si
call fcn.004c05d0
add esp, 0xc
push 0x4f
lea eax, [ebp - 0x57]
push esi
push eax
mov byte [ebp - 0x1f9], 0
mov byte [ebp - 0x58], 0
call fcn.004c05d0
add esp, 0xc
mov edx, ebx
call fcn.00485754
test eax, eax
je 0x48f316
or eax, 0xffffffff
jmp 0x48f4aa
push 0x10
lea eax, [ebp - 0x68]
push esi
push eax
call fcn.004c05d0
add esp, 0xc
lea eax, [ebp - 0x1f8]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x48f30e
cmp dword [ebp + 8], esi
jle 0x48f348
cmp dword [ebp + 8], 0x10000
jl 0x48f350
call fcn.0048d6ad
mov dword [ebp + 8], eax
push 0x50
lea eax, [ebp - 0x58]
push eax
push ebx
call fcn.004452e1
add esp, 0xc
test eax, eax
jne 0x48f399
push ebx
call sub.WSOCK32.dll_gethostbyname
cmp eax, esi
jne 0x48f374
call sub.WSOCK32.dll_WSACleanup
jmp 0x48f30e
cmp word [eax + 0xa], 4
jle 0x48f381
mov word [eax + 0xa], 4
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [ebp - 0x64]
push eax
call fcn.004bfed0
add esp, 0xc
jmp 0x48f3a4
lea ecx, [ebp - 0x58]
call fcn.00445209
mov dword [ebp - 0x64], eax
push 6
push 1
push 2
call sub.WSOCK32.dll_socket
mov edi, eax
cmp edi, 0xffffffff
je 0x48f36d
push dword [ebp + 8]
call sub.WSOCK32.dll_htons
mov word [ebp - 0x66], ax
push 0x10
lea eax, [ebp - 0x68]
push eax
push edi
mov word [ebp - 0x68], 2
call sub.WSOCK32.dll_connect
test eax, eax
je 0x48f421
push edi
call sub.WSOCK32.dll_closesocket
call sub.WSOCK32.dll_WSACleanup
push str.127.0.0.1
push ebx
call fcn.00486428
test eax, eax
pop ecx
pop ecx
jne 0x48f30e
push str.10.210.27.10
push ebx
call fcn.00486428
test eax, eax
pop ecx
pop ecx
je 0x48f416
call fcn.0045fba0
test eax, eax
jne 0x48f30e
inc dword [0x6238bc]
jmp 0x48f30e
push 1
lea eax, [ebp - 0x1f9]
push eax
push 8
push 0xffff
push edi
mov byte [ebp - 0x1f9], 1
call sub.WSOCK32.dll_setsockopt
cmp dword [ebp + 0xc], esi
je 0x48f4a8
push esi
push 0xfb
mov esi, 0xff
push esi
push edi
call fcn.0048f4ed
push 1
lea ebx, [esi - 2]
push ebx
push esi
push edi
call fcn.0048f4ed
push 0
push ebx
push esi
push edi
call fcn.0048f4ed
push 0x1f
push 0xfb
push esi
push edi
call fcn.0048f4ed
add esp, 0x40
push 0x1f
push 0xfa
push esi
push edi
call fcn.0048f4ed
push 0
push 0x50
push 0
push edi
call fcn.0048f4ed
push 0xf0
push esi
push 0x19
push edi
call fcn.0048f4ed
add esp, 0x30
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bfeb5
leave
ret
Function at 0x490aec
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x20]
mov eax, dword [ebp + 8]
call fcn.00490b62
test eax, eax
pop ecx
jne 0x490b04
push 2
pop eax
pop ebp
ret
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
mov edx, eax
mov eax, dword [ebp + 8]
call fcn.00490b82
mov eax, edx
pop ebp
ret
Function at 0x4b0563
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x27c
mov eax, dword [0x51f5d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x103
xor esi, esi
lea eax, [ebp - 0x10f]
push esi
push eax
mov byte [ebp - 0x110], 0
call fcn.004c05d0
add esp, 0xc
push 0x13c
lea eax, [ebp - 0x24c]
push esi
push eax
mov dword [ebp - 0x250], esi
call fcn.004c05d0
xor eax, eax
mov word [ebp - 0x278], si
lea edi, [ebp - 0x276]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov word [ebp - 0x268], si
xor eax, eax
lea edi, [ebp - 0x266]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosw word es:[edi], ax
call fcn.004af84c
sub eax, dword [0x626af0]
cmp eax, 0x493e0
jae 0x4b05f3
xor eax, eax
jmp 0x4b0728
call fcn.004af84c
mov dword [0x626af0], eax
call fcn.004afc65
test eax, eax
je 0x4b05ec
push 0x6262b8
mov ecx, 0x104
lea eax, [ebp - 0x110]
call fcn.00485786
pop ecx
call fcn.00485acb
push str.PAULATempTimeDetectionFile
push 0x4f87a4
push eax
call fcn.00486d97
add esp, 0xc
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x258], eax
je 0x4b05ec
mov ebx, dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp + 8]
push eax
call ebx
mov dword [ebp - 0x254], esi
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x24c]
jg 0x4b0697
lea eax, [ebp - 0x23c]
push eax
call ebx
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x268]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
lea esi, [ebp - 0x278]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004aef99
add esp, 0x20
cmp eax, 0xdbba0
jle 0x4b06fb
lea eax, [ebp - 0x110]
call fcn.00485acb
lea eax, [ebp - 0x224]
push eax
mov eax, 0x104
lea esi, [ebp - 0x110]
call fcn.00485856
pop ecx
mov eax, esi
call fcn.0041a0f3
test eax, eax
je 0x4b06fb
inc dword [ebp - 0x254]
lea eax, [ebp - 0x250]
push eax
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4b066c
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x254]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bfeb5
leave
ret
Function at 0x4b10c5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
and word [esp + 4], 0
mov edx, dword [ebp + 8]
push ebx
mov ebx, eax
push esi
push edi
xor eax, eax
lea edi, [esp + 0x12]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
call fcn.00485754
test eax, eax
je 0x4b10f4
xor eax, eax
jmp 0x4b1151
test ebx, ebx
mov esi, str..Time.c
jne 0x4b1118
push 0xb90
lea eax, [esp + 0x14]
push esi
push eax
call fcn.004b0243
add esp, 0xc
test eax, eax
je 0x4b10f0
lea ebx, [esp + 0x10]
mov ecx, dword [ebp + 8]
push 0xb98
push esi
mov edx, 0x4de3b8
call fcn.0041c35a
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x4b10f0
push edi
push 1
push 0x10
push ebx
call fcn.004bf5f0
mov esi, eax
dec esi
neg esi
sbb esi, esi
push edi
inc esi
call fcn.0041c787
add esp, 0x14
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b1158
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
xor eax, eax
xor ebx, ebx
mov word [esp + 0x10], bx
lea edi, [esp + 0x12]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [ebp + 8]
cmp edi, ebx
je 0x4b1189
push 0x10
push ebx
push edi
call fcn.004c05d0
add esp, 0xc
mov edx, dword [ebp + 0xc]
call fcn.00485754
test eax, eax
je 0x4b1199
xor eax, eax
jmp 0x4b11f3
mov ecx, dword [ebp + 0xc]
push 0xbb8
push str..Time.c
mov edx, 0x4de27c
call fcn.0041c35a
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x4b1195
push 0x10
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.004c05d0
push esi
push 1
lea eax, [esp + 0x24]
push 0x10
push eax
call fcn.004c0915
mov ebx, eax
dec ebx
neg ebx
sbb ebx, ebx
push esi
inc ebx
call fcn.0041c787
add esp, 0x20
test edi, edi
je 0x4b11f1
lea esi, [esp + 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b159e
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push edi
xor ebx, ebx
xor eax, eax
lea edi, [ebp - 0xc]
mov dword [ebp - 0x10], ebx
stosd dword es:[edi], eax
mov dword [ebp - 0x20], ebx
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
cmp eax, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [0x626b70], eax
je 0x4b15d8
call fcn.004af84c
mov dword [0x626b74], eax
jmp 0x4b15ee
call fcn.004af84c
sub eax, dword [0x626b74]
cmp eax, 0xde
jb 0x4b16ba
cmp dword [0x626b70], ebx
jne 0x4b16ba
push esi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x4b16a2
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
cmp dword [ebp - 8], ebx
jne 0x4b162d
call fcn.0040adda
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x4b16a5
cmp dword [ebp - 4], ebx
jne 0x4b16a5
lea eax, [ebp - 0x20]
push eax
call fcn.0040adda
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
push 6
call esi
push 4
mov edi, eax
call esi
add eax, dword [ebp - 0x1c]
push 0xfffffffffffffffd
lea ecx, [eax + edi + 3]
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x20]
pop edi
cdq
idiv edi
mov dword [ebp - 0x1c], ecx
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x20]
jle 0x4b1699
cmp eax, dword [ebp - 0x18]
jge 0x4b1699
cmp dword [ebp - 0xc], ecx
jle 0x4b1699
push 0xf
call esi
add eax, dword [ebp - 0x1c]
cmp dword [ebp - 0xc], eax
jge 0x4b1699
mov dword [0x626b54], 1
call fcn.004af84c
mov dword [0x626b58], eax
jmp 0x4b16a5
mov dword [ebp - 4], 1
jmp 0x4b16a5
mov dword [ebp - 4], ebx
push 0x16
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x626b70], ebx
je 0x4b1601
pop esi
pop edi
xor eax, eax
pop ebx
leave
ret 4
Function at 0x4b5dd3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1460
call fcn.004d1740
mov eax, dword [0x51f5d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push 0x1230
mov dword [ebp - 0x1454], eax
lea eax, [ebp - 0x144c]
mov edi, ecx
push ebx
push eax
mov dword [ebp - 0x145c], edi
mov dword [ebp - 0x1450], ebx
call fcn.004c05d0
add esp, 0xc
mov esi, 0x103
push esi
lea eax, [ebp - 0x10f]
push ebx
push eax
mov dword [ebp - 0x1458], ebx
mov byte [ebp - 0x110], bl
call fcn.004c05d0
add esp, 0xc
push esi
lea eax, [ebp - 0x217]
push ebx
push eax
mov byte [ebp - 0x218], bl
call fcn.004c05d0
add esp, 0xc
mov edx, edi
call fcn.00485754
test eax, eax
je 0x4b5e67
or eax, 0xffffffff
jmp 0x4b5f9f
cmp dword [ebp - 0x1454], ebx
je 0x4b5e83
push 0x1234
push ebx
push dword [ebp - 0x1454]
call fcn.004c05d0
add esp, 0xc
push edi
mov ecx, 0x104
lea eax, [ebp - 0x218]
call fcn.00485786
pop ecx
mov esi, eax
call fcn.00485a88
mov eax, esi
push eax
lea eax, [ebp - 0x110]
push 0x4de4e4
push eax
call fcn.0045f7e3
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
push edi
call fcn.004c03bf
test eax, eax
pop ecx
pop ecx
jne 0x4b5ee9
call fcn.004c0a8c
push eax
push 0x4df810
mov eax, 0x104
lea edi, [ebp - 0x110]
call fcn.00486dce
mov edi, dword [ebp - 0x145c]
pop ecx
pop ecx
lea eax, [ebp - 0x110]
push eax
mov ecx, edi
call fcn.004b9e1a
mov dword [esp], 0x32a
push str..TrackProg.c
mov edx, 0x4de27c
lea ecx, [ebp - 0x110]
call fcn.0041c35a
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
jne 0x4b5f2b
lea eax, [ebp - 0x110]
call fcn.0041a0f3
jmp 0x4b5e5f
lea ebx, [ebp - 0x1450]
mov eax, esi
call fcn.004b5fae
test eax, eax
push esi
jne 0x4b5f45
call fcn.0041c787
pop ecx
jmp 0x4b5f1b
push 1
lea eax, [ebp - 0x1458]
push 4
push eax
call fcn.004c0915
add esp, 0x10
cmp eax, 1
jae 0x4b5f64
and dword [ebp - 0x1458], 0
push esi
call fcn.0041c787
cmp dword [ebp - 0x1454], 0
pop ecx
je 0x4b5f8e
push 0x1234
lea eax, [ebp - 0x1450]
push eax
push dword [ebp - 0x1454]
call fcn.004bfed0
add esp, 0xc
lea eax, [ebp - 0x110]
call fcn.0041a0f3
mov eax, dword [ebp - 0x1458]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bfeb5
leave
ret
Function at 0x4b5fae
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 4], 0
push esi
push edi
mov edi, eax
test edi, edi
je 0x4b60eb
test ebx, ebx
je 0x4b60eb
push edi
xor esi, esi
inc esi
push esi
lea eax, [ebp - 4]
push 4
push eax
call fcn.004c0915
add esp, 0x10
cmp eax, esi
jae 0x4b5fe7
and dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x4b60eb
mov eax, 0x1234
cmp dword [ebp - 4], eax
ja 0x4b60eb
push eax
push 0
push ebx
call fcn.004c05d0
push edi
push esi
push dword [ebp - 4]
push ebx
call fcn.004c0915
add esp, 0x1c
cmp eax, esi
jb 0x4b60eb
mov eax, dword [ebx + 0x11b8]
test eax, eax
jbe 0x4b6046
push esi
push eax
call fcn.004bf452
push edi
push esi
push dword [ebx + 0x11b8]
mov dword [ebx + 0x11b0], eax
push eax
call fcn.004c0915
add esp, 0x18
mov eax, dword [ebx + 0x11c0]
test eax, eax
jbe 0x4b606e
push esi
push eax
call fcn.004bf452
push edi
push esi
push dword [ebx + 0x11c0]
mov dword [ebx + 0x11bc], eax
push eax
call fcn.004c0915
add esp, 0x18
and dword [ebx + 0x104c], 0
cmp dword [ebx + 0x1040], 0
je 0x4b60e7
xor eax, eax
lea edi, [ebp - 0x12]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov word [ebp - 0x12], si
sub esp, 0x10
mov word [ebp - 0xe], 8
mov word [ebp - 0x14], 0x7d7
mov edi, esp
lea esi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
lea esi, [ebx + 0x1c]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004aec16
add esp, 0x20
test eax, eax
je 0x4b60e4
xor eax, eax
cmp dword [ebx + 0xb8], eax
je 0x4b60cc
cmp word [ebx + 0x2a], ax
jne 0x4b60d6
mov dword [ebx + 0x1050], 1
cmp dword [ebx + 0x1050], eax
jne 0x4b60e4
mov dword [ebx + 0x1040], eax
xor esi, esi
inc esi
mov eax, esi
jmp 0x4b60ed
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4b85a9
Capabilities:
Terminate process

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
xor ebx, ebx
cmp ebp, ebx
push esi
push edi
je 0x4b875c
mov edi, dword [esp + 0x24]
call fcn.0041a56b
test eax, eax
je 0x4b875c
push 1
push ebp
call dword [sym.imp.GDI32.dll_SetMapMode]
push 1
push 0x42c
mov dword [esp + 0x20], eax
xor esi, esi
call fcn.004bf452
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
je 0x4b8706
push 0x2010
push ebx
push ebx
push ebx
push dword [esp + 0x34]
push ebx
call dword [sym.imp.USER32.dll_LoadImageA]
cmp eax, ebx
mov dword [esp + 0x14], eax
je 0x4b86ff
push ebx
push edi
push ebx
push ebx
push ebx
push eax
push ebp
mov dword [edi], 0x28
call dword [sym.imp.GDI32.dll_GetDIBits]
test eax, eax
je 0x4b86f5
push 0x10
push 1
call fcn.004bf452
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x4b86f5
mov eax, dword [edi + 0x14]
mov dword [esp + 0x20], eax
mov ax, word [edi + 4]
mov word [esi + 0xc], ax
mov ax, word [edi + 8]
push ebp
mov word [esi + 0xe], ax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
cmp eax, ebx
mov dword [esi], eax
je 0x4b8699
movsx eax, word [esi + 0xe]
push eax
movsx eax, word [esi + 0xc]
push eax
push ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
cmp eax, ebx
mov dword [esi + 4], eax
jne 0x4b868d
push dword [esi]
call dword [sym.imp.GDI32.dll_DeleteDC]
mov dword [esi], ebx
jmp 0x4b8699
push eax
push dword [esi]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 8], eax
cmp dword [esi + 4], ebx
je 0x4b86f5
mov eax, dword [esp + 0x20]
add eax, 0x64
push eax
call fcn.004c0b87
cmp eax, ebx
pop ecx
mov dword [esp + 0x20], eax
je 0x4b86f5
push ebx
push edi
push eax
push dword [edi + 8]
push ebx
push dword [esp + 0x28]
push ebp
call dword [sym.imp.GDI32.dll_GetDIBits]
test eax, eax
je 0x4b86eb
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
push 0xcc0020
push ebx
push edi
push dword [esp + 0x2c]
push eax
push ecx
push ebx
push ebx
push eax
push ecx
push ebx
push ebx
push dword [esi]
call dword [sym.imp.GDI32.dll_StretchDIBits]
push dword [esp + 0x20]
call fcn.004bf2a6
pop ecx
push dword [esp + 0x14]
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call fcn.004bf2a6
pop ecx
push dword [esp + 0x18]
push ebp
call dword [sym.imp.GDI32.dll_SetMapMode]
cmp esi, ebx
je 0x4b875c
cmp dword [esi + 4], ebx
je 0x4b871e
cmp dword [esi], ebx
jne 0x4b8727
push esi
call fcn.004bf2a6
pop ecx
xor esi, esi
cmp esi, ebx
je 0x4b875c
mov eax, dword [0x62a1dc]
cmp eax, ebx
jne 0x4b873e
call fcn.0046e649
mov dword [0x62a1dc], eax
push dword [esi]
mov ebx, eax
call fcn.0046e6fb
mov ebx, dword [esi]
pop ecx
push esi
push dword [0x62a1dc]
call fcn.0046ea44
mov eax, dword [esi]
pop ecx
pop ecx
jmp 0x4b875e
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x4b9e1f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x51f5d0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x103
mov dword [ebp - 0x118], eax
xor esi, esi
lea eax, [ebp - 0x113]
push esi
push eax
mov ebx, ecx
mov byte [ebp - 0x114], 0
call fcn.004c05d0
xor eax, eax
lea edi, [ebp - 0x124]
mov dword [ebp - 0x128], esi
stosd dword es:[edi], eax
lea edi, [ebp - 0x134]
mov dword [ebp - 0x138], esi
stosd dword es:[edi], eax
lea edi, [ebp - 0x12c]
add esp, 0xc
mov dword [ebp - 0x130], esi
mov edx, ebx
stosd dword es:[edi], eax
mov dword [ebp - 0x120], esi
call fcn.00485754
test eax, eax
jne 0x4b9fba
mov edx, dword [ebp - 0x118]
call fcn.00485754
test eax, eax
jne 0x4b9fba
push esi
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x128]
push eax
push ebx
call fcn.0041ac68
add esp, 0x14
test eax, eax
jne 0x4b9ef1
mov edi, ebx
call fcn.0041a56b
test eax, eax
je 0x4b9fba
cmp dword [0x520708], esi
je 0x4b9efb
mov dword [0x520708], esi
jmp 0x4b9efb
mov dword [ebp - 0x120], 1
push 0x4de27c
push ebx
call fcn.004b9cb4
cmp eax, esi
pop ecx
pop ecx
mov dword [ebp - 0x11c], eax
je 0x4b9fba
push dword [ebp - 0x118]
mov edi, 0x104
mov ecx, edi
lea eax, [ebp - 0x114]
call fcn.00485786
pop ecx
mov esi, eax
call fcn.00486317
mov edx, esi
call fcn.00485754
test eax, eax
jne 0x4b9f6c
mov eax, esi
push eax
call fcn.004bf880
pop ecx
mov ecx, esi
dec ecx
cmp byte [eax + ecx], 0x5c
jne 0x4b9f6c
push ebx
mov ecx, edi
mov eax, esi
call fcn.00485786
pop ecx
push dword [ebp - 0x118]
call fcn.00485e6b
pop ecx
jmp 0x4b9f7f
lea eax, [ebp - 0x114]
push ebx
push eax
call fcn.004c03bf
test eax, eax
pop ecx
pop ecx
jne 0x4b9f8a
lea esi, [ebp - 0x114]
call fcn.00485f69
push 0x169
push str..zLib.c
mov edx, 0x4de3b8
lea ecx, [ebp - 0x114]
call fcn.0041c35a
mov edi, eax
xor ebx, ebx
cmp edi, ebx
pop ecx
pop ecx
jne 0x4b9fcb
push dword [ebp - 0x11c]
call fcn.004b9d53
pop ecx
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bfeb5
leave
ret
push 0x100002
call fcn.004c0b87
mov esi, eax
test esi, esi
pop ecx
mov dword [ebp - 0x118], ebx
je 0x4ba024
push 0x100000
push esi
push dword [ebp - 0x11c]
call fcn.004b9cd9
add esp, 0xc
test eax, eax
jle 0x4ba01b
push edi
push 1
push eax
push esi
add ebx, eax
call fcn.004bf5f0
add esp, 0x10
test eax, eax
jg 0x4b9fe2
inc dword [0x62a2e0]
inc dword [ebp - 0x118]
jmp 0x4b9fe2
push esi
call fcn.004bf2a6
pop ecx
jmp 0x4ba02e
mov dword [ebp - 0x118], 1
push edi
call fcn.0041c787
pop ecx
push dword [ebp - 0x11c]
call fcn.004b9d53
cmp dword [ebp - 0x120], 0
pop ecx
je 0x4ba06b
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x138]
lea ecx, [ebp - 0x130]
call fcn.0041ad6f
pop ecx
pop ecx
test ebx, ebx
je 0x4b9fba
cmp dword [ebp - 0x118], 0
jne 0x4b9fba
xor eax, eax
inc eax
jmp 0x4b9fbc
Function at 0x4ba088
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x51f5d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x103
push esi
xor ebx, ebx
lea eax, [ebp - 0x10f]
push ebx
push eax
mov byte [ebp - 0x110], 0
call fcn.004c05d0
add esp, 0xc
push esi
lea eax, [ebp - 0x217]
push ebx
push eax
mov byte [ebp - 0x218], bl
call fcn.004c05d0
add esp, 0xc
cmp dword [0x62a2e4], ebx
jne 0x4ba2d0
mov esi, str.zLib.dll
push esi
push 0x4de4e4
mov edi, 0x104
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.00486e10
add esp, 0x10
push esi
push ebx
push ebx
call fcn.0045f7e3
pop ecx
pop ecx
push eax
mov ebx, 0x4df748
push ebx
lea eax, [ebp - 0x110]
push edi
push eax
call fcn.00486e10
lea eax, [ebp - 0x110]
add esp, 0x14
push eax
mov edx, eax
lea ecx, [ebp - 0x218]
call fcn.0041a3a6
pop ecx
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [ebp - 0x21c], eax
jne 0x4ba1fc
push esi
push eax
push eax
call fcn.0045f646
pop ecx
pop ecx
push eax
push ebx
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.00486e10
add esp, 0x14
push esi
push 0
push 0
call fcn.0045f7e3
pop ecx
pop ecx
push eax
push ebx
lea eax, [ebp - 0x110]
push edi
push eax
call fcn.00486e10
lea eax, [ebp - 0x110]
add esp, 0x14
push eax
mov edx, eax
lea ecx, [ebp - 0x218]
call fcn.0041a3a6
pop ecx
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [ebp - 0x21c], eax
jne 0x4ba1fc
push esi
push eax
push eax
call fcn.0045f646
pop ecx
pop ecx
push eax
push ebx
lea eax, [ebp - 0x110]
push edi
push eax
call fcn.00486e10
add esp, 0x14
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [ebp - 0x21c], eax
jne 0x4ba1fc
lea edi, [ebp - 0x110]
call fcn.0041a56b
xor eax, eax
jmp 0x4ba2d3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.gzopen
push dword [ebp - 0x21c]
call esi
mov ebx, dword [ebp - 0x21c]
push str.gzread
push ebx
mov dword [0x62a2c8], eax
call esi
push str.gzwrite
push ebx
mov dword [0x62a2cc], eax
call esi
push str.gzclose
push ebx
mov dword [0x62a2d0], eax
call esi
push str.gzseek
push ebx
mov dword [0x62a2d4], eax
call esi
push str.gzputs
push ebx
mov dword [0x62a2d8], eax
call esi
push str.gzgets
push ebx
mov dword [0x52483c], eax
call esi
push str.gzputc
push ebx
mov dword [0x524844], eax
call esi
push str.gzgetc
push ebx
mov dword [0x523fbc], eax
call esi
push str.compress2
push ebx
mov dword [0x524840], eax
call esi
push str.compressBound
push ebx
mov dword [0x524848], eax
call esi
push str.uncompress
push ebx
mov dword [0x524574], eax
call esi
push str.gzprintf
push ebx
mov dword [0x524838], eax
call esi
mov dword [0x62a2dc], eax
lea eax, [ebp - 0x110]
push eax
mov ecx, edi
mov eax, 0x62a2e8
mov dword [0x62a2e4], ebx
call fcn.00485786
pop ecx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bfeb5
leave
ret
Function at 0x4bfeb5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x51f5d0]
jne 0x4bfebf
repz ret
jmp fcn.004c76aa