joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001c950
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 4]
mov eax, edx
and eax, 0x1f
cmp ecx, 4
push esi
mov esi, dword [esp + 0xc]
jb 0x1001c9b5
push ebx
push ebp
push edi
mov edi, ecx
shr edi, 2
mov ebx, edi
neg ebx
lea ecx, [ecx + ebx*4]
mov dword [esp + 0x14], ecx
lea ebx, [ebx]
xor edx, dword [esi]
test eax, eax
je 0x1001c9a5
mov ecx, 0x20
sub ecx, eax
mov ebx, edx
sar ebx, cl
mov ecx, eax
mov ebp, 1
shl ebp, cl
shl edx, cl
mov ecx, dword [esp + 0x14]
dec ebp
and ebx, ebp
or edx, ebx
mov eax, edx
mov dword [esi], edx
add esi, 4
and eax, 0x1f
dec edi
jne 0x1001c980
pop edi
pop ebp
pop ebx
test ecx, ecx
jle 0x1001c9cd
mov eax, ecx
jmp 0x1001c9c0
mov cl, byte [esi]
xor cl, dl
sar edx, 8
mov byte [esi], cl
inc esi
dec eax
jne 0x1001c9c0
pop esi
ret

Function at 0x1001c9d0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
mov edx, ebx
and edx, 0x1f
cmp esi, 4
push edi
mov edi, dword [esp + 0x14]
jb 0x1001ca4f
mov ecx, esi
shr ecx, 2
mov eax, ecx
neg eax
lea esi, [esi + eax*4]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], esi
push ebp
mov edi, edi
test edx, edx
mov eax, dword [edi]
je 0x1001ca39
mov esi, 0x20
sub esi, edx
mov ecx, esi
mov ebp, 1
shl ebp, cl
mov ecx, eax
mov dword [esp + 0x18], ecx
mov ecx, edx
mov edx, eax
sar edx, cl
dec ebp
mov ecx, esi
mov esi, dword [esp + 0x14]
and ebp, edx
mov edx, eax
shl edx, cl
mov ecx, dword [esp + 0x1c]
or ebp, edx
xor ebx, ebp
jmp 0x1001ca3b
xor ebx, eax
mov dword [edi], ebx
mov ebx, eax
and eax, 0x1f
add edi, 4
dec ecx
mov edx, eax
mov dword [esp + 0x1c], ecx
jne 0x1001ca00
pop ebp
test esi, esi
jle 0x1001ca62
mov eax, esi
mov cl, byte [edi]
xor cl, bl
sar ebx, 8
mov byte [edi], cl
inc edi
dec eax
jne 0x1001ca55
pop edi
pop esi
pop ebx
ret
Function at 0x1002838d
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 0x1002847a
mov eax, 0x94
call fcn.10028350
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x100284ef
mov ecx, dword [esi + 0x10]
mov dword [0x100379ac], ecx
mov eax, dword [esi + 4]
mov dword [0x100379b8], eax
mov edx, dword [esi + 8]
mov dword [0x100379bc], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x100379b0], esi
je 0x100283f8
or esi, 0x8000
mov dword [0x100379b0], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x100379b4], eax
call fcn.100299dc
test eax, eax
pop ecx
je 0x100284ef
call fcn.10028a26
test eax, eax
jne 0x10028425
call fcn.10029a2d
jmp 0x100284ef
call fcn.1002bcf8
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x10039028], eax
call fcn.1002bbd6
mov dword [0x1003782c], eax
call fcn.1002b6b7
test eax, eax
jl 0x10028473
call fcn.1002bb34
test eax, eax
jl 0x1002846e
call fcn.1002b901
test eax, eax
jl 0x1002846e
call fcn.1002af4a
test eax, eax
jne 0x1002846e
inc dword [0x10037828]
jmp 0x10028500
call fcn.1002b8b5
call fcn.10028819
jmp 0x1002841b
test eax, eax
jne 0x100284aa
cmp dword [0x10037828], eax
jle 0x100284ef
dec dword [0x10037828]
cmp dword [0x100379e8], eax
jne 0x10028499
call fcn.1002b093
call fcn.1002b8b5
call fcn.10028819
call fcn.10029a2d
jmp 0x10028500
cmp eax, 2
jne 0x100284f3
push 0x88
push 1
call fcn.10027bfb
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x100284ef
push esi
push dword [0x10036afc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
push esi
je 0x100284e9
call fcn.10028837
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x10028500
call fcn.10027995
pop ecx
xor eax, eax
jmp 0x10028503
cmp eax, 3
jne 0x10028500
push 0
call fcn.100288bb
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc
Function at 0x1002afaf
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.10029991
xor esi, esi
inc esi
cmp dword [0x100379ec], esi
pop ecx
jne 0x1002afd7
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 [0x100379e8], esi
mov byte [0x100379e4], al
jne 0x1002b03d
mov ecx, dword [0x10037fe8]
test ecx, ecx
je 0x1002b01e
mov eax, dword [0x10037fe4]
sub eax, 4
cmp eax, ecx
jmp 0x1002b017
mov eax, dword [eax]
test eax, eax
je 0x1002b009
call eax
mov eax, dword [0x10037fe4]
sub eax, 4
cmp eax, dword [0x10037fe8]
mov dword [0x10037fe4], eax
jae 0x1002b001
mov eax, 0x10036020
mov esi, 0x10036028
cmp eax, esi
mov edi, eax
jae 0x1002b03d
mov eax, dword [edi]
test eax, eax
je 0x1002b036
call eax
add edi, 4
cmp edi, esi
jb 0x1002b02e
mov eax, 0x1003602c
mov esi, 0x10036030
cmp eax, esi
mov edi, eax
jae 0x1002b05c
mov eax, dword [edi]
test eax, eax
je 0x1002b055
call eax
add edi, 4
cmp edi, esi
jb 0x1002b04d
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x1002b06d
push 8
call fcn.100298fd
jmp 0x1002b07f
push dword [ebp + 8]
mov dword [0x100379ec], 1
call fcn.1002af08
pop ecx
pop ebp
ret

Function at 0x1002b249
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x10037a04], ebx
push esi
push edi
jne 0x1002b2c9
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1002b304
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x10037a04], eax
je 0x1002b304
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x10037a08], eax
call esi
cmp dword [0x100379ac], 2
mov dword [0x10037a0c], eax
jne 0x1002b2c9
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x10037a14], eax
je 0x1002b2c9
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x10037a10], eax
mov eax, dword [0x10037a10]
test eax, eax
je 0x1002b30e
call eax
test eax, eax
je 0x1002b2f5
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x10037a14]
test eax, eax
je 0x1002b2f5
test byte [ebp - 8], 1
jne 0x1002b30e
cmp dword [0x100379b8], 4
jb 0x1002b308
or byte [ebp + 0x12], 0x20
jmp 0x1002b32d
xor eax, eax
jmp 0x1002b33d
or byte [ebp + 0x12], 4
jmp 0x1002b32d
mov eax, dword [0x10037a08]
test eax, eax
je 0x1002b32d
call eax
mov ebx, eax
test ebx, ebx
je 0x1002b32d
mov eax, dword [0x10037a0c]
test eax, eax
je 0x1002b32d
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x10037a04]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1002bd86
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x10036ed0]
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 + 0x10036ef8]
je 0x1002bdb3
inc eax
cmp eax, 0x12
jb 0x1002bda4
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x10036ef8]
jne 0x1002bee7
mov eax, dword [0x10037834]
cmp eax, 1
je 0x1002bec2
cmp eax, edx
jne 0x1002bde3
cmp dword [0x10037838], 1
je 0x1002bec2
cmp ecx, 0xfc
je 0x1002bee7
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 0x1002be1c
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.1002b580
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.1002b4f0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1002be5e
lea eax, [ebp - 0x10c]
push eax
call fcn.1002b4f0
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x100345d8
push edi
call fcn.10027760
add esp, 0x10
push edi
call fcn.1002b4f0
push dword [esi + 0x10036efc]
mov ebx, eax
call fcn.1002b4f0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.10028350
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.1002b580
push edi
push ebx
call fcn.1002b590
push 0x100345d4
push ebx
call fcn.1002b590
push dword [esi + 0x10036efc]
push ebx
call fcn.1002b590
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.1002b249
add esp, 0x2c
jmp 0x1002bee7
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x10036efc]
push dword [esi]
call fcn.1002b4f0
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.1002b6a9
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1002d9e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x10036ed0]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x1002da09
xor eax, eax
jmp 0x1002db77
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x10037ee0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x1002da3c
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.1002f178
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x1002db0e
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x1002db49
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x1002da97
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x1002da88
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x1002da6b
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1002dad7
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x1002dae0
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x1002da5c
jmp 0x1002dae2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x1002db72
cmp dword [ebp - 8], edi
je 0x1002db49
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x1002db3b
call fcn.1002ddc0
mov dword [eax], 9
call fcn.1002ddc9
mov dword [eax], esi
jmp 0x1002db44
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1002db30
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x1002dae2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x1002dae2
push dword [ebp - 8]
call fcn.1002ddd2
pop ecx
or eax, 0xffffffff
jmp 0x1002db75
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x1002db5e
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x1002db5e
xor eax, eax
jmp 0x1002db75
call fcn.1002ddc0
mov dword [eax], 0x1c
call fcn.1002ddc9
mov dword [eax], edi
jmp 0x1002db44
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.1002b6a9
leave
ret
Function at 0x1002e140
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.10028350
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1002e1d5
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 [0x100379ac]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x1002e1d5
cmp eax, 1
je 0x1002e1ed
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 0x1002e1d5
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x1002e1aa
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x1002e1d1
xor eax, eax
inc eax
jmp 0x1002e209
cmp esi, ebx
jae 0x1002e1d9
xor eax, eax
jmp 0x1002e209
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x100379ac]
jmp 0x1002e1ef
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 0x4022c0
Capabilities:
Create service

Disassembly:
mov eax, dword [esp + 0xc]
push 0
push 0
push 0
mov ecx, dword [esp + 0x10]
push 0
push 0
push eax
mov eax, dword [esp + 0x20]
push 1
push 0
push 1
push 0xf01ff
push eax
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
jne 0x4022f0
ret
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
ret

Function at 0x4024a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
push dx
push ecx
mov dl, bh
cmp cx, bx
sub dh, 0x32
pop ecx
pop dx
push ebx
cmp bx, 0x6a7c
cmp bl, 0x59
inc bl
xor bl, 0xe
cmp bx, 0x56ca
cmp bh, ah
dec ebx
cmp bh, 0x38
pop ebx
mov esi, dword [sym.imp.KERNEL32.DLL_CreateFileA]
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push 0x4060b0
call esi
cmp eax, 0xffffffff
je 0x402517
jbe 0x402504
push esi
pop esi
ja 0x402504
stosd dword es:[edi], eax
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
push ecx
push edi
cmp al, al
add eax, esi
pop edi
pop ecx
pop eax
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push 0x4060dc
call esi
cmp eax, 0xffffffff
je 0x402563
jle 0x402550
push edi
pop edi
jg 0x402550
hlt
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
push ecx
sub cl, cl
sub ch, 0x2f
xor ecx, edi
pop ecx
pop eax
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x107]
mov byte [ebp - 0x108], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 4]
lea ecx, [ebp - 0x108]
push eax
lea edx, [ebp - 8]
push ecx
push edx
push 0x40611c
push 0x4060f0
push 0x80000001
mov dword [ebp - 4], 0xff
mov dword [ebp - 8], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x40265c
je 0x4025d4
push edi
mov di, 0x7d9e
pop edi
jne 0x4025d4
sbb dword [edi], ebx
outsb dx, byte [esi]
xchg ecx, eax
loope 0x40264c
mov al, 0x7b
mov esi, dword [sym.imp.SHELL32.dll_StrStrIA]
lea eax, [ebp - 0x108]
push 0x406128
push eax
call esi
test eax, eax
je 0x4025f8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
jbe 0x402612
push esi
pop esi
ja 0x402612
and al, 0x3e
mov edi, 0x1a4b5242
out dx, al
pop ebx
inc ebp
sub dword [ecx*4 - 0x10773], eax
jmp [eax + 0x38]
lea ecx, [ebp - 0x108]
push 0x406138
push ecx
call esi
test eax, eax
je 0x402630
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
push ecx
push edi
cmp al, al
add eax, esi
pop edi
pop ecx
pop eax
push dx
push eax
push ebx
or ah, 0x76
and ah, 0x19
cmp dl, 0x1a
sub dh, 5
mov eax, edx
sub dl, 0x39
or bl, 0x19
dec dh
dec ax
dec dl
pop ebx
pop eax
pop dx
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402850
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
jb 0x40286c
mov cx, cx
nop
nop
nop
nop
jae 0x40286c
out dx, eax
sbb edi, dword [edx + 0x12]
jp 0x402880
mov eax, eax
xchg si, si
jnp 0x402880
add al, 0x46
shl dword [ebx], cl
xor al, 0xb6
adc ah, byte [0x458b4deb]
or al, 0x8b
dec ebp
or byte [eax - 1], ch
add dword [edi], ecx
add byte [eax + 0x51], dl
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push 0xf01ff
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
test eax, eax
mov dword [ebp + 0xc], eax
jne 0x40289f
pop edi
pop esi
pop ebx
pop ebp
ret
pushal
and ah, bh
and bl, ah
test ax, 0x1c2e
sub dx, di
or eax, 0x5fe
popal
mov edi, dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov esi, eax
jl 0x4028d0
push edx
mov edx, 0x1e619b59
pop edx
jge 0x4028d0
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
add di, dx
cmp edi, edx
add di, cx
pop edi
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x403520
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
push ebx
push esi

Function at 0x403810
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x304
push ebx
push edi
push edx
test dl, 0x49
inc dx
and dx, dx
xor dl, dh
sub edx, eax
test dh, 0x32
sub dx, bx
mov edx, 0x684d
pop edx
xor dl, dl
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x303]
mov byte [ebp - 0x304], dl
mov byte [ebp - 0x104], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [ebp - 0x103]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
push bx
push dx
push ecx
test eax, ecx
test dh, 0x2b
mov bh, dl
cmp cx, cx
pop ecx
pop dx
pop bx
mov ecx, dword [ebp + 8]
push 0x40606c
lea edx, [ebp - 0x104]
push ecx
push edx
lea eax, [ebp - 0x104]
push 0x40605c
push eax
lea ecx, [ebp - 0x304]
push 0x406080
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x1c
jbe 0x4038dd
mov ecx, ecx
ja 0x4038dd
invalid
lea edx, [ebp - 0x304]
push 0
push edx
call dword [sym.imp.KERNEL32.DLL_WinExec]
jb 0x403901
xchg ecx, ecx
jae 0x403901
into
xor byte [eax + edx*2 - 0x48], bl
test al, 0x91
pop ss
jbe 0x403971
push ebp
xchg byte [eax], dh
outsb dx, byte [esi]
xor ebx, dword [edi - 0x48]
add dword [eax], eax
add byte [eax], al
pop edi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
dec eax
jne 0x4039e1
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
push bx
push ecx
push edx
test al, cl
sub ch, 0x6b
inc bx
cmp bx, cx
and cl, 0x5a
mov bx, di
test ax, dx
pop edx
pop ecx
pop bx
call fcn.004024a0
test eax, eax
jne 0x4039ad
call fcn.00401400
js 0x403991
mov ebx, ebx
jns 0x403991
dec esi
out 0x28, al
ja 0x403939
and eax, 0xdb7cad4a
dec ecx
mov dl, byte [ecx + eax*8 - 0x6d0f50b6]
call fcn.00403e20
pushal
and ah, bh
and bl, ah
test ax, 0x1c2e
sub dx, di
or eax, 0x5fe
popal
call int.004029b0
jbe 0x4039c8
push si
mov si, 0xe23f
pop si
ja 0x4039c8
in al, dx
pop esp
push ecx
fdivr dword [edi - 0x78]
arpl word [ebx + 0x10680845], cx
test byte [eax], al
add byte [eax + 0x10], ch
test byte [eax], al
add byte [eax + 0x10], ch
test byte [eax], al
add byte [eax - 1], dl
adc eax, sym.imp.USER32.dll_PostMessageA
mov eax, dword [ebp + 8]
push 0x8410
push 0x8410
push 0x8410
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
push edx
push ax
push bx
xor dh, 0x61
and dl, cl
inc edx
test cl, dh
test al, 0x79
xor al, bl
cmp dh, 0x50
or bx, ax
pop bx
pop ax
pop edx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
push ecx
call dword [sym.imp.USER32.dll_DefWindowProcA]
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x403f70
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push ax
push cx
push edx
xor ax, bx
and ch, 0x6e
add cx, cx
test ax, ax
xor dh, cl
xor edx, 0x32a0
inc ax
or ch, 0x28
test ah, al
xor ax, 0x3145
pop edx
pop cx
pop ax
jb 0x403fb5
mov cx, cx
nop
nop
nop
nop
jae 0x403fb5
out dx, eax
sbb ecx, dword [ebx + 0x4d8b0c45]
or byte [eax - 1], ch
add dword [edi], ecx
add byte [eax + 0x51], dl
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push 0xf01ff
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
test eax, eax
mov dword [ebp + 0xc], eax
jne 0x403fd4
pop edi
pop esi
pop ebx
pop ebp
ret
pushal
dec bx
test di, cx
or si, bx
and ch, dh
sub cx, 0x3744
or ah, 0x2d
xor bl, cl
and ah, 0x28
and al, ch
cmp cx, bx
popal
mov edi, dword [ebp + 0xc]
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x404023
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call esi
cmp eax, 0x420
je 0x404023
call esi
cmp eax, 0x422
mov dword [ebp + 0xc], 0
jne 0x40402a
mov dword [ebp + 0xc], 1
jbe 0x404039
push esi
pop esi
ja 0x404039
stosd dword es:[edi], eax
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pushaw
push edx
test ch, bh
mov bh, 0x2b
and ah, 0x5d
pop edx
popaw
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4028e8
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402925
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402945
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.004042a0
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x4030b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4a2020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403148
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403128
xor eax, eax
push ebp
push 0x403121
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403164
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403128
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4a2020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4a2020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403e30
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4a704c], 0
je 0x403e91
cmp word [0x4a7220], 0xd7b2
jne 0x403e59
cmp dword [0x4a7228], 0
jbe 0x403e59
mov eax, 0x4a721c
call dword [0x4a7238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4a206c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403eb8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4a2030], 0
jne 0x403ead
push 0
push 0x4a2064
push 0x4a206c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x403fe4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.0040270c
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4a704d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x403fac
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc