joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000db20
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x224
mov eax, dword [0x101170e4]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
mov ebx, dword [esp + 0x234]
lea eax, [esp + 4]
push esi
mov esi, dword [esp + 0x230]
push edi
mov edi, dword [esp + 0x238]
push esi
push eax
call fcn.100147b0
push 0x208
lea eax, [esp + 0x30]
push 0
push eax
call fcn.10088fa0
cmp dword [esp + 0x34], 8
lea eax, [esp + 0x20]
cmovae eax, dword [esp + 0x20]
push eax
push 0x100f2108
lea eax, [esp + 0x40]
push 0x104
push eax
call fcn.1000dd10
add esp, 0x24
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
cmp dword [edi + 0x14], 8
jb 0x1000dba1
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x1000dba9
mov esi, dword [esi]
push ebx
lea eax, [esp + 0x28]
push eax
push edi
push esi
push str.runas
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [esp + 0x20]
cmp eax, 0x1f
setg bl
cmp ecx, 8
jb 0x1000dbfc
mov edx, dword [esp + 0xc]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000dbf2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000dc16
push ecx
push edx
call fcn.10084de4
add esp, 8
mov ecx, dword [esp + 0x22c]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1008511a
add esp, 0x224
ret
call fcn.1008ca42
int3

Function at 0x1000dc20
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x101170e4]
xor eax, esp
mov dword [esp + 0x11c], eax
push ebx
mov ebx, dword [esp + 0x128]
lea eax, [esp + 0xc]
push esi
push edi
push eax
mov dword [esp + 0x18], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor esi, esi
cmp dword [esp + 0x18], 6
jb 0x1000dce0
push 0x100f20b8
mov dword [esp + 0x10], 8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x1000dce5
push str.ChangeWindowMessageFilterEx
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
test ecx, ecx
je 0x1000dcaf
test ebx, ebx
je 0x1000dcaf
lea eax, [esp + 0xc]
push eax
movzx eax, byte [esp + 0x13c]
xor eax, 1
inc eax
push eax
push dword [esp + 0x13c]
push ebx
call ecx
mov esi, eax
test esi, esi
jne 0x1000dcd7
push str.ChangeWindowMessageFilter
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000dcd7
movzx ecx, byte [esp + 0x138]
xor ecx, 1
inc ecx
push ecx
push dword [esp + 0x138]
call eax
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1000dce5
mov esi, 1
mov ecx, dword [esp + 0x128]
test esi, esi
pop edi
pop esi
setne al
pop ebx
xor ecx, esp
call fcn.1008511a
add esp, 0x120
ret

Function at 0x1000fb40
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 4
push eax
push dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push 0
push dword [esp + 0x18]
push dword [ecx + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000fb75
cmp dword [esp + 0xc], 4
mov ecx, 0x70c
cmovne eax, ecx
pop ecx
ret 8
Function at 0x1000fb80
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebp
push esi
lea eax, [esp + 8]
mov dword [esp + 8], 0
push eax
push 0
lea eax, [esp + 0x14]
mov ebp, ecx
push eax
push 0
push dword [esp + 0x24]
push dword [ebp + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, dword [esp + 8]
test esi, esi
jne 0x1000fbbf
pop esi
mov eax, 0x80004005
pop ebp
add esp, 8
ret 8
push ebx
push edi
lea ebx, [esi + 2]
push ebx
call fcn.1009199d
mov edi, eax
add esp, 4
test edi, edi
jne 0x1000fbe2
pop edi
pop ebx
pop esi
mov eax, 0x8007000e
pop ebp
add esp, 8
ret 8
push ebx
push 0
push edi
call fcn.10088fa0
add esp, 0xc
mov dword [esp + 0x10], esi
lea eax, [esp + 0x10]
push eax
push edi
lea eax, [esp + 0x1c]
push eax
push 0
push dword [esp + 0x2c]
push dword [ebp + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x1000fc2a
cmp dword [esp + 0x14], 1
je 0x1000fc20
mov esi, 0x70c
jmp 0x1000fc2a
mov ecx, dword [esp + 0x20]
push edi
call fcn.1000edf0
push edi
call fcn.10091982
add esp, 4
mov eax, esi
pop edi
pop ebx
pop esi
pop ebp
add esp, 8
ret 8
Function at 0x1000fd40
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x224
mov eax, dword [0x101170e4]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
mov ebx, dword [esp + 0x230]
lea eax, [esp + 0x1c]
push edi
mov edi, dword [esp + 0x230]
push 0x208
push 0
push eax
mov dword [esp + 0x1c], edi
call fcn.10088fa0
mov eax, dword [esp + 0x244]
add esp, 0xc
movzx eax, al
xor eax, 1
mov dword [esp + 8], 0
inc eax
push 0
shl eax, 8
push eax
push ebx
push edi
mov dword [esp + 0x24], eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
test eax, eax
je 0x1000ff44
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x23c]
movzx eax, al
shl eax, 8
add eax, 0x20019
push eax
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1000fdf4
cmp eax, 2
je 0x1000ff44
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.1008511a
add esp, 0x224
ret
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebx + eax*2 - 2], 0x5c
lea ebp, [ebx + eax*2]
je 0x1000fe19
mov eax, 0x5c
mov word [ebp], ax
add ebp, 2
xor eax, eax
mov word [ebp], ax
lea eax, [esp + 0x1c]
mov dword [esp + 0x10], 0x104
push eax
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x38]
push eax
push 0
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1000ff09
push esi
nop dword [eax + eax]
xor eax, eax
mov ecx, 0x208
mov word [ebp], ax
mov eax, ebx
nop dword [eax]
cmp word [eax], 0
je 0x1000fe6e
add eax, 2
sub ecx, 1
jne 0x1000fe60
mov eax, 0x208
mov esi, ecx
sub eax, ecx
neg esi
sbb esi, esi
and esi, eax
test ecx, ecx
je 0x1000fec2
mov edx, 0x208
lea ecx, [ebx + esi*2]
sub edx, esi
je 0x1000feb5
lea edi, [esp + 0x28]
mov eax, SysReAllocString
sub edi, ecx
test eax, eax
je 0x1000feb1
movzx esi, word [edi + ecx]
test si, si
je 0x1000feb1
mov word [ecx], si
dec eax
add ecx, 2
sub edx, 1
jne 0x1000fe98
mov edi, dword [esp + 0x18]
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
push dword [esp + 0x240]
push ebx
push edi
call fcn.1000fd40
add esp, 0xc
test eax, eax
je 0x1000ff08
lea eax, [esp + 0x20]
mov dword [esp + 0x14], 0x104
push eax
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x3c]
push eax
push 0
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1000fe50
pop esi
xor eax, eax
mov word [ebp - 2], ax
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push dword [esp + 0x1c]
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
neg eax
pop ebp
sbb eax, eax
pop edi
inc eax
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.1008511a
add esp, 0x224
ret
mov ecx, dword [esp + 0x228]
mov eax, 1
pop edi
pop ebx
xor ecx, esp
call fcn.1008511a
add esp, 0x224
ret

Function at 0x1000ff60
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8
Function at 0x1000ff80
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 8]
mov edx, eax
cmp dword [eax + 0x14], 8
jb 0x1000ff8e
mov edx, dword [eax]
mov eax, dword [eax + 0x10]
add eax, eax
push eax
push edx
push 1
push 0
push dword [esp + 0x14]
push dword [ecx + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x10014340
Capabilities:
Get common file path

Disassembly:
sub esp, 0x214
mov eax, dword [0x101170e4]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
mov esi, dword [esp + 0x21c]
lea eax, [esp + 0xc]
push 0x208
push 0
push eax
mov dword [esp + 0x10], esi
call fcn.10088fa0
add esp, 0xc
lea eax, [esp + 0xc]
push 0
push 0x19
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
xorps xmm0, xmm0
lea ecx, [esp + 0xc]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
lea edx, [ecx + 2]
mov dword [esi + 0x14], 0
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100143b0
sub ecx, edx
lea eax, [esp + 0xc]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.10001b50
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1008511a
add esp, 0x214
ret

Function at 0x100143f0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x214
mov eax, dword [0x101170e4]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
mov esi, dword [esp + 0x21c]
lea eax, [esp + 0xc]
push 0x208
push 0
push eax
mov dword [esp + 0x10], esi
call fcn.10088fa0
add esp, 0xc
lea eax, [esp + 0xc]
push 0
push 0x10
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
xorps xmm0, xmm0
lea ecx, [esp + 0xc]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
lea edx, [ecx + 2]
mov dword [esi + 0x14], 0
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10014460
sub ecx, edx
lea eax, [esp + 0xc]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.10001b50
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1008511a
add esp, 0x214
ret
Function at 0x100290b0
Capabilities:
Read .ini file
Reference cloudflare dns server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x101170e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x274], 0
push 0x208
push 0
lea eax, [ebp - 0x270]
push eax
call fcn.10088fa0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x270]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x270]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x270]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push str.version.dat
push 0x104
lea ecx, [ebp - 0x270]
push ecx
call fcn.1000f990
push 0x64
push 0
lea edx, [ebp - 0x68]
push edx
call fcn.10088fa0
add esp, 0xc
lea eax, [ebp - 0x270]
push eax
push 0x32
lea ecx, [ebp - 0x68]
push ecx
push str.1.0.0.1
push str.Version
push str.DeskDIY
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [ebp - 0x68]
push edx
mov ecx, dword [ebp + 8]
call fcn.1000d2b0
mov eax, dword [ebp - 0x274]
or eax, 1
mov dword [ebp - 0x274], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008511a
mov esp, ebp
pop ebp
ret
Function at 0x1002a5f0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x101170e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathMakeSystemFolderW]
test eax, eax
jne 0x1002a618
xor al, al
jmp 0x1002a6f0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1002a6ee
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1002a6ee
push 0x208
push 0
lea eax, [ebp - 0x20c]
push eax
call fcn.10088fa0
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 0x104
lea edx, [ebp - 0x20c]
push edx
call fcn.1000fa40
push str.desktop.ini
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0x208
push 0
lea edx, [ebp - 0x414]
push edx
call fcn.10088fa0
add esp, 0xc
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push str._s__d
push 0x104
lea edx, [ebp - 0x414]
push edx
call fcn.1000dd10
add esp, 0x14
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x414]
push ecx
push str.IconResource
push str..ShellClassInfo
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test eax, eax
je 0x1002a6ee
push 6
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov al, 1
jmp 0x1002a6f0
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008511a
mov esp, ebp
pop ebp
ret
Function at 0x1002abd0
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e7a91
mov eax, dword fs:[0]
push eax
sub esp, 0x47c
mov eax, dword [0x101170e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
call fcn.1000df90
movzx eax, al
test eax, eax
je 0x1002ac11
xor al, al
jmp 0x1002ae27
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x450]
push edx
call fcn.1000f370
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x438]
push ecx
call fcn.1000f370
add esp, 8
mov byte [ebp - 4], 1
push 0x208
push 0
lea edx, [ebp - 0x420]
push edx
call fcn.10088fa0
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x1002ac86
push 0x100f247c
push 0x104
lea ecx, [ebp - 0x420]
push ecx
call fcn.1000fa40
jmp 0x1002ac93
lea edx, [ebp - 0x420]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push 0x208
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.10088fa0
add esp, 0xc
call fcn.100aed40
push edx
push eax
lea ecx, [ebp - 0x420]
push ecx
push str._sxzmUpdate__lld.exe
push 0x104
lea edx, [ebp - 0x218]
push edx
call fcn.1000dd10
add esp, 0x18
push 0
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x450]
call fcn.1000b540
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x1002ad49
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x450]
call fcn.1000b540
push eax
push str.Copy__s_to__s_failed__GLE:__d
call fcn.1000b410
add esp, 0x10
mov byte [ebp - 0x452], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x438]
call fcn.10002420
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x450]
call fcn.10002420
mov al, byte [ebp - 0x452]
jmp 0x1002ae27
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x470]
call fcn.1000d2b0
mov byte [ebp - 4], 2
push 0
push 0
lea eax, [ebp - 0x438]
push eax
lea ecx, [ebp - 0x470]
push ecx
call fcn.1000d660
add esp, 0x10
mov byte [ebp - 0x451], al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x470]
call fcn.10002420
movzx edx, byte [ebp - 0x451]
test edx, edx
jne 0x1002adf4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x458], eax
cmp dword [ebp - 0x458], 0x2e4
jne 0x1002adf4
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x488]
call fcn.1000d2b0
mov byte [ebp - 4], 3
push 0xa
lea ecx, [ebp - 0x438]
push ecx
lea edx, [ebp - 0x488]
push edx
call fcn.1000db20
add esp, 0xc
mov byte [ebp - 0x451], al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x488]
call fcn.10002420
mov al, byte [ebp - 0x451]
mov byte [ebp - 0x453], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x438]
call fcn.10002420
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x450]
call fcn.10002420
mov al, byte [ebp - 0x453]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008511a
mov esp, ebp
pop ebp
ret
Function at 0x1002b000
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e7acd
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x101170e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x100f2548
mov eax, dword [ebp + 8]
push eax
push str._XZMTrace_
lea ecx, [ebp - 0x48]
push ecx
call fcn.10016970
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], edx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x30]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.10016940
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.100023d0
lea ecx, [ebp - 0x28]
call fcn.1000b530
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [ebp - 0x28]
call fcn.100023d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008511a
mov esp, ebp
pop ebp
ret
Function at 0x10030700
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e8170
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x101170e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 8
lea ecx, [ebp - 0x20]
call fcn.1002f1d0
lea ecx, [ebp - 0x20]
call fcn.10021fa0
mov ecx, dword [ebp + 0x10]
call fcn.1002fcb0
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x18]
push edx
call fcn.10037120
add esp, 0xc
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x28], esp
lea eax, [ebp - 0x18]
push eax
call fcn.10022110
call fcn.10037410
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x100307ca
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x2c], esp
lea edx, [ebp - 0x18]
push edx
call fcn.10022110
call fcn.10032c30
add esp, 8
movzx eax, al
test eax, eax
je 0x100307ca
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x30], esp
lea edx, [ebp - 0x18]
push edx
call fcn.10022110
call fcn.10034e00
add esp, 8
movzx eax, al
test eax, eax
je 0x100307ca
mov byte [ebp - 0x21], 0
lea ecx, [ebp - 0x18]
call fcn.10023520
mov al, byte [ebp - 0x21]
jmp 0x10030875
mov ecx, dword [ebp + 0xc]
call fcn.1000df90
movzx ecx, al
test ecx, ecx
jne 0x10030825
push 0
mov ecx, dword [ebp + 8]
call fcn.1002f900
push eax
mov ecx, dword [ebp + 0xc]
call fcn.1002f900
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryExW]
test eax, eax
jne 0x10030823
push 0
lea edx, [ebp - 0x38]
push edx
call fcn.10035310
add esp, 8
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov byte [ebp - 0x22], 0
lea ecx, [ebp - 0x18]
call fcn.10023520
mov al, byte [ebp - 0x22]
jmp 0x10030875
jmp 0x10030866
push 0
mov ecx, dword [ebp + 8]
call fcn.1002f900
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10030866
push 0
lea ecx, [ebp - 0x40]
push ecx
call fcn.10035310
add esp, 8
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], edx
mov dword [ecx + 4], eax
mov byte [ebp - 0x23], 0
lea ecx, [ebp - 0x18]
call fcn.10023520
mov al, byte [ebp - 0x23]
jmp 0x10030875
mov byte [ebp - 0x24], 1
lea ecx, [ebp - 0x18]
call fcn.10023520
mov al, byte [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008511a
mov esp, ebp
pop ebp
ret
Function at 0x1003c3d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e8d1d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x101170e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
push 8
lea ecx, [ebp - 0x18]
call fcn.1002f1d0
mov eax, dword [ebp - 0x1c]
add eax, 0x30
push eax
lea ecx, [ebp - 0x18]
call fcn.1000c080
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [edx + 0xc]
call eax
movzx ecx, al
test ecx, ecx
je 0x1003c44a
mov dword [ebp - 0x20], 2
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.1000c240
mov eax, dword [ebp - 0x20]
jmp 0x1003c4a7
mov edx, dword [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x2c]
call fcn.10015210
mov eax, dword [eax]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x18]
push edx
mov ecx, dword [ebp - 0x1c]
add ecx, 0x60
call fcn.10041ab0
movzx eax, al
test eax, eax
je 0x1003c48e
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.1000c240
mov eax, dword [ebp - 0x24]
jmp 0x1003c4a7
mov dword [ebp - 0x28], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.1000c240
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008511a
mov esp, ebp
pop ebp
ret 4

Function at 0x10043ac0
Capabilities:
Convert ip address from string
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x101170e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x20], ecx
mov byte [ebp - 0x15], 0
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x10043b6b
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov ecx, 2
mov word [ebp - 0x14], cx
mov edx, dword [ebp - 0x20]
movzx eax, word [edx]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
cmp dword [ebp + 8], 0
je 0x10043b2c
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
jmp 0x10043b37
push 0
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x10], eax
push 0x10
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x10043b61
push 5
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x10043b61
mov byte [ebp - 0x15], 1
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
movzx eax, byte [ebp - 0x15]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008511a
mov esp, ebp
pop ebp
ret 4
Function at 0x10050280
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ea1cd
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x101170e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
push 4
lea ecx, [ebp - 0x14]
call fcn.1002f1d0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x20]
push ecx
call fcn.1005eea0
add esp, 8
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x14]
call fcn.100158e0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.10070280
mov dword [ebp - 0x24], 0x1004fc40
mov eax, dword [ebp - 0x18]
add eax, 4
push eax
push 0
lea ecx, [ebp - 0x14]
call fcn.10024da0
push eax
mov ecx, dword [ebp - 0x24]
push ecx
push 0
push 0
call fcn.10091e83
add esp, 0x18
mov edx, dword [ebp - 0x18]
mov dword [edx], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0
je 0x10050323
lea ecx, [ebp - 0x14]
call fcn.10036390
jmp 0x10050334
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 4], 0
push 6
call fcn.10086850
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.10070280
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008511a
mov esp, ebp
pop ebp
ret 4