joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10005700
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100ebd18
push 0x100a0be0
mov eax, dword fs:[0]
push eax
add esp, 0xffffffe8
mov eax, dword [0x100f7084]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x20], 0
cmp dword [ebp + 8], 0
jle 0x1000574c
cmp dword [ebp + 8], 0xbb8
jl 0x10005753
mov dword [ebp + 8], 0xbb8
mov byte [ebp - 0x21], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x28]
cmp eax, dword [ebp + 8]
ja 0x100057f8
lea eax, [ebp - 0x20]
push eax
push 0
push str.yb_check_tool
push 0
push str.ncalrpc
push 0
call dword [sym.imp.RPCRT4.dll_RpcStringBindingComposeW]
push 0x10172710
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.RPCRT4.dll_RpcBindingFromStringBindingW]
mov dword [ebp - 4], 0
call fcn.10005460
mov byte [ebp - 0x21], 1
mov edx, dword [ebp - 0x20]
mov dword [0x1017270c], edx
mov dword [ebp - 4], 0xfffffffe
jmp 0x100057f8
mov al, byte [ebp - 0x21]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10086b0f
mov esp, ebp
pop ebp
ret

Function at 0x10005a50
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x100f7084]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, edx
test ecx, ecx
je 0x10005ae5
push ecx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x44
lea eax, [ebp - 0x250]
push 0
push eax
call fcn.1009ee30
add esp, 0xc
mov dword [ebp - 0x250], 0x44
lea eax, [ebp - 0x260]
xorps xmm0, xmm0
movups xmmword [ebp - 0x260], xmm0
push eax
lea eax, [ebp - 0x250]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x10005af6
push dword [ebp - 0x260]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x25c]
call esi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10086b0f
mov esp, ebp
pop ebp
ret
test esi, esi
jle 0x10005b07
push esi
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x260]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x25c]
call esi
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.10086b0f
mov esp, ebp
pop ebp
ret
Function at 0x10005b30
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x100f7084]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 2
mov dword [ebp - 0x238], ecx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x10005c0f
push 0x228
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x230], 0x22c
push 0
push eax
call fcn.1009ee30
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0
je 0x10005c08
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_TerminateProcess]
nop word [eax + eax]
push dword [ebp - 0x238]
lea eax, [ebp - 0x20c]
push eax
call fcn.100ad888
add esp, 8
test eax, eax
jne 0x10005be9
call ebx
mov ecx, dword [ebp - 0x228]
cmp ecx, eax
je 0x10005be9
push ecx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x10005be9
push 0
push eax
call edi
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0
jne 0x10005bb0
pop edi
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10086b0f
mov esp, ebp
pop ebp
ret
Function at 0x100064e0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x100064fb
mov eax, 1
jmp 0x100065c8
push 8
push 1
push 0x100c9588
push 0x100c95e0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10006534
push 0
push 1
push 0x100c95f8
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10006552
push 0x20
push 1
push 0x100c9650
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10006570
push 0x28
push 1
push 0x100c96a8
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10006591
push 0
push 1
push 0x100c9728
push 0x100c9780
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x100065b8
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x100065b6
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x100065c5
mov ecx, dword [ebp - 4]
add ecx, 4
push ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x10008040
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x100f7084]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x2c], 0x3a8
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x10008081
mov dword [ebp - 0x1c], 0
jmp 0x100080f1
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0xc]
mov cl, byte [eax]
mov byte [ebp - 5], cl
add dword [ebp - 0xc], 1
cmp byte [ebp - 5], 0
jne 0x10008090
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp - 0x24]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x3fffffff
jle 0x100080c6
mov dword [ebp - 0x18], 0
jmp 0x100080eb
mov eax, dword [ebp - 0x10]
shl eax, 1
call fcn.10086e30
mov dword [ebp - 0x30], esp
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.10007fc0
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x34], eax
push 0
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x10008122
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10008122
mov dword [ebp - 0x20], 0
jmp 0x10008129
mov dword [ebp - 0x20], 1
mov eax, dword [ebp - 0x20]
lea esp, [ebp - 0x3c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10086b0f
mov esp, ebp
pop ebp
ret

Function at 0x1000e4e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
xor eax, eax
jne 0x1000e4e9
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
shl edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000e52c
mov eax, dword [ebp - 8]
jmp 0x1000e592
cmp dword [ebp - 0xc], 1
je 0x1000e53f
cmp dword [ebp - 0xc], 2
je 0x1000e53f
mov eax, 0xd
jmp 0x1000e592
cmp dword [ebp + 0xc], 0
je 0x1000e586
cmp dword [ebp - 4], 0
je 0x1000e575
mov eax, dword [ebp - 4]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x1000e56c
mov edx, dword [ebp - 4]
shr edx, 1
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + edx*2 - 2]
test ecx, ecx
je 0x1000e573
mov eax, 0xd
jmp 0x1000e592
jmp 0x1000e586
mov edx, 2
imul eax, edx, 0
xor ecx, ecx
mov edx, dword [ebp + 0xc]
mov word [edx + eax], cx
mov eax, dword [ebp - 4]
shr eax, 1
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000f650
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov dword [ebp - 8], 0
mov byte [ebp - 1], 0
lea ecx, [ebp - 8]
push ecx
push 0
push 0
push 0x8003
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1000f68c
jmp 0x1000f6d8
push 0
mov ecx, dword [ebp + 0xc]
call fcn.10007200
push eax
mov ecx, dword [ebp + 0xc]
call fcn.10007050
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x1000f6b0
jmp 0x1000f6d8
mov edx, dword [ebp + 0x10]
push edx
push 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x1000f6d0
jmp 0x1000f6d8
mov byte [ebp - 1], 1
xor ecx, ecx
jne 0x1000f66d
cmp dword [ebp - 8], 0
je 0x1000f6f0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test eax, eax
jne 0x1000f6f0
mov byte [ebp - 1], 0
mov dword [ebp - 8], 0
movzx eax, byte [ebp - 1]
test eax, eax
jne 0x1000f70b
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.1000f7b0
add esp, 4
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000f830
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 0xc], 1
mov byte [ebp - 1], 1
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp + 8]
push ecx
call fcn.1000f600
add esp, 8
movzx edx, al
test edx, edx
jne 0x1000f861
mov byte [ebp - 1], 0
jmp 0x1000f9a1
mov ecx, dword [ebp + 0xc]
call fcn.10007200
xor edx, edx
div dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0xc]
call fcn.10007200
xor edx, edx
div dword [ebp - 0xc]
test edx, edx
je 0x1000f88b
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0xc]
call fcn.10007200
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.100070c0
mov edx, dword [eax]
mov dword [ebp - 0x24], edx
push 0
mov eax, dword [ebp - 0xc]
imul eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
lea edx, [ebp - 0x30]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.1000faa0
mov eax, 0x3e8
xor edx, edx
div dword [ebp - 0xc]
mov eax, 0x3e8
sub eax, edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 8], 0
jmp 0x1000f8f1
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0x10]
mov dword [ebp - 8], ecx
cmp dword [ebp - 0x14], 0
jne 0x1000f98d
mov edx, dword [ebp - 0x1c]
sub edx, dword [ebp - 8]
cmp edx, dword [ebp - 0x10]
jg 0x1000f916
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 1
movzx ecx, byte [ebp + 0x10]
test ecx, ecx
je 0x1000f951
mov ecx, dword [ebp + 0xc]
call fcn.10007200
sub eax, dword [ebp - 8]
push eax
lea edx, [ebp - 0x10]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.10007050
add eax, dword [ebp - 8]
push eax
push 0
mov eax, dword [ebp - 0x14]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov dword [ebp - 0x20], eax
jmp 0x1000f976
lea edx, [ebp - 0x10]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.10007050
add eax, dword [ebp - 8]
push eax
push 0
mov eax, dword [ebp - 0x14]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x28], edx
cmp dword [ebp - 0x28], 0
jne 0x1000f988
mov byte [ebp - 1], 0
jmp 0x1000f98d
jmp 0x1000f8e8
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.1000feb0
xor ecx, ecx
jne 0x1000f841
lea edx, [ebp + 8]
push edx
call fcn.1000f7b0
add esp, 4
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret

Function at 0x10010200
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0x67452301
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], 0xefcdab89
mov edx, dword [ebp + 8]
mov dword [edx + 0x10], 0x98badcfe
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0x10325476
mov ecx, dword [ebp + 8]
mov dword [ecx], 0
mov edx, dword [ebp + 8]
mov dword [edx + 4], 0
pop ebp
ret
Function at 0x100119d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c0d8b
mov eax, dword fs:[0]
push eax
sub esp, 0x2d0
mov eax, dword [0x100f7084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2dc], 0
lea eax, [ebp - 0x2d0]
push eax
call fcn.10010200
add esp, 4
mov dword [ebp - 0x2d8], 0
mov ecx, dword [ebp + 0xc]
push ecx
push 0x200
push 1
lea edx, [ebp - 0x220]
push edx
call fcn.100aa782
add esp, 0x10
mov dword [ebp - 0x2d8], eax
cmp dword [ebp - 0x2d8], 0
jbe 0x10011a66
mov eax, dword [ebp - 0x2d8]
push eax
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x2d0]
push edx
call fcn.10010240
add esp, 0xc
jmp 0x10011a1e
lea eax, [ebp - 0x2d0]
push eax
lea ecx, [ebp - 0x20]
push ecx
call fcn.1000ff20
add esp, 8
lea ecx, [ebp - 0x238]
call fcn.10005e50
mov dword [ebp - 4], 0
mov dword [ebp - 0x2d4], 0
jmp 0x10011aa6
mov edx, dword [ebp - 0x2d4]
add edx, 1
mov dword [ebp - 0x2d4], edx
cmp dword [ebp - 0x2d4], 0x10
jae 0x10011afa
mov eax, dword [ebp - 0x2d4]
movzx ecx, byte [ebp + eax - 0x20]
sar ecx, 4
push ecx
call fcn.10011990
add esp, 4
movzx edx, al
push edx
lea ecx, [ebp - 0x238]
call fcn.1000fc20
mov eax, dword [ebp - 0x2d4]
movzx ecx, byte [ebp + eax - 0x20]
push ecx
call fcn.10011990
add esp, 4
movzx edx, al
push edx
lea ecx, [ebp - 0x238]
call fcn.1000fc20
jmp 0x10011a97
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp + 8]
call fcn.10005d60
mov ecx, dword [ebp - 0x2dc]
or ecx, 1
mov dword [ebp - 0x2dc], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
call fcn.10005f30
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10086b0f
mov esp, ebp
pop ebp
ret
Function at 0x100290b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c23a8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x100f7084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x38], 0
je 0x100290f0
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x100290fc
mov al, 1
jmp 0x1002929f
mov dword [ebp - 0x48], 8
call fcn.1004c900
push eax
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x3c], eax
call fcn.1004c900
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.10021db0
add esp, 8
movzx eax, al
test eax, eax
je 0x1002913f
xor al, al
jmp 0x1002929f
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.10015560
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x4c]
push edx
lea ecx, [ebp - 0x28]
call fcn.10006fe0
mov ecx, eax
call fcn.100636a0
mov esi, eax
lea ecx, [ebp - 0x28]
call fcn.10007200
add esi, eax
push esi
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x28]
call fcn.10006fe0
mov ecx, eax
call fcn.100636a0
push eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0x40
push ecx
mov edx, dword [ebp - 0x2c]
mov ecx, dword [edx + 0x38]
call fcn.1002a760
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x100291ba
cmp dword [ebp - 0x38], 1
je 0x100291c1
cmp dword [ebp - 0x38], 3
je 0x1002925b
jmp 0x10029273
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0x3d], 0
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x28]
call fcn.10006fe0
mov ecx, eax
call fcn.100636a0
mov edx, dword [ebp - 0x44]
sub edx, eax
mov dword [ebp - 0x34], edx
je 0x10029224
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x34]
push edx
push 1
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x28]
call fcn.10006fe0
mov ecx, eax
call fcn.100636a0
push eax
call fcn.100ac770
add esp, 0x10
cmp dword [ebp - 0x34], eax
je 0x10029224
mov byte [ebp - 0x2d], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10005f30
mov al, byte [ebp - 0x2d]
jmp 0x1002929f
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x10029247
mov byte [ebp - 0x2e], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10005f30
mov al, byte [ebp - 0x2e]
jmp 0x1002929f
cmp dword [ebp - 0x34], 0
jne 0x10029259
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.1000f3b0
jmp 0x1002928b
mov byte [ebp - 0x2f], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10005f30
mov al, byte [ebp - 0x2f]
jmp 0x1002929f
mov byte [ebp - 0x30], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10005f30
mov al, byte [ebp - 0x30]
jmp 0x1002929f
jmp 0x10029152
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10086b0f
mov esp, ebp
pop ebp
ret
Function at 0x1002aff0
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], ecx
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [eax + 4], ecx
cmp dword [ebp - 8], 0xffffffff
jne 0x1002b01e
xor eax, eax
jmp 0x1002b0c8
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
jne 0x1002b06d
mov ecx, dword [ebp - 4]
cmp dword [ecx + 4], 0xffffffff
je 0x1002b069
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov edx, dword [ebp - 4]
mov dword [edx + 4], 0xffffffff
xor eax, eax
jmp 0x1002b0c8
push 1
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
push 0x101715e4
push 0x10f
call fcn.10086b06
add esp, 8
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov dword [ecx + 0x10], edx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
jne 0x1002b0b6
mov ecx, dword [ebp - 4]
call fcn.1002b800
xor eax, eax
jmp 0x1002b0c8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [ebp - 4]
mov word [ecx + 0xc], ax
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x1002bc40
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx eax, word [ebp + 0x10]
cmp eax, 2
jne 0x1002bc58
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov dword [ebp - 4], ecx
jmp 0x1002bc61
mov edx, dword [ebp + 0xc]
add edx, 8
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
call fcn.10007050
push eax
movzx ecx, word [ebp + 0x10]
push ecx
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x1002bc81
xor al, al
jmp 0x1002bc8d
mov edx, dword [ebp + 0xc]
mov ax, word [ebp + 0x10]
mov word [edx], ax
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x10037510
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x860
mov eax, dword [0x100f7084]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x860], 0x44
push 0x40
push 0
lea eax, [ebp - 0x85c]
push eax
call fcn.1009ee30
add esp, 0xc
mov dword [ebp - 0x818], 0
xor ecx, ecx
mov dword [ebp - 0x814], ecx
mov dword [ebp - 0x810], ecx
mov dword [ebp - 0x80c], ecx
mov dword [ebp - 0x834], 1
mov edx, 1
mov word [ebp - 0x830], dx
xor eax, eax
mov word [ebp - 0x804], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x802]
push ecx
call fcn.1009ee30
add esp, 0xc
lea ecx, [ebp + 8]
call fcn.10049c40
push eax
push 0x100cde00
push 0x400
lea edx, [ebp - 0x804]
push edx
call fcn.1003c450
add esp, 0x10
lea eax, [ebp - 0x818]
push eax
lea ecx, [ebp - 0x860]
push ecx
push 0
push 0
push 0x8000000
push 0
push 0
push 0
lea edx, [ebp - 0x804]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x81c], eax
cmp dword [ebp - 0x818], 0
jne 0x10037607
mov byte [ebp - 0x805], 0
lea ecx, [ebp + 8]
call fcn.1000c290
mov al, byte [ebp - 0x805]
jmp 0x1003764d
cmp dword [ebp + 0x20], 0
je 0x1003761e
mov eax, dword [ebp + 0x20]
push eax
mov ecx, dword [ebp - 0x818]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x818]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x814]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x806], 1
lea ecx, [ebp + 8]
call fcn.1000c290
mov al, byte [ebp - 0x806]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10086b0f
mov esp, ebp
pop ebp
ret
Function at 0x10037660
Capabilities:
Get local ipv4 addresses

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov byte [ebp - 1], 0
push 0x288
call fcn.100aade3
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10037687
xor al, al
jmp 0x10037738
mov dword [ebp - 0x10], 0x288
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x100376c5
mov edx, dword [ebp - 8]
push edx
call fcn.100a2ae1
add esp, 4
mov eax, dword [ebp - 0x10]
push eax
call fcn.100aade3
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x100376c5
xor al, al
jmp 0x10037738
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
call sub.IPHLPAPI.DLL_GetAdaptersInfo
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x10037723
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x10037723
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
add edx, 0x1b0
push edx
call fcn.10035e90
add esp, 8
movzx eax, al
test eax, eax
je 0x10037719
mov ecx, dword [ebp - 0xc]
add ecx, 8
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.10007f70
mov byte [ebp - 1], 1
jmp 0x10037723
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
mov dword [ebp - 0xc], eax
jmp 0x100376e1
cmp dword [ebp - 8], 0
je 0x10037735
mov ecx, dword [ebp - 8]
push ecx
call fcn.100a2ae1
add esp, 4
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret