joyce8/EMBER2024-capa huggingface dataset:
Function at 0x452790
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x88
mov eax, dword [0x4dfb64]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
mov ebp, dword [esp + 0x94]
mov ebx, dword [ebp]
push esi
mov esi, dword [ebp + 0x3d0]
push edi
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x80
mov edx, dword [esi + 0x154]
mov eax, dword [esi + 0x15c]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esi + 0x14]
push 0
add edx, 4
lea edi, [esi + 0x15c]
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x148], 0
mov dword [esi + 0x14c], eax
jne 0x45281f
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esi + 0xc8]
push ecx
call fcn.0048bf40
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov dword [esi + 0x148], edx
mov edx, dword [esi + 0x14c]
cmp edx, 4
jge 0x45285a
push str.Received_too_short_packet
push ebx
call fcn.00448030
add esp, 8
mov dword [esi + 0xc], 7
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0048b5ab
add esp, 0x88
ret
mov eax, edi
call fcn.00451670
movzx eax, ax
mov dword [esi + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x452873
jmp dword [eax*4 + 0x452960]
cmp edx, 4
jle case.0x452873.4
mov eax, edi
call fcn.00451680
movzx ecx, word [esi + 0x40]
add ecx, 1
cmp cx, ax
jne case.0x452873.4
add edx, 0xfffffffc
push edx
mov edx, dword [edi]
add edx, 4
push edx
push 1
push ebp
call fcn.00448310
mov edi, eax
add esp, 0x10
test edi, edi
je 0x4528c8
mov ecx, 5
mov eax, esi
call fcn.00452710
mov eax, edi
jmp 0x452841
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [ebx + 0x38], eax
mov ecx, dword [ebx + 0x38]
adc dword [ebx + 0x3c], edx
mov eax, dword [ebx + 0x3c]
push eax
push ecx
push ebx
call fcn.0045f9a0
jmp 0x452934
mov eax, edi
call fcn.00451680
movzx edx, ax
mov eax, dword [edi]
add eax, 4
push eax
push 0x4b66f4
push ebx
mov dword [esi + 8], edx
call fcn.00447fa0
jmp 0x452934
mov ecx, dword [edi]
add edx, 0xfffffffe
push edx
add ecx, 2
push ecx
push esi
call fcn.00451720
add esp, 0xc
test eax, eax
je case.0x452873.4
jmp 0x452841
push str.Internal_error:_Unexpected_packet
push 0x4c89d4
push ebx
call fcn.00448030
add esp, 0xc
push ebp
call fcn.0045fa60
add esp, 4
test eax, eax
je 0x45283f
mov ecx, 5
mov eax, esi
call fcn.00452710
mov eax, 0x2a
jmp 0x452841

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

Disassembly:
push ecx
mov edx, dword [edi + 0x130]
mov al, byte [esp + 8]
push esi
mov esi, dword [edi]
push 0
push 3
lea ecx, [esp + 0xc]
push ecx
push edx
mov byte [esp + 0x14], 0xff
mov byte [esp + 0x15], al
mov byte [esp + 0x16], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jge 0x454714
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.00448030
add esp, 0xc
mov esi, dword [esp + 0xc]
mov ecx, dword [edi]
push str.SENT
mov eax, ebx
call fcn.004545c0
add esp, 4
pop esi
pop ecx
ret
Function at 0x455450
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
cmp dword [esp + 0xc], 0x1f
mov eax, dword [esp + 8]
mov eax, dword [eax]
push ebx
mov ebx, dword [eax + 0x8684]
mov dword [esp + 4], eax
jne 0x4555c3
push ebp
push esi
push edi
lea edi, [ebx + 0x1cb0]
lea ebp, [ebx + 0x1eb0]
cmp edi, ebp
mov dword [ebp], edi
jae 0x45548a
mov byte [edi], 0xff
add dword [ebp], 1
mov eax, dword [ebp]
cmp eax, ebp
jae 0x455498
mov byte [eax], 0xfa
add dword [ebp], 1
mov eax, dword [ebp]
cmp eax, ebp
jae 0x4554a6
mov byte [eax], 0x1f
add dword [ebp], 1
movzx ecx, word [ebx + 0x1ca8]
mov esi, dword [sym.imp.WS2_32.dll_htons]
push ecx
call esi
movzx edx, ax
movzx eax, word [ebx + 0x1caa]
push eax
mov dword [esp + 0x20], edx
call esi
movzx ecx, ax
mov eax, dword [ebp]
cmp eax, ebp
jae 0x4554db
mov dl, byte [esp + 0x1c]
mov byte [eax], dl
add dword [ebp], 1
mov eax, dword [ebp]
cmp eax, ebp
jae 0x4554ec
mov dl, byte [esp + 0x1d]
mov byte [eax], dl
add dword [ebp], 1
mov eax, dword [ebp]
cmp eax, ebp
jae 0x4554f9
mov byte [eax], cl
add dword [ebp], 1
mov eax, dword [ebp]
cmp eax, ebp
jae 0x455506
mov byte [eax], ch
add dword [ebp], 1
mov eax, dword [ebp]
cmp eax, ebp
jae 0x455514
mov byte [eax], 0xff
add dword [ebp], 1
mov eax, dword [ebp]
cmp eax, ebp
jae 0x455522
mov byte [eax], 0xf0
add dword [ebp], 1
mov eax, dword [ebp]
mov esi, dword [esp + 0x10]
mov ecx, eax
sub ecx, edi
sub ecx, 2
push ecx
lea edx, [ebx + 0x1cb2]
push edx
push 0x3e
mov dword [ebx + 0x1eb4], eax
mov dword [ebp], edi
call fcn.00454a60
mov ebp, dword [sym.imp.WS2_32.dll_send]
add esp, 0xc
push 0
push 3
push edi
mov edi, dword [esp + 0x24]
mov eax, dword [edi + 0x130]
push eax
call ebp
test eax, eax
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
jge 0x455582
call esi
mov ecx, dword [esp + 0x10]
push eax
push str.Sending_data_failed___d_
push ecx
call fcn.00448030
add esp, 0xc
lea edx, [ebx + 0x1cb3]
push 4
push edx
call fcn.004552e0
mov eax, dword [edi + 0x130]
add esp, 8
push 0
push 2
add ebx, 0x1cb7
push ebx
push eax
call ebp
test eax, eax
jge 0x4555c0
call esi
mov ecx, dword [esp + 0x10]
push eax
push str.Sending_data_failed___d_
push ecx
call fcn.00448030
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x456010
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x18
mov eax, dword [0x4dfb64]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
mov ebx, dword [esi + 0x134]
push ebp
mov ebp, dword [esi]
push edi
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push ebx
or edi, 0xffffffff
mov dword [esp + 0x18], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x456064
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
push ebx
mov dword [esp + 0x18], 0x10
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
push ebx
push esi
call fcn.00448d50
add esp, 8
cmp edi, 0xffffffff
jne 0x456098
push str.Error_accept__ing_server_connect
push ebp
call fcn.00448030
add esp, 8
pop edi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0048b5ab
add esp, 0x18
ret
push str.Connection_accepted_from_server_n
push ebp
call fcn.00447fa0
push 1
push edi
mov dword [esi + 0x134], edi
call fcn.00462bd0
mov ecx, dword [esp + 0x30]
add esp, 0x10
pop edi
pop ebp
pop ebx
xor ecx, esp
mov dword [esi + 0x13c], 1
xor eax, eax
call fcn.0048b5ab
add esp, 0x18
ret
Function at 0x460ba0
Capabilities:
Parse pe header

Disassembly:
mov al, byte [esp + 4]
movsx ecx, al
add ecx, 0xffffff9f
cmp ecx, 0x19
ja case.default.0x460baf
jmp dword [ecx*4 + 0x460c04]
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret

Function at 0x462f10
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [eax + 0x2c]
push esi
push edi
mov edi, dword [ebx]
mov esi, dword [edi + 0x1a8]
test esi, esi
jne 0x462f29
mov esi, dword [eax + 0x28]
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x20]
push ecx
push edx
call fcn.0044d0d0
push edx
push eax
call fcn.0044d100
add esp, 0x10
sub esi, eax
cmp dword [edi + 0x19c], 0
je 0x462f76
mov eax, dword [ebx + 0x124]
mov ecx, dword [ebx + 0x120]
push eax
push ecx
call fcn.0044d0d0
push edx
push eax
call fcn.0044d100
mov ecx, dword [edi + 0x19c]
sub ecx, eax
add esp, 0x10
cmp esi, ecx
mov eax, ecx
jge 0x462f78
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x467836
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x4ab98c
call fcn.004919f0
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.0046eaa8
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x467881
call fcn.0046eaa8
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x467892
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x46789f
or eax, 0xffffffff
jmp 0x4679fb
mov ecx, esi
call fcn.00467366
mov dword [ebp - 0x14], eax
call fcn.0046a6da
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x46791d
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x46791d
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x46791d
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.004671f5
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x46791d
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x46791d
mov ecx, ebx
call fcn.0046d954
test eax, eax
je 0x46791d
push 0
mov ecx, ebx
call fcn.0046d96f
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.0046c477
push dword [ebp - 0x14]
call fcn.0046a632
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.0046763e
xor edi, edi
cmp eax, edi
je 0x46797a
test byte [esi + 0x3c], 0x10
je 0x467964
push 4
pop edi
mov ecx, esi
call fcn.0046d7ee
test ax, 0x100
je 0x46795a
push 5
pop edi
push edi
mov ecx, esi
call fcn.0046a1a3
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x46797a
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0046db3e
or dword [ebp - 4], 0xffffffff
jmp 0x4679a5
cmp dword [ebp - 0x28], edi
je 0x4679b3
push 1
mov ecx, ebx
call fcn.0046d96f
cmp dword [ebp - 0x2c], edi
je 0x4679c3
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x4679dc
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x4679dc
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.004673a0
cmp dword [esi + 0x58], edi
je 0x4679f8
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.00491a95
ret
Function at 0x467a2c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0046eaa8
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x467a63
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0046763e
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x46b967
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x46b9a0
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0046b92a
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046a52b
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x46d6d2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x46d715
call fcn.0046eaa8
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x46d715
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x46d730
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0046d289
test ebx, ebx
mov esi, eax
je 0x46d72e
test edi, edi
je 0x46d72e
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x472690
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4726a6
mov edi, dword [esi + 0xc]
jmp 0x4726e6
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4726bf
call fcn.0046f93d
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4726d4
call fcn.0046f93d
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4726e6
call fcn.0046f93d
call fcn.0046eaa8
cmp dword [eax + 0x3c], 0
je 0x4726fb
push edi
mov ecx, ebx
call fcn.00471643
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004725aa
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x472719
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x5c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x472725
mov edi, eax
mov dword [ebx + 0x5c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x478f9f
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4dfb64]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0x11c]
jne 0x478fdf
push 0x4bf960
push 4
push eax
call fcn.0049024a
push eax
call section..text
add esp, 0x10
jmp 0x478ff1
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x47905f
push edi
call fcn.0049306e
mov edi, dword [eax]
call fcn.0049306e
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.0048c33c
add esp, 0x18
mov ebx, eax
call fcn.0049306e
cmp dword [eax], 0
je 0x47903f
call fcn.0049306e
push dword [eax]
call fcn.004668d9
pop ecx
jmp 0x479046
call fcn.0049306e
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x47905f
cmp ebx, esi
jae 0x47905f
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x479061
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0048b5ab
leave
ret
Function at 0x47a857
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x47a89d
call fcn.0046eaa8
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x47a89d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x47a8e0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x47a8c9
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x47a8c9
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x47a8dd
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x47b84c
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x47b87a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47b898
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047b7b6
jmp 0x47b898
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47b898
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0047b7b6
test edi, edi
mov eax, edi
jne 0x47b882
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4e5a3c]
test ecx, ecx
je 0x47b95b
jmp 0x47b84b
ret 8

Function at 0x48b5ab
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4dfb64]
jne 0x48b5b5
repz ret
jmp fcn.00496c92
Function at 0x490b8e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x490bcb
cmp dword [ebp + 0x14], edi
je 0x490bcb
cmp ecx, edi
jne 0x490bd2
call fcn.0049306e
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0048ed3a
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x490be6
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x490c07
cmp ebx, 0xffffffff
je 0x490bf6
push ebx
push edi
push ecx
call fcn.0048bdc0
add esp, 0xc
cmp esi, edi
je 0x490bb3
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x490bb3
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x490c23
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x490c2a
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x490d1b
test word [esi + 0xc], 0x10c
je 0x490c7e
mov eax, dword [esi + 4]
test eax, eax
je 0x490c7e
jl 0x490d7c
cmp ebx, eax
mov edi, ebx
jb 0x490c4f
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x490d23
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0048bc4e
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x490d13
cmp ebx, dword [ebp - 0xc]
jb 0x490ceb
cmp dword [ebp - 0xc], 0
je 0x490ca8
mov ecx, closesocket
xor edx, edx
cmp ebx, ecx
jbe 0x490c9d
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x490ca4
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x490cb3
mov eax, closesocket
cmp ebx, eax
ja 0x490cb3
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x490d4f
push eax
push dword [ebp - 8]
push esi
call fcn.00495839
pop ecx
push eax
call fcn.0049d84d
add esp, 0xc
test eax, eax
je 0x490d8e
cmp eax, 0xffffffff
je 0x490d7c
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x490d13
push esi
call fcn.0049d16c
cmp eax, 0xffffffff
pop ecx
je 0x490d80
cmp dword [ebp - 4], 0
je 0x490d4f
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x490c32
mov eax, dword [ebp + 0x14]
jmp 0x490bcd
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x490d3a
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0048bdc0
add esp, 0xc
call fcn.0049306e
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x490bc3
cmp dword [ebp + 0xc], 0xffffffff
je 0x490d65
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0048bdc0
add esp, 0xc
call fcn.0049306e
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x490bc3
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x490bcd
or dword [esi + 0xc], 0x10
jmp 0x490d80
Function at 0x496ab9
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4e0190]
je 0x496ad4
inc edi
cmp edi, 0x17
jb 0x496ac5
cmp edi, 0x17
jae 0x496c54
push ebp
push 3
call fcn.004a2c68
cmp eax, 1
pop ecx
je 0x496c20
push 3
call fcn.004a2c68
test eax, eax
pop ecx
jne 0x496b08
cmp dword [0x4dfb60], 1
je 0x496c20
cmp ebx, 0xfc
je 0x496c53
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4e5f10
push ebp
call fcn.0049024a
add esp, 0xc
test eax, eax
je 0x496b3e
push esi
push esi
push esi
push esi
push esi
call fcn.0048ec3e
add esp, 0x14
push 0x104
mov esi, 0x4e5f29
push esi
push 0
mov byte [0x4e602d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x496b82
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0049024a
add esp, 0xc
test eax, eax
je 0x496b82
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0048ec3e
add esp, 0x14
push esi
call fcn.0048bd30
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x496bc7
push esi
call fcn.0048bd30
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4e6224
push 0x4c1a3c
sub ecx, eax
push ecx
push eax
call fcn.004938b7
add esp, 0x14
test eax, eax
je 0x496bc7
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0048ec3e
add esp, 0x14
jmp 0x496bc9
xor esi, esi
push 0x4c1a38
push ebx
push ebp
call fcn.0049396a
add esp, 0xc
test eax, eax
je 0x496be9
push esi
push esi
push esi
push esi
push esi
call fcn.0048ec3e
add esp, 0x14
push dword [edi*8 + 0x4e0194]
push ebx
push ebp
call fcn.0049396a
add esp, 0xc
test eax, eax
je 0x496c0b
push esi
push esi
push esi
push esi
push esi
call fcn.0048ec3e
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004a2aab
add esp, 0xc
jmp 0x496c53
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x496c53
cmp ebp, 0xffffffff
je 0x496c53
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4e0194]
push dword [esi]
call fcn.0048bd30
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret