joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401102
Capabilities:
Terminate process

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x44
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0x18
mov eax, dword [ebp - 0x18]
mov eax, dword fs:[eax]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0
jmp 0x40115e
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jne 0x40114d
mov dword [ebp - 0xc], 1
jmp 0x401188
mov dword [esp], 0x3e8
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], 0x41acf4
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 0
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x20]
lock cmpxchg dword [edx], ecx
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40113c
mov eax, dword [0x41acf8]
cmp eax, 1
jne 0x4011a0
mov dword [esp], 0x1f
call fcn.00404a10
jmp 0x4011d3
mov eax, dword [0x41acf8]
test eax, eax
jne 0x4011c9
mov dword [0x41acf8], 1
mov dword [esp + 4], 0x41c014
mov dword [esp], 0x41c00c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x4011d3
mov dword [0x41901c], 1
mov eax, dword [0x41acf8]
cmp eax, 1
jne 0x4011fb
mov dword [esp + 4], 0x41c008
mov dword [esp], section..CRT
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [0x41acf8], 2
cmp dword [ebp - 0xc], 0
jne 0x401217
mov dword [ebp - 0x2c], 0x41acf4
mov dword [ebp - 0x30], 0
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
xchg dword [eax], edx
mov eax, dword [entry1]
test eax, eax
je 0x401241
mov eax, dword [entry1]
mov dword [esp + 8], 0
mov dword [esp + 4], 2
mov dword [esp], 0
call eax
sub esp, 0xc
call fcn.00403d55
mov dword [esp], 0x403e70
mov eax, dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call eax
sub esp, 4
mov dword [0x41acb4], eax
mov dword [esp], section..text
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.004036f4
mov eax, dword [0x419004]
mov dword [esp + 4], 0x419008
mov dword [esp], eax
call fcn.004013c8
call fcn.00403530
mov eax, dword [0x406880]
mov edx, dword [0x41900c]
mov dword [eax], edx
mov ecx, dword [0x41900c]
mov edx, dword [0x419008]
mov eax, dword [0x419004]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00401631
mov dword [0x419014], eax
mov eax, dword [0x419018]
test eax, eax
jne 0x4012d0
mov eax, dword [0x419014]
mov dword [esp], eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x41901c]
test eax, eax
jne 0x4012de
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x419014]
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret
Function at 0x4012eb
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x41ac8c], 1
mov dword [0x41ac90], 1
mov dword [0x41ac94], 1
mov dword [ebp - 4], 0x400000
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x40132c
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x40134f
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
movzx eax, ax
cmp eax, 0x10b
je 0x401371
cmp eax, 0x20b
je 0x401396
jmp 0x4013c1
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x5c]
cmp eax, 0xe
ja 0x401383
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x4013c6
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x6c]
cmp eax, 0xe
ja 0x4013ae
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x4013c6
mov eax, 0
leave
ret
Function at 0x40246a
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov eax, dword [ebp + 8]
mov byte [ebp - 0x18], al
mov byte [ebp - 5], 0
jmp 0x4024e4
mov byte [ebp - 6], 0
jmp 0x4024da
movzx eax, byte [ebp - 5]
movzx edx, byte [ebp - 6]
mov ecx, dword [ebp + 0xc]
shl eax, 2
add eax, ecx
add eax, edx
movzx ebx, byte [eax]
movzx eax, byte [ebp - 0x18]
lea edx, [eax*4]
movzx eax, byte [ebp - 5]
add eax, edx
lea edx, [eax*4]
movzx eax, byte [ebp - 6]
add eax, edx
mov edx, eax
mov eax, dword [ebp + 0x10]
add eax, edx
movzx edx, byte [eax]
movzx eax, byte [ebp - 5]
movzx ecx, byte [ebp - 6]
xor edx, ebx
mov ebx, dword [ebp + 0xc]
shl eax, 2
add eax, ebx
add eax, ecx
mov byte [eax], dl
add byte [ebp - 6], 1
cmp byte [ebp - 6], 3
jbe 0x402483
add byte [ebp - 5], 1
cmp byte [ebp - 5], 3
jbe 0x40247d
nop
nop
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x4024f1
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov byte [ebp - 9], 0
jmp 0x40254a
mov byte [ebp - 0xa], 0
jmp 0x402540
movzx eax, byte [ebp - 0xa]
movzx edx, byte [ebp - 9]
mov ecx, dword [ebp + 8]
shl eax, 2
add eax, ecx
add eax, edx
movzx eax, byte [eax]
movzx eax, al
movzx esi, byte [ebp - 0xa]
movzx ecx, byte [ebp - 9]
movzx edx, byte [eax + str.cw]
mov ebx, dword [ebp + 8]
lea eax, [esi*4]
add eax, ebx
add eax, ecx
mov byte [eax], dl
add byte [ebp - 0xa], 1
cmp byte [ebp - 0xa], 3
jbe 0x402505
add byte [ebp - 9], 1
cmp byte [ebp - 9], 3
jbe 0x4024ff
nop
nop
add esp, 0x10
pop ebx
pop esi
pop ebp
ret

Function at 0x40300a
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov byte [ebp - 9], 0
jmp 0x403063
mov byte [ebp - 0xa], 0
jmp 0x403059
movzx eax, byte [ebp - 0xa]
movzx edx, byte [ebp - 9]
mov ecx, dword [ebp + 8]
shl eax, 2
add eax, ecx
add eax, edx
movzx eax, byte [eax]
movzx eax, al
movzx esi, byte [ebp - 0xa]
movzx ecx, byte [ebp - 9]
movzx edx, byte [eax + 0x4163a0]
mov ebx, dword [ebp + 8]
lea eax, [esi*4]
add eax, ebx
add eax, ecx
mov byte [eax], dl
add byte [ebp - 0xa], 1
cmp byte [ebp - 0xa], 3
jbe 0x40301e
add byte [ebp - 9], 1
cmp byte [ebp - 9], 3
jbe 0x403018
nop
nop
add esp, 0x10
pop ebx
pop esi
pop ebp
ret

Function at 0x403269
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x10
mov byte [ebp - 5], 0
jmp 0x4032a1
movzx edx, byte [ebp - 5]
mov eax, dword [ebp + 8]
add eax, edx
movzx ebx, byte [eax]
movzx edx, byte [ebp - 5]
mov eax, dword [ebp + 0xc]
add eax, edx
movzx ecx, byte [eax]
movzx edx, byte [ebp - 5]
mov eax, dword [ebp + 8]
add eax, edx
xor ebx, ecx
mov edx, ebx
mov byte [eax], dl
add byte [ebp - 5], 1
cmp byte [ebp - 5], 0xf
jbe 0x403276
nop
nop
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x4036fc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esp], 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov ebx, dword [ebp - 0xc]
mov dword [esp], 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov dword [esp + 8], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00404880
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort

Function at 0x4042d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x4042ef
mov eax, 0
jmp 0x404333
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x404312
mov eax, 0
jmp 0x404333
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x10b
je 0x40432e
mov eax, 0
jmp 0x404333
mov eax, 1
leave
ret

Function at 0x404335
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x404394
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x40438c
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x40438c
mov eax, dword [ebp - 4]
jmp 0x4043a8
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x404369
mov eax, 0
leave
ret
Function at 0x411ab0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.sect_1
lea edi, [esi - 0xb000]
push edi
or ebp, 0xffffffff
jmp 0x411ad2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x411ad9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x411ac8
mov eax, 1
add ebx, ebx
jne 0x411aeb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x411ae0
jne 0x411afc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x411ae0
xor ecx, ecx
sub eax, 3
jb 0x411b10
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x411b82
mov ebp, eax
add ebx, ebx
jne 0x411b1b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x411b28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x411b4c
inc ecx
add ebx, ebx
jne 0x411b38
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x411b2d
jne 0x411b49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x411b2d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x411b6c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x411b5d
jmp 0x411ace
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x411b6c
add edi, ecx
jmp 0x411ace
pop esi
mov edi, esi
mov ecx, 0x203
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x411b8a
cmp byte [edi], 0xa
jne 0x411b8a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x411b8f
lea edi, [esi + 0xf000]
mov eax, dword [edi]
or eax, eax
je 0x411bfe
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x113a4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x11408]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x411bbc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1140c]
or eax, eax
je 0x411bf8
mov dword [ebx], eax
add ebx, 4
jmp 0x411bd9
call dword [esi + 0x11410]
popal
jmp 0x403ae7

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401260
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401279
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40128d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4012ae
cmp esi, eax
jae 0x401287
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4012a0
cmp esi, eax
jae 0x401287
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x408380
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
call fcn.00408220
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceA]
push 5
push edi
push esi
mov dword [esp + 0x20], 0xffffffff
call ebx
mov ebp, eax
test ebp, ebp
je 0x408464
push 0xf0
push edi
push esi
call ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadResource]
xor edi, edi
test eax, eax
je 0x4083d4
push eax
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push ebp
push esi
mov dword [esp + 0x18], 0
call ebx
test eax, eax
je 0x40843d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x40843d
push edi
push ebx
call fcn.00401470
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
add esp, 8
mov edi, eax
mov eax, dword [esp + 0x2c]
push eax
push ecx
push edx
push edi
push esi
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamA]
mov esi, eax
test esi, esi
je 0x40841f
cmp esi, 0xffffffff
jne 0x408429
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp edi, ebx
je 0x40844b
push edi
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x40844b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esp + 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40845a
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x408d40
Capabilities:
Set registry value

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0xc]
mov edx, dword [esi]
inc eax
push eax
mov eax, dword [esp + 0x18]
push edi
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
ret 0xc
Function at 0x409390
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x11c
mov eax, dword [0x4171cc]
mov edx, dword [esp + 0x120]
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x10]
push ecx
push 0x2001f
push 0
mov dword [esp + 0x12c], eax
mov eax, dword [edi]
push edx
push eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [esp + 8]
mov esi, eax
test esi, esi
jne 0x4093fa
test ecx, ecx
je 0x4093ec
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x10]
mov esi, eax
mov dword [esp + 8], ecx
je 0x409408
test ecx, ecx
je 0x4094ab
push ecx
jmp 0x4094a5
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x34]
push eax
push 0
push ecx
mov dword [esp + 0x2c], 0x100
call esi
test eax, eax
jne 0x409472
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0xc]
call fcn.00409390
mov edi, eax
test edi, edi
jne 0x4094c4
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0xc]
push eax
push eax
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x34]
push ecx
push edi
push edx
mov dword [esp + 0x2c], 0x100
call esi
test eax, eax
je 0x409434
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 8]
test eax, eax
je 0x409489
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 8], 0
mov eax, dword [esp + 0x128]
mov ecx, dword [edi]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 8]
test eax, eax
je 0x4094ab
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov ecx, dword [esp + 0x118]
call fcn.00411337
add esp, 0x11c
ret 4
mov eax, dword [esp + 8]
test eax, eax
je 0x4094d3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x120]
mov eax, edi
pop edi
pop esi
call fcn.00411337
add esp, 0x11c
ret 4

Function at 0x40be50
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0xb
lea eax, [ebp - 0x7dc]
push eax
call fcn.00409f15
pop ecx
push eax
mov eax, dword [ebp - 0x338]
lea eax, [ebp + eax - 0x230]
push eax
call fcn.00409e76
add esp, 0xc
jmp 0x40be7d
Function at 0x40ef80
Capabilities:
Delete service
Stop service

Disassembly:
sub esp, 0x820
mov eax, dword [0x4171cc]
push ebx
push ebp
push esi
push edi
push 0xf003f
xor ebx, ebx
push ebx
push ebx
mov dword [esp + 0x838], eax
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x40f0e5
mov ebp, dword [sym.imp.ADVAPI32.dll_OpenServiceA]
push 1
add edi, 0x40
push edi
push esi
call ebp
test eax, eax
je 0x40efd0
push eax
mov ebx, 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebx, ebx
je 0x40f0e5
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
jne 0x40f016
push 0x400
lea eax, [esp + 0x30]
push eax
push 0xd80a
call fcn.0040ef30
add esp, 0xc
test eax, eax
jne 0x40f057
push str.Could_not_open_Service_Manager
jmp 0x40f04c
push 0x10020
push edi
push ebx
call ebp
mov esi, eax
test esi, esi
jne 0x40f064
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x400
lea eax, [esp + 0x30]
push eax
push 0xd80c
call fcn.0040ef30
add esp, 0xc
test eax, eax
jne 0x40f057
push str.Could_not_open_service
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0
push edi
lea edx, [esp + 0x34]
push edx
jmp 0x40f13d
lea eax, [esp + 0x10]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x40f0cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x40f0cc
cmp eax, 0x425
jne 0x40f091
cmp dword [esp + 0x14], 3
je 0x40f0cc
push 0x400
lea ecx, [esp + 0x30]
push ecx
push 0xd80e
call fcn.0040ef30
add esp, 0xc
test eax, eax
jne 0x40f0bc
push str.Could_not_stop_service
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0
push edi
lea eax, [esp + 0x34]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebp, eax
call esi
push ebx
call esi
test ebp, ebp
je 0x40f101
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x81c]
call fcn.00411337
add esp, 0x820
ret
push 0x400
lea ecx, [esp + 0x430]
push ecx
push 0xd80d
call fcn.0040ef30
add esp, 0xc
test eax, eax
jne 0x40f132
push str.Could_not_delete_service
lea edx, [esp + 0x430]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0
push edi
lea eax, [esp + 0x434]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x82c]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
call fcn.00411337
add esp, 0x820
ret
Function at 0x40f160
Capabilities:
Access the windows event log

Disassembly:
sub esp, 0x108
mov eax, dword [0x4171cc]
mov ecx, dword [esp + 0x110]
mov dword [esp + 0x104], eax
push esi
lea eax, [esp + 0x118]
push eax
push ecx
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.MSVCR71.dll_vsprintf]
mov esi, dword [esp + 0x11c]
lea eax, [esp + 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x160]
add esp, 0xc
test eax, eax
jne 0x40f1b8
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.MSVCR71.dll_puts]
add esp, 4
add esi, 0x40
push esi
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
je 0x40f1eb
push 0
lea edx, [esp + 8]
push edx
push 0
push 1
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [esp + 0x108]
pop esi
call fcn.00411337
add esp, 0x108
ret

Function at 0x40f440
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40f4a1
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x40f483
cmp eax, 2
jne 0x40f493
test esi, esi
mov eax, dword [esp + 0x14]
je 0x40f49d
mov cl, byte [eax + esi - 1]
test cl, cl
je 0x40f49d
pop edi
mov eax, 0xd
pop esi
ret 0xc
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
ret 0xc
Function at 0x40f5f0
Capabilities:
Create service
Persist via windows service

Disassembly:
sub esp, 0x50c
mov eax, dword [0x4171cc]
push ebx
push ebp
push esi
push edi
push 0xf003f
xor edi, edi
push edi
push edi
mov dword [esp + 0x524], eax
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x40f647
push 1
lea eax, [ebx + 0x40]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
test eax, eax
je 0x40f63c
push eax
mov edi, 1
call ebp
push esi
call ebp
test edi, edi
jne 0x40f762
push 0x104
lea ecx, [esp + 0x15]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40f6cf
cmp eax, 0x104
je 0x40f6cf
push 0xf003f
mov cl, 0x22
push 0
mov byte [esp + 0x18], cl
push 0
mov byte [esp + eax + 0x1d], cl
mov byte [esp + eax + 0x1e], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
jne 0x40f6e8
push 0x400
lea edx, [esp + 0x11c]
push edx
push 0xd80a
call fcn.0040ef30
add esp, 0xc
test eax, eax
jne 0x40f6b9
push str.Could_not_open_Service_Manager
lea eax, [esp + 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0
add ebx, 0x40
push ebx
lea ecx, [esp + 0x120]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x508]
call fcn.00411337
add esp, 0x50c
ret
push 0
push 0
push str.RPCSS
push 0
push 0
lea edx, [esp + 0x24]
push edx
push 1
push 2
push 0x110
push 0xf01ff
lea edi, [ebx + 0x40]
push edi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
jne 0x40f75c
push esi
call ebp
push 0x400
lea eax, [esp + 0x11c]
push eax
push 0xd80b
call fcn.0040ef30
add esp, 0xc
test eax, eax
jne 0x40f74c
push str.Could_not_start_service
lea ecx, [esp + 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0
push edi
lea edx, [esp + 0x120]
push edx
jmp 0x40f6c7
push eax
call ebp
push esi
call ebp
mov ecx, dword [esp + 0x518]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
call fcn.00411337
add esp, 0x50c
ret

Function at 0x410100
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
push 1
push 4
push 0x41746c
mov esi, ecx
call fcn.0040f4f0
mov edi, eax
test edi, edi
jne 0x410154
mov al, byte [esi + 0x3c]
test al, al
je 0x410158
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [esi + 0x30], eax
je 0x410149
lea eax, [esp + 8]
push eax
push edi
push esi
push 0x40f780
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x410158
pop edi
mov eax, 0x80004005
pop esi
pop ecx
ret 4
mov byte [esi + 0x3c], 0
mov eax, edi
pop edi
pop esi
pop ecx
ret 4