joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3000b96c
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, dword [0x30024c10]
add eax, 0xf3c
push eax
push 0x30024120
call fcn.3000b546
mov eax, dword [0x30024c10]
test byte [eax + 0x28], 1
je 0x3000b991
jmp fcn.3000b783
add eax, 0x1040
push eax
push 0x30024138
call fcn.3000b546
ret

Function at 0x3000bff4
Capabilities:
Create process on windows
Create process suspended
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
push edi
push 0x10
pop ecx
xor eax, eax
lea edi, [ebp - 0x64]
mov dword [ebp - 0x68], 0x44
rep stosd dword es:[edi], eax
xor esi, esi
lea edi, [ebp - 0x20]
mov dword [ebp - 0x24], esi
cmp dword [0x300283c8], esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x14], esi
stosd dword es:[edi], eax
je 0x3000c047
mov edi, dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
push esi
mov ebx, 0x300015dc
push esi
push ebx
call edi
mov dword [ebp - 0xc], eax
add eax, eax
push eax
lea eax, [ebp - 8]
push eax
call fcn.3001e1c4
test eax, eax
jne 0x3000c04e
xor eax, eax
jmp 0x3000c14c
push dword [ebp - 0xc]
push dword [ebp - 8]
push ebx
call edi
push esi
push esi
push 0xffffffffffffffff
mov ebx, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push dword [ebp + 8]
push esi
push dword [0x300283a4]
call ebx
push 0x3000164c
mov dword [ebp - 0x10], eax
call fcn.3001f42f
push 0x3000163c
mov edi, eax
call fcn.3001f42f
mov ecx, dword [ebp - 0x10]
add ecx, edi
add eax, ecx
mov ecx, dword [ebp - 0xc]
lea eax, [eax + ecx + 4]
lea edi, [eax + eax]
lea eax, [ebp - 4]
push edi
push eax
call fcn.3001e1c4
test eax, eax
je 0x3000c141
mov ecx, edi
mov edi, dword [ebp - 4]
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0x3000163c
and ecx, 3
rep stosb byte es:[edi], al
push dword [ebp - 8]
push 0x3000bfe4
push dword [ebp - 4]
call dword [sym.imp.USER32.DLL_wsprintfW]
add esp, 0x10
push dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.3001f42f
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax*2]
push eax
push 0xffffffffffffffff
push dword [ebp + 8]
push esi
push dword [0x300283a4]
call ebx
push dword [ebp - 4]
push 0x3000164c
call fcn.3001f4bc
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x68]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
je 0x3000c139
push dword [ebp - 0x24]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [ebp - 0x14], 1
call esi
push dword [ebp - 0x20]
call esi
push dword [ebp - 4]
call fcn.3001e2c6
push dword [ebp - 8]
call fcn.3001e2c6
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x3000e9d6
Capabilities:
Get common file path
Query or enumerate registry value
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push edi
lea eax, [ebp - 0x10c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
mov edi, dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableA]
test eax, eax
je 0x3000ea0b
lea eax, [ebp - 0x10c]
push eax
push 0x3000e934
call edi
push 0x3000e940
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA_1]
xor ebx, ebx
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x3000eac4
push esi
push 0x3000e950
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress_1]
mov esi, eax
cmp esi, ebx
je 0x3000eaba
lea eax, [ebp - 0x10c]
push eax
push ebx
push ebx
push 0x26
push ebx
call esi
test eax, eax
jne 0x3000ea5a
lea eax, [ebp - 0x10c]
push eax
push 0x3000e964
call edi
lea eax, [ebp - 0x10c]
push eax
push ebx
push ebx
push 0x2b
push ebx
call esi
test eax, eax
jne 0x3000ea7a
lea eax, [ebp - 0x10c]
push eax
push 0x3000e970
call edi
lea eax, [ebp - 0x10c]
push eax
push ebx
push ebx
push 0x1a
push ebx
call esi
test eax, eax
jne 0x3000ea9a
lea eax, [ebp - 0x10c]
push eax
push 0x3000e97c
call edi
lea eax, [ebp - 0x10c]
push eax
push ebx
push ebx
push 5
push ebx
call esi
test eax, eax
jne 0x3000eaba
lea eax, [ebp - 0x10c]
push eax
push 0x3000e984
call edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
pop esi
lea eax, [ebp - 8]
push eax
push 0x20019
push ebx
push 0x3000e990
push reloc.OLEAUT32.DLL_SysReAllocString
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyExA]
test eax, eax
jne 0x3000eb48
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x104
push eax
lea eax, [ebp - 0x10c]
push eax
push ebx
push ebx
push 0x3000e9c4
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.DLL_RegQueryValueExA]
test eax, eax
jne 0x3000eb3f
lea eax, [ebp - 0x10c]
push eax
call fcn.3001f3a8
cmp byte [ebp + eax - 0x10d], 0x5c
jne 0x3000eb31
lea eax, [ebp - 0x10c]
push eax
call fcn.3001f3a8
mov byte [ebp + eax - 0x10d], bl
lea eax, [ebp - 0x10c]
push eax
push 0x3000e9cc
call edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
pop edi
pop ebx
leave
ret
Function at 0x3000f423
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
xor esi, esi
xor eax, eax
lea edi, [ebp - 0x14]
mov dword [ebp - 0x18], esi
push 0xfa0
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [0x30024c10]
mov dword [ebp - 4], esi
push dword [eax + 0x24]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp dword [0x300283c8], esi
je 0x3000f4ea
push 0x10
xor eax, eax
cmp dword [ebp + 8], esi
pop ecx
lea edi, [ebp - 0x58]
mov dword [ebp - 0x5c], 0x44
rep stosd dword es:[edi], eax
je 0x3000f4b1
push esi
push esi
push 0xffffffffffffffff
mov ebx, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push dword [ebp + 8]
push esi
push dword [0x300283a4]
call ebx
mov edi, eax
inc edi
lea eax, [edi + edi]
push eax
lea eax, [ebp - 4]
push eax
call fcn.3001e1c4
test eax, eax
je 0x3000f584
push edi
push dword [ebp - 4]
push 0xffffffffffffffff
push dword [ebp + 8]
push esi
push dword [0x300283a4]
call ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
mov eax, dword [0x30024c10]
push esi
push esi
push 0x4000000
push esi
push esi
push esi
push dword [ebp - 4]
add eax, 0xb8
push eax
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
cmp dword [ebp - 4], esi
mov edi, eax
je 0x3000f570
push dword [ebp - 4]
jmp 0x3000f56b
push 0x10
xor eax, eax
pop ecx
lea edi, [ebp - 0x58]
mov dword [ebp - 0x5c], 0x44
push esi
rep stosd dword es:[edi], eax
mov eax, dword [0x30024c10]
push esi
mov ebx, dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
push esi
push esi
add eax, 0xb8
push 0xffffffffffffffff
push eax
push esi
push dword [0x300283a4]
call ebx
mov edi, eax
lea eax, [ebp - 8]
inc edi
push edi
push eax
call fcn.3001e1c4
test eax, eax
je 0x3000f584
mov eax, dword [0x30024c10]
push esi
push esi
push edi
push dword [ebp - 8]
add eax, 0xb8
push 0xffffffffffffffff
push eax
push esi
push dword [0x300283a4]
call ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push esi
push esi
push 0x4000000
push esi
push esi
push esi
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
push dword [ebp - 8]
mov edi, eax
call fcn.3001e2c6
cmp edi, esi
je 0x3000f584
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call esi
push dword [ebp - 0x18]
call esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x3001f3a8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
test eax, 3
je 0x3001f3dc
cmp byte [eax], 0
je 0x3001f420
lea eax, [eax + 1]
test eax, 3
je 0x3001f3dc
cmp byte [eax], 0
je 0x3001f420
lea eax, [eax + 1]
test eax, 3
je 0x3001f3dc
cmp byte [eax], 0
je 0x3001f420
lea eax, [eax + 1]
mov edx, dword [eax]
lea eax, [eax + 4]
mov ecx, edx
sub edx, 0x1010101
xor edx, ecx
and edx, 0x80808080
je 0x3001f3dc
test cl, cl
lea eax, [eax - 4]
je 0x3001f420
test ecx, 0xff00
lea eax, [eax + 1]
je 0x3001f420
test ecx, 0xff0000
lea eax, [eax + 1]
je 0x3001f420
test ecx, 0xff000000
lea eax, [eax + 1]
je 0x3001f420
lea eax, [eax + 1]
jmp 0x3001f3dc
sub eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x3001f42f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
test eax, 3
je 0x3001f456
cmp word [eax], 0
je 0x3001f44f
lea eax, [eax + 2]
test eax, 3
je 0x3001f456
jmp 0x3001f43d
sub eax, dword [ebp + 8]
shr eax, 1
jmp 0x3001f491
mov edx, dword [eax]
lea eax, [eax + 4]
mov ecx, edx
sub edx, 0x10001
xor edx, ecx
and edx, 0x80008000
je 0x3001f456
sub eax, dword [ebp + 8]
shr eax, 1
test cx, cx
lea eax, [eax - 2]
je 0x3001f491
test ecx, 0xffff0000
lea eax, [eax + 1]
je 0x3001f491
lea eax, [eax*2 + 2]
add eax, dword [ebp + 8]
jmp 0x3001f456
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x3002138d
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
mov esi, ecx
cmp si, 0xffff
push edi
mov dword [ebp - 4], edx
je 0x30021402
test si, 0x3ff
je 0x30021402
push dword [ebp + 8]
call fcn.30021317
test eax, eax
jne 0x3002140b
movzx edi, si
mov esi, dword [sym.imp.KERNEL32.DLL_GetLocaleInfoA]
push eax
push eax
push 0x58
push edi
call esi
test eax, eax
je 0x3002140b
lea eax, [ebp - 0x24]
push 0x20
push eax
push 0x58
push edi
call esi
and dword [ebp - 0x10], 0
lea edx, [ebp - 0x44]
push 3
lea ecx, [ebp - 0x14]
call fcn.3002128d
test eax, eax
je 0x300213fa
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x44]
mov byte [ecx], al
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x40]
mov dword [ecx], eax
jmp 0x3002140b
mov eax, dword [ebp - 4]
mov byte [eax], 1
jmp 0x30021405
mov byte [edx], 1
mov eax, dword [ebp + 8]
and dword [eax], 0
pop edi
pop esi
leave
ret 4

Function at 0x3002d000
Capabilities:
Encode data using xor

Disassembly:
push 0x2ce46e
pop ecx
push 0x3002d01a
pop esi
push 0x6c4
pop edi
xor dword [esi + edi], ecx
dec edi
sub edi, 3
jne 0x3002d012
nop
nop
nop
xchg byte [ecx - 0x1b91ffd3], bl
sub al, 0
outsb dx, byte [esi]
in al, 0x2c
xor byte [edx - 0x6a], ah
sub al, 0
into
xchg ecx, eax
add byte cs:[esi + 0x63], ch
add byte cs:[esi + 0x54], ch
add byte cs:[esi - 0x1c], ch
sub al, 0
out 0xf4, al
sub al, 0x30
or ch, 0x2e
xor byte [esi + ecx*8 + 0x2e], ch
xor byte [ebp - 0x3f], ah
add byte cs:[edx + 0x6e002ecd], al
into
add dh, ah
hlt
Function at 0x40465e
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40469d
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40469d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40469d
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40469d
cmp dword [ecx + 0x74], 0xe
jbe 0x40469d
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10001000
Capabilities:
Accept command line arguments
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x100010ed
mov eax, 0x94
call fcn.10001f50
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x10001162
mov ecx, dword [esi + 0x10]
mov dword [0x10008918], ecx
mov eax, dword [esi + 4]
mov dword [0x10008924], eax
mov edx, dword [esi + 8]
mov dword [0x10008928], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x1000891c], esi
je 0x1000106b
or esi, 0x8000
mov dword [0x1000891c], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x10008920], eax
call fcn.10001e73
test eax, eax
pop ecx
je 0x10001162
call fcn.100015f5
test eax, eax
jne 0x10001098
call fcn.10001ec4
jmp 0x10001162
call fcn.10001dd1
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x100090d4], eax
call fcn.10001caf
mov dword [0x10008904], eax
call fcn.10001790
test eax, eax
jl 0x100010e6
call fcn.10001c0d
test eax, eax
jl 0x100010e1
call fcn.100019da
test eax, eax
jl 0x100010e1
call fcn.10001290
test eax, eax
jne 0x100010e1
inc dword [0x10008900]
jmp 0x10001173
call fcn.1000198e
call fcn.100013e8
jmp 0x1000108e
test eax, eax
jne 0x1000111d
cmp dword [0x10008900], eax
jle 0x10001162
dec dword [0x10008900]
cmp dword [0x10008954], eax
jne 0x1000110c
call fcn.100013d9
call fcn.1000198e
call fcn.100013e8
call fcn.10001ec4
jmp 0x10001173
cmp eax, 2
jne 0x10001166
push 0x88
push 1
call fcn.100016d5
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x10001162
push esi
push dword [0x10008034]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
push esi
je 0x1000115c
call fcn.10001406
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x10001173
call fcn.10001664
pop ecx
xor eax, eax
jmp 0x10001176
cmp eax, 3
jne 0x10001173
push 0
call fcn.1000148a
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc
Function at 0x100012f5
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.10002275
xor esi, esi
inc esi
cmp dword [0x10008958], esi
pop ecx
jne 0x1000131d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x10008954], esi
mov byte [0x10008950], al
jne 0x10001383
mov ecx, dword [0x100090c8]
test ecx, ecx
je 0x10001364
mov eax, dword [0x100090c4]
sub eax, 4
cmp eax, ecx
jmp 0x1000135d
mov eax, dword [eax]
test eax, eax
je 0x1000134f
call eax
mov eax, dword [0x100090c4]
sub eax, 4
cmp eax, dword [0x100090c8]
mov dword [0x100090c4], eax
jae 0x10001347
mov eax, 0x1000801c
mov esi, 0x10008020
cmp eax, esi
mov edi, eax
jae 0x10001383
mov eax, dword [edi]
test eax, eax
je 0x1000137c
call eax
add edi, 4
cmp edi, esi
jb 0x10001374
mov eax, 0x10008024
mov esi, 0x10008028
cmp eax, esi
mov edi, eax
jae 0x100013a2
mov eax, dword [edi]
test eax, eax
je 0x1000139b
call eax
add edi, 4
cmp edi, esi
jb 0x10001393
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x100013b3
push 8
call fcn.100021e1
jmp 0x100013c5
push dword [ebp + 8]
mov dword [0x10008958], 1
call fcn.1000124e
pop ecx
pop ebp
ret
Function at 0x10001f93
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x10008530]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x10008060]
je 0x10001fc0
inc eax
cmp eax, 0x12
jb 0x10001fb1
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x10008060]
jne 0x100020f4
mov eax, dword [0x1000890c]
cmp eax, 1
je 0x100020cf
cmp eax, edx
jne 0x10001ff0
cmp dword [0x10008910], 1
je 0x100020cf
cmp ecx, 0xfc
je 0x100020f4
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10002029
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.100037a0
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.100038a0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1000206b
lea eax, [ebp - 0x10c]
push eax
call fcn.100038a0
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x100064b8
push edi
call fcn.10003d70
add esp, 0x10
push edi
call fcn.100038a0
push dword [esi + 0x10008064]
mov ebx, eax
call fcn.100038a0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.10001f50
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.100037a0
push edi
push ebx
call fcn.100037b0
push 0x10006498
push ebx
call fcn.100037b0
push dword [esi + 0x10008064]
push ebx
call fcn.100037b0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.10003c6d
add esp, 0x2c
jmp 0x100020f4
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x10008064]
push dword [esi]
call fcn.100038a0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.10003ec5
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10003c6d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x10008bdc], ebx
push esi
push edi
jne 0x10003ced
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10003d28
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x10008bdc], eax
je 0x10003d28
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x10008be0], eax
call esi
cmp dword [0x10008918], 2
mov dword [0x10008be4], eax
jne 0x10003ced
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x10008bec], eax
je 0x10003ced
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x10008be8], eax
mov eax, dword [0x10008be8]
test eax, eax
je 0x10003d32
call eax
test eax, eax
je 0x10003d19
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x10008bec]
test eax, eax
je 0x10003d19
test byte [ebp - 8], 1
jne 0x10003d32
cmp dword [0x10008924], 4
jb 0x10003d2c
or byte [ebp + 0x12], 0x20
jmp 0x10003d51
xor eax, eax
jmp 0x10003d61
or byte [ebp + 0x12], 4
jmp 0x10003d51
mov eax, dword [0x10008be0]
test eax, eax
je 0x10003d51
call eax
mov ebx, eax
test ebx, ebx
je 0x10003d51
mov eax, dword [0x10008be4]
test eax, eax
je 0x10003d51
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x10008bdc]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000526e
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.10001f50
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10005303
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x10008918]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x10005303
cmp eax, 1
je 0x1000531b
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10005303
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x100052d8
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x100052ff
xor eax, eax
inc eax
jmp 0x10005337
cmp esi, ebx
jae 0x10005307
xor eax, eax
jmp 0x10005337
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x10008918]
jmp 0x1000531d
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x16081000
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x39c
mov eax, dword [0x16093054]
push esi
mov dword [esp + 0x39c], eax
push edi
lea eax, [esp + 0x210]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x1608103f
call edi
test eax, eax
je 0x160810a7
call edi
mov esi, eax
test esi, esi
jne 0x160810ac
push 0x16093044
call fcn.16082cd6
mov edx, dword [0x16093c58]
push 0x208
lea ecx, [esp + 0xc]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x16081072
call edi
test eax, eax
je 0x16081094
call edi
mov esi, eax
test esi, esi
jne 0x160810ac
mov ecx, dword [str.mdnsNSP]
push 0x16093044
push 1
push 0xc
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.16082cd0
test eax, eax
jne 0x1608109b
xor esi, esi
jmp 0x160810ac
mov esi, 0xffffe5d4
jmp 0x160810ac
call edi
test eax, eax
je 0x160810a7
call edi
mov esi, eax
jmp 0x160810ac
mov esi, 0x2726
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x3a0]
pop edi
mov eax, esi
pop esi
call fcn.16083265
add esp, 0x39c
ret

Function at 0x160810d0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x16093054]
push esi
mov dword [esp + 0x194], eax
push edi
lea eax, [esp + 8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x1608110c
call edi
test eax, eax
je 0x1608112a
call edi
mov esi, eax
test esi, esi
jne 0x1608112f
push 0x16093044
call fcn.16082cd6
test eax, eax
jne 0x1608111e
xor esi, esi
jmp 0x1608112f
call edi
test eax, eax
je 0x1608112a
call edi
mov esi, eax
jmp 0x1608112f
mov esi, 0x2726
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x198]
pop edi
mov eax, esi
pop esi
call fcn.16083265
add esp, 0x194
ret
Function at 0x160841e0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x160842d0
mov eax, 0x94
call fcn.16088840
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x16084345
mov ecx, dword [esi + 0x10]
mov dword [0x16093e68], ecx
mov eax, dword [esi + 4]
mov dword [0x16093e74], eax
mov edx, dword [esi + 8]
mov dword [0x16093e78], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x16093e6c], esi
je 0x1608424b
or esi, 0x8000
mov dword [0x16093e6c], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x16093e70], eax
call fcn.160846ba
test eax, eax
pop ecx
je 0x16084345
call fcn.1608716e
test eax, eax
jne 0x16084278
call fcn.1608470b
jmp 0x16084345
call fcn.160887b5
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x160954cc], eax
call fcn.16088693
mov dword [0x16093c88], eax
call fcn.16088174
test eax, eax
jl 0x160842c9
call fcn.160885f1
test eax, eax
jl 0x160842c4
call fcn.160883be
test eax, eax
jl 0x160842c4
push 0
call fcn.16088007
test eax, eax
pop ecx
jne 0x160842c4
inc dword [0x16093c84]
jmp 0x16084356
call fcn.16088372
call fcn.16086f4b
jmp 0x1608426e
test eax, eax
jne 0x16084300
cmp dword [0x16093c84], eax
jle 0x16084345
dec dword [0x16093c84]
cmp dword [0x16093ea4], eax
jne 0x160842ef
call fcn.16088156
call fcn.16088372
call fcn.16086f4b
call fcn.1608470b
jmp 0x16084356
cmp eax, 2
jne 0x16084349
push 0x8c
push 1
call fcn.1608402d
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x16084345
push esi
push dword [0x16093600]
call dword [0x16093e5c]
test eax, eax
push esi
je 0x1608433f
call fcn.16086f68
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x16084356
call fcn.16083273
pop ecx
xor eax, eax
jmp 0x16084359
cmp eax, 3
jne 0x16084356
push 0
call fcn.16087133
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc

Function at 0x16088071
Capabilities:
Terminate process

Disassembly:
push 8
push 0x16090860
call fcn.16084654
push 8
call fcn.160848fb
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x16093ea8], esi
jne 0x160880a5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x16093ea4], esi
mov al, byte [ebp + 0x10]
mov byte [0x16093ea0], al
cmp dword [ebp + 0xc], edi
jne 0x160880ef
cmp dword [0x16094488], edi
je 0x160880df
mov eax, dword [0x16094484]
sub eax, 4
mov dword [0x16094484], eax
cmp eax, dword [0x16094488]
jb 0x160880df
mov eax, dword [eax]
cmp eax, edi
je 0x160880c0
call eax
jmp 0x160880c0
push 0x16093028
mov eax, 0x16093020
call fcn.16087fd1
pop ecx
push 0x16093030
mov eax, 0x1609302c
call fcn.16087fd1
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x16088120
cmp dword [ebp + 0x10], edi
jne 0x1608812e
mov dword [0x16093ea8], esi
push dword [ebp + 8]
call fcn.16087f8f
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x1608812d
push 8
call fcn.1608482e
pop ecx
ret
call fcn.1608468f
ret