joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40534c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x7c2], 0xee
mov byte [ebp - 0x7c1], 0xa4
mov byte [ebp - 0x7c0], 0xac
mov byte [ebp - 0x7bf], 0xac
mov byte [ebp - 0x7be], 0xc0
push 0xb
lea eax, [ebp - 0x7cc]
push eax
call fcn.004034d5
pop ecx
push eax
mov eax, dword [ebp - 0x338]
lea eax, [ebp + eax - 0x230]
push eax
call fcn.00403436
add esp, 0xc
jmp 0x40543d
mov eax, dword [ebp - 0x6fc]
inc eax
mov dword [ebp - 0x6fc], eax
and dword [ebp - 0x37c], 0
call fcn.004034c5
mov edx, dword [edx]
ja 0x4054c8
push dword [ebp - 0x3a0]
call dword [ebp - 0x704]
mov dword [ebp - 0x3a4], eax
cmp dword [ebp - 0x3a4], 0
je 0x4054a8
lea eax, [ebp - 0x714]
push eax
call fcn.004034d5
pop ecx
push eax
push dword [ebp - 0x3a4]
push dword [ebp + 0x14]
call fcn.0040348a
add esp, 0xc
mov dword [ebp - 0x37c], eax
cmp dword [ebp - 0x37c], 0
jne 0x4054a8
jmp 0x404e67
cmp dword [ebp - 0x37c], 0
je 0x4054b6
jmp 0x40556b
push 0
push 0
push 2
push 0
push 2
push 0x40000000
push dword [ebp - 0x3a0]
call dword [ebp - 0x3c8]
mov dword [ebp - 0x380], eax
cmp dword [ebp - 0x380], 0xffffffff
je 0x40550f
cld
invalid
push 0
lea eax, [ebp - 0x6c4]
push eax
push dword [ebp - 0x38c]
push dword [ebp - 0x748]
push dword [ebp - 0x380]
call dword [ebp - 0x730]
push dword [ebp - 0x380]
call dword [ebp - 0x680]
jmp 0x405514
jmp 0x404e67
and dword [ebp - 0x37c], 0
push dword [ebp - 0x3a0]
call dword [ebp - 0x704]
mov dword [ebp - 0x3a4], eax
cmp dword [ebp - 0x3a4], 0
je 0x40555b
lea eax, [ebp - 0x714]
push eax
call fcn.004034d5
pop ecx
push eax
push dword [ebp - 0x3a4]
push dword [ebp + 0x14]
call fcn.0040348a
add esp, 0xc
mov dword [ebp - 0x37c], eax
cmp dword [ebp - 0x37c], 0
je 0x405566
jmp 0x40556b
jmp 0x404e67
cmp dword [ebp - 0x37c], 0
jne 0x405615
mov eax, dword [ebp - 0x748]
mov dword [ebp - 0x7ec], eax
mov eax, dword [ebp - 0x38c]
mov dword [ebp - 0x7e8], eax
and dword [ebp - 0x7e0], 0
push 0x1000
push 8
push dword [ebp - 0x674]
call dword [ebp - 0x67c]
mov dword [ebp - 0x7e4], eax
push dword [ebp - 0x7e4]
lea eax, [ebp - 0x7ec]
push eax
push dword [ebp - 0x748]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004036a1
add esp, 0x14
mov dword [ebp - 0x7e0], eax
cmp dword [ebp - 0x7e0], 0
je 0x405601
lea eax, [ebp - 0x714]
push eax
call fcn.004034d5
pop ecx
push eax
push dword [ebp - 0x7e0]
call fcn.0040356a
pop ecx
pop ecx
mov dword [ebp - 0x37c], eax
push dword [ebp - 0x7e4]
push 1
push dword [ebp - 0x674]
call dword [ebp - 0x39c]
push dword [ebp + 0x1c]
push dword [ebp - 0xc]
push dword [ebp - 0x540]
push dword [ebp - 0x684]
push dword [ebp - 0x688]
push dword [ebp - 0x3ac]
push dword [ebp - 0x400]
push dword [ebp - 0x54c]
push dword [ebp - 0x678]
lea eax, [ebp - 0x334]
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call dword [ebp - 0x37c]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x407080
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, dword [0x409214]
mov dword [eax], ecx
mov ebx, edx
test ebx, ebx
jle 0x4070a1
mov eax, 0xff
call fcn.00402680
xor byte [esi], al
inc esi
dec ebx
jne 0x407091
pop esi
pop ebx
ret
Function at 0x401430
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x150
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x124], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x118], 6
push ebx
push ebx
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x114], 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push esi
push esi
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
mov dword [ebp - 0x11c], eax
call dword [sym.imp.USER32.dll_LoadIconA]
push edx
push edx
mov dword [esp], 0
mov dword [ebp - 0x120], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebp - 0x134]
push ecx
mov dword [esp], eax
call dword [sym.imp.USER32.dll_RegisterClassW]
push ebx
lea ebx, [ebp - 0x10c]
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push esi
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
push eax
push eax
mov dword [esp + 4], ebx
mov dword [esp], 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push eax
push eax
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x80000000
call dword [sym.imp.KERNEL32.dll_CreateFileA]
sub esp, 0x1c
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
lea esp, [ebp - 8]
lea eax, [ebx - 3]
pop ebx
pop esi
pop ebp
ret

Function at 0x401628
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xa4
mov dword [ebp - 0x88], 1
call fcn.00401430
test eax, eax
jne 0x4016c2
lea eax, [ebp - 0x8c]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], eax
mov eax, 0x40212e
sub eax, 0x4016cc
mov dword [esp], 0x4016cc
mov dword [esp + 4], eax
mov dword [ebp - 0x8c], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
cmp dword [ebp - 0x8c], 0
je 0x4016c2
lea ebx, [ebp - 0x88]
mov dword [esp], 0
call fcn.004013ac
mov dword [esp + 4], ebx
mov dword [esp], 0
call fcn.004015ad
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1b400
mov dword [esp], 0x40300c
call fcn.00401e31
xor eax, eax
mov ebx, dword [ebp - 4]
leave
ret

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 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x40287f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x40288e
pop dword [ebp - 0x50]
mov eax, 0x83d3889c
add eax, 0x7c6c9ff2
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0xee1562b3
add dword [ebp - 0x60], 0x603ce298
mov dword [ebp - 0x5c], 0x64bed801
add dword [ebp - 0x5c], 0xcd747444
mov dword [ebp - 0x58], 0xc61c9205
sub dword [ebp - 0x58], 0x79d04dd7
mov dword [ebp - 0x54], 0x646db967
add dword [ebp - 0x54], 0x9b924699
lea eax, [ebp - 0x60]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0x11bc826b
sub dword [ebp - 0x60], 0x9d4a1915
mov dword [ebp - 0x5c], 0x8525fe4d
sub dword [ebp - 0x5c], 0x43b99cd8
mov dword [ebp - 0x58], 0xbabff55b
sub dword [ebp - 0x58], 0x575088ef
mov dword [ebp - 0x54], 0x77b32d1d
add dword [ebp - 0x54], 0x884cd2e3
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, 0xc5e34204
sub eax, 0xc5a2d15c
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x3a292
push 0
call eax
mov ecx, 0x7cf4f80a
add ecx, 0x830b5e38
mov esi, eax
mov edx, 0x49de608
sub edx, 0x45ce608
add edx, dword [ebp - 0x50]
mov edi, 0x38dcc278
sub edi, 0x8e9e0257
xor dword [ebp - 0x28], 0xf241cd74
mov ebx, dword [edx]
add dword [ebp - 0x1c], 0x676694f4
add ebx, edi
xor dword [ebp - 0xc], 0xfa93d11f
mov dword [esi], ebx
add dword [ebp - 0x34], ecx
add esi, 0x48225b35
sub esi, 0x48225b31
add edx, 0x20cd7869
sub edx, 0x20cd7865
loop 0x4029ab
add eax, 0x14bdb
mov ebx, eax
add eax, 0xa313a457
add eax, 0x5cec5bae
mov ecx, 0x400000
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c
Function at 0x403614
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.004027e4
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x40a035], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4035dc
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x40425c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x4042c2
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004038d8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402c4c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4042ac
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4042c9
lea eax, [ebp - 0x10]
call fcn.00403658
ret

Function at 0x404ecc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
mov ebx, eax
lea eax, [ebp - 0x44]
xor ecx, ecx
mov edx, 0x44
call fcn.00402bc0
mov dword [ebp - 0x44], 0x44
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x44]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
mov eax, ebx
call fcn.00403d24
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
je 0x404f55
xor eax, eax
push ebp
push 0x404f4e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xffffffffffffffff
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_WaitForSingleObject
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404f55
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x50]
push eax
call sub.kernel32.dll_CloseHandle
ret
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405008
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00403d24
push eax
call sub.kernel32.dll_GetFileAttributesW
mov dword [0x40a674], eax
cmp dword [0x40a674], 0xffffffff
je 0x40502f
test byte [0x40a674], 0x10
je 0x405033
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x405038
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.00403f68
mov eax, dword [ebp - 8]
call fcn.00403a3c
xor eax, eax
push ebp
push 0x4050df
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
mov eax, dword [ebp - 4]
call fcn.00403d24
push eax
call sub.kernel32.dll_CreateFileW
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4050ba
push 0
push 0
push 0
push ebx
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00403904
push eax
lea eax, [ebp - 8]
call fcn.00403a9c
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
push ebx
call sub.kernel32.dll_CloseHandle
cmp dword [ebp - 0xc], 0
setne bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4050e6
lea eax, [ebp - 8]
call fcn.00403658
lea eax, [ebp - 4]
call fcn.00403b78
ret

Function at 0x405240
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebx
add esp, 0xfffffdf4
mov ebx, eax
push 0xffffffffffffffff
push 0x26
lea eax, [esp + 8]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderPathW
mov eax, ebx
mov edx, esp
mov ecx, 0x105
call fcn.00403cf8
add esp, 0x20c
pop ebx
ret

Function at 0x405270
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf4
mov ebx, eax
push esp
push 0x104
call sub.kernel32.dll_GetTempPathW
mov eax, ebx
mov edx, esp
mov ecx, 0x105
call fcn.00403cf8
add esp, 0x20c
pop ebx
ret

Function at 0x40529c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00403a3c
mov eax, dword [ebp - 8]
call fcn.00403a3c
xor eax, eax
push ebp
push 0x40535c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, 0x405370
call fcn.00403bb4
mov dword [ebp - 0x10], pe_nt_image_headers32
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 4]
call fcn.00403a4c
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x405338
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00403a4c
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x405338
mov eax, ebx
lea edx, [ebp - 0x110]
mov ecx, pe_nt_image_headers32
call fcn.00403ce0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405363
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040367c
ret
Function at 0x4053e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x4054cd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, 0x4054e4
call fcn.00403bb4
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
mov eax, edi
call fcn.0040537c
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x4054ae
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.00403d24
mov esi, eax
push esi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4054ae
mov eax, dword [ebp - 0x14]
dec eax
sub eax, 2
jae 0x4054ae
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.00403f20
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push esi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4054ae
mov eax, dword [ebp - 0x10]
call fcn.00403d24
call fcn.004053cc
mov edx, eax
lea eax, [ebp - 0x10]
call fcn.00403f20
mov eax, ebx
mov edx, dword [ebp - 0x10]
call fcn.00403bb4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4054d4
lea eax, [ebp - 0x10]
call fcn.00403b78
ret

Function at 0x4054f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 8]
mov bl, 1
lea eax, [ebp - 0xc]
push eax
push 2
push 0
mov eax, dword [ebp - 4]
call fcn.0040537c
push eax
push edi
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40555c
mov eax, esi
call fcn.00403d34
add eax, eax
push eax
mov eax, esi
call fcn.00403d24
push eax
push 1
push 0
mov eax, dword [ebp - 8]
call fcn.00403d24
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegSetValueExW
mov esi, eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
test esi, esi
je 0x40555e
xor ebx, ebx
jmp 0x40555e
xor ebx, ebx
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4055b4
Capabilities:
Create process on windows
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403a3c
xor eax, eax
push ebp
push 0x4056ff
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x405710
call sub.user32.dll_FindWindowA
mov esi, eax
test esi, esi
jne 0x405641
lea eax, [ebp - 0x40]
xor ecx, ecx
mov edx, 0x3c
call fcn.00402bc0
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x40
mov eax, 0x405720
mov dword [ebp - 0x34], eax
mov eax, 0x405728
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x24], 1
lea eax, [ebp - 0x40]
push eax
call sub.shell32.dll_ShellExecuteExA
push 0xc8
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_WaitForInputIdle
push 0
push 0x405710
call sub.user32.dll_FindWindowA
mov esi, eax
push 1
push esi
call sub.user32.dll_ShowWindow
push 0
push 0x405734
push 0
push esi
call sub.user32.dll_FindWindowExA
mov esi, eax
push esi
call sub.user32.dll_SetForegroundWindow
mov ebx, 0x1e
push 0
push 0x25
push pe_nt_image_headers32
push esi
call sub.user32.dll_SendMessageA
dec ebx
test ebx, ebx
jne 0x405665
push 0x1f4
call sub.kernel32.dll_Sleep
push 0
push 0x27
push pe_nt_image_headers32
push esi
call sub.user32.dll_SendMessageA
push 0x1f4
call sub.kernel32.dll_Sleep
mov ebx, 1
mov eax, dword [ebp - 4]
call fcn.00403904
mov edi, eax
mov eax, dword [ebp - 4]
mov al, byte [eax + ebx - 1]
cmp al, 0x5c
jne 0x4056d1
push 0
push 0x27
push pe_nt_image_headers32
push esi
call sub.user32.dll_SendMessageA
push 0x1f4
call sub.kernel32.dll_Sleep
jmp 0x4056e4
push 0
and eax, 0xff
push eax
push 0x102
push esi
call sub.user32.dll_SendMessageA
inc ebx
cmp edi, ebx
jne 0x4056ab
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405706
lea eax, [ebp - 4]
call fcn.00403658
ret
Function at 0x405814
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403a3c
mov eax, dword [ebp - 8]
call fcn.00403a3c
xor eax, eax
push ebp
push 0x405921
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
push 0x405934
lea eax, [ebp - 4]
call fcn.00403a9c
push eax
mov eax, dword [0x40a650]
push eax
call sub.kernel32.dll_FindResourceA
mov ebx, eax
test ebx, ebx
je 0x405906
push ebx
mov eax, dword [0x40a650]
push eax
call sub.kernel32.dll_LoadResource
mov esi, eax
test esi, esi
je 0x405906
push ebx
mov eax, dword [0x40a650]
push eax
call sub.kernel32.dll_SizeofResource
mov ebx, eax
push 0
push 0x20
push 2
push 0
push 3
push 0xc0000000
lea eax, [ebp - 8]
call fcn.00403a9c
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x405906
xor eax, eax
push ebp
push 0x4058ff
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 0x10]
push eax
push ebx
push esi
call sub.kernel32.dll_LockResource
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x4058df
cmp ebx, dword [ebp - 0x10]
je 0x4058e3
xor eax, eax
jmp 0x4058e5
mov al, 1
mov byte [ebp - 9], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405906
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405928
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040367c
ret

Function at 0x40593c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403a3c
xor eax, eax
push ebp
push 0x4059e3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00403658
push 0x4059f4
lea eax, [ebp - 4]
call fcn.00403a9c
push eax
mov eax, dword [0x40a650]
push eax
call sub.kernel32.dll_FindResourceA
mov ebx, eax
push ebx
mov eax, dword [0x40a650]
push eax
call sub.kernel32.dll_SizeofResource
mov edi, eax
push ebx
mov eax, dword [0x40a650]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
push ebx
call sub.kernel32.dll_LockResource
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4059cd
mov eax, esi
mov edx, edi
call fcn.00403ae4
mov eax, esi
call fcn.00403a9c
mov ecx, edi
mov edx, dword [ebp - 8]
call fcn.004047a0
push ebx
call sub.kernel32.dll_FreeResource
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4059ea
lea eax, [ebp - 4]
call fcn.00403658
ret
Function at 0x405d5c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.00403f68
xor eax, eax
push ebp
push 0x405de2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00405008
test al, al
je 0x405dc7
push 0
push 0
push 0x405df4
push dword [ebp - 4]
push 0x405e08
lea eax, [ebp - 8]
mov edx, 3
call fcn.00403e08
mov eax, dword [ebp - 8]
call fcn.00403d24
push eax
mov eax, dword [0x40a684]
call fcn.00403d24
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405de9
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403b90
ret

Function at 0x406154
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.00403f68
xor eax, eax
push ebp
push 0x4061d3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x40a688]
xor edx, edx
call fcn.00403e50
jne 0x40619c
push 9
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403d24
push eax
push 0x4061e0
push 0
call sub.shell32.dll_ShellExecuteW
jmp 0x4061bd
push 9
push 0
mov eax, dword [ebp - 4]
call fcn.00403d24
push eax
mov eax, dword [0x40a688]
call fcn.00403d24
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4061da
lea eax, [ebp - 4]
call fcn.00403b78
ret