joyce8/EMBER2024-capa huggingface dataset:
Function at 0x62d090
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov ebp, dword [esi + 4]
cmp ebp, ebx
je 0x62d21b
cmp dword [esi + 8], ebx
je 0x62d21b
cmp dword [esi + 0x10], ebx
je 0x62d122
lea eax, [esp + 0x14]
lea edi, [esi + 0x1c]
push ebx
push eax
push edi
push ebp
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
cmp eax, ebx
jne 0x62d107
mov ecx, dword [esi + 0x2c]
push 0x7530
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x62d0f6
mov dword [esi + 0x14], 0xf0000003
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret 0xc
mov eax, dword [esi + 4]
lea edx, [esp + 0x14]
push ebx
push edx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
xor ecx, ecx
mov dword [esi + 0x10], ebx
mov dword [edi], ecx
cmp eax, ebx
mov dword [edi + 4], ecx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], ecx
mov dword [edi + 0x10], ecx
je 0x62d21b
mov eax, dword [esi + 8]
xor edx, edx
mov dword [esp + 0x20], edx
push eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [esi + 8]
lea edx, [esp + 0x1c]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x10]
push edx
mov edx, dword [esp + 0x38]
push eax
push ecx
push edx
push ebp
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
cmp edi, ebx
je 0x62d18c
cmp dword [esp + 0x10], ebx
je 0x62d18c
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, ebx
jne 0x62d1a8
cmp eax, ebx
je 0x62d1a8
cmp eax, 0x3e5
je 0x62d1a8
cmp eax, 0x217
jne 0x62d21b
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x2c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, eax
cmp edi, ebx
je 0x62d1e0
push ebp
call dword [sym.imp.KERNEL32.dll_CancelIo]
cmp edi, 0x102
jne 0x62d21b
mov dword [esi + 0x14], 0xf0000003
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret 0xc
lea eax, [esp + 0x18]
push ebx
lea ecx, [esp + 0x20]
push eax
push ecx
push ebp
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov edx, dword [esi + 8]
mov edi, eax
push edx
mov dword [esi + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [esp + 0x18]
mov eax, edi
neg eax
pop edi
pop esi
sbb eax, eax
pop ebp
and eax, ecx
pop ebx
add esp, 0x20
ret 0xc
mov dword [esi + 0x14], 0xf0000001
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret 0xc
Function at 0x62d230
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov ebp, dword [esi + 4]
cmp ebp, ebx
je 0x62d3bb
cmp dword [esi + 0xc], ebx
je 0x62d3bb
cmp dword [esi + 0x10], ebx
je 0x62d2c2
lea eax, [esp + 0x14]
lea edi, [esi + 0x1c]
push ebx
push eax
push edi
push ebp
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
cmp eax, ebx
jne 0x62d2a7
mov ecx, dword [esi + 0x2c]
push 0x7530
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x62d296
mov dword [esi + 0x14], 0xf0000003
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret 0xc
mov eax, dword [esi + 4]
lea edx, [esp + 0x14]
push ebx
push edx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
xor ecx, ecx
mov dword [esi + 0x10], ebx
mov dword [edi], ecx
cmp eax, ebx
mov dword [edi + 4], ecx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], ecx
mov dword [edi + 0x10], ecx
je 0x62d3bb
mov eax, dword [esi + 0xc]
xor edx, edx
mov dword [esp + 0x20], edx
push eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [esi + 0xc]
lea edx, [esp + 0x1c]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x10]
push edx
mov edx, dword [esp + 0x38]
push eax
push ecx
push edx
push ebp
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
cmp edi, ebx
je 0x62d32c
cmp dword [esp + 0x10], ebx
jbe 0x62d32c
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, ebx
jne 0x62d348
cmp eax, ebx
je 0x62d348
cmp eax, 0x3e5
je 0x62d348
cmp eax, 0x217
jne 0x62d3bb
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x2c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, eax
cmp edi, ebx
je 0x62d380
push ebp
call dword [sym.imp.KERNEL32.dll_CancelIo]
cmp edi, 0x102
jne 0x62d3bb
mov dword [esi + 0x14], 0xf0000003
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret 0xc
lea eax, [esp + 0x18]
push ebx
lea ecx, [esp + 0x20]
push eax
push ecx
push ebp
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov edx, dword [esi + 0xc]
mov edi, eax
push edx
mov dword [esi + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [esp + 0x18]
mov eax, edi
neg eax
pop edi
pop esi
sbb eax, eax
pop ebp
and eax, ecx
pop ebx
add esp, 0x20
ret 0xc
mov dword [esi + 0x14], 0xf0000001
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret 0xc
Function at 0x62d3d0
Capabilities:
Get system information on windows

Disassembly:
push 0xffffffffffffffff
push 0x883ea7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea ebx, [esi + 0xc]
mov ecx, ebx
call fcn.0082bd15
xor ebp, ebp
mov dword [esi + 0x68], 0x8ab3dc
mov dword [esp + 0x44], ebp
mov dword [esi + 0x6c], ebp
mov dword [esi + 0x78], ebp
mov dword [esi + 0x74], ebp
mov dword [esi + 0x70], ebp
lea edi, [esi + 0x7c]
push ebp
mov ecx, edi
mov byte [esp + 0x48], 1
call fcn.005ef66e
mov dword [edi], 0x893f30
add edi, 8
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, 0x10
xor eax, eax
lea edi, [esi + 0x24]
mov dword [esi], 0x8ab3d8
mov dword [esi + 4], ebp
mov dword [esi + 0x64], ebp
rep stosd dword es:[edi], eax
push 0x24
mov byte [esp + 0x48], 2
call fcn.008325b4
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
cmp edi, ebp
mov byte [esp + 0x44], 3
je 0x62d47d
mov ecx, edi
call fcn.00746790
mov dword [edi], 0x8ab3c8
mov dword [edi + 0x20], esi
jmp 0x62d47f
xor edi, edi
mov dword [esi + 8], edi
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x1c]
mov dword [esp + 0x18], ebp
mov byte [esp + 0x44], 2
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x24
call fcn.008325b4
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
cmp edi, ebp
mov byte [esp + 0x44], 4
je 0x62d4ce
mov ecx, edi
call fcn.00746790
mov dword [edi], 0x8ab3b8
mov dword [edi + 0x20], esi
jmp 0x62d4d0
xor edi, edi
cmp edi, ebp
mov byte [esp + 0x44], 2
je 0x62d4e5
mov ecx, dword [ebx + 8]
push edi
push ecx
mov ecx, ebx
call fcn.0082bf39
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0x20], ebp
mov dword [esi + 0x9c], ebp
mov dword [esi + 0xa0], ebp
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret
Function at 0x62e530
Capabilities:
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x883fa8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x34]
push esi
cmp ebp, 0x640
push edi
mov esi, ecx
ja 0x62e611
xor edi, edi
cmp ebp, edi
jbe 0x62e611
lea eax, [esi + 0x7c]
push 1
push eax
lea ecx, [esp + 0x20]
call fcn.005f27b7
mov eax, dword [esp + 0x34]
mov ebx, dword [esi + 0x6c]
mov dword [esp + 0x2c], edi
lea ecx, [eax + eax*2]
shl ecx, 4
add ebx, ecx
cmp dword [ebx + 0x28], edi
jne 0x62e628
mov esi, dword [esp + 0x38]
mov edi, dword [ebx + 0x1c]
mov ecx, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x24]
mov edx, dword [ebx + 0x1c]
lea ecx, [esp + 0x38]
push eax
mov eax, dword [ebx]
push ecx
push ebp
xor esi, esi
push edx
push eax
mov dword [ebx + 0x28], 1
mov dword [esp + 0x4c], esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, esi
je 0x62e5f3
cmp dword [esp + 0x38], ebp
jne 0x62e5db
mov dword [ebx + 0x28], esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0xffffffff
call fcn.005f27f3
mov eax, 1
jmp 0x62e613
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x62e5db
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0xffffffff
call fcn.005f27f3
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
push ebp
mov dword [esp + 0x18], edi
call fcn.008325b4
mov edx, eax
add esp, 4
cmp edx, edi
mov dword [esp + 0x3c], edx
je 0x62e600
mov esi, dword [esp + 0x38]
mov ecx, ebp
mov eax, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebx + 0x2c]
mov eax, dword [esi + 0x10]
mov edi, dword [esi + 8]
test eax, eax
jne 0x62e695
mov ecx, dword [esi + 0x18]
push 0x10
lea edx, [esi + 0x14]
push ecx
push edx
call fcn.0082b3f5
mov ecx, dword [esi + 0x18]
mov edx, ecx
shl edx, 4
dec ecx
test ecx, ecx
lea eax, [edx + eax - 0xc]
jl 0x62e691
inc ecx
mov edx, dword [esi + 0x10]
mov dword [eax], edx
mov dword [esi + 0x10], eax
sub eax, 0x10
dec ecx
jne 0x62e683
mov edx, dword [esp + 0x3c]
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
mov dword [esi + 0x10], ecx
mov dword [eax + 4], edi
mov dword [eax], 0
mov edi, dword [esi + 0xc]
inc edi
lea ecx, [eax + 8]
mov dword [esi + 0xc], edi
mov ebx, ecx
xor edi, edi
mov dword [ebx], edi
mov dword [ebx + 4], edi
mov dword [ecx], ebp
mov dword [ecx + 4], edx
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x62e6c9
mov dword [ecx], eax
jmp 0x62e6cc
mov dword [esi + 4], eax
lea ecx, [esp + 0x18]
mov dword [esi + 8], eax
mov dword [esp + 0x2c], 0xffffffff
call fcn.005f27f3
mov eax, 1
jmp 0x62e613
Function at 0x62e6f0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x883fc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
push 1
lea ecx, [esp + 0xc]
lea eax, [esi + 0x7c]
push eax
call fcn.005f27b7
mov eax, dword [esp + 0x24]
lea ecx, [eax + eax*2]
mov eax, dword [esi + 0x6c]
shl ecx, 4
add eax, ecx
xor esi, esi
mov edx, dword [eax + 0x20]
mov dword [edx], esi
mov ecx, dword [eax + 0x20]
mov dword [ecx + 4], esi
mov edx, dword [eax + 0x20]
mov dword [edx + 8], esi
mov ecx, dword [eax + 0x20]
mov dword [ecx + 0xc], esi
mov dword [esp + 4], esi
mov edx, dword [eax + 0x20]
lea ecx, [esp + 4]
push edx
mov edx, dword [eax + 0x18]
mov eax, dword [eax]
push ecx
push 0x640
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, esi
pop esi
jne 0x62e797
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x62e797
lea ecx, [esp + 4]
mov dword [esp + 0x18], 0xffffffff
call fcn.005f27f3
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
lea ecx, [esp + 4]
mov dword [esp + 0x18], 0xffffffff
call fcn.005f27f3
mov ecx, dword [esp + 0x10]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x1c
ret 4

Function at 0x62e7c0
Capabilities:
Access peb ldr_data
Connect pipe
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x883fe8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
lea eax, [ebx + 0x7c]
push 1
push eax
lea ecx, [esp + 0x14]
call fcn.005f27b7
mov eax, dword [esp + 0x38]
mov esi, dword [ebx + 0x6c]
xor edi, edi
lea ecx, [eax + eax*2]
mov dword [esp + 0x30], edi
shl ecx, 4
add esi, ecx
mov edx, dword [esi + 0x20]
mov dword [edx + 8], edi
mov eax, dword [esi + 0x20]
mov dword [eax + 0xc], edi
mov ecx, dword [esi + 0x20]
mov dword [ecx], edi
mov edx, dword [esi + 0x20]
mov dword [edx + 4], edi
mov eax, dword [esi + 0x24]
mov dword [eax + 8], edi
mov ecx, dword [esi + 0x24]
mov dword [ecx + 0xc], edi
mov edx, dword [esi + 0x24]
mov dword [edx], edi
mov eax, dword [esi + 0x24]
mov dword [eax + 4], edi
mov ecx, dword [esi + 0x20]
mov edx, dword [esi]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
jne 0x62e8a3
mov ecx, dword [esi + 0x20]
xor eax, eax
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x18]
mov dword [esp + 0x20], eax
push edx
mov dword [esp + 0x28], eax
mov eax, dword [esi]
mov dword [esp + 0x28], ecx
push eax
mov ecx, ebx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], 0x217
call fcn.0062de00
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.005f27f3
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 4
cmp eax, edi
je 0x62e8ae
cmp eax, 0x3e5
jne 0x62e8b3
mov edi, 1
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.005f27f3
mov ecx, dword [esp + 0x28]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 4
Function at 0x6301e0
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x884295
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x91c
push esi
push edi
mov esi, dword [esp + 0x938]
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x126]
mov word [esp + 0x124], 0
mov dword [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [0x9dc1f4]
test esi, esi
je 0x6302cc
test eax, eax
jne 0x63028b
mov ecx, 0x44
xor eax, eax
lea edi, [esp + 0x14]
mov dword [0x9dc1f4], 1
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x20], 2
jne 0x63027f
cmp dword [esp + 0x14], 5
jb 0x63027f
mov ecx, dword [str.GlobalOCULAR_]
mov dword [0x9dc1f8], ecx
jmp 0x63028b
mov edx, dword [0x990448]
mov dword [0x9dc1f8], edx
mov eax, dword [esp + 0x93c]
test eax, eax
mov eax, dword [0x990448]
jne 0x6302a0
mov eax, dword [0x9dc1f8]
mov ecx, dword [esp + 0x944]
mov edx, dword [esp + 0x940]
push ecx
push edx
push esi
push eax
lea eax, [esp + 0x134]
push str._s__s__08x__08x
push eax
call fcn.005fe023
add esp, 0x18
jmp 0x63035b
test eax, eax
jne 0x630320
mov ecx, 0x44
xor eax, eax
lea edi, [esp + 0x14]
mov dword [0x9dc1f4], 1
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0x114
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x20], 2
jne 0x630316
cmp dword [esp + 0x14], 5
jb 0x630316
mov edx, dword [str.GlobalOCULAR_]
mov dword [0x9dc1f8], edx
jmp 0x630320
mov eax, dword [0x990448]
mov dword [0x9dc1f8], eax
mov eax, dword [esp + 0x93c]
test eax, eax
mov eax, dword [0x990448]
jne 0x630335
mov eax, dword [0x9dc1f8]
mov ecx, dword [esp + 0x944]
mov edx, dword [esp + 0x940]
push ecx
push edx
push eax
lea eax, [esp + 0x130]
push str._s___08x__08x
push eax
call fcn.005fe023
add esp, 0x14
lea ecx, [esp + 0x124]
push ecx
lea ecx, [esp + 0xc]
call fcn.00831f5f
mov esi, dword [esp + 0x934]
lea edx, [esp + 8]
push edx
mov ecx, esi
mov dword [esp + 0x930], 1
call fcn.00831c58
mov dword [esp + 0xc], 1
lea ecx, [esp + 8]
mov byte [esp + 0x92c], 0
call fcn.00831eeb
mov ecx, dword [esp + 0x924]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x928
ret
Function at 0x636040
Capabilities:
Set socket configuration

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0xc], ebx
jl 0x6360c5
cmp dword [esi + 0x14], ebx
je 0x63609f
mov ecx, dword [esi + 0x18]
xor eax, eax
mov dword [esp + 9], eax
push edi
mov edi, dword [sym.imp.WSOCK32.dll_htonl]
mov word [esp + 0x11], ax
push ecx
mov byte [esp + 0x10], bl
mov byte [esp + 0x17], al
call edi
push ebx
mov dword [esp + 0x10], eax
call edi
lea edx, [esp + 0xc]
push 8
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0xc]
push edx
push 0xd
push ebx
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
pop edi
jge 0x63609f
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
mov ecx, dword [esi + 0xc]
push 1
push ecx
call dword [sym.imp.WS2_32.dll_shutdown]
mov edx, dword [esi + 0xc]
push edx
call dword [sym.imp.WSOCK32.dll_closesocket]
mov dword [esi + 0xc], 0xffffffff
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
pop esi
mov eax, 1
pop ebx
add esp, 8
ret

Function at 0x639540
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x884bab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
mov eax, dword [0x8ab26c]
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], eax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
push 0x104
push ecx
mov dword [esp + 0x228], 0
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edx, [esp + 0x10]
mov ecx, esi
push edx
call fcn.006181a0
lea eax, [esp + 8]
push 1
push eax
mov ecx, esi
call fcn.0061a480
mov ecx, dword [eax]
push 0x92edb8
push ecx
call fcn.005fd3f1
add esp, 8
lea ecx, [esp + 8]
mov edi, eax
call fcn.00617ec0
test edi, edi
je 0x6395c0
push 0x92edb8
mov ecx, esi
call fcn.00618b00
mov ecx, dword [esp + 0x218]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x21c
ret

Function at 0x639720
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x884beb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
mov eax, dword [0x8ab26c]
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], eax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
push 0x104
push ecx
mov dword [esp + 0x228], 0
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea edx, [esp + 0x10]
mov ecx, esi
push edx
call fcn.006181a0
lea eax, [esp + 8]
push 1
push eax
mov ecx, esi
call fcn.0061a480
mov ecx, dword [eax]
push 0x92edb8
push ecx
call fcn.005fd3f1
add esp, 8
lea ecx, [esp + 8]
mov edi, eax
call fcn.00617ec0
test edi, edi
je 0x6397a0
push 0x92edb8
mov ecx, esi
call fcn.00618b00
mov ecx, dword [esp + 0x218]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x21c
ret
Function at 0x641fd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
mov esi, eax
shr eax, 4
and esi, 0xf
inc eax
push edi
mov edi, dword [esp + 0xc]
and eax, 0xffff
push ecx
push eax
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x64201e
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x64201e
xor edx, edx
xor ecx, ecx
mov cx, word [eax]
add eax, 2
cmp esi, edx
je 0x642023
inc edx
lea eax, [eax + ecx*2]
cmp edx, 0x10
jl 0x642009
pop edi
xor eax, eax
pop esi
ret
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
test edi, edi
jne 0x642033
test esi, esi
jne 0x642051
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jle 0x64204f
mov byte [eax + esi - 1], 0
jne 0x642058
mov byte [esi + edi - 1], 0
mov eax, edi
pop edi
dec eax
pop esi
ret

Function at 0x647740
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
push edi
mov esi, dword [esp + 0xc]
mov edi, eax
shr eax, 4
and edi, 0xf
inc eax
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x647790
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x647790
xor ecx, ecx
xor eax, eax
mov ax, word [esi]
add esi, 2
cmp edi, ecx
je 0x647795
inc ecx
lea esi, [esi + eax*2]
cmp ecx, 0x10
jl 0x64777b
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x1c]
lea ecx, [edx - 1]
cmp eax, ecx
jle 0x6477a2
mov eax, ecx
lea edx, [eax + eax]
push ebx
mov ebx, dword [esp + 0x1c]
mov ecx, edx
push ebp
mov ebp, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
pop ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [edx + ebx], 0
pop ebx
pop edi
pop esi
ret
Function at 0x64f980
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x8857d4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
lea ebx, [esi + 0x34]
mov dword [esi], 0x8ab5d0
mov dword [ebx], 0x8ab5b4
mov dword [esp + 0x2c], 6
call dword [0x8ab5e4]
lea ebp, [esi + 0x58]
push 1
push ebp
lea ecx, [esp + 0x20]
call fcn.005f27b7
mov eax, dword [esi + 0x48]
mov byte [esp + 0x2c], 7
test eax, eax
jle 0x64f9fe
lea ecx, [esi + 0x3c]
call fcn.0082c54e
mov edi, eax
test edi, edi
je 0x64f9f7
mov ecx, edi
call fcn.00652320
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
mov eax, dword [esi + 0x48]
test eax, eax
jg 0x64f9da
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 6
call fcn.005f27f3
mov eax, esi
mov ecx, dword [esi + 0xd0]
neg eax
sbb eax, eax
and eax, ebx
push eax
call fcn.00651840
lea ecx, [esi + 0xac]
mov byte [esp + 0x2c], 5
call fcn.0082bd48
lea edi, [esi + 0x8c]
mov byte [esp + 0x2c], 4
lea ecx, [edi + 8]
mov dword [edi], 0x893f30
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, edi
call fcn.005ef699
lea ecx, [esi + 0x78]
mov byte [esp + 0x2c], 3
call fcn.0082bd48
lea edx, [ebp + 8]
mov byte [esp + 0x2c], 2
push edx
mov dword [ebp], 0x893f30
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, ebp
call fcn.005ef699
lea ecx, [esi + 0x3c]
mov byte [esp + 0x2c], 1
call fcn.0082c418
mov ecx, esi
mov byte [esp + 0x2c], 0
neg ecx
sbb ecx, ecx
and ecx, ebx
call fcn.006528e0
mov ecx, esi
mov dword [esp + 0x2c], 0xffffffff
call fcn.00652a30
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x650230
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x88594f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x98b454]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea ebp, [esi + 0x18]
mov dword [ebp], eax
xor ebx, ebx
lea ecx, [esi + 0x1c]
mov dword [esp + 0x1c], ebx
call fcn.0082bd15
lea edi, [esi + 0x30]
push ebx
mov ecx, edi
mov byte [esp + 0x20], 1
call fcn.005ef66e
mov dword [edi], 0x893f30
add edi, 8
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea ecx, [esi + 0x50]
mov byte [esp + 0x1c], 2
call fcn.0082bd15
lea edi, [esi + 0x64]
push ebx
mov ecx, edi
mov byte [esp + 0x20], 3
call fcn.005ef66e
mov dword [edi], 0x893f30
add edi, 8
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea ecx, [esi + 0x84]
mov byte [esp + 0x1c], 4
call fcn.00652c80
lea ecx, [esi + 0x128]
mov byte [esp + 0x1c], 5
call fcn.00653a50
lea ecx, [esi + 0x15c]
mov byte [esp + 0x1c], 6
call fcn.00673a30
mov ecx, dword [0x98b454]
mov dword [esi + 0x190], ecx
mov edx, dword [esp + 0x24]
mov ecx, ebp
push edx
mov byte [esp + 0x20], 8
mov dword [esi], 0x8ab600
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], 1
call fcn.00832082
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x18c], ebx
mov dword [esi + 0x194], ebx
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4