joyce8/EMBER2024-capa huggingface dataset:
Function at 0x478c10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x2c]
nop
mov eax, dword [edi + 0x2c]
mov edx, dword [edi + 0x3c]
add eax, 0xfffffefa
sub edx, dword [edi + 0x74]
add eax, esi
sub edx, dword [edi + 0x6c]
mov dword [ebp - 4], edx
cmp dword [edi + 0x6c], eax
jb 0x478c9f
mov ecx, dword [edi + 0x38]
push esi
lea eax, [ecx + esi]
push eax
push ecx
call fcn.004a8960
mov edx, dword [edi + 0x4c]
add esp, 0xc
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], esi
sub dword [edi + 0x6c], esi
sub dword [edi + 0x5c], esi
lea ecx, [eax + edx*2]
nop
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x478c6f
sub eax, esi
jmp 0x478c71
xor eax, eax
mov word [ecx], ax
sub edx, 1
jne 0x478c60
mov eax, dword [edi + 0x40]
mov edx, esi
lea ecx, [eax + esi*2]
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x478c90
sub eax, esi
jmp 0x478c92
xor eax, eax
mov word [ecx], ax
sub edx, 1
jne 0x478c81
mov edx, dword [ebp - 4]
add edx, esi
mov ebx, dword [edi]
cmp dword [ebx + 4], 0
je 0x478dd3
mov eax, dword [edi + 0x74]
add eax, dword [edi + 0x6c]
add eax, dword [edi + 0x38]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 4]
cmp eax, edx
mov ecx, eax
cmova ecx, edx
mov dword [ebp - 4], ecx
test ecx, ecx
jne 0x478ccc
xor eax, eax
jmp 0x478d1f
sub eax, ecx
mov dword [ebx + 4], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x478ce9
mov edx, dword [ebx]
push ecx
mov ecx, dword [ebx + 0x30]
call fcn.0047ce00
jmp 0x478d01
cmp eax, 2
jne 0x478d07
mov edx, dword [ebx]
test edx, edx
jne 0x478cf8
xor eax, eax
jmp 0x478d04
push ecx
mov ecx, dword [ebx + 0x30]
call fcn.0047d0a0
add esp, 4
mov dword [ebx + 0x30], eax
push dword [ebp - 4]
push dword [ebx]
push dword [ebp - 8]
call fcn.004a8960
mov eax, dword [ebp - 4]
add esp, 0xc
add dword [ebx], eax
add dword [ebx + 8], eax
add dword [edi + 0x74], eax
mov ebx, dword [edi + 0x74]
cmp ebx, 3
jb 0x478d47
mov eax, dword [edi + 0x38]
add eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x58]
movzx edx, byte [eax]
mov dword [edi + 0x48], edx
movzx eax, byte [eax + 1]
shl edx, cl
xor edx, eax
and edx, dword [edi + 0x54]
mov dword [edi + 0x48], edx
cmp ebx, 0x106
jae 0x478d5b
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x478c20
mov edx, dword [edi + 0x16c0]
mov ecx, dword [edi + 0x3c]
cmp edx, ecx
jae 0x478dd3
mov esi, dword [edi + 0x6c]
add esi, ebx
cmp edx, esi
jae 0x478da3
sub ecx, esi
mov eax, 0x102
cmp ecx, eax
cmova ecx, eax
mov eax, dword [edi + 0x38]
push ecx
add eax, esi
mov dword [ebp - 8], ecx
push 0
push eax
call fcn.004a83c0
mov eax, dword [ebp - 8]
add esp, 0xc
add eax, esi
mov dword [edi + 0x16c0], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x102]
cmp edx, eax
jae 0x478dd3
mov eax, dword [edi + 0x38]
sub esi, edx
sub ecx, edx
add esi, 0x102
cmp esi, ecx
cmova esi, ecx
add eax, edx
push esi
push 0
push eax
call fcn.004a83c0
add esp, 0xc
add dword [edi + 0x16c0], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47d080
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x47d08b
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.0047d0a0
Function at 0x47e440
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0xec]
mov dword [ebp - 0xec], 0
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftInternet_Explorer
xorps xmm0, xmm0
push reloc.OLEAUT32.dll_SysReAllocString
movlpd qword [ebp - 0xf8], xmm0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47e571
push 0xc8
push eax
lea eax, [ebp - 0xd0]
push eax
call fcn.004a83c0
add esp, 0xc
mov dword [ebp - 0xfc], 0xc8
lea eax, [ebp - 0xfc]
mov dword [ebp - 0x100], 0
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x100]
push eax
push 0
push str.Version
push dword [ebp - 0xec]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47e545
lea eax, [ebp - 0xd0]
push eax
lea ecx, [ebp - 0xe8]
call fcn.00438600
lea eax, [ebp - 0xe8]
push eax
call fcn.0047e9f0
mov ecx, dword [ebp - 0xd4]
mov esi, eax
mov edi, edx
cmp ecx, 8
jb 0x47e551
inc ecx
push ecx
push dword [ebp - 0xe8]
lea ecx, [ebp - 0xe8]
call fcn.00433600
push dword [ebp - 0xec]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov edx, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a578d
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0xf4]
mov esi, dword [ebp - 0xf8]
push dword [ebp - 0xec]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov edx, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a578d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xf8]
xor ecx, ebp
mov edx, dword [ebp - 0xf4]
pop edi
pop esi
call fcn.004a578d
mov esp, ebp
pop ebp
ret

Function at 0x47e820
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d57a8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x511070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
push 0x20019
push esi
push str.SoftwareTencentQQPCMgr
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47e89c
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], 4
test eax, eax
je 0x47e8aa
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push esi
push 0x4f338c
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47e89c
cmp dword [ebp - 0x18], 4
cmove esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x47e8aa
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x47fcd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_ntohl]
push esi
mov esi, ecx
mov dword [ebp - 0x18], edx
push edi
mov dword [ebp - 0x20], eax
push dword [esi]
call ebx
push dword [esi + 4]
mov dword [ebp - 0x1c], eax
call ebx
mov edi, dword [ebp - 0x18]
mov ebx, eax
lea eax, [ebp - 0x14]
xor esi, esi
sub edi, eax
nop dword [eax]
lea eax, [edi + esi*4]
push dword [ebp + eax - 0x14]
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp + esi*4 - 0x14], eax
inc esi
cmp esi, 4
jl 0x47fd10
mov edi, dword [ebp - 0x1c]
xor edx, edx
lea esi, [edx + 0x10]
nop
mov ecx, ebx
lea edx, [edx - 0x61c88647]
shl ecx, 4
mov eax, ebx
add ecx, dword [ebp - 0x14]
shr eax, 5
add eax, dword [ebp - 0x10]
xor ecx, eax
lea eax, [edx + ebx]
xor ecx, eax
add edi, ecx
mov ecx, edi
mov eax, edi
shr ecx, 5
add ecx, dword [ebp - 8]
shl eax, 4
add eax, dword [ebp - 0xc]
xor ecx, eax
lea eax, [edx + edi]
xor ecx, eax
add ebx, ecx
sub esi, 1
jne 0x47fd30
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push edi
call esi
mov edi, dword [ebp - 0x20]
push ebx
mov dword [edi], eax
call esi
mov ecx, dword [ebp - 4]
mov dword [edi + 4], eax
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004a578d
mov esp, ebp
pop ebp
ret
Function at 0x480240
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
push edi
mov edi, ecx
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x480265
push eax
call esi
mov eax, dword [edi + 8]
mov dword [edi], 0xffffffff
mov byte [edi + 4], 0
test eax, eax
je 0x48027f
cmp byte [eax], 0
je 0x480356
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4802cb
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 0x1c]
push 4
push eax
push 0x1002
push 0xffff
push ebx
mov dword [ebp - 0x1c], 0x10000
call esi
push 4
lea eax, [ebp - 0x1c]
push eax
push 0x1001
push 0xffff
push ebx
call esi
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi], ebx
cmp ebx, 0xffffffff
je 0x48033c
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 1
push eax
push 0x8004667e
push ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
xorps xmm0, xmm0
mov eax, 2
movups xmmword [ebp - 0x18], xmm0
mov word [ebp - 0x18], ax
mov ax, word [ebp + 0xc]
mov word [ebp - 0x16], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push 0x10
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x48032b
cmp eax, 0xffffffff
jne 0x48033c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x48033c
push 1
mov ecx, edi
call fcn.004803f0
test al, al
je 0x48033c
mov byte [edi + 4], 1
cmp byte [edi + 4], 0
jne 0x480356
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x48034c
push eax
call esi
mov dword [edi], 0xffffffff
mov byte [edi + 4], 0
mov al, byte [edi + 4]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a578d
mov esp, ebp
pop ebp
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
cmp byte [edi + 4], 0
je 0x4803dc
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, eax
push esi
mov esi, ebx
test ebx, ebx
jle 0x4803cc
nop dword [eax]
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x48039c
cmp byte [ecx], 0
je 0x4803bf
mov ecx, dword [edi]
cmp ecx, 0xffffffff
je 0x4803cc
mov eax, dword [ebp + 8]
push 0
sub eax, esi
push esi
add eax, ebx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x4803cc
sub esi, eax
test esi, esi
jg 0x480390
test eax, eax
jle 0x4803cc
pop esi
mov eax, ebx
pop ebx
pop edi
pop ebp
ret 8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop esi
pop ebx
or eax, 0xffffffff
pop edi
pop ebp
ret 8
or eax, 0xffffffff
pop edi
pop ebp
ret 8
Function at 0x4803f0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x511070]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi], 0xffffffff
je 0x4804cd
mov bl, byte [ebp + 8]
imul esi, dword [edi + 0xc], 0x3e8
test bl, bl
jne 0x480428
add esi, esi
test esi, esi
jle 0x4804cd
mov eax, dword [edi + 8]
mov ecx, dword [sym.imp.WS2_32.dll_select]
test eax, eax
je 0x480446
cmp byte [eax], 0
je 0x4804cd
mov eax, dword [edi]
lea edx, [esp + 0x10]
push edx
lea edx, [esp + 0x124]
mov dword [esp + 0x20], eax
mov dword [esp + 0x128], eax
inc eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x124], 1
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0xc350
push edx
lea edx, [esp + 0x20]
test bl, bl
je 0x480491
push edx
push 0
jmp 0x480494
push 0
push edx
push eax
call ecx
test eax, eax
jg 0x4804a3
sub esi, 0xc350
jmp 0x480428
lea eax, [esp + 0x18]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.004a578d
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x22c]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a578d
mov esp, ebp
pop ebp
ret 4

Function at 0x480580
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ebx
push edi
mov edi, ecx
test ebx, ebx
jle 0x4805d9
mov eax, dword [edi + 8]
test eax, eax
je 0x4805a9
cmp byte [eax], 0
je 0x4805d9
mov eax, dword [edi + 8]
test eax, eax
je 0x4805a9
cmp byte [eax], 0
je 0x4805e2
push 0
mov ecx, edi
call fcn.004803f0
test al, al
je 0x4805e2
mov ecx, dword [edi]
cmp ecx, 0xffffffff
je 0x4805e2
mov eax, dword [ebp + 8]
push 0
sub eax, esi
push esi
add eax, ebx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x4805e2
sub esi, eax
test esi, esi
jg 0x480591
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret 8
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 8
Function at 0x4805f0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d9cfd
mov eax, dword fs:[0]
push eax
sub esp, 0x1a0
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1a4], edi
mov eax, dword [0x51538c]
xorps xmm0, xmm0
mov dword [edi], 0
mov dword [edi + 4], vtable.._AV__Thread_U__BindMember0_VTransportMgr_DataTransport__P812_AEXPAX_Z_fund___fund__.0
mov dword [edi + 8], 0
mov dword [edi + 0x14], edi
mov dword [edi + 0x18], 0x481800
mov byte [edi + 0x1c], 1
mov dword [ebp - 0x1a8], edi
movq qword [edi + 0xc], xmm0
mov dword [ebp - 4], 0
lea esi, [edi + 0x24]
mov dword [edi + 0x20], eax
mov dword [ebp - 0x1a4], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004847f0
mov dword [esi], eax
mov byte [ebp - 4], 1
lea esi, [edi + 0x2c]
mov dword [ebp - 0x1a4], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00484740
mov dword [esi], eax
mov al, byte [ebp + 0xc]
lea ecx, [edi + 0x43c]
mov byte [edi + 0x34], al
mov byte [ecx], 0
mov byte [edi + 0x43d], 0
mov byte [edi + 0x43e], 1
mov dword [edi + 0x440], 0
mov dword [edi + 0x444], 0
mov dword [edi + 0x448], 0
lea eax, [edi + 0x44c]
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 0x10
jb 0x4806f9
mov eax, dword [eax]
mov byte [eax], 0
xor eax, eax
lea esi, [edi + 0x474]
mov word [edi + 0x464], ax
mov dword [edi + 0x468], eax
mov dword [edi + 0x46c], eax
mov dword [edi + 0x470], eax
mov dword [ebp - 0x1a4], esi
mov dword [esi], 0xffffffff
mov byte [esi + 4], al
mov dword [esi + 8], ecx
mov dword [esi + 0xc], 0x2710
push ecx
lea ecx, [esi + 0x10]
mov byte [ebp - 4], 5
call fcn.00482f10
mov byte [esi + 0x1c], 1
lea eax, [ebp - 0x1a0]
push eax
push 0x102
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x480763
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x400
lea eax, [edi + 0x38]
mov byte [ebp - 4], 7
push 0
push eax
call fcn.004a83c0
add esp, 0xc
cmp byte [edi + 0x34], 0
je 0x480787
mov ecx, edi
call fcn.00480ab0
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, edi
mov dword [edi + 0x438], eax
call fcn.004809d0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a578d
mov esp, ebp
pop ebp
ret 8

Function at 0x4809d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp byte [esi + 0x43c], 0
jne 0x480a39
push edi
push dword [esi + 0x438]
mov byte [esi + 0x43c], 1
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea edi, [esi + 4]
lea ecx, [ebp - 4]
mov byte [edi + 0x18], 0
push ecx
push 0
lea eax, [edi + 8]
mov dword [edi + 0xc], 0
mov dword [eax], edi
push eax
push 0x483480
push 0
push 0
call fcn.004af800
xor ecx, ecx
add esp, 0x18
cmp eax, 0xffffffff
cmove eax, ecx
mov dword [edi + 4], eax
test eax, eax
jne 0x480a38
mov byte [edi + 0x18], 1
mov byte [esi + 0x43c], cl
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x481b70
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
cmp dword [edi + 0x14], 0x10
jb 0x481b92
mov ecx, dword [edi]
jmp 0x481b94
mov ecx, edi
call fcn.00481ae0
test eax, eax
je 0x481c0e
mov ecx, dword [eax + 0xc]
cmp dword [ecx], 0
je 0x481c0e
mov dword [ebx + 0x468], 0
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
lea ecx, [ebx + 0x2c]
push edi
lea eax, [ebp - 0x2c]
push eax
call fcn.00484f00
mov ecx, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x24]
mov edx, ebx
mov dword [ecx + 0x28], ebx
mov dword [ecx + 0x2c], esi
lea ecx, [ebp - 0x20]
call fcn.00480190
mov ecx, dword [ebp - 0xc]
cmp ecx, 0x10
jb 0x481bf9
inc ecx
push ecx
push dword [ebp - 0x20]
lea ecx, [ebp - 0x20]
call fcn.00433760
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004a578d
mov esp, ebp
pop ebp
ret 4
inc dword [ebx + 0x468]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
lea ecx, [ebp - 0x2c]
mov esi, eax
push ecx
lea ecx, [ebx + 0x2c]
call fcn.00484f00
mov ecx, dword [ebp - 0x2c]
xor eax, eax
pop edi
mov dword [ecx + 0x2c], esi
mov dword [ecx + 0x28], 0
mov ecx, dword [ebp - 8]
pop esi
xor ecx, ebp
pop ebx
call fcn.004a578d
mov esp, ebp
pop ebp
ret 4
Function at 0x486d30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4da370
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x511070]
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 - 0x48], ecx
mov eax, dword [ebp + 0xc]
xor edx, edx
mov ebx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], edx
push 0x4faa08
xor edi, edi
mov dword [ebp - 4], edx
push eax
mov dword [ebp - 0x34], edi
call fcn.004b1101
add esp, 8
mov dword [ebp - 0x30], eax
test eax, eax
je 0x486f2e
push 2
push edi
push eax
call fcn.004b13ed
add esp, 0xc
push dword [ebp - 0x30]
call fcn.004b19e6
add esp, 4
mov dword [ebp - 0x44], eax
push edi
push edi
push dword [ebp - 0x30]
call fcn.004b13ed
mov eax, dword [ebp - 0x44]
add esp, 0xc
cmp eax, 0xc800
jg 0x486ed1
inc eax
push 0x5142bc
push eax
mov dword [ebp - 0x4c], eax
call fcn.004a600d
add esp, 8
mov dword [ebp - 0x34], eax
test eax, eax
je 0x486ed1
push dword [ebp - 0x4c]
push edi
push eax
call fcn.004a83c0
mov eax, dword [ebp - 0x44]
add esp, 0xc
mov edi, dword [ebp - 0x34]
push dword [ebp - 0x30]
push eax
push 1
push edi
call fcn.004b1bbd
add esp, 0x10
lea ecx, [ebp - 0x2c]
push edi
call fcn.004387d0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
push ecx
lea eax, [ebp - 0x2c]
push eax
call fcn.00486260
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.00433720
push 0x5142bc
push 0x2800
call fcn.004a600d
mov edi, eax
add esp, 8
test edi, edi
je 0x486ed1
push 0x2800
push esi
push edi
call fcn.004a83c0
mov esi, dword [ebp - 0x40]
add esp, 0xc
mov eax, dword [ebp - 0x3c]
cmp esi, eax
je 0x486ecc
cmp ebx, esi
je 0x486e75
push 0xffffffffffffffff
push 0
push esi
mov ecx, ebx
call fcn.004388d0
mov eax, dword [ebp - 0x3c]
cmp dword [ebx + 0x10], 0
je 0x486ec5
push 0x27ff
mov ecx, ebx
call fcn.00433710
push eax
push edi
call fcn.004bbc10
add esp, 0xc
mov eax, edi
mov cl, byte [eax]
cmp cl, 0x20
je 0x486e9f
cmp cl, 9
jne 0x486ea2
inc eax
jmp 0x486e93
cmp byte [eax], 0x3b
je 0x486ec2
push 0x3b
push edi
call fcn.004a8280
add esp, 8
test eax, eax
je 0x486eb9
mov byte [eax], 0
mov ecx, dword [ebp - 0x48]
push edi
call fcn.004864b0
mov eax, dword [ebp - 0x3c]
add esi, 0x18
cmp esi, eax
jne 0x486e62
mov esi, 1
push dword [ebp - 0x30]
call fcn.004b58e1
mov eax, dword [ebp - 0x34]
add esp, 4
test eax, eax
je 0x486eec
push eax
call fcn.004a5802
add esp, 4
test edi, edi
je 0x486ef9
push edi
call fcn.004a5802
add esp, 4
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x486f2e
push dword [ebp - 0x48]
mov edx, dword [ebp - 0x3c]
push ecx
mov ecx, ebx
call fcn.00485120
mov ecx, dword [ebp - 0x38]
mov eax, 0x2aaaaaab
sub ecx, ebx
add esp, 8
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
push ecx
push ebx
call fcn.004839a0
mov eax, esi
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.004a578d
mov esp, ebp
pop ebp
ret 0xc
Function at 0x487d50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4da4b8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x511070]
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 ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x487e7e
cmp byte [ebx + 0x3d], 0
je 0x487e7e
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x487da9
xor al, al
jmp 0x487e80
push 0
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.0044d3f0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x487e0f
sub eax, 1
je 0x487e13
mov ecx, dword [ebp - 0x14]
sub eax, 2
je 0x487e66
xor bl, bl
jmp 0x487e68
mov byte [ebx + 0x3d], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x487e48
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.004bc81c
mov ecx, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
jne 0x487e0b
cmp byte [ebx + 0x3d], 0
je 0x487e66
test esi, esi
jne 0x487dd1
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.0044d2d0
jmp 0x487dce
mov bl, 1
cmp ecx, 0x10
jb 0x487e7a
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00433760
mov al, bl
jmp 0x487e80
mov al, 1
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.004a578d
mov esp, ebp
pop ebp
ret