joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a51b
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov ebx, ecx
call fcn.00401faa
push 0xffff
call fcn.0043a88c
pop ecx
xor esi, esi
mov edi, eax
push esi
push esi
push esi
push 1
push esi
call dword [sym.imp.WININET.dll_InternetOpenW]
push esi
push connect
push esi
push esi
mov ebp, eax
push str.http:__geoplugin.net_json.gp
push ebp
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
and dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push eax
push 0xffff
push edi
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x41a5a3
push ecx
push edi
lea ecx, [esp + 0x20]
call fcn.00401f86
push eax
mov ecx, ebx
call fcn.00402f08
lea ecx, [esp + 0x18]
call fcn.00401eea
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp eax, 1
jne 0x41a5ac
test ecx, ecx
jne 0x41a55c
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebp
call esi
push edi
call fcn.0043a887
pop ecx
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x24
ret

Function at 0x41abb4
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
xor edi, edi
mov ebx, edx
test ecx, ecx
je 0x41ac4b
push edi
push edi
lea eax, [ebp - 8]
push eax
push ecx
push edi
call dword [sym.imp.urlmon.dll_URLOpenBlockingStreamW]
test eax, eax
js 0x41ac4b
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x5c]
push 1
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
test eax, eax
js 0x41ac42
mov esi, dword [ebp - 0x54]
inc esi
push esi
mov dword [ebp - 0x54], esi
call fcn.0043a88c
mov dword [ebx], eax
pop ecx
test eax, eax
je 0x41ac42
push 8
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.00436050
push esi
push edi
push dword [ebx]
call fcn.00436050
add esp, 0x18
lea eax, [esi - 1]
mov esi, dword [ebp + 8]
push edi
push edi
push dword [ebp - 0x10]
mov dword [esi], eax
mov eax, dword [ebp - 8]
push dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [ebp - 8]
push edi
push dword [esi]
push dword [ebx]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
inc edi
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41ac52
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
lea eax, [ebp - 0x200]
push esi
push 0x200
push 0
push eax
mov esi, ecx
call fcn.00436050
add esp, 0xc
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push 0x100
lea ecx, [ebp - 0x200]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x200]
mov ecx, esi
push eax
call fcn.00403b40
mov eax, esi
pop esi
leave
ret
Function at 0x4017c0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404118
push 0x402a88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x40774c], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x407748], ecx
shl ecx, 8
add ecx, edx
mov dword [0x407744], ecx
shr eax, 0x10
mov dword [0x407740], eax
call fcn.00402950
test eax, eax
jne 0x40182a
push 0x1c
call fcn.00401990
add esp, 4
mov dword [ebp - 4], 0
call fcn.00402750
call fcn.00402740
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4080b4], eax
call fcn.00402100
mov dword [0x407728], eax
test eax, eax
je 0x40185d
mov eax, dword [0x4080b4]
test eax, eax
jne 0x401867
push 0xffffffffffffffff
call fcn.004019f0
add esp, 4
call fcn.00401e50
call fcn.00401d60
call fcn.004019c0
mov esi, dword [0x4080b4]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x401946
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x4018ae
test al, al
je 0x4018ae
and eax, 0xff
push eax
call fcn.00401d00
add esp, 4
test eax, eax
je 0x401888
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401888
cmp byte [esi], 0x22
jne 0x4018b7
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x4018c7
cmp al, 0x20
ja 0x4018c7
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4018b7
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x4018e8
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x4018ed
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.004019f0
jmp 0x40192b
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x4018b7
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401946

Function at 0x401990
Capabilities:
Terminate process

Disassembly:
cmp dword [0x407730], 1
jne 0x40199e
call fcn.00402b60
mov eax, dword [esp + 4]
push eax
call fcn.00402ba0
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x401a30
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x40777c]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x401a4f
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x407778], 1
mov byte [0x407774], bl
jne 0x401aa9
mov ecx, dword [0x4080ac]
test ecx, ecx
je 0x401a97
mov esi, dword [0x4080a8]
sub esi, 4
cmp esi, ecx
jb 0x401a97
mov eax, dword [esi]
test eax, eax
je 0x401a90
call eax
mov ecx, dword [0x4080ac]
sub esi, 4
cmp esi, ecx
jae 0x401a82
push 0x405014
push 0x405010
call fcn.00401ae0
add esp, 8
push 0x40501c
push 0x405018
call fcn.00401ae0
add esp, 8
test ebx, ebx
jne 0x401ad0
push ebp
mov dword [0x40777c], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret

Function at 0x402100
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x407890]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x402142
call edi
mov esi, eax
test esi, esi
je 0x40212c
mov eax, 1
jmp 0x40213d
call ebp
mov ebx, eax
test ebx, ebx
je 0x40224f
mov eax, 2
mov dword [0x407890], eax
cmp eax, 1
jne 0x4021e2
test esi, esi
jne 0x40215b
call edi
mov esi, eax
test esi, esi
je 0x40224f
cmp word [esi], 0
mov eax, esi
je 0x402175
add eax, 2
cmp word [eax], 0
jne 0x402163
add eax, 2
cmp word [eax], 0
jne 0x402163
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x4021d4
push edi
call fcn.00403030
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4021d4
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x4021c6
push ebx
call fcn.00402fe0
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x40224f
test ebx, ebx
jne 0x4021f3
call ebp
mov ebx, eax
test ebx, ebx
je 0x40224f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x40220b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4021fb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4021fb
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00403030
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40222d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x406170
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x6009e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], 0
push 0x602d60
lea eax, [ebp - 8]
push dword [edi + 0x18]
push eax
call fcn.0058bf3b
mov eax, dword [ebp - 8]
add esp, 0xc
test eax, eax
je 0x4062c2
push 2
push 0xfffffffffffffff0
push eax
call fcn.0058885d
push dword [ebp - 8]
push 0x10
push 1
push 0x6247a0
call fcn.0058d150
add esp, 0x1c
mov ecx, 0x6247a0
mov edx, 0x6035ec
mov esi, 0xc
nop word [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4062b7
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4061e0
push 1
push 0xffffffffffffffec
push dword [ebp - 8]
call fcn.0058885d
push dword [ebp - 8]
lea eax, [ebp - 0xc]
push 4
push 1
push eax
call fcn.0058d150
add esp, 0x1c
cmp eax, 4
jne 0x4062b7
push dword [ebp - 0xc]
call dword [sym.imp.WS2_32.dll_ntohl]
mov ecx, 0xfffffffc
mov dword [ebp - 0xc], eax
push 1
sub ecx, eax
push ecx
push dword [ebp - 8]
call fcn.0058885d
mov esi, dword [ebp - 0xc]
add esp, 0xc
lea eax, [esi + 0x24]
call fcn.005851e0
mov ecx, esp
mov edx, esi
push 1
push 4
call fcn.004ae4d0
mov esi, eax
lea ecx, [esi + 4]
mov dword [esi], ecx
push dword [ebp - 8]
push dword [ebp - 0xc]
push 1
push esi
call fcn.0058d150
add esp, 0x18
cmp eax, dword [ebp - 0xc]
jne 0x4062b7
mov ecx, dword [edi + 0x18]
mov edx, 0x602d68
push 0x602d64
mov dword [ebp - 0x10], 0
call fcn.00403550
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0058bf3b
mov eax, dword [ebp - 0x10]
add esp, 0xc
test eax, eax
je 0x4062b7
push eax
push dword [ebp - 0xc]
push 1
push esi
call fcn.0058bc60
push dword [ebp - 0x10]
call fcn.00588467
add esp, 0x14
push dword [ebp - 8]
call fcn.00588467
add esp, 4
lea esp, [ebp - 0x18]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00584a28
mov esp, ebp
pop ebp
ret
Function at 0x4064d0
Capabilities:
Get hostname
Terminate process

Disassembly:
sub esp, 0x14
mov eax, dword [0x6009e4]
xor eax, esp
mov dword [esp + 0x10], eax
push esi
push edi
push 0x6f4
mov edi, ecx
call fcn.0058d200
mov esi, eax
add esp, 4
test esi, esi
je 0x4065a1
push 0x6f4
push 0
push esi
call fcn.005869c0
add esp, 0xc
mov dword [esi + 0x538], 3
mov ecx, 0xc
call fcn.004aec10
mov ecx, eax
mov dword [esi], eax
call fcn.004b5180
mov dword [esi + 0x14], eax
or edi, 0x18
push 0xff
lea eax, [esi + 0x38]
mov dword [esi + 0x34], edi
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemPowerStatus]
movzx ecx, byte [esp + 0xd]
mov eax, ecx
sub eax, 0x80
je 0x406570
sub eax, 0x7f
je 0x406564
mov dword [esi + 0x548], ecx
jmp 0x40657a
mov dword [esi + 0x548], 0
jmp 0x40657a
mov dword [esi + 0x548], 3
mov eax, dword [esi]
mov edx, 8
test eax, eax
pop edi
lea ecx, [eax + 0x328]
mov eax, esi
cmovne edx, ecx
mov ecx, dword [esp + 0x14]
mov dword [edx], esi
pop esi
xor ecx, esp
call fcn.00584a28
add esp, 0x14
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xfe
push 0x4c4
mov edx, 0x61c4e8
xor ecx, ecx
call fcn.004b47e0
add esp, 0xc
push 0x4c4
push 0x61c504
push 0x61c520
call fcn.004010e0
add esp, 0xc
push 0xfe
call fcn.00587d2d
int3
Function at 0x408510
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0x1c
push ebx
push esi
mov esi, edx
mov bl, cl
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x408595
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
movzx eax, bl
mov word [esp + 0xc], ax
xor eax, eax
mov dword [esp + 8], 1
cmp esi, 1
jne 0x40854b
mov dword [esp + 0x10], 2
jmp 0x408565
cmp esi, 3
jne 0x408556
mov dword [esp + 0x10], esi
jmp 0x408565
cmp esi, 4
mov ecx, 1
cmove eax, ecx
mov dword [esp + 0x10], eax
push 0
movzx eax, bl
push eax
mov dword [esp + 0x1c], 0
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov word [esp + 0xe], ax
lea eax, [esp + 8]
push 0x1c
push eax
push 1
mov dword [esp + 0x24], 0
call dword [sym.imp.USER32.dll_SendInput]
pop esi
pop ebx
add esp, 0x1c
ret

Function at 0x408940
Capabilities:
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp]
mov dword [esp + 4], 3
push eax
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
push reloc.WS2_32.dll_bind
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x408995
push 4
lea eax, [esp + 8]
push eax
push 4
push 0
push str.SoftwareSASGeneration
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [esp]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 8
ret
Function at 0x409660
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x623500]
mov ebx, ecx
push edi
mov edi, edx
test esi, esi
je 0x4096d0
cmp edi, 2
jl 0x4096ae
movzx eax, word [ebx]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
cmp ax, 0xa
jne 0x4096a8
push 0
push 0
push 0
push 0x4089a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4096a8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [0x623500]
mov ecx, esi
call fcn.004ae5d0
test eax, eax
je 0x4096c8
push ecx
mov ecx, dword [esi + 0x18]
mov edx, ebx
push edi
call fcn.004b67a0
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov ebp, dword [esp + 0x1c]
xor esi, esi
push ebp
push 0x401c90
call fcn.00408f50
add esp, 8
test eax, eax
je 0x409703
add esi, eax
mov edx, edi
push ebp
push 0x401c90
sub edx, esi
lea ecx, [esi + ebx]
call fcn.00408f50
add esp, 8
test eax, eax
jne 0x4096e8
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x409710
Capabilities:
Terminate process

Disassembly:
sub esp, 0x14
mov eax, dword [0x6009e4]
xor eax, esp
mov dword [esp + 0xc], eax
mov eax, dword [0x6233f8]
push ebx
mov ebx, ecx
push ebp
mov ebp, edx
push esi
push edi
test eax, eax
je 0x40976c
xor esi, esi
cmp dword [0x623410], esi
jle 0x409759
nop dword [eax]
push dword [eax + esi*4]
call fcn.0058bf82
mov eax, dword [0x6233f8]
inc esi
add esp, 4
cmp esi, dword [0x623410]
jl 0x409740
push eax
call fcn.0058bf82
add esp, 4
mov dword [0x6233f8], 0
mov ecx, dword [0x6038f4]
mov eax, dword [0x623408]
imul eax, ecx
mov dword [0x6038f8], ecx
cdq
and edx, 0x3ff
lea esi, [edx + eax]
mov eax, dword [0x6233e8]
imul eax, ecx
sar esi, 0xa
mov dword [0x6233dc], esi
cdq
and edx, 0x3ff
lea ecx, [edx + eax]
mov eax, esi
cdq
idiv dword [0x62340c]
sar ecx, 0xa
mov edi, eax
mov dword [0x62341c], ecx
mov esi, edx
mov dword [0x623418], edi
mov eax, ecx
cdq
idiv dword [0x6233ec]
mov dword [0x623410], eax
test esi, esi
je 0x4097da
inc edi
mov dword [0x623418], edi
test edx, edx
je 0x4097e4
inc eax
mov dword [0x623410], eax
mov esi, dword [sym.imp.WS2_32.dll_htons]
push 7
call esi
push 8
mov word [esp + 0x18], ax
call esi
mov word [esp + 0x16], ax
movzx eax, word [0x6233dc]
push eax
call esi
mov word [esp + 0x18], ax
movzx eax, word [0x62341c]
push eax
call esi
push ebp
mov word [esp + 0x1e], ax
lea eax, [esp + 0x18]
push 8
push eax
call ebx
mov eax, dword [0x623410]
add esp, 0xc
shl eax, 2
push eax
call fcn.0058d200
mov edx, eax
add esp, 4
mov dword [0x6233f8], edx
test edx, edx
je 0x4098c0
mov edi, dword [0x623410]
xor esi, esi
test edi, edi
jle 0x4098ad
mov eax, dword [0x623418]
shl eax, 3
push eax
call fcn.0058d200
mov edx, dword [0x6233f8]
add esp, 4
mov dword [edx + esi*4], eax
test eax, eax
je 0x409901
mov edi, dword [0x623410]
inc esi
cmp esi, edi
jl 0x409850
test edi, edi
jle 0x4098ad
mov esi, dword [0x623418]
xor eax, eax
test esi, esi
jle 0x4098a5
nop dword [eax]
mov ecx, dword [edx]
mov dword [ecx + eax*8], 0xff
mov ecx, dword [edx]
mov byte [ecx + eax*8 + 4], 0
inc eax
cmp eax, esi
jl 0x409890
add edx, 4
sub edi, 1
jne 0x409887
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00584a28
add esp, 0x14
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xfe
push 0x2d5
mov edx, 0x603800
xor ecx, ecx
call fcn.004b47e0
add esp, 0xc
push 0x2d5
push 0x603820
push 0x603840
call fcn.004010e0
add esp, 0xc
push 0xfe
call fcn.00587d2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xfe
push 0x2d7
mov edx, 0x603864
xor ecx, ecx
call fcn.004b47e0
add esp, 0xc
push 0x2d7
push str...meshcoreKVMWindowskvm.c
push 0x6038a4
call fcn.004010e0
add esp, 0xc
push 0xfe
call fcn.00587d2d
int3
Function at 0x409f50
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push esi
push edi
push 0x10
mov edi, edx
mov dword [esp + 0x14], str.__kvm0
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], str.__kvm1
mov dword [esp + 0x10], 0
call fcn.0058d200
mov esi, eax
add esp, 4
test esi, esi
je 0x40a00c
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
mov edx, dword [ebp + 8]
mov ecx, edi
movups xmmword [esi], xmm0
push 0
mov dword [esi], eax
mov eax, dword [ebp + 0x10]
push 0
push dword [0x6038fc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
push eax
mov dword [esi + 8], edi
mov dword [esi + 0xc], edx
call fcn.004b5790
mov ecx, dword [0x6038fc]
mov edx, 0xffff
dec ecx
mov dword [0x623500], eax
neg ecx
push esi
push 0
sbb ecx, ecx
add ecx, 2
push 0x409f10
mov dword [0x6038fc], ecx
mov ecx, eax
push 0x409e90
push 0x409e50
call fcn.004b6720
add esp, 0x24
mov dword [0x6038e8], 0
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xfe
push 0x4c4
mov edx, 0x61c4e8
xor ecx, ecx
call fcn.004b47e0
add esp, 0xc
push 0x4c4
push 0x61c504
push 0x61c520
call fcn.004010e0
add esp, 0xc
push 0xfe
call fcn.00587d2d
int3

Function at 0x40a050
Capabilities:
Create thread
Terminate process

Disassembly:
push ecx
test edx, edx
je 0x40a08f
cmp dword [0x6233d8], 1
jne 0x40a067
cmp dword [0x6038e8], 0
je 0x40a0e6
push dword [esp + 0xc]
mov dword [0x6233d4], 0
push 0x401c90
push ecx
mov dword [0x6038fc], 1
call fcn.00409f50
add esp, 0xc
pop ecx
ret
push 0xc
call fcn.0058d200
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x40a105
cmp dword [0x6233d8], 1
xorps xmm0, xmm0
mov eax, dword [esp + 0xc]
movq qword [ecx], xmm0
mov dword [ecx + 8], 0
mov dword [ecx], 0x401c90
mov dword [ecx + 4], eax
mov dword [ecx + 8], 1
mov dword [0x623400], 1
jne 0x40a0ea
cmp dword [0x6038e8], 0
jne 0x40a0ea
push ecx
call fcn.0058bf82
add esp, 4
xor eax, eax
pop ecx
ret
push 0
push 0
push ecx
push fcn.00409a50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xfe
push 0x4c4
mov edx, 0x61c4e8
xor ecx, ecx
call fcn.004b47e0
add esp, 0xc
push 0x4c4
push 0x61c504
push 0x61c520
call fcn.004010e0
add esp, 0xc
push 0xfe
call fcn.00587d2d
int3
Function at 0x40a4e0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [0x62340c]
push esi
push edi
mov edi, dword [0x62341c]
xor esi, esi
mov dword [esp + 0x10], edx
mov eax, edi
cdq
idiv ebp
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], edx
test edx, edx
je 0x40a512
mov ebx, ebp
sub ebx, edx
add ebx, edi
jmp 0x40a514
mov ebx, edi
sub ebx, dword [esp + 0x10]
sub ebx, dword [0x6233ec]
mov ecx, dword [0x6233dc]
test edx, edx
je 0x40a530
mov eax, ebp
sub eax, edx
add eax, edi
jmp 0x40a532
mov eax, edi
sub eax, dword [esp + 0x10]
cmp ebx, eax
jge 0x40a59e
mov eax, ecx
cdq
idiv ebp
test edx, edx
je 0x40a54b
mov eax, ebp
sub eax, edx
add eax, ecx
jmp 0x40a54d
mov eax, ecx
mov ecx, dword [0x623428]
xor edi, edi
mov edx, dword [esp + 0x24]
imul eax, ebx
add eax, dword [esp + 0x14]
imul eax, ecx
imul ecx, ebp
add edx, eax
and ecx, 0xfffffffc
lea eax, [ecx + edx]
add ecx, 3
shr ecx, 2
cmp edx, eax
cmova ecx, edi
test ecx, ecx
je 0x40a591
nop dword [eax]
imul esi, esi, 0x1000193
lea edx, [edx + 4]
inc edi
xor esi, dword [edx - 4]
cmp edi, ecx
jb 0x40a580
mov edi, dword [0x62341c]
inc ebx
mov edx, dword [esp + 0x1c]
jmp 0x40a51e
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x40b830
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
push 0x10000
mov ebx, ecx
call fcn.0058d200
add esp, 4
mov dword [ebx], eax
test eax, eax
je 0x40b8a8
push str._netif_:_
push 0x10000
push eax
call fcn.0040b320
mov ecx, dword [ebx]
mov edi, eax
mov esi, 0x10000
add esp, 0xc
mov edx, esi
add ecx, edi
sub edx, edi
call fcn.0040b340
add edi, eax
mov eax, dword [ebx]
push 0x603a34
sub esi, edi
add eax, edi
push esi
push eax
call fcn.0040b320
add edi, eax
add esp, 0xc
mov eax, dword [ebx]
mov byte [edi + eax], 0
lea eax, [edi + 1]
push eax
push dword [ebx]
call fcn.00591c5f
add esp, 8
mov dword [ebx], eax
test eax, eax
je 0x40b8e9
mov eax, edi
pop edi
pop esi
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xfe
push 0x1a9
mov edx, 0x6039d4
xor ecx, ecx
call fcn.004b47e0
add esp, 0xc
push 0x1a9
push 0x6039ec
push 0x603a04
call fcn.004010e0
add esp, 0xc
push 0xfe
call fcn.00587d2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xfe
push 0x1ae
mov edx, 0x603a38
xor ecx, ecx
call fcn.004b47e0
add esp, 0xc
push 0x1ae
push str...meshcoremeshinfo.c
push 0x603a68
call fcn.004010e0
add esp, 0xc
push 0xfe
call fcn.00587d2d
int3
Function at 0x40b930
Capabilities:
Create thread
Shutdown system

Disassembly:
sub esp, 0x1c
mov eax, dword [0x6009e4]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, ecx
push edi
mov edi, edx
test esi, esi
je 0x40bb0f
cmp esi, 6
jne 0x40b975
mov esi, dword [sym.imp.KERNEL32.dll_SetThreadExecutionState]
push 2
call esi
push 4
call esi
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00584a28
add esp, 0x1c
ret
cmp esi, 7
jne 0x40b996
push 1
call dword [sym.imp.KERNEL32.dll_SetThreadExecutionState]
lea eax, [esi - 6]
pop edi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00584a28
add esp, 0x1c
ret
cmp esi, 8
jne 0x40b9b7
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_MessageBeep]
lea eax, [esi - 7]
pop edi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00584a28
add esp, 0x1c
ret
cmp esi, 9
jne 0x40b9f6
push 0
push 0
push 0
push 0x4089a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esp + 8], eax
test eax, eax
je 0x40b9e0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00584a28
add esp, 0x1c
ret
cmp esi, 5
jg 0x40bb0f
lea eax, [esp + 8]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40bb0f
lea eax, [esp + 0x10]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push 0
push 0
push 0
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 1
push eax
push 0
push dword [esp + 0x1c]
mov dword [esp + 0x30], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne case.default.0x40ba6c
dec esi
cmp esi, 4
ja case.default.0x40ba6c
jmp dword [esi*4 + 0x40bb24]
push bind
test edi, edi
je 0x40ba86
push 4
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x40bac2
push 0
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x40bac2
push 0
push 1
push 0x1e
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownA]
jmp 0x40bac2
push 1
push 1
push 0x1e
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownA]
jmp 0x40bac2
push edi
push 1
jmp 0x40babc
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SetSystemPowerState]
test eax, eax
je case.default.0x40ba6c
push 0
push 0
push 0
lea eax, [esp + 0x18]
mov dword [esp + 0x24], 0
push eax
push 0
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00584a28
add esp, 0x1c
ret
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00584a28
add esp, 0x1c
ret