joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408e60
Capabilities:
Enumerate gui resources
Read .ini file

Disassembly:
sub esp, 0x824
cmp dword [0x47a8a4], 0x13f7
mov eax, dword [esp + 0x828]
push ebx
push ebp
mov ebp, dword [esp + 0x834]
push esi
mov esi, dword [eax + 4]
push edi
mov edi, dword [eax]
mov eax, dword [ebp]
mov ebx, 0xc6ef3720
mov dword [esp + 0x20], eax
jne 0x408eaf
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesA]
cmp dword [0x47a8a4], 0x60b
mov ecx, dword [ebp + 4]
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x1c], eax
jne 0x408efd
push 0
push 0
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
push 0
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x44]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateW]
mov dword [esp + 0x18], 0x20
mov ecx, dword [esp + 0x28]
mov eax, edi
push ecx
shl eax, 4
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], eax
call fcn.00408e10
mov eax, edi
shr eax, 5
add eax, dword [esp + 0x1c]
cmp dword [0x47a8a4], 0x1b
lea ebp, [ebx + edi]
mov dword [esp + 0x10], eax
mov dword [0x45dd04], 0xffcf03fc
jne 0x408f70
push 0
push 0
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
push 0x401320
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetLocaleInfoA]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov eax, dword [esp + 0x10]
xor eax, ebp
xor eax, dword [esp + 0x14]
mov dword [0x45dd04], 0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add dword [0x45dd04], eax
sub esi, dword [esp + 0x10]
mov dword [0x45dd08], 0xc5e121b4
mov ecx, esi
shr ecx, 5
mov dword [0x45dd0c], 0xffffffff
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x24]
add dword [esp + 0x10], eax
mov eax, esi
shl eax, 4
add eax, dword [esp + 0x20]
lea edx, [ebx + esi]
xor eax, edx
xor eax, dword [esp + 0x10]
add ebx, 0x61c88647
sub edi, eax
sub dword [esp + 0x18], 1
jne 0x408f05
mov eax, dword [esp + 0x838]
mov dword [eax], edi
pop edi
mov dword [eax + 4], esi
pop esi
pop ebp
pop ebx
add esp, 0x824
ret 8
Function at 0x409000
Capabilities:
Copy file
Manipulate console buffer
Terminate process

Disassembly:
sub esp, 0xab8
cmp dword [0x47a8a4], 0x516
jne 0x409058
push 0
lea eax, [esp + 0x2bc]
push eax
push 0
call sub.KERNEL32.dll_VerLanguageNameA
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigW]
xor edx, edx
xor ecx, ecx
mov word [esp + 2], dx
lea eax, [esp + 4]
push eax
mov word [esp + 4], cx
mov ecx, dword [esp + 4]
push ecx
push edx
lea edx, [esp + 0x6c4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
mov eax, dword [esp + 0xac0]
shr eax, 3
test eax, eax
jbe 0x40917e
mov ecx, dword [esp + 0xabc]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FreeResource]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
cmp dword [0x47a8a4], 0x29
jne 0x4090ca
lea edx, [esp + 0x24]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
lea eax, [esp + 0x1c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
cmp dword [0x47a8a4], 0xe1b
jne 0x4090eb
lea ecx, [esp + 0x40]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
push 0
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [0x47a8a4], 0x1c
jne 0x40912b
push 0
call esi
push 0
push 0
push 0
lea edx, [esp + 0x18c]
push edx
call edi
lea eax, [esp + 0x40]
push eax
call ebx
push 0
call ebp
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea ecx, [esp + 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
mov edx, dword [esp + 0xad4]
mov eax, dword [esp + 0x10]
push edx
push eax
call fcn.00408e60
cmp dword [0x47a8a4], 0x4fa
jne 0x40916a
xor edx, edx
xor ecx, ecx
lea eax, [esp + 0x20]
push eax
mov word [esp + 0x1c], cx
mov word [esp + 0x1e], dx
mov ecx, dword [esp + 0x1c]
push ecx
push edx
push edx
push edx
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
add dword [esp + 0x10], 8
sub dword [esp + 0x14], 1
jne 0x409095
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xab8
ret 0xc
Function at 0x409190
Capabilities:
Connect pipe
Get disk information
Manipulate console buffer
Read pipe
Write pipe

Disassembly:
sub esp, 0x438
cmp dword [0x47a8a4], 0x37
jne 0x409267
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0x401328
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsW]
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
push 0
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
push 0
call dword [sym.imp.KERNEL32.dll_InitAtomTable]
push 0
call dword [sym.imp.KERNEL32.dll_AddAtomW]
push 0x401364
push 0
call dword [sym.imp.KERNEL32.dll_SetComputerNameExA]
lea edx, [esp + 0x18]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ResetWriteWatch]
push 0
lea eax, [esp + 0x3c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointA]
call dword [sym.imp.KERNEL32.dll_CreateTimerQueue]
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStructW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommConfig]
mov dword [esp], 0
mov eax, dword [0x47a8a8]
add dword [esp], eax
mov eax, 0x38d6
add dword [esp], eax
mov ecx, dword [esp]
mov eax, dword [esp + 0x43c]
mov dl, byte [ecx + eax]
mov ecx, dword [0x45dd00]
mov byte [ecx + eax], dl
add esp, 0x438
ret 4

Function at 0x4092d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
mov eax, 0x65
mov word [0x479f48], ax
mov ecx, 0x6c
mov edx, 0x33
mov eax, 0x32
mov word [0x479f4a], cx
mov word [0x479f4c], dx
mov word [0x479f4e], ax
mov ecx, 0x65
mov edx, 0x6e
mov eax, 0x6b
push 0x479f40
mov byte [0x453649], 0x65
mov byte [0x45364a], 0x72
mov byte [0x453650], 0x2e
mov byte [0x453651], 0x64
mov byte [0x453652], 0x6c
mov byte [0x453654], 0
mov word [0x479f56], cx
mov word [0x479f46], dx
mov word [0x479f40], ax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edx, dword [0x47a8a4]
lea ecx, [esp]
push ecx
push 0x40
mov dword [0x479f3c], eax
mov eax, dword [0x45dd00]
push edx
push eax
mov byte [0x453656], 0
mov byte [0x45364f], 0x50
mov byte [0x45364d], 0x61
mov byte [0x453648], 0x60
mov byte [0x453650], 0x7c
mov byte [0x453651], 0x6f
mov byte [0x453655], 0x74
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop ecx
ret
Function at 0x4093d0
Capabilities:
Copy file
Get common file path
Read .ini file
Terminate thread

Disassembly:
sub esp, 0xa30
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetConsoleCursorInfo]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DebugBreak]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
mov edi, edi
call edi
cmp dword [0x47a8a4], 0x16
jne 0x40941f
push 0
push 0
call ebx
call ebp
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoW]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
call edi
cmp dword [0x47a8a4], 0x9e
jne 0x409454
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
lea eax, [esp + 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
lea ecx, [esp + 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
cmp esi, 0x3775ee
jg 0x409465
inc esi
cmp esi, 0x332beaf6
jl 0x4093f0
mov edx, dword [0x47a8a4]
mov eax, dword [0x45dd00]
push 0x426010
push edx
push eax
call fcn.00409000
xor esi, esi
mov edi, edi
cmp dword [0x47a8a4], 0x10
jne 0x409494
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnfix]
cmp esi, 0x1e673
jne 0x4094a1
call fcn.004092b0
inc esi
cmp esi, 0x3e79e
jl 0x409480
mov esi, dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateW]
mov dword [esp + 0x10], 0xdd9a7
lea ebx, [ebx]
cmp dword [0x47a8a4], 0xc01
jne 0x409510
push 0
push 0
call esi
call edi
push 0
push 0
push 0
push 0
call ebx
push 0
lea edx, [esp + 0x244]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x28]
push eax
push 0
call ebp
sub dword [esp + 0x10], 1
jne 0x4094d0
mov cl, 0x6d
mov al, 0x6c
push 0x453648
mov byte [0x453648], cl
mov byte [0x453649], 0x73
mov byte [0x453652], al
mov byte [0x45364e], 0x32
mov byte [0x45364a], 0x69
mov byte [0x45364d], 0x33
mov byte [0x453653], 0
mov byte [0x45364c], 0x67
mov byte [0x453650], 0x64
mov byte [0x45364b], cl
mov byte [0x453651], al
mov byte [0x45364f], 0x2e
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp dword [0x47a8a4], 0x1144
pop edi
pop esi
pop ebp
pop ebx
jne 0x40960d
push 0x401378
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathW]
push 0
push 0
push 0
lea ecx, [esp + 0x84]
push ecx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
push 0
push 0
push 0x401384
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationA]
push 0
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalUnfix]
push 0
push 0
push 0
lea eax, [esp + 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
xor eax, eax
add esp, 0xa30
ret
Function at 0x40a470
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x40a493
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x40a49a
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x40a4b1
mov edx, dword [ebp - 4]
push edx
call fcn.00410520
add esp, 4
or eax, 0xffffffff
jmp 0x40a4b3
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x40a710
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40a72f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x40a736
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x40a74d
mov ecx, dword [ebp - 4]
push ecx
call fcn.00410520
add esp, 4
or eax, 0xffffffff
jmp 0x40a74f
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x414c80
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x452814]
jne 0x414c8a
repz ret
jmp fcn.0041ad60
Function at 0x100648c
Capabilities:
Parse pe header

Disassembly:
push 0x60
push 0x1001e00
call 0x1007d0c
mov edi, 0x94
mov eax, edi
call 0x1007e70
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [0x10010c4]
mov ecx, dword [esi + 0x10]
mov dword [0x1010598], ecx
mov eax, dword [esi + 4]
mov dword [0x10105a4], eax
mov edx, dword [esi + 8]
mov dword [0x10105a8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x101059c], esi
cmp ecx, 2
je 0x10064ec
or esi, 0x8000
mov dword [0x101059c], esi
shl eax, 8
add eax, edx
mov dword [0x10105a0], eax
cmp word [0x1000000], 0x5a4d
jne 0x1006528
mov eax, dword [0x100003c]
lea eax, [eax + 0x1000000]
cmp dword [eax], 0x4550
jne 0x1006528
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x1006541
cmp ecx, 0x20b
je 0x100652e
and dword [ebp - 0x1c], 0
jmp 0x1006555
cmp dword [eax + 0x84], 0xe
jbe 0x1006528
xor ecx, ecx
cmp dword [eax + 0xf8], ecx
jmp 0x100654f
cmp dword [eax + 0x74], 0xe
jbe 0x1006528
xor ecx, ecx
cmp dword [eax + 0xe8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
push 0
call fcn.01007caf
pop ecx
test eax, eax
jne 0x1006582
cmp dword [0x101057c], 1
jne 0x100656f
call fcn.0100748b
push 0x1c
call fcn.0100729e
push 0xff
call fcn.010070fd
pop ecx
pop ecx
and dword [ebp - 4], 0
call 0x1007adf
test eax, eax
jge 0x1006597
push 0x1b
call fcn.0100645d
pop ecx
call dword [0x10010c0]
mov dword [0x1011c54], eax
call 0x10079b2
mov dword [0x1010574], eax
call fcn.01007909
test eax, eax
jge 0x10065bd
push 8
call fcn.0100645d
pop ecx
call fcn.010076af
test eax, eax
jge 0x10065ce
push 9
call fcn.0100645d
pop ecx
call fcn.01007157
mov dword [ebp - 0x28], eax
test eax, eax
je 0x10065e1
push eax
call fcn.0100645d
pop ecx
and dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [0x1001174]
call fcn.01007641
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x1006603
movzx eax, word [ebp - 0x40]
jmp 0x1006606
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push 0
push 0x1000000
call fcn.01005fcd
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x1c], 0
jne 0x1006627
push esi
call fcn.01007237
call fcn.0100726f
jmp 0x1006659
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x7c]
call 0x1007d47
ret
Function at 0x100c642
Capabilities:
Encode data using xor

Disassembly:
add dword [edx - 0x42], edi
jg 0x100c68b
nop
pop ds
cmp byte [edx + 5], dh
add al, dl
mov eax, eax
daa
iretd
pop esp
or al, 0x1f
and ebp, dword [eax + ecx*8 + 0x187a9078]
invalid
lodsb al, byte [esi]
enter 0xffffffffffff9078, 0x7a
sbb byte [esi + edi*4 + 0x1ec8890a], cl
leave
xchg esp, eax
xor al, 0x9d
and word [ecx], sp
stosd dword es:[edi], eax
cli
xchg edx, eax
cmpsb byte [esi], byte es:[edi]
movsd dword es:[edi], dword [esi]
pushal
and bh, byte [edi - 0x36521a9c]
jg 0x100c6d8
insd dword es:[edi], dx
mul byte [ecx - 0x2380727d]
cli
out 0x3d, al
outsd dx, dword [esi]
test byte [esi - 0x40344d04], bl
loop 0x100c654
enter 0x1c0f, 0xffffffffffffffd9
add al, byte [eax]
sub byte [eax], bh
std
in eax, 0xdf
sub al, 0x2e
jp 0x100c658
invalid
clc
aam 0xa3
mov bh, 0x97
lahf
enter 0x4c7c, 0xfffffffffffffff2
adc dl, byte [ebx - 0x41]
adc ecx, ecx
and al, byte [edi + 0x4ec4429e]
mov edx, 0xba692429
adc dword ds:[edi], edi
dec ebp
and al, 0x69
mov edx, 0x4d3f113e
cli
xor byte [edx], al
add al, byte [ebx]
jp 0x100c6b1
mov bh, 0xd3
pop edx
xchg edx, eax
rcr dword [edx - 0x6e], cl
pop edi
or ah, dl
jbe 0x100c69f
out 0x8c, eax
js 0x100c6c0
int 0
add byte [eax], cl
fimul dword [ecx + 0x44]
inc ecx
push esp
bswap esp
xor al, 0x3e
mov bl, 0xe3
mov bl, 0xe3
cli
cmp eax, 0xfc4a2237
invalid
Function at 0x40534d
Capabilities:
Extract resource via kernel32 functions
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x170
mov eax, dword [ebx]
and dword [ebp - 0x18], 0
mov dword [ebp - 4], eax
mov eax, dword [0x4174c8]
mov dword [ebp - 0x24], eax
mov eax, dword [0x4174cc]
push esi
mov esi, dword [ebx + 4]
mov dword [ebp - 0x20], eax
push edi
lea eax, [ebp - 0x18]
call fcn.00405340
mov eax, dword [0x4174d0]
add dword [ebp - 0x18], 0x23f
mov dword [ebp - 0x2c], eax
mov eax, dword [0x4174d4]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 0x20
mov dword [ebp - 8], 2
add dword [ebp - 8], 3
mov edi, dword [ebp - 4]
shl edi, 4
cmp dword [0x2c197dc], 0xc
jne 0x4053c3
lea eax, [ebp - 0x170]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov eax, dword [0x2c197dc]
add edi, dword [ebp - 0x2c]
cmp eax, 0xfa9
jne 0x4053dc
mov dword [0x2c18e6c], 0xedeb2e40
cmp eax, 0x3eb
jne 0x4053fc
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
and dword [0x2c18dd4], 0
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
add dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
shr eax, cl
mov ecx, dword [ebp - 0x28]
mov dword [0x2c18e68], 0xf4ea3dee
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
call fcn.00405347
xor edi, dword [ebp - 0xc]
xor dword [ebp - 0x14], edi
cmp dword [0x2c197dc], 0x1f
jne 0x40544b
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
sub esi, dword [ebp - 0x14]
and dword [ebp - 0x10], 0
sub dword [ebp - 0x10], 0x5396dd36
add dword [ebp - 0x10], 0x5396dd3a
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 8]
lea edx, [eax + esi]
mov eax, esi
shr eax, cl
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
call fcn.0040534a
mov ecx, dword [ebp - 0x10]
and dword [0x430304], 0
mov eax, esi
shl eax, cl
add eax, dword [ebp - 0x24]
xor eax, dword [ebp - 0x14]
xor eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
sub dword [ebp - 4], eax
lea eax, [ebp - 0x18]
call fcn.00405339
dec dword [ebp - 0x1c]
jne 0x40539a
mov eax, dword [ebp - 4]
pop edi
mov dword [ebx + 4], esi
mov dword [ebx], eax
pop esi
leave
ret
Function at 0x40d0d4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x416458]
jne 0x40d0de
repz ret
jmp fcn.00411393

Function at 0x40fce6
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00409670
and dword [ebp - 4], 0
cmp dword [0x42fe90], 0
mov ebx, eax
jne 0x40fd97
push 0x403e40
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40fe48
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403e34
push edi
call esi
test eax, eax
je 0x40fe48
push eax
call fcn.004095fe
mov dword [esp], 0x403e24
push edi
mov dword [0x42fe90], eax
call esi
push eax
call fcn.004095fe
mov dword [esp], 0x403e10
push edi
mov dword [0x42fe94], eax
call esi
push eax
call fcn.004095fe
mov dword [esp], 0x403df4
push edi
mov dword [0x42fe98], eax
call esi
push eax
call fcn.004095fe
pop ecx
mov dword [0x42fea0], eax
test eax, eax
je 0x40fd97
push 0x403ddc
push edi
call esi
push eax
call fcn.004095fe
pop ecx
mov dword [0x42fe9c], eax
mov eax, dword [0x42fe9c]
cmp eax, ebx
je 0x40fdef
cmp dword [0x42fea0], ebx
je 0x40fdef
push eax
call fcn.00409679
push dword [0x42fea0]
mov esi, eax
call fcn.00409679
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40fdef
test edi, edi
je 0x40fdef
call esi
test eax, eax
je 0x40fde6
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40fde6
test byte [ebp - 0xc], 1
jne 0x40fdef
or dword [ebp + 0x10], 0x200000
jmp 0x40fe28
mov eax, dword [0x42fe94]
cmp eax, ebx
je 0x40fe28
push eax
call fcn.00409679
pop ecx
test eax, eax
je 0x40fe28
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40fe28
mov eax, dword [0x42fe98]
cmp eax, ebx
je 0x40fe28
push eax
call fcn.00409679
pop ecx
test eax, eax
je 0x40fe28
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42fe90]
call fcn.00409679
pop ecx
test eax, eax
je 0x40fe48
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40fe4a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401160
Capabilities:
Create process on windows
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
mov eax, dword [0x412004]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
push edi
push 0
push 1
call dword [sym.imp.KERNEL32.dll_SetThreadErrorMode]
push 0xa
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4012db
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4012db
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4012db
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
shr eax, 1
mov dword [esp + 0x10], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 7
cmp eax, 7
ja 0x401200
lea esi, [eax + eax]
mov dword [esp + 0x20], eax
push esi
lea eax, [esp + 0x14]
push edi
push eax
call fcn.00402df0
add esp, 0xc
xor eax, eax
mov word [esp + esi + 0x10], ax
jmp 0x401214
push edi
mov byte [esp + 0x10], 0
lea ecx, [esp + 0x14]
push dword [esp + 0x10]
push eax
call fcn.00401410
cmp dword [esp + 0x20], 0x1d
jbe 0x4012a3
push 0x12
push 0
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x1c]
call fcn.00401300
push 0xb
push 0x12
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x1c]
call fcn.00401300
push 0xffffffffffffffff
push 0x1d
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x1c]
call fcn.00401300
mov ebx, dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea esi, [esp + 0x40]
mov edi, 2
cmp dword [esp + 0x3c], 8
lea eax, [esp + 0x28]
mov ecx, esi
cmovae eax, dword [esp + 0x28]
cmp dword [esi + 0x14], 8
jb 0x40127c
mov ecx, dword [esi]
push 1
push eax
push 0
push ecx
push 0
push 0
call ebx
add esi, 0x18
sub edi, 1
jne 0x401264
push 0x4013a0
push 3
push 0x18
lea eax, [esp + 0x34]
push eax
call fcn.004016bd
mov ecx, dword [esp + 0x24]
cmp ecx, 8
jb 0x4012db
mov edx, dword [esp + 0x10]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4012d1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4012f1
push ecx
push edx
call fcn.004017d2
add esp, 8
mov ecx, dword [esp + 0x74]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040167f
mov esp, ebp
pop ebp
ret 0x10
call fcn.0040355c
int3

Function at 0x402095
Capabilities:
Parse pe header

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

Function at 0x40b9c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40b9ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40b9ed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret