joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43f214
Capabilities:
Terminate thread

Disassembly:
push ebx
cmp dword [0x66bf18], 0
je 0x43f2e5
mov ebx, dword [0x66bf2c]
xor eax, eax
mov dword [0x66bf2c], eax
push ebx
call sub.KERNEL32.DLL_SetEvent
push ebx
call sub.KERNEL32.DLL_CloseHandle_1
cmp dword [0x66bf28], 0
je 0x43f25d
mov ebx, dword [0x66bf28]
xor eax, eax
mov dword [0x66bf28], eax
push ebx
call sub.KERNEL32.DLL_SetEvent
push ebx
call sub.KERNEL32.DLL_CloseHandle_1
mov dword [0x66bf24], 0xffffffff
mov eax, 0x43ef9c
xor ecx, ecx
xor edx, edx
call fcn.0041ab44
push 0x1f4
mov eax, dword [0x66bf14]
push eax
call sub.KERNEL32.DLL_WaitForSingleObject
test eax, eax
je 0x43f2aa
push 0
mov eax, dword [0x66bf14]
push eax
call sub.KERNEL32.DLL_TerminateThread
cmp dword [0x66bf30], 0
je 0x43f2aa
mov eax, dword [0x66bf30]
push eax
call sub.KERNEL32.DLL_LocalFree
xor eax, eax
mov dword [0x66bf30], eax
mov eax, dword [0x66bf14]
push eax
call sub.KERNEL32.DLL_CloseHandle_1
push 0
push 0
push 0
xor ecx, ecx
xor edx, edx
mov eax, dword [0x66bf10]
call fcn.004371b8
xor eax, eax
mov dword [0x66bf14], eax
xor eax, eax
mov dword [0x66bf10], eax
xor eax, eax
mov dword [0x66bf18], eax
pop ebx
ret
Function at 0x44724c
Capabilities:
Resolve dns

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, esi
call fcn.0040652c
mov edi, eax
push edi
call sub.wsock32.dll_inet_addr
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x447278
push edi
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x447278
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ebx, dword [eax]
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x448e74
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
or dword [ebp + 0xc], 0xc11c
cmp byte [0x66b5b4], 0
je 0x448e9a
or dword [ebp + 0xc], 0x80000
push 1
xor eax, eax
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
push eax
push 1
xor eax, eax
mov dword [ebp - 0x34], eax
xor eax, eax
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x34]
push eax
push 1
mov dword [ebp - 0x3c], 2
mov dword [ebp - 0x38], 0x11
lea eax, [ebp - 0x3c]
push eax
push 1
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00448e0c
push 0
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0
mov eax, dword [ebp + 8]
push eax
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push eax
push esi
lea eax, [ebx + 0x44]
push eax
mov eax, dword [ebx + 8]
call dword [eax + 0x18]
mov esi, eax
mov eax, esi
call fcn.00434b48
test al, al
jne 0x448f1a
cmp esi, 0x80090318
jne 0x448f22
test edi, edi
je 0x448f22
mov byte [ebx + 0x5c], 1
mov edi, dword [ebp - 0x1c]
test edi, edi
je 0x448f52
cmp dword [ebp - 0x24], 0
je 0x448f52
push 0
mov eax, dword [ebp - 0x24]
push eax
push edi
mov eax, dword [ebx + 0x50]
push eax
call sub.wsock32.dll_send
test eax, eax
jg 0x448f48
mov esi, 0x80090304
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebx + 8]
call dword [eax + 0x40]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x448f66
cmp dword [ebp - 0x18], 0
je 0x448f66
push eax
mov eax, dword [ebx + 8]
call dword [eax + 0x40]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x448f74
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffeac
mov edi, edx
mov ebx, eax
mov byte [esp], 0
xor esi, esi
xor eax, eax
mov dword [esp + 8], eax
test edi, edi
je 0x448ff9
mov dword [esp + 0x38], 1
mov eax, dword [ebx + 0x50]
mov dword [esp + 0x3c], eax
mov eax, dword [0x66b5d4]
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push eax
push 0
push 0
lea eax, [esp + 0x44]
push eax
push 0
call sub.wsock32.dll_select
test eax, eax
jle 0x449133
push 0
mov eax, dword [ebx + 0x74]
sub eax, esi
push eax
mov eax, dword [ebx + 0x78]
add eax, esi
push eax
mov eax, dword [ebx + 0x50]
push eax
call sub.wsock32.dll_recv
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
jle 0x449133
mov eax, dword [esp + 4]
add esi, eax
test esi, esi
sete al
neg al
sbb edi, edi
push 1
mov eax, dword [ebx + 0x78]
mov dword [esp + 0x140], eax
xor eax, eax
mov dword [esp + 0x144], eax
lea eax, [esp + 0x140]
push eax
push 1
mov dword [esp + 0x150], esi
xor eax, eax
mov dword [esp + 0x154], eax
lea eax, [esp + 0x150]
push eax
push 1
mov dword [esp + 0x160], 2
xor eax, eax
mov dword [esp + 0x164], eax
lea eax, [esp + 0x160]
push eax
push 1
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x30]
mov eax, ebx
call fcn.00448e0c
push 0
mov eax, dword [esp + 0xc]
push eax
lea eax, [esp + 0x1c]
push eax
lea edx, [ebx + 0x54]
xor ecx, ecx
mov eax, ebx
call fcn.00448e74
mov ebp, eax
sub ebp, 0x80090318
je 0x44912b
sub ebp, 0x7ff6fce8
je 0x4490a8
sub ebp, 0x90312
je 0x4490f0
sub ebp, 0xe
je 0x44911c
jmp 0x449133
cmp dword [esp + 0x30], 5
jne 0x4490ea
mov eax, dword [esp + 0x2c]
push eax
push 0x40
call sub.KERNEL32.DLL_LocalAlloc_1
mov dword [ebx + 0x84], eax
mov edx, dword [ebx + 0x84]
mov eax, dword [ebx + 0x78]
add eax, esi
sub eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x2c]
call fcn.00403424
mov eax, dword [esp + 0x2c]
mov dword [ebx + 0x7c], eax
mov dword [ebx + 0x80], 2
mov byte [esp], 1
jmp 0x449133
cmp dword [esp + 0x30], 5
jne 0x449115
mov edx, dword [ebx + 0x78]
mov eax, dword [ebx + 0x78]
add eax, esi
sub eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x2c]
call fcn.00403424
mov esi, dword [esp + 0x2c]
jmp 0x448f8e
xor esi, esi
jmp 0x448f8e
or dword [esp + 8], 0x80
xor edi, edi
jmp 0x448f8e
or edi, 0xffffffff
jmp 0x448f8e
movzx eax, byte [esp]
add esp, 0x154
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x449144
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff84
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.0040651c
xor eax, eax
push ebp
push 0x4492c1
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 1
mov eax, dword [ebp - 4]
call fcn.0040652c
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
xor edx, edx
call fcn.00406080
call fcn.00406204
mov edi, eax
mov dword [ebp - 0x10], 0x400
cmp dword [ebx + 8], 0
je 0x44929d
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebx + 0x68]
jbe 0x44929d
mov eax, dword [ebx + 0x68]
mov dword [ebp - 0x10], eax
jmp 0x44929d
cmp edi, dword [ebp - 0x10]
jbe 0x4491ba
mov esi, dword [ebp - 0x10]
jmp 0x4491bc
mov esi, edi
cmp dword [ebx + 8], 0
je 0x449282
mov edx, dword [ebx + 0x78]
add edx, dword [ebx + 0x60]
mov eax, dword [ebp - 0xc]
mov ecx, esi
call fcn.00403424
push 3
mov eax, dword [ebx + 0x78]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebx + 0x78]
add eax, dword [ebx + 0x60]
mov dword [ebp - 0x58], eax
mov eax, dword [ebx + 0x78]
add eax, dword [ebx + 0x60]
add eax, esi
mov dword [ebp - 0x54], eax
xor eax, eax
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x5c]
push eax
push 3
mov eax, dword [ebx + 0x60]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], esi
mov eax, dword [ebx + 0x64]
mov dword [ebp - 0x64], eax
xor eax, eax
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x6c]
push eax
push 3
mov dword [ebp - 0x7c], 7
mov dword [ebp - 0x78], 1
mov dword [ebp - 0x74], 6
xor eax, eax
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x7c]
push eax
push 3
lea ecx, [ebp - 0x4c]
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.00448e0c
push 0
lea eax, [ebp - 0x1c]
push eax
push 0
lea eax, [ebx + 0x54]
push eax
mov eax, dword [ebx + 8]
call dword [eax + 0x64]
test eax, eax
jne 0x449277
push 0
mov eax, dword [ebp - 0x4c]
add eax, dword [ebp - 0x40]
add eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebx + 0x78]
push eax
mov eax, dword [ebx + 0x50]
push eax
call sub.wsock32.dll_send
test eax, eax
jg 0x44927b
xor eax, eax
jmp 0x44927d
mov al, 1
mov byte [ebp - 5], al
jmp 0x449298
push 0
push esi
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebx + 0x50]
push eax
call sub.wsock32.dll_send
test eax, eax
setg byte [ebp - 5]
add dword [ebp - 0xc], esi
sub edi, esi
cmp byte [ebp - 5], 0
je 0x4492ab
test edi, edi
ja 0x4491b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4492c8
lea eax, [ebp - 4]
call fcn.00405e70
ret
Function at 0x44a034
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdcc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov edi, eax
mov ebx, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x44a29b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_SetFilePointer_1
movzx eax, byte [edi + 0x8f]
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x44a257
cmp byte [0x66b5bc], 0
jne 0x44a0bf
mov eax, ebx
call fcn.00436ebc
test al, al
je 0x44a0fc
push 0x44a2bc
lea edx, [ebp - 0x220]
mov eax, ebx
call fcn.0040f6c8
mov eax, dword [ebp - 0x220]
lea edx, [ebp - 0x21c]
call fcn.0041c790
push dword [ebp - 0x21c]
push 0x44a2d4
lea eax, [ebp - 4]
mov edx, 3
call fcn.00406380
jmp 0x44a10b
lea eax, [ebp - 4]
mov edx, ebx
mov ecx, 0
call fcn.00407120
push 0x44a2e4
lea eax, [ebp - 0x228]
mov edx, dword [0x66bfa0]
mov ecx, 0
call fcn.00406124
push dword [ebp - 0x228]
push 0x44a2f4
push 0x44a304
lea edx, [ebp - 0x230]
mov eax, ebx
call fcn.00447c94
mov edx, dword [ebp - 0x230]
lea eax, [ebp - 0x22c]
mov ecx, 0
call fcn.00407120
push dword [ebp - 0x22c]
push 0x44a320
push dword [ebp - 4]
push 0x44a338
push 0x44a2f4
push 0x44a348
push 0x44a2f4
push 0x44a378
push dword [ebp - 4]
push 0x44a338
push 0x44a2f4
push 0x44a2f4
lea eax, [ebp - 0x224]
mov edx, 0x10
call fcn.00406380
mov edx, dword [ebp - 0x224]
mov eax, edi
call fcn.00449144
mov esi, dword [ebp - 0xc]
test esi, esi
jbe 0x44a257
cmp esi, 0xff
jbe 0x44a1c9
mov ebx, 0xff
jmp 0x44a1cb
mov ebx, esi
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 0x215]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_ReadFile_1
test eax, eax
je 0x44a1eb
cmp ebx, dword [ebp - 0x14]
je 0x44a1fd
mov edx, 0x44a2f4
mov eax, edi
call fcn.00449144
mov byte [ebp - 0xd], 0
jmp 0x44a257
lea ecx, [ebp - 0x234]
lea eax, [ebp - 0x215]
mov edx, ebx
call fcn.0041c658
lea eax, [ebp - 0x234]
mov edx, 0x44a2f4
call fcn.00406238
mov edx, dword [ebp - 0x234]
mov eax, edi
call fcn.00449144
sub esi, ebx
cmp dword [ebp + 8], 0
je 0x44a24f
mov eax, dword [ebp - 0xc]
sub eax, esi
imul eax, eax, 0x3e8
xor edx, edx
div dword [ebp - 0xc]
mov edx, eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call dword [ecx + 0x18]
test esi, esi
ja 0x44a1ba
mov eax, dword [ebp + 8]
mov edx, dword [eax]
call dword [edx + 0x24]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44a2a2
lea eax, [ebp - 0x234]
call fcn.00405e70
lea eax, [ebp - 0x230]
call fcn.00406ecc
lea eax, [ebp - 0x22c]
mov edx, 5
call fcn.00405e94
lea eax, [ebp - 4]
call fcn.00405e70
ret
Function at 0x44c460
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x44c587
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
push 0
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_SetFilePointer_1
mov esi, dword [ebp - 0xc]
cmp byte [ebp + 8], 0
je 0x44c4aa
mov dword [ebp - 0x10], 0x600
jmp 0x44c4b1
mov dword [ebp - 0x10], 0x800
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, dword [ebp - 0x10]
call fcn.00406810
test esi, esi
jbe 0x44c569
cmp esi, dword [ebp - 0x10]
jae 0x44c4d7
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, esi
call fcn.00406810
push 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
xor edx, edx
call fcn.00406080
call fcn.00406204
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_ReadFile_1
test eax, eax
je 0x44c512
lea eax, [ebp - 4]
xor edx, edx
call fcn.00406080
call fcn.00406204
cmp eax, dword [ebp - 0x14]
je 0x44c516
xor ebx, ebx
jmp 0x44c569
cmp byte [ebp + 8], 0
je 0x44c535
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0041c790
mov edx, dword [ebp - 0x18]
mov eax, edi
call fcn.0044b7a4
mov ebx, eax
jmp 0x44c541
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.0044b7a4
mov ebx, eax
test bl, bl
je 0x44c569
sub esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
sub eax, esi
imul eax, eax, 0x3e8
xor edx, edx
div dword [ebp - 0xc]
mov edx, eax
mov eax, edi
call fcn.0044bd38
test esi, esi
ja 0x44c4c6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44c58e
lea eax, [ebp - 0x18]
call fcn.00405e70
lea eax, [ebp - 4]
call fcn.00405e70
ret
Function at 0x451d84
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406ec4
xor eax, eax
push ebp
push 0x451ed8
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040f9d8
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
call fcn.00406f30
cmp dword [ebp - 4], 0
je 0x451eae
lea eax, [ebp - 4]
call fcn.00406050
call fcn.0040718c
mov ebx, eax
lea eax, [ebp - 4]
call fcn.00406050
cmp word [eax + ebx*2 - 2], 0x5c
jne 0x451e02
lea eax, [ebp - 4]
call fcn.00406050
call fcn.0040718c
mov edx, eax
lea eax, [ebp - 4]
mov ecx, 1
call fcn.00407600
call sub.KERNEL32.DLL_GetVersion_1
test eax, 0x80000000
jne 0x451e4e
mov eax, dword [ebp - 4]
call fcn.00406f68
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x451e4a
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00451d84
pop ecx
test al, al
je 0x451e46
push 0
mov eax, dword [ebp - 4]
call fcn.00406f68
push eax
call sub.KERNEL32.DLL_CreateDirectoryW
test eax, eax
jne 0x451e4a
xor ebx, ebx
jmp 0x451eb0
mov bl, 1
jmp 0x451eb0
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
mov ecx, 0
call fcn.00407120
mov eax, dword [ebp - 0xc]
call fcn.0040652c
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x451eaa
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00451d84
pop ecx
test al, al
je 0x451ea6
push 0
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 4]
mov ecx, 0
call fcn.00407120
mov eax, dword [ebp - 0x10]
call fcn.0040652c
push eax
call sub.KERNEL32.DLL_CreateDirectoryA
test eax, eax
jne 0x451eaa
xor ebx, ebx
jmp 0x451eb0
mov bl, 1
jmp 0x451eb0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x451edf
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00405e94
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406ed4
ret
Function at 0x454950
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended
Get common file path
Read file via mapping
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd6c
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x290], ecx
mov dword [ebp - 0x294], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov byte [ebp - 9], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x454b6a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x70]
mov edx, 0x44
call fcn.0040b1c4
mov dword [ebp - 0x70], 0x44
call sub.KERNEL32.DLL_GetVersion_1
test eax, 0x80000000
jne 0x454a03
test ebx, ebx
jne 0x4549b7
call sub.KERNEL32.DLL_GetCommandLineW_1
mov edx, eax
lea eax, [ebp - 4]
call fcn.00407088
jmp 0x4549c1
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00406f30
lea eax, [ebp - 0x28a]
push eax
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryW
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x28a]
push eax
push 0
push 4
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00406f68
push eax
push 0
call sub.KERNEL32.DLL_CreateProcessW
cmp eax, 1
sbb eax, eax
inc eax
jmp 0x454a6c
test ebx, ebx
jne 0x454a1d
call sub.KERNEL32.DLL_GetCommandLineA
mov edx, eax
lea eax, [ebp - 8]
mov ecx, 0
call fcn.00406124
jmp 0x454a2c
lea eax, [ebp - 8]
mov edx, ebx
mov ecx, 0
call fcn.00407120
lea eax, [ebp - 0x28a]
push eax
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x28a]
push eax
push 0
push 4
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.0040652c
push eax
push 0
call sub.KERNEL32.DLL_CreateProcessA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x454b1d
lea edx, [ebp - 0x2c]
lea eax, [ebp - 0x18]
call fcn.004367e8
lea eax, [ebp - 0x294]
push eax
mov cl, 0x30
mov edx, 1
mov eax, dword [ebp - 0x78]
call fcn.0040e108
mov ecx, dword [ebp - 0x294]
lea eax, [ebp - 0x290]
mov edx, 0x454b84
call fcn.004062b4
mov eax, dword [ebp - 0x290]
call fcn.0040652c
push eax
push 0x58
push 0
push 4
lea eax, [ebp - 0x18]
push eax
push 0xffffffffffffffff
call sub.KERNEL32.DLL_CreateFileMappingA
mov esi, eax
push 0
push 0
push 0
push 0xf001f
push esi
call sub.KERNEL32.DLL_MapViewOfFile
mov ebx, eax
test ebx, ebx
je 0x454b14
call sub.KERNEL32.DLL_GetCurrentProcessId
mov dword [ebx], eax
push 2
push 0
push 0
lea eax, [ebx + 4]
push eax
mov eax, dword [ebp - 0x80]
push eax
push esi
call sub.KERNEL32.DLL_GetCurrentProcess
push eax
call sub.KERNEL32.DLL_DuplicateHandle
lea edx, [ebx + 8]
mov eax, 0x66b70c
mov ecx, 0x50
call fcn.00403424
mov eax, dword [ebp - 0x7c]
push eax
call sub.KERNEL32.DLL_ResumeThread
cmp byte [ebp - 9], 0
je 0x454b32
push 2
call sub.KERNEL32.DLL_GetCurrentProcess
push eax
call sub.KERNEL32.DLL_TerminateProcess
jmp 0x454b3c
mov eax, 2
call fcn.00405d84
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x454b71
lea eax, [ebp - 0x294]
mov edx, 2
call fcn.00405e94
lea eax, [ebp - 8]
call fcn.00405e70
lea eax, [ebp - 4]
call fcn.00406ecc
ret
Function at 0x45d920
Capabilities:
Create pipe
Create thread

Disassembly:
push 0
push 0
push 0x66c004
push 0x66c000
call sub.KERNEL32.DLL_CreatePipe
test eax, eax
je 0x45d978
push 0x66bff8
push 0
push 0
push 0x45d8a4
push 0
push 0
call sub.KERNEL32.DLL_CreateThread_1
mov dword [0x66bffc], eax
cmp dword [0x66bffc], 0
je 0x45d978
mov edx, 0x45d988
mov eax, dword [0x66bff8]
call fcn.00437444
push 2
mov eax, dword [0x66bffc]
push eax
call sub.KERNEL32.DLL_SetThreadPriority
ret

Function at 0x45d9cc
Capabilities:
Resume thread
Terminate thread
Write file on windows

Disassembly:
add esp, 0xffffff6c
cmp dword [0x66bff8], 0xffffffff
je 0x45dab4
mov eax, dword [0x66bffc]
push eax
call sub.KERNEL32.DLL_ResumeThread
xor eax, eax
call fcn.00437968
test al, al
jne 0x45da3c
lea eax, [esp + 4]
mov edx, 0x90
call fcn.0040b1c4
push 0
lea eax, [esp + 4]
push eax
push 0x90
lea eax, [esp + 0x10]
push eax
mov eax, dword [0x66c004]
push eax
call sub.KERNEL32.DLL_WriteFile_1
mov eax, dword [0x66c004]
push eax
call sub.KERNEL32.DLL_CloseHandle_1
push 0x1f4
mov eax, dword [0x66bffc]
push eax
call sub.KERNEL32.DLL_WaitForSingleObject
jmp 0x45da47
mov eax, dword [0x66c004]
push eax
call sub.KERNEL32.DLL_CloseHandle_1
mov eax, dword [0x66c000]
push eax
call sub.KERNEL32.DLL_CloseHandle_1
push 0x32
mov eax, dword [0x66bffc]
push eax
call sub.KERNEL32.DLL_WaitForSingleObject
test eax, eax
je 0x45da84
push 0
mov eax, dword [0x66bffc]
push eax
call sub.KERNEL32.DLL_TerminateThread
cmp dword [0x66c008], 0
je 0x45da84
mov eax, dword [0x66c008]
push eax
call sub.KERNEL32.DLL_LocalFree
xor eax, eax
mov dword [0x66c008], eax
mov eax, dword [0x66bffc]
push eax
call sub.KERNEL32.DLL_CloseHandle_1
push 0
push 0
push 0
xor ecx, ecx
xor edx, edx
mov eax, dword [0x66bff8]
call fcn.004371b8
mov dword [0x66bff8], 0xffffffff
add esp, 0x94
ret
Function at 0x45eae0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
push ebx
xor edx, edx
mov dword [ebp - 0x210], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x45eba5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
xor edx, edx
call fcn.00406edc
call sub.KERNEL32.DLL_GetVersion_1
test eax, 0x80000000
jne 0x45eb4a
push 0x104
lea eax, [ebp - 0x20a]
push eax
push 0x1001
push 0x800
call sub.KERNEL32.DLL_GetLocaleInfoW_1
test eax, eax
jle 0x45eb8c
mov eax, ebx
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.004070dc
jmp 0x45eb8c
push 0x104
lea eax, [ebp - 0x20a]
push eax
push 0x1001
push 0x800
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x45eb8c
lea eax, [ebp - 0x210]
lea edx, [ebp - 0x20a]
mov ecx, 0
call fcn.00406124
mov edx, dword [ebp - 0x210]
mov eax, ebx
call fcn.004070f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ebac
lea eax, [ebp - 0x210]
call fcn.00405e70
ret

Function at 0x45ef5c
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff98
push ebx
xor edx, edx
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x68], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x45f05a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x45f068
push 0x45f094
call sub.KERNEL32.DLL_GetModuleHandleW_2
push eax
call fcn.0040a328
test eax, eax
je 0x45efa3
mov dword [ebp - 0x60], 0x40
lea edx, [ebp - 0x60]
push edx
call eax
jmp 0x45efc9
mov dword [ebp - 0x20], 0x20
lea eax, [ebp - 0x20]
push eax
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [ebp - 0x14]
xor edx, edx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x18]
xor edx, edx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], edx
push 0
push 0x100000
mov eax, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
add eax, 0x80000
adc edx, 0
call fcn.0040805c
push edx
push eax
lea ecx, [ebp - 0x64]
mov dx, 0x30
mov eax, 1
call fcn.0040e298
push dword [ebp - 0x64]
push 0x45f0bc
push 0
push 0x100000
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0x54]
add eax, 0x80000
adc edx, 0
call fcn.0040805c
push edx
push eax
lea ecx, [ebp - 0x68]
mov dx, 0x30
mov eax, 1
call fcn.0040e298
push dword [ebp - 0x68]
push 0x45f0cc
mov eax, ebx
mov edx, 4
call fcn.00407380
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f061
lea eax, [ebp - 0x68]
mov edx, 2
call fcn.00406ed4
ret
Function at 0x45f434
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov ebx, ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x45f5a6
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
lea eax, [ebp - 4]
call fcn.00405e70
push 0x681d68
call sub.KERNEL32.DLL_EnterCriticalSection
xor eax, eax
push ebp
push 0x45f577
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 4]
mov ecx, ebx
mov edx, esi
call fcn.00405fa8
push 0
mov edx, edi
lea eax, [ebp - 8]
mov ecx, ebx
call fcn.00405fa8
lea eax, [ebp - 4]
xor edx, edx
call fcn.00406080
call fcn.00406204
cmp ebx, eax
jne 0x45f56d
lea eax, [ebp - 8]
xor edx, edx
call fcn.00406080
call fcn.00406204
cmp ebx, eax
jne 0x45f56d
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00406514
je 0x45f56d
lea eax, [ebp - 0x10]
push eax
push 0x40
push ebx
push esi
call sub.KERNEL32.DLL_VirtualProtect
test eax, eax
je 0x45f56d
mov edx, esi
mov eax, edi
mov ecx, ebx
call fcn.00403424
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x10]
push eax
push ebx
push esi
call sub.KERNEL32.DLL_VirtualProtect
mov eax, dword [0x681d80]
call fcn.004085c0
mov ebx, eax
lea eax, [ebx + 1]
push eax
mov eax, 0x681d80
mov ecx, 1
mov edx, dword [0x45f410]
call fcn.00408788
add esp, 4
mov edi, ebx
add edi, edi
mov eax, dword [0x681d80]
mov dword [eax + edi*8], esi
mov eax, dword [0x681d80]
lea eax, [eax + edi*8 + 4]
mov edx, dword [ebp - 4]
call fcn.00405ec4
mov eax, dword [0x681d80]
lea eax, [eax + edi*8 + 8]
mov edx, dword [ebp - 8]
call fcn.00405ec4
mov eax, dword [0x681d80]
mov edx, dword [ebp + 8]
mov dword [eax + edi*8 + 0xc], edx
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45f581
push 0x681d68
call sub.KERNEL32.DLL_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f5ad
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405e94
ret