joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49b880
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5ea1f8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov dword [esp + 0x14], 0
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x28]
sub esp, 0x10
test esi, esi
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x30]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x34]
mov dword [eax + 8], edx
lea ecx, [edi + 8]
mov dword [esp + 0x18], esp
mov dword [eax + 0xc], esi
je 0x49b8e1
lea eax, [esi + 4]
mov edx, 1
lock xadd dword [eax], edx
call fcn.004fecb0
neg al
mov dword [esp + 0x14], 0xffffffff
sbb eax, eax
and eax, 0x615728
test esi, esi
mov dword [edi], eax
je 0x49b927
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x49b927
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x49b927
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 0x10

Function at 0x49ba10
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5ea1f8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov dword [esp + 0x14], 0
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x28]
sub esp, 0x10
test esi, esi
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x30]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x34]
mov dword [eax + 8], edx
lea ecx, [edi + 8]
mov dword [esp + 0x18], esp
mov dword [eax + 0xc], esi
je 0x49ba71
lea eax, [esi + 4]
mov edx, 1
lock xadd dword [eax], edx
call fcn.004fecb0
neg al
mov dword [esp + 0x14], 0xffffffff
sbb eax, eax
and eax, 0x615738
test esi, esi
mov dword [edi], eax
je 0x49bab7
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x49bab7
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x49bab7
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 0x10

Function at 0x49d4d0
Capabilities:
Hash data using sha1

Disassembly:
push esi
mov esi, eax
xor eax, eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], eax
mov eax, dword [esp + 8]
push eax
mov eax, dword [esp + 0x10]
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov dword [esi + 0x10], 0xc3d2e1f0
call fcn.00502b50
add esp, 4
mov eax, esi
pop esi
ret 8
Function at 0x49d570
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5e31e9
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x64c874]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x7c]
xor ebx, ebx
mov dword [esp + 0x74], ebx
mov edi, ecx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], edi
mov dword [esp + 0x34], ebx
call fcn.005d95d0
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], ebx
mov dword [esp + 0x38], eax
mov byte [edi + 4], bl
mov dword [esp + 0x74], ebx
push ebp
lea esi, [esp + 0x48]
mov dword [esp + 0x40], 1
call fcn.004a90b0
mov esi, 1
cmp dword [esp + 0x44], esi
jne 0x49d6b8
push 0x5b
mov eax, esi
call fcn.004192a0
lea ecx, [esp + 0x34]
lea edx, [esp + 0x18]
lea eax, [esp + 0x44]
call fcn.004a8980
push ebx
mov dword [esp + 0x78], esi
push eax
or eax, 0xffffffff
mov esi, edi
call fcn.00432230
mov byte [esp + 0x74], bl
cmp dword [esp + 0x30], 0x10
jb 0x49d637
mov eax, dword [esp + 0x1c]
push eax
call fcn.0059b877
add esp, 4
push 0x5d
mov eax, 1
call fcn.004192a0
push 0x3a
mov eax, 1
call fcn.004192a0
movzx eax, word [ebp + 2]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
movzx eax, ax
cdq
push edx
push eax
lea ecx, [esp + 0x4c]
push ecx
call fcn.004b02e0
mov edx, dword [eax]
mov dword [esp + 0x24], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x28], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x2c], edx
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x30], ecx
mov edx, dword [eax + 0x10]
mov dword [esp + 0x34], edx
mov ax, word [eax + 0x14]
mov word [esp + 0x38], ax
lea eax, [esp + 0x24]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x49d6a2
sub eax, edx
push eax
lea ecx, [esp + 0x1c]
push ecx
jmp 0x49d765
lea ecx, [esp + 0x34]
lea edx, [esp + 0x18]
lea eax, [esp + 0x44]
call fcn.004a8980
push ebx
push eax
or eax, 0xffffffff
mov esi, edi
mov dword [esp + 0x7c], 2
call fcn.00432230
mov byte [esp + 0x74], bl
cmp dword [esp + 0x30], 0x10
jb 0x49d6f5
mov edx, dword [esp + 0x1c]
push edx
call fcn.0059b877
add esp, 4
push 0x3a
mov eax, 1
call fcn.004192a0
movzx eax, word [ebp + 2]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
movzx eax, ax
cdq
push edx
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.004b02e0
mov ecx, dword [eax]
mov dword [esp + 0x24], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x28], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x2c], ecx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x30], edx
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x34], ecx
mov dx, word [eax + 0x14]
lea eax, [esp + 0x24]
mov word [esp + 0x38], dx
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x49d754
sub eax, edx
push eax
lea eax, [esp + 0x1c]
push eax
mov eax, edi
call fcn.004320d0
mov eax, edi
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.005b88a9
add esp, 0x64
ret
Function at 0x49d7e0
Capabilities:
Hash data using sha1

Disassembly:
sub esp, 0x94
mov eax, dword [0x64c874]
xor eax, esp
mov dword [esp + 0x8c], eax
cmp dword [ecx], 1
push esi
push edi
jne 0x49d8f4
lea eax, [esp + 0x6c]
push eax
call fcn.004a8900
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x80], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x84], edx
mov edx, dword [eax + 0xc]
xor edi, edi
lea eax, [esp + 0x80]
push eax
lea eax, [edi + 0x10]
lea esi, [esp + 0x14]
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], edx
mov dword [esp + 0x14], 0x67452301
mov dword [esp + 0x18], 0xefcdab89
mov dword [esp + 0x1c], 0x98badcfe
mov dword [esp + 0x20], 0x10325476
mov dword [esp + 0x24], 0xc3d2e1f0
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edi
call fcn.00502b50
xor eax, eax
add esp, 4
mov ecx, esi
lea edi, [esp + 0x80]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
call fcn.00502a50
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x88]
mov dword [ebx], ecx
mov ecx, dword [esp + 0x8c]
mov dword [ebx + 4], edx
mov edx, dword [esp + 0x90]
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], ecx
mov dword [ebx + 0x10], edx
pop edi
pop esi
mov ecx, dword [esp + 0x8c]
xor ecx, esp
call fcn.005b88a9
add esp, 0x94
ret
lea eax, [esp + 0xc]
push eax
call fcn.004a8890
mov ecx, dword [eax]
xor edi, edi
lea edx, [esp + 0xc]
push edx
lea eax, [edi + 4]
lea esi, [esp + 0x14]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], 0x67452301
mov dword [esp + 0x18], 0xefcdab89
mov dword [esp + 0x1c], 0x98badcfe
mov dword [esp + 0x20], 0x10325476
mov dword [esp + 0x24], 0xc3d2e1f0
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edi
call fcn.00502b50
xor eax, eax
add esp, 4
mov ecx, esi
lea edi, [esp + 0x80]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
call fcn.00502a50
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x88]
mov dword [ebx], eax
mov eax, dword [esp + 0x8c]
mov dword [ebx + 4], ecx
mov ecx, dword [esp + 0x90]
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], ecx
mov ecx, dword [esp + 0x94]
pop edi
pop esi
xor ecx, esp
call fcn.005b88a9
add esp, 0x94
ret
Function at 0x49ff40
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x5e7db8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x64c874]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push edi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esi], 0
call fcn.005d95d0
mov dword [esi + 4], eax
lea eax, [esp + 0x10]
push eax
mov ecx, edi
call fcn.004b1c80
add esp, 4
mov dword [esp + 0x38], 0
cmp dword [esp + 0x28], 8
mov eax, dword [esp + 0x14]
jae 0x49ffa6
lea eax, [esp + 0x14]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x49ffd0
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0xb7
je 0x49ffd0
call fcn.005d95d0
mov edi, eax
call ebx
mov dword [esi], eax
mov dword [esi + 4], edi
cmp dword [esp + 0x28], 8
jb 0x49ffe4
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0059b877
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.005b88a9
add esp, 0x30
ret

Function at 0x4a0330
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x5e6e80
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x64c874]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push edi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, edx
mov dword [esi], 0
call fcn.005d95d0
mov dword [esi + 4], eax
lea eax, [esp + 0x28]
push eax
mov ecx, edi
call fcn.004b1c80
add esp, 4
lea ecx, [esp + 0xc]
push ecx
mov ecx, ebx
mov dword [esp + 0x54], 0
call fcn.004b1c80
add esp, 4
mov byte [esp + 0x50], 1
mov ecx, dword [esp + 0x10]
mov ebx, 8
cmp dword [esp + 0x24], ebx
jae 0x4a03b0
lea ecx, [esp + 0x10]
cmp dword [esp + 0x40], ebx
mov eax, dword [esp + 0x2c]
jae 0x4a03be
lea eax, [esp + 0x2c]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4a03de
call fcn.005d95d0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov dword [esi + 4], edi
cmp dword [esp + 0x24], ebx
jb 0x4a03f1
mov edx, dword [esp + 0x10]
push edx
call fcn.0059b877
add esp, 4
cmp dword [esp + 0x40], ebx
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], 0
mov word [esp + 0x10], 0
jb 0x4a041b
mov eax, dword [esp + 0x2c]
push eax
call fcn.0059b877
add esp, 4
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.005b88a9
add esp, 0x48
ret
Function at 0x4a0f70
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x5e6e08
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x64c874]
xor eax, esp
mov dword [esp + 0x54], eax
push ebp
push esi
push edi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
xor esi, esi
mov edi, ecx
mov dword [ebx], esi
call fcn.005d95d0
mov dword [ebx + 4], eax
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], esi
mov byte [esp + 0x4c], 0
mov dword [esp + 0x70], esi
mov eax, dword [edi + 0x14]
lea ebp, [eax - 1]
cmp ebp, eax
jbe 0x4a0fd3
call fcn.005b8b18
cmp dword [edi + 0x18], 0x10
lea esi, [edi + 4]
jb 0x4a0fe0
mov eax, dword [esi]
jmp 0x4a0fe2
mov eax, esi
cmp byte [eax + ebp], 0x2f
je 0x4a1016
mov eax, dword [edi + 0x14]
lea ebp, [eax - 1]
cmp ebp, eax
jbe 0x4a0ff7
call fcn.005b8b18
cmp dword [edi + 0x18], 0x10
jb 0x4a0fff
mov esi, dword [esi]
cmp byte [esi + ebp], 0x5c
je 0x4a1016
push 0xffffffffffffffff
xor esi, esi
push esi
push edi
lea ecx, [esp + 0x54]
call fcn.0040b390
jmp 0x4a1058
mov eax, dword [edi + 0x14]
add eax, 0xffffffff
push eax
xor ecx, ecx
lea esi, [esp + 0x14]
mov edx, edi
call fcn.004a29f0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x54]
mov byte [esp + 0x7c], 1
call fcn.0040b390
mov byte [esp + 0x70], 0
cmp dword [esp + 0x28], 0x10
jb 0x4a1056
mov eax, dword [esp + 0x14]
push eax
call fcn.0059b877
add esp, 4
xor esi, esi
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x4c]
call fcn.004b1c80
add esp, 4
mov byte [esp + 0x70], 2
mov eax, dword [esp + 0x30]
mov ebp, 8
cmp dword [esp + 0x44], ebp
jae 0x4a1081
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4a112e
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 5
jne 0x4a10ec
cmp dword [esp + 0x44], ebp
mov eax, dword [esp + 0x30]
jae 0x4a10ab
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x4a10ec
cmp dword [esp + 0x44], ebp
jb 0x4a10c9
mov edx, dword [esp + 0x30]
push edx
call fcn.0059b877
add esp, 4
cmp dword [esp + 0x60], 0x10
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], esi
mov word [esp + 0x30], si
jb 0x4a1166
mov eax, dword [esp + 0x4c]
push eax
jmp 0x4a115e
call fcn.005d95d0
mov esi, eax
call edi
cmp dword [esp + 0x44], ebp
mov dword [ebx], eax
mov dword [ebx + 4], esi
jb 0x4a110d
mov ecx, dword [esp + 0x30]
push ecx
call fcn.0059b877
add esp, 4
xor eax, eax
cmp dword [esp + 0x60], 0x10
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], eax
mov word [esp + 0x30], ax
jb 0x4a1166
mov edx, dword [esp + 0x4c]
push edx
jmp 0x4a115e
cmp dword [esp + 0x44], ebp
jb 0x4a1141
mov eax, dword [esp + 0x30]
push eax
call fcn.0059b877
add esp, 4
cmp dword [esp + 0x60], 0x10
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], esi
mov word [esp + 0x30], si
jb 0x4a1166
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.0059b877
add esp, 4
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.005b88a9
add esp, 0x64
ret
Function at 0x4a1760
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x5e7bb8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
add edx, 0x30
mov eax, edx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], bx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4a17a7
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [esp + 0x1c]
call fcn.00402770
mov ecx, esi
mov dword [esp + 0x38], ebx
call fcn.004b1dd0
cmp dword [esp + 0x2c], 8
jb 0x4a17e0
mov eax, dword [esp + 0x18]
push eax
call fcn.0059b877
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x2c
ret

Function at 0x4a1d00
Capabilities:
Get disk size

Disassembly:
sub esp, 0x30
cmp dword [edi + 0x28], 0
jne 0x4a1da7
push ebx
push esi
lea eax, [esp + 8]
lea esi, [edi + 8]
push eax
mov ebx, 1
xor eax, eax
mov edx, esi
mov dword [esp + 0xc], 0x5c
call fcn.0040b4d0
add eax, ebx
push eax
push esi
xor ecx, ecx
lea esi, [esp + 0x24]
call fcn.0040b160
mov ebx, 8
cmp dword [eax + 0x18], ebx
jb 0x4a1d4b
mov eax, dword [eax + 4]
jmp 0x4a1d4e
add eax, 4
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
cmp dword [esp + 0x34], ebx
mov esi, eax
jb 0x4a1d7e
mov eax, dword [esp + 0x20]
push eax
call fcn.0059b877
add esp, 4
test esi, esi
pop esi
pop ebx
je 0x4a1d99
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
imul ecx, eax
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], ecx
add esp, 0x30
ret
mov dword [edi + 0x28], 0x200
mov dword [edi + 0x2c], 0x1000
mov eax, dword [edi + 0x28]
add esp, 0x30
ret

Function at 0x4a1db0
Capabilities:
Get system information on windows

Disassembly:
mov eax, dword [0x65a7f8]
sub esp, 0x24
test eax, eax
jne 0x4a1deb
mov eax, dword [0x65b6a0]
test eax, eax
jne 0x4a1de6
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 4]
test eax, eax
mov dword [0x65b6a0], eax
jg 0x4a1de6
mov eax, 0x1000
mov dword [0x65b6a0], eax
mov dword [0x65a7f8], eax
add esp, 0x24
ret
Function at 0x4a1df0
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x5dc6f8
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push esi
push edi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0x74]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4a1e5e
xor ebx, ebx
push ebx
xor eax, eax
push ebx
push 1
push ebx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esp + 0x48], eax
cmp eax, ebx
mov dword [esp + 0x7c], ebx
jne 0x4a1e73
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x70
ret
mov al, byte [esp + 0x84]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
neg al
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], edx
lea edx, [esp + 0x10]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
sbb eax, eax
and eax, ecx
push eax
push edx
push 0x20
lea eax, [esp + 0x58]
push eax
push 0x10
lea ecx, [esp + 0x38]
push ecx
push 0x940cf
push esi
mov dword [esp + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp byte [esp + 0x84], bl
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x4a1f30
cmp eax, ebx
jne 0x4a1f5b
call edi
cmp eax, 0x3e5
jne 0x4a1f34
lea ecx, [esp + 0x1c]
call fcn.00489380
push esi
lea esi, [esp + 0x20]
lea eax, [esp + 0x3c]
call fcn.004a1810
mov edx, dword [esp + 0x1c]
neg edx
sbb edx, edx
test edx, fcn.00489120
mov dword [esp + 0x10], eax
je 0x4a1f5b
mov eax, dword [esp + 0x48]
cmp eax, 0xffffffff
je 0x4a1f1b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x70
ret
cmp eax, ebx
jne 0x4a1f5b
call edi
mov eax, dword [esp + 0x48]
cmp eax, 0xffffffff
je 0x4a1f1b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x70
ret
cmp dword [esp + 0x10], 0x10
mov eax, dword [esp + 0x48]
setne bl
cmp eax, 0xffffffff
je 0x4a1f73
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x70
ret

Function at 0x4a20e0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
cmp dword [0x65a7f8], 0
jne 0x4a211b
mov eax, dword [0x65b6a0]
test eax, eax
jne 0x4a2116
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 4]
test eax, eax
mov dword [0x65b6a0], eax
jg 0x4a2116
mov eax, 0x1000
mov dword [0x65b6a0], eax
mov dword [0x65a7f8], eax
add esp, 0x24
ret
Function at 0x4a28a0
Capabilities:
Get file size

Disassembly:
sub esp, 0x38
push ebx
mov ebx, dword [esp + 0x40]
push ebp
push esi
xor esi, esi
push edi
mov dword [esp + 0x14], esi
call fcn.005d95d0
mov ecx, dword [ebx + 4]
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x4a28df
call fcn.005d95d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
or ebp, 0xffffffff
mov esi, eax
mov dword [esp + 0x1c], ebp
jmp 0x4a28eb
mov edx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x1c], edx
neg esi
sbb esi, esi
test esi, fcn.00489120
mov dword [esp + 0x18], ebp
je 0x4a290d
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 0xc
test byte [ebx + 0x24], 4
je 0x4a295c
call fcn.004a1db0
sub eax, 1
cdq
mov ecx, eax
mov esi, edx
not esi
not ecx
mov ebx, esi
and ebx, dword [esp + 0x54]
mov edi, ecx
and edi, dword [esp + 0x50]
add eax, ebp
adc edx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
and eax, ecx
and edx, esi
mov esi, dword [esp + 0x54]
sub eax, edi
sbb edx, ebx
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x50]
mov dword [esp + 0x2c], ebx
mov ebx, dword [esp + 0x4c]
mov dword [esp + 0x34], edx
jmp 0x4a297a
mov edi, dword [esp + 0x50]
mov esi, dword [esp + 0x54]
mov ecx, dword [esp + 0x1c]
mov eax, ebp
sub eax, edi
sbb ecx, esi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x34], ecx
push 0
lea edx, [esp + 0x18]
push edx
mov edx, dword [ebx + 4]
push 0x10
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x44]
push eax
push 0x10
lea ecx, [esp + 0x3c]
push ecx
push 0x940cf
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x4a29b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4a29da
cmp dword [esp + 0x14], 0
jne 0x4a29c8
mov eax, ebp
mov edx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 0xc
mov edx, dword [esp + 0x3c]
cmp edx, esi
mov eax, dword [esp + 0x38]
jg 0x4a29de
jl 0x4a29da
cmp eax, edi
jae 0x4a29de
mov edx, esi
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 0xc

Function at 0x4a3330
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x5e6d8c
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov dword [esi], vtable.boost::asio::detail::select_reactor.0
mov ecx, esi
mov dword [esp + 0x14], 4
call fcn.004a33d0
push 0x4a3120
push 3
push 0xc
lea eax, [esi + 0xc8]
push eax
mov byte [esp + 0x24], 3
call fcn.005ba04a
push 0x4a3320
push 4
push 0x24
lea ecx, [esi + 0x38]
push ecx
mov byte [esp + 0x24], 2
call fcn.005ba04a
lea edi, [esi + 0x30]
mov byte [esp + 0x14], 1
call fcn.004a60a0
lea edx, [esi + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [esi], vtable.boost::asio::io_service::service.0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x4a3d30
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x14
cmp dword [esi], 0x40
push ebx
push ebp
push edi
mov ebx, eax
jne 0x4a3d4c
mov edi, 0x2745
call fcn.005d95d0
mov dword [esi], edi
mov dword [esi + 4], eax
xor ebp, ebp
cmp dword [esi], ebp
jne 0x4a3e2b
cmp dword [esp + 0x30], ebp
je 0x4a3dc3
cmp ebx, ebp
je 0x4a3dc3
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x3c]
push eax
push eax
push ebp
push ecx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ebp
call sub.MSWSOCK.dll_GetAcceptExSockaddrs
mov edi, dword [esp + 0xc]
cmp edi, dword [ebx]
jbe 0x4a3dae
mov edi, 0x2726
call fcn.005d95d0
mov dword [esi], edi
mov dword [esi + 4], eax
jmp 0x4a3dc3
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x30]
push edi
push edx
push eax
call fcn.005c3120
add esp, 0xc
mov dword [ebx], edi
mov edi, dword [esp + 0x34]
cmp edi, 0xffffffff
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x1c], ecx
jne 0x4a3dea
mov edi, 0x2719
call fcn.005d95d0
mov dword [esi + 4], eax
mov dword [esi], edi
pop edi
pop ebp
pop ebx
add esp, 0x14
ret
push ebp
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 4
lea edx, [esp + 0x20]
push edx
push 0x700b
push 0xffff
push edi
call sub.WS2_32.dll_setsockopt
mov edi, eax
call fcn.005d95d0
mov ebx, eax
call sub.WS2_32.dll_WSAGetLastError
cmp edi, ebp
mov dword [esi], eax
mov dword [esi + 4], ebx
jne 0x4a3e2b
xor edi, edi
call fcn.005d95d0
mov dword [esi + 4], eax
mov dword [esi], edi
pop edi
pop ebp
pop ebx
add esp, 0x14
ret