joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402810
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call sym.___acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call sym.___acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x402870
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x40f094]
test esi, esi
jle 0x402990
mov eax, dword [0x40f098]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x4028a4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x402927
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x402890
mov dword [esp], ebx
call sym.___mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x4029b7
mov eax, dword [0x40f098]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call sym.__GetPEImageBase
mov edx, dword [0x40f098]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x402997
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x402920
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x402930
add dword [0x40f094], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x40f098]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x402920
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call sym.___report_error
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x4028ae
mov eax, dword [0x40f098]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call sym.___report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call sym.___report_error
lea esi, [esi]
nop
Function at 0x402ee0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x40f0b0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x40f0a8]
sub esp, 4
test ebx, ebx
je 0x402f35
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x402f2e
test esi, esi
je 0x402f2e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402f10
mov dword [esp], 0x40f0b0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x403270
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x403295
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x4032a0
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x403295
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x4032e8
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x4032de
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x4032ea
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x4032d0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x401b00
Capabilities:
Check for debugger via api

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x407ba8
push 0x404e92
mov eax, dword fs:[0]
push eax
add esp, 0xffffffdc
mov eax, dword [0x409040]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x2c], 0x4094ac
mov ecx, dword [ebp - 0x2c]
call fcn.00402050
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x2c]
call fcn.00402030
mov dword [ebp - 0x30], eax
jmp 0x401b5e
mov eax, dword [ebp - 0x28]
add eax, 0x18
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [ebp - 0x30]
je 0x401b8a
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x34], edx
push 0
mov ecx, dword [ebp - 0x34]
call fcn.00402140
push eax
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x401b88
mov al, 1
jmp 0x401c46
jmp 0x401b55
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x401b9b
mov al, 1
jmp 0x401c46
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
cmp eax, 1
jne 0x401bbe
cmp dword [ebp - 0x20], 1
jne 0x401bbe
mov al, 1
jmp 0x401c46
mov dword [ebp - 4], 0
xor eax, eax
int 0x2d
nop
mov byte [ebp - 0x21], 1
mov dword [ebp - 4], 0xfffffffe
mov al, byte [ebp - 0x21]
jmp 0x401c46
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00404ec1
mov esp, ebp
pop ebp
ret

Function at 0x4059a6
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4059e5
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4059e5
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4059e5
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4059e5
cmp dword [ecx + 0x74], 0xe
jbe 0x4059e5
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x408b97
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
and dword [ebp - 0x14], 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x38], edi
mov eax, dword [edi]
mov dword [ebp - 8], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x34], eax
call fcn.00408adb
mov ebx, dword [ebp - 0x14]
mov eax, dword [esi + 8]
add ebx, 0x23f
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0xc]
push 0x20
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], eax
pop edi
mov dword [ebp - 0x20], 2
add dword [ebp - 0x20], 3
mov esi, dword [ebp - 8]
mov eax, esi
mov ecx, dword [0x7118f4]
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x408c22
push 0x401128
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [0x7118f4]
mov edx, dword [ebp - 0x1c]
add eax, dword [ebp - 0x28]
cmp ecx, 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0x711938]
mov dword [ebp - 0x24], 0xedeb2e40
cmove eax, dword [ebp - 0x24]
and dword [ebp - 0x24], 0
cmp ecx, 0x3eb
mov dword [0x711938], eax
mov eax, dword [0x711940]
cmove eax, dword [ebp - 0x24]
mov dword [0x711940], eax
lea eax, [ebx + esi]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
shr eax, 5
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
and dword [ebp - 0x18], 0
mov dword [0x71193c], 0xf4ea3dee
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x1c]
sub edx, eax
mov dword [ebp - 0x10], eax
mov eax, edx
mov dword [ebp - 0x1c], edx
shl eax, 4
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
nop
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x20]
mov eax, edx
shr eax, cl
add eax, dword [ebp - 0x34]
mov dword [ebp - 0x10], eax
xor eax, dword [ebp - 0x24]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 8], eax
add ebx, 0x61c88647
mov dword [ebp - 0x14], ebx
dec edi
jne 0x408be7
mov edi, dword [ebp - 0x38]
mov eax, dword [ebp - 8]
mov dword [edi], eax
mov dword [edi + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408d01
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, edx
shr esi, 3
push edi
mov edi, ecx
test esi, esi
je 0x408d3d
cmp dword [0x7118f4], 0x959
jne 0x408d2d
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov edx, dword [ebp + 8]
mov ecx, edi
call fcn.00408b97
add edi, 8
dec esi
jne 0x408d11
pop edi
pop esi
pop ebp
ret 4
Function at 0x41255f
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x432ed0]
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
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040c0b3
mov dword [ebp - 0x14], eax
cmp dword [0x7126d4], esi
jne 0x412652
push 0x800
push esi
push 0x4052fc
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4125df
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x412732
push esi
push esi
push 0x4052fc
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x412732
push 0x405314
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x412732
push eax
call ebx
push 0x405320
push edi
mov dword [0x7126d4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x405330
push edi
mov dword [0x7126d8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x405344
push edi
mov dword [0x7126dc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x7126e4], eax
test eax, eax
je 0x41264f
push 0x405360
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x7126e0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x412677
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41266a
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x41268c
push 4
pop eax
jmp 0x412734
cmp dword [ebp - 0x14], esi
je 0x41268c
push dword [0x7126d4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x412671
mov eax, dword [0x7126e0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4126ea
cmp dword [0x7126e4], edi
je 0x4126ea
push eax
call ebx
push dword [0x7126e4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4126ea
test eax, eax
je 0x4126ea
call ecx
test eax, eax
je 0x4126df
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 0x4126df
test byte [ebp - 8], 1
jne 0x4126ea
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x41271a
mov eax, dword [0x7126d8]
cmp eax, edi
je 0x412717
push eax
call ebx
test eax, eax
je 0x412717
call eax
mov esi, eax
test esi, esi
je 0x412717
mov eax, dword [0x7126dc]
cmp eax, edi
je 0x412717
push eax
call ebx
test eax, eax
je 0x412717
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x7126d4]
call ebx
test eax, eax
je 0x412732
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x412734
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b6ee
mov esp, ebp
pop ebp
ret
Function at 0x401040
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x106c
call fcn.00401ed0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 1
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1018], ebx
mov dword [ebp - 0x1010], str.mwpos.exe
mov dword [ebp - 0x100c], str.genclient.exe
mov dword [ebp - 0x1008], 0
jle 0x40108f
mov eax, dword [ebx + 4]
cmp byte [eax], 0
jne 0x40109b
lea ebx, [ebp - 0x1010]
mov dword [ebp - 0x1018], ebx
mov ecx, dword [ebx + 4]
lea edx, [ebp - 0x1004]
xorps xmm0, xmm0
mov dword [ebp - 0x105c], 0x44
movlpd qword [ebp - 0x1058], xmm0
sub edx, ecx
movlpd qword [ebp - 0x1050], xmm0
movlpd qword [ebp - 0x1048], xmm0
movlpd qword [ebp - 0x1040], xmm0
movlpd qword [ebp - 0x1038], xmm0
movlpd qword [ebp - 0x1030], xmm0
movlpd qword [ebp - 0x1028], xmm0
movlpd qword [ebp - 0x1020], xmm0
movups xmmword [ebp - 0x106c], xmm0
nop word [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x401100
mov edx, dword [ebx + 8]
mov dword [ebp - 0x1014], 2
test edx, edx
je 0x4011db
mov ax, word [0x40214c]
mov esi, edx
lea edi, [esi + 1]
nop dword [eax]
mov cl, byte [esi]
inc esi
test cl, cl
jne 0x401130
sub esi, edi
mov edi, edx
lea ebx, [edi + 1]
nop
mov cl, byte [edi]
inc edi
test cl, cl
jne 0x401140
sub edi, ebx
lea ecx, [edi + 4]
add ecx, esi
cmp ecx, 0x1000
ja 0x401217
lea esi, [ebp - 0x1004]
dec esi
mov cl, byte [esi + 1]
lea esi, [esi + 1]
test cl, cl
jne 0x401161
mov cx, word [0x402148]
mov word [esi], cx
mov cl, byte [0x40214a]
mov byte [esi + 2], cl
mov esi, edx
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x401180
lea edi, [ebp - 0x1004]
sub edx, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401190
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x1004]
dec edi
nop dword [eax]
mov cl, byte [edi + 1]
lea edi, [edi + 1]
test cl, cl
jne 0x4011b0
mov ecx, dword [ebp - 0x1014]
mov ebx, dword [ebp - 0x1018]
inc ecx
mov word [edi], ax
mov dword [ebp - 0x1014], ecx
mov edx, dword [ebx + ecx*4]
test edx, edx
jne 0x401128
lea eax, [ebp - 0x106c]
push eax
lea eax, [ebp - 0x105c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1004]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401246
mov esp, ebp
pop ebp
ret
push str.Command_line_too_long._aborting_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401010
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 1
pop edi
pop esi
pop ebx
call fcn.00401246
mov esp, ebp
pop ebp
ret
Function at 0x401a45
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401a84
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401a84
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401a84
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401a84
cmp dword [ecx + 0x74], 0xe
jbe 0x401a84
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x77ba4047
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, edx
push esi
test eax, eax
push edi
je 0x77ba40fb
cmp dword [0x77ba4a8c], 0
jne 0x77ba40f7
mov ecx, 0x40000
mov dword [0x77ba4a8c], 1
call fcn.77ba4882
test eax, eax
mov dword [0x77ba4a90], eax
je 0x77ba40f7
mov esi, 0x50ea
mov ecx, esi
call fcn.77ba4882
mov edi, eax
test edi, edi
je 0x77ba40f7
push esi
push 0
push edi
call sub.MSVCRT.dll_memset
mov ecx, 0x77ba10c0
add esp, 0xc
mov eax, edi
sub ecx, edi
mov esi, 0x2875
mov dl, byte [ecx + eax]
xor dl, 0xba
mov byte [eax], dl
inc eax
dec esi
jne 0x77ba40ae
mov esi, dword [0x77ba4a90]
lea eax, [ebp - 8]
push eax
mov edx, esi
mov ecx, edi
call fcn.77ba3d8c
test eax, eax
jne 0x77ba40da
mov ecx, esi
call fcn.77ba4893
jmp 0x77ba40f7
mov ecx, edi
call fcn.77ba4893
lea edx, [ebp - 4]
mov ecx, esi
call fcn.77ba3ef9
mov eax, dword [ebp - 4]
push 0
push 1
push esi
add eax, esi
call eax
xor eax, eax
jmp 0x77ba4112
mov eax, dword [0x77ba4a90]
test eax, eax
je 0x77ba410f
mov edx, ecx
mov ecx, eax
call fcn.77ba3f86
jmp 0x77ba4112
push 1
pop eax
pop edi
pop esi
leave
ret

Function at 0x77ba4275
Capabilities:
Stop service

Disassembly:
sub esp, 0x1c
push esi
push 0xf01ff
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x77ba42a7
lea eax, [esp + 4]
push edi
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, eax
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x1c
ret

Function at 0x77ba4882
Capabilities:
Allocate or change rwx memory

Disassembly:
push 0x40
push 0x1000
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
ret
Function at 0x40225b
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
xor ecx, ecx
mov cx, word [edx + 0x14]
lea edx, [eax + ecx + 0x18]
mov dword [ebp - 8], edx
mov dword [ebp - 0x14], 0
jmp 0x40229c
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 8]
add ecx, 0x28
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
xor ecx, ecx
mov cx, word [eax + 6]
cmp dword [ebp - 0x14], ecx
jge 0x40234f
mov edx, dword [ebp - 8]
cmp dword [edx + 0x10], 0
jne 0x402303
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
jle 0x402301
push 4
push 0x1000
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 4]
push ecx
push 0
mov edx, dword [ebp - 0xc]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
jmp 0x40228a
push 4
push 0x1000
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
add eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x14]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 8], ecx
jmp 0x40228a
mov esp, ebp
pop ebp
ret
Function at 0x402353
Capabilities:
Enumerate pe sections
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
mov eax, dword [edx]
xor edx, edx
mov dx, word [eax + 0x14]
lea eax, [ecx + edx + 0x18]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
jmp 0x40238b
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
add edx, 0x28
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
xor edx, edx
mov dx, word [ecx + 6]
cmp dword [ebp - 8], edx
jge 0x4024a7
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x24]
and ecx, 0x20000000
neg ecx
sbb ecx, ecx
neg ecx
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x24]
and eax, 0x40000000
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x24]
and edx, 0x80000000
neg edx
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x24]
and ecx, 0x2000000
test ecx, ecx
je 0x40240b
push 0x4000
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x402379
mov eax, dword [ebp - 0x10]
shl eax, 4
mov ecx, dword [ebp - 0x20]
lea edx, [eax + ecx*8 + 0x406020]
mov eax, dword [ebp - 0xc]
mov ecx, dword [edx + eax*4]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x24]
and eax, 0x4000000
test eax, eax
je 0x40243c
mov ecx, dword [ebp - 0x18]
or ch, 2
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x402480
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x24]
and edx, 0x40
test edx, edx
je 0x402465
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x20]
mov dword [ebp - 0x14], edx
jmp 0x402480
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x24]
and ecx, 0x80
test ecx, ecx
je 0x402480
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [eax + 0x24]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
jbe 0x4024a2
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x402379
mov esp, ebp
pop ebp
ret

Function at 0x40297a
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
and eax, 0xff
cdq
mov ecx, 0x5ab
idiv ecx
add edx, 0x3d
mov byte [ebp - 8], dl
mov dword [ebp - 4], 0
jmp 0x4029a8
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jae 0x4029d5
mov ecx, dword [ebp + 8]
mov dl, byte [ecx]
xor dl, byte [ebp - 8]
mov eax, dword [ebp + 8]
mov byte [eax], dl
mov ecx, dword [ebp + 8]
mov dl, byte [ecx]
add dl, byte [ebp - 8]
mov eax, dword [ebp + 8]
mov byte [eax], dl
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
jmp 0x40299f
mov esp, ebp
pop ebp
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408f6c
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x1f88546e
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e3d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x37673eaa
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219