joyce8/EMBER2024-capa huggingface dataset:
Function at 0x465ed0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x110
mov eax, dword [0x5f4760]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x11c]
cmp dword [ebp + 0x1c8], 0
push esi
mov esi, dword [ebp]
push edi
mov edi, ecx
jne 0x465ffe
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ebx, 0x80
push edi
mov dword [esp + 0x20], ebx
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x465f44
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push ebp
call fcn.0047be40
add esp, 4
push eax
push edi
push str.getpeername___failed_with_errno__d:__s
call fcn.00475ac0
add esp, 0xc
jmp 0x466005
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x9c]
push eax
push edi
mov dword [esp + 0x20], ebx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x465f85
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push ebp
call fcn.0047be40
add esp, 4
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
call fcn.00475ac0
add esp, 0xc
jmp 0x466005
lea ebx, [ebp + 0xcc]
lea eax, [ebp + 0x9e]
lea edi, [esp + 0x18]
call fcn.00465e80
test eax, eax
jne 0x465fc0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push ebp
call fcn.0047be40
add esp, 4
push eax
push edi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
call fcn.00475ac0
add esp, 0xc
jmp 0x466005
lea ebx, [ebp + 0x100]
lea eax, [ebp + 0xd0]
lea edi, [esp + 0x98]
call fcn.00465e80
test eax, eax
jne 0x465ffe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push ebp
call fcn.0047be40
add esp, 4
push eax
push edi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
call fcn.00475ac0
add esp, 0xc
jmp 0x466005
mov eax, ebp
call fcn.00465e30
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004a314d
add esp, 0x110
ret

Function at 0x466240
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
push edi
push 4
lea ecx, [esp + 0xc]
push ecx
mov edi, eax
mov esi, dword [edi]
mov eax, dword [esi + 0x314]
push 1
push 6
push edx
mov dword [esp + 0x1c], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x46628a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push edi
mov edi, eax
call fcn.0047be40
add esp, 4
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
call fcn.00475a40
add esp, 8
pop edi
pop esi
pop ecx
ret
push str.TCP_NODELAY_set_n
call fcn.00475a40
add esp, 4
pop edi
pop esi
pop ecx
ret

Function at 0x4662a0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
lea eax, [esp + 8]
push eax
lea ecx, [esp + 4]
push ecx
push 0x1001
push 0xffff
push esi
mov dword [esp + 0x18], 0x4020
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], 4
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x4662e3
mov edx, dword [esp]
cmp edx, dword [esp + 4]
jg 0x4662fb
push 4
lea eax, [esp + 8]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
add esp, 0xc
ret
Function at 0x4667d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ecx
mov eax, dword [ecx + 0x598]
cmp eax, 0xffffffff
je 0x466825
mov ecx, dword [ecx + 0x58c]
mov edx, dword [ecx]
cmp dword [edx + eax*4], 0
lea eax, [edx + eax*4]
je 0x466825
mov ecx, dword [eax]
cmp dword [ecx + 0x150], 0
push esi
mov esi, dword [ecx + 0x130]
je 0x46680e
call fcn.00478950
test eax, eax
jne 0x466820
or eax, 0xffffffff
pop esi
pop ecx
ret
push 2
push 1
lea eax, [esp + 0xf]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
jmp 0x466804
mov eax, esi
pop esi
pop ecx
ret
or eax, 0xffffffff
pop ecx
ret
Function at 0x467c60
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5e41b0
push 0x4ade40
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5f4760]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x24]
push ecx
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xfffffffe
cmp eax, ebx
jne 0x467e7b
mov edi, dword [ebp - 0x24]
cmp edi, ebx
je 0x467dd4
cmp dword [edi + 4], 2
jne 0x467d90
cmp dword [edi + 0x18], ebx
je 0x467d90
mov eax, dword [edi + 0x10]
cmp eax, ebx
jbe 0x467d90
cmp eax, 0x10
jb 0x467d90
push 0x20
call dword [0x5fe460]
add esp, 4
mov esi, eax
cmp esi, ebx
je 0x467d9d
mov edx, dword [edi]
mov dword [esi], edx
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], 0x10
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], ebx
push 0x10
call dword [0x5fe460]
add esp, 4
mov dword [esi + 0x18], eax
cmp eax, ebx
je 0x467da6
mov ecx, dword [edi + 0x18]
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
mov eax, dword [edi + 0x14]
cmp eax, ebx
je 0x467d7b
push eax
call dword [0x5fe46c]
add esp, 4
mov dword [esi + 0x14], eax
cmp eax, ebx
je 0x467db9
cmp dword [ebp - 0x1c], ebx
jne 0x467d83
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x28]
cmp eax, ebx
je 0x467d8d
mov dword [eax + 0x1c], esi
mov dword [ebp - 0x28], esi
mov edi, dword [edi + 0x1c]
cmp edi, ebx
jne 0x467cd6
jmp 0x467dd4
mov dword [ebp - 0x20], 8
jmp 0x467dd4
mov dword [ebp - 0x20], 8
push esi
call dword [0x5fe464]
add esp, 4
jmp 0x467dd4
mov dword [ebp - 0x20], 8
mov edx, dword [esi + 0x18]
push edx
call dword [0x5fe464]
push esi
call dword [0x5fe464]
add esp, 8
mov eax, dword [ebp - 0x24]
cmp eax, ebx
je 0x467de2
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [ebp - 0x20], ebx
je 0x467e0e
mov eax, dword [ebp - 0x1c]
call fcn.00467c20
mov dword [ebp - 0x1c], ebx
mov eax, ebx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x1c], ebx
jne 0x467e25
mov dword [ebp - 0x20], 0x2af9
push 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x469100
Capabilities:
Create thread

Disassembly:
push 0
push 0
push eax
push 0x465160
push 0
push 0
call fcn.004a4c67
add esp, 0x18
test eax, eax
je 0x46911f
cmp eax, 0xffffffff
jne 0x469121
xor eax, eax
ret

Function at 0x469350
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x5f4760]
xor eax, esp
mov dword [esp + 0x194], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4693a8
mov eax, dword [esp]
cmp al, 2
jne 0x4693a2
shr eax, 8
cmp al, 2
jne 0x4693a2
call fcn.00487120
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.004a314d
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x194]
xor ecx, esp
mov eax, 2
call fcn.004a314d
mov esp, ebp
pop ebp
ret
Function at 0x469ec0
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x469ee2
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x469ed6
xor eax, eax
pop edi
ret
mov eax, dword [eax + 8]
push eax
push edi
push 1
push ebx
call ecx
jmp 0x469f12
cmp dword [esi + 8], 0
jne 0x469f05
mov ecx, dword [eax + 8]
push 0x5d2c50
push ecx
call fcn.004a3a26
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x469f05
or eax, 0xffffffff
pop edi
ret
mov edx, dword [esi + 8]
push edx
push edi
push 1
push ebx
call fcn.004a3d30
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x469f34
mov eax, dword [esi + 8]
test eax, eax
je 0x469f2e
push eax
call fcn.004a3dc4
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, edi
pop edi
ret

Function at 0x46a080
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x5f4760]
xor eax, esp
mov dword [esp + 0x104], eax
push str.HOME
call fcn.004a9adb
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x46a0e2
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x46a0e2
lea edx, [esp]
push edx
call dword [0x5fe46c]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004a314d
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.004a314d
add esp, 0x108
ret
jmp 0x46a080

Function at 0x46a100
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x5f4760]
xor eax, esp
mov dword [esp + 0x104], eax
push str.HOME
call fcn.004a9adb
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x46a0e2
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x46a0e2
lea edx, [esp]
push edx
call dword [0x5fe46c]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004a314d
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.004a314d
add esp, 0x108
ret
jmp 0x46a080
Function at 0x475670
Capabilities:
Parse pe header

Disassembly:
movsx ecx, al
add ecx, 0xffffff9f
cmp ecx, 0x19
ja case.default.0x47567b
jmp dword [ecx*4 + 0x4756d0]
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 0x475820
Capabilities:
Check for time delay via gettickcount
Get socket status

Disassembly:
sub esp, 0x32c
push ebx
mov ebx, dword [esp + 0x334]
push ebp
mov ebp, dword [esp + 0x33c]
push esi
xor esi, esi
push edi
mov edi, eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
cmp ebx, 0xffffffff
jne 0x47585d
cmp ebp, ebx
jne 0x47585d
call fcn.00475800
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x32c
ret
cmp edi, esi
jle 0x475870
mov esi, edi
call fcn.0047bf80
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
xor eax, eax
xor ecx, ecx
or edx, 0xffffffff
mov dword [esp + 0x20], ecx
mov dword [esp + 0x128], eax
cmp ebx, 0xffffffff
je 0x4758a4
mov ecx, 1
mov dword [esp + 0x12c], ebx
mov dword [esp + 0x128], ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ecx
mov edx, ebx
mov dword [esp + 0x230], eax
cmp ebp, 0xffffffff
je 0x4758e8
mov dword [esp + 0x234], ebp
mov dword [esp + 0x230], 1
test ecx, ecx
jbe 0x4758d1
cmp dword [esp + eax*4 + 0x24], ebp
je 0x4758d1
inc eax
cmp eax, ecx
jb 0x4758c6
cmp eax, ecx
jne 0x4758e2
cmp ecx, 0x40
jae 0x4758e2
mov dword [esp + eax*4 + 0x24], ebp
inc dword [esp + 0x20]
cmp ebp, edx
jbe 0x4758e8
mov edx, ebp
xor ebx, ebx
test edi, edi
setl bl
lea eax, [esp + 0x18]
lea ebp, [edx + 1]
dec ebx
and ebx, eax
lea esp, [esp]
xor eax, eax
cmp edi, eax
jle 0x475931
mov eax, 0x10624dd3
imul esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], eax
imul eax, eax, 0x3e8
mov ecx, esi
sub ecx, eax
imul ecx, ecx, 0x3e8
mov dword [esp + 0x1c], ecx
jmp 0x47593b
jne 0x47593b
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push ebx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x238]
push eax
lea ecx, [esp + 0x134]
push ecx
push ebp
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x4759a5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x47596e
cmp eax, 0x2714
jne 0x4759a9
test edi, edi
jle 0x475900
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
call fcn.0047bf80
push edx
push eax
call fcn.0047bfb0
mov esi, edi
sub esi, eax
add esp, 0x10
test esi, esi
jg 0x475900
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x32c
ret
test eax, eax
jge 0x4759b7
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x32c
ret
jne 0x4759c6
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x32c
ret
mov edi, dword [esp + 0x340]
xor esi, esi
cmp edi, 0xffffffff
je 0x4759fd
lea ecx, [esp + 0x128]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4759eb
mov esi, 1
lea edx, [esp + 0x20]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4759fd
or esi, 4
mov edi, dword [esp + 0x344]
cmp edi, 0xffffffff
je 0x475a30
lea eax, [esp + 0x230]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x475a1e
or esi, 2
lea ecx, [esp + 0x20]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x475a30
or esi, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x32c
ret
Function at 0x475bd0
Capabilities:
Send data
Send data on socket

Disassembly:
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [esp + 8]
mov eax, dword [ebx + eax*4 + 0x130]
push ebp
push esi
push edi
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x475c16
test ebx, ebx
je 0x475c16
cmp dword [ebx], 0
je 0x475c16
call edi
mov ecx, dword [ebx]
mov dword [ecx + 0x440], eax
mov esi, dword [esp + 0x24]
mov dword [esi], 0
cmp ebp, 0xffffffff
jne 0x475c79
call edi
mov edi, eax
cmp edi, 0x2733
jne 0x475c3e
xor eax, eax
mov dword [esi], 0x51
pop edi
pop esi
pop ebp
pop ebx
ret
push ebx
call fcn.0047be40
mov esi, dword [ebx]
add esp, 4
push eax
push str.Send_failure:__s
call fcn.00475ac0
mov edx, dword [ebx]
mov dword [edx + 0x85d4], edi
mov ebx, dword [ebx]
add esp, 8
test ebx, ebx
je 0x475c6f
mov dword [ebx + 0x438], 0x83
mov eax, dword [esp + 0x24]
mov dword [eax], 0x37
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret

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

Disassembly:
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x475f86
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov ecx, dword [esp + 4]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x4760d0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x164]
test ecx, ecx
je 0x4760eb
mov edx, dword [esi + 0xf4]
push edx
push edi
push ebx
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
jl 0x47611f
cmp eax, 2
jg 0x47611f
mov ecx, dword [esi + 0xf0]
push ecx
push 1
lea edx, [eax + eax*2 + 0x5ce34c]
push 2
push edx
call fcn.004aa110
mov eax, dword [esi + 0xf0]
push eax
push 1
push edi
push ebx
call fcn.004aa110
add esp, 0x20
xor eax, eax
ret
Function at 0x47e590
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x128
mov eax, dword [0x5f4760]
xor eax, esp
mov dword [esp + 0x124], eax
push esi
push edi
call fcn.004a8f2e
add eax, 0x20
mov dword [ebx + 0x10], eax
call fcn.004a8f2e
mov dword [ebx + 0x14], eax
call fcn.004a8f2e
xor ecx, ecx
or edx, 0xffffffff
add eax, 0x40
mov dword [ebx], eax
mov eax, 1
lea esi, [ebx + 0x2e4]
mov edi, str.rcmd
mov dword [ebx + 0x58], fcn.004aa110
mov dword [ebx + 0x64], fcn.004a3d30
mov dword [ebx + 0x68], ecx
mov dword [ebx + 0x6c], ecx
mov dword [ebx + 0x44], ecx
mov dword [ebx + 0x94], ecx
mov dword [ebx + 0x98], ecx
mov dword [ebx + 0x9c], ecx
mov dword [ebx + 0xa0], ecx
mov dword [ebx + 0xc0], edx
mov dword [ebx + 0xc4], edx
mov dword [ebx + 0x48], edx
mov dword [ebx + 0x4c], edx
mov dword [ebx + 0x128], eax
mov dword [ebx + 0x30c], eax
mov dword [ebx + 0x204], eax
mov dword [ebx + 0x208], eax
mov dword [ebx + 0x20c], ecx
mov dword [ebx + 0x198], eax
mov dword [ebx + 0x178], 0x3c
mov dword [ebx + 0x160], 5
mov dword [ebx + 0xc], 0x438
mov dword [ebx + 0x174], ecx
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x1cc], eax
mov dword [ebx + 0x30], 0xa
mov dword [ebx + 0x1c4], eax
mov dword [ebx + 0x138], eax
mov dword [ebx + 0x13c], 2
mov dword [ebx + 0x240], edx
mov dword [ebx + 0x16c], eax
mov dword [ebx + 0x24c], 0x1a4
mov dword [ebx + 0x250], 0x1ed
mov dword [ebx + 0x2fc], edx
mov dword [ebx + 0x300], 0xfffffbef
mov dword [ebx + 0x304], ecx
call fcn.0047e0b0
xor ecx, ecx
mov dword [esp + 8], eax
cmp eax, ecx
jne 0x47e76a
cmp dword [ebx + 0x2a8], ecx
jne 0x47e741
push 0x117
push ecx
lea eax, [esp + 0x19]
push eax
call fcn.004add60
mov ecx, 0x45
mov esi, 0x601ea8
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [esp + 0x1c]
add esp, 0xc
movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
jmp 0x47e710
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x47e710
sub eax, edx
je 0x47e73b
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x47e73b
lea edi, [esp + 0x10]
lea esi, [ebx + 0x2a8]
call fcn.0047e0b0
jmp 0x47e73f
mov eax, dword [esp + 8]
xor ecx, ecx
mov dword [ebx + 0x314], ecx
mov dword [ebx + 0x318], ecx
mov dword [ebx + 0x31c], ecx
mov dword [ebx + 0x32c], ecx
mov ecx, 0x3c
mov dword [ebx + 0x334], ecx
mov dword [ebx + 0x330], ecx
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
xor ecx, esp
call fcn.004a314d
mov esp, ebp
pop ebp
ret
Function at 0x486930
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5867c2
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x5f4760]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push edi
mov eax, dword [0x5f4760]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x4c]
mov edi, edx
xor edx, edx
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], edx
mov byte [esp + 0x1c], dl
mov dword [esp + 0x44], 1
mov ebx, dword [eax]
push 0xffffffffffffffff
mov dword [esp + 0x10], ebx
mov ebx, dword [eax + 4]
mov eax, dword [eax + 8]
push edx
push ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], eax
call fcn.004022b0
mov dword [esp + 0x34], edi
lea eax, [esi + 0x20]
lea edi, [esp + 0xc]
call fcn.00487270
mov dword [esp + 0x44], 0xffffffff
mov ecx, edi
push ecx
call fcn.004869f0
xor al, al
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.004a314d
add esp, 0x3c
ret 4

Function at 0x487200
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x587615
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x5f4760]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
sub esp, 0x2c
mov eax, esp
xor ecx, ecx
mov dword [eax + 0x24], 0xf
mov dword [eax + 0x20], ecx
mov dword [esp + 0x30], esp
mov dword [esp + 0x34], eax
mov byte [eax + 0x10], cl
mov dword [esp + 0x40], 1
mov dword [esp + 0x40], 0xffffffff
mov ecx, dword [esp + 0x48]
call fcn.00488050
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
add esp, 0x14
ret 4
Function at 0x490680
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x478
mov eax, dword [0x5f4760]
xor eax, esp
mov dword [esp + 0x470], eax
push ebx
push esi
xor eax, eax
push edi
push 0x40
push eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x2c]
push eax
mov esi, ecx
mov dword [esp + 0x1c], 0
call fcn.004add60
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x24], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
xor eax, eax
push 0x40e
push eax
lea ecx, [esp + 0x72]
mov edx, 5
push ecx
mov dword [esp + 0x58], 1
mov word [esp + 0x5c], dx
mov word [esp + 0x74], ax
call fcn.004add60
push esi
push 0x5dee80
mov eax, 0x410
lea ebx, [esp + 0x7c]
call fcn.004905d0
add esp, 0x14
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x24]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov ecx, ebx
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x490746
push eax
call edi
test esi, esi
je 0x490755
mov eax, dword [esp + 0x10]
test eax, eax
je 0x490755
push eax
call edi
mov ecx, dword [esp + 0x47c]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.004a314d
add esp, 0x478
ret

Function at 0x490770
Capabilities:
Get file version info

Disassembly:
sub esp, 0xc
push esi
push 0x5ff160
push 0x4000
call fcn.004a5c64
mov esi, eax
add esp, 8
test esi, esi
je 0x49080b
push 0x4000
push 0
push esi
call fcn.004add60
add esp, 0xc
lea eax, [esp + 8]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x490802
cmp eax, 0x3fff
ja 0x490802
push esi
push eax
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x490802
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 8]
push edx
push 0x5dee88
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x490802
mov eax, dword [esp + 4]
mov ecx, dword [eax + 8]
mov edx, dword [esp + 0x14]
mov dword [edx], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x18]
push esi
mov dword [ecx], eax
call fcn.004a4f88
add esp, 4
mov eax, 1
pop esi
add esp, 0xc
ret
push esi
call fcn.004a4f88
add esp, 4
xor eax, eax
pop esi
add esp, 0xc
ret
Function at 0x490990
Capabilities:
Get disk information

Disassembly:
sub esp, 0x10
mov eax, dword [0x5f4760]
xor eax, esp
mov dword [esp + 0xc], eax
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], edi
test ebx, ebx
je 0x490b49
test edi, edi
je 0x490b49
push 0x104
push 0
push 0x604830
call fcn.004add60
push 0x104
push 0
push 0x604a38
call fcn.004add60
add esp, 0x18
push 0x604830
push 0x208
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x490b22
xor ebp, ebp
cmp word [0x604830], bp
je 0x490b3b
mov esi, 0x604830
xor edi, edi
lea ebx, [ebx]
push 0x5deeb8
push esi
call fcn.004aa763
add esp, 8
test eax, eax
je 0x490a94
push 0x5deec0
push esi
call fcn.004aa763
add esp, 8
test eax, eax
je 0x490a94
mov ax, word [esi]
mov cx, word [edi + 0x604832]
push 0x104
mov word [esp + 0x14], ax
push 0x604a38
lea eax, [esp + 0x18]
xor edx, edx
push eax
mov word [esp + 0x1e], cx
mov word [esp + 0x20], dx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x490ab8
mov eax, 0x604a38
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x490a70
sub eax, edx
sar eax, 1
mov esi, eax
push esi
push 0x604a38
push ebx
call fcn.004c408e
add esp, 0xc
test eax, eax
je 0x490ae5
add ebp, 4
lea edi, [ebp + ebp]
cmp word [edi + 0x604830], 0
lea esi, [edi + 0x604830]
jne 0x490a10
mov edi, dword [esp + 0xc]
jmp 0x490b3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._qdd__u
mov esi, 0x602250
call fcn.00409e30
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.004a314d
add esp, 0x10
ret
mov edi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
mov ecx, 0x104
mov edx, edi
call fcn.004905a0
lea edx, [ebx + esi*2]
push edx
lea edx, [edi + 4]
mov ecx, 0x102
call fcn.004905a0
mov eax, 1
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.004a314d
add esp, 0x10
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._gds__u
mov esi, 0x602250
call fcn.00409e30
add esp, 8
mov eax, ebx
mov ecx, 0x104
mov edx, edi
call fcn.00490630
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.004a314d
add esp, 0x10
ret