joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4094c8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 8], esi
test eax, eax
jg 0x4094ed
jl 0x4094e4
test ebx, ebx
jne 0x4094ed
xor eax, eax
xor edx, edx
jmp 0x4095aa
cmp dword [esi + 0x38], 0
je 0x409502
push eax
push ebx
push dword [ebp + 8]
call fcn.004095b0
jmp 0x4095aa
mov eax, dword [esi + 0x1c]
push edi
mov edi, ebx
mov ecx, dword [eax]
test ecx, ecx
je 0x409545
mov eax, dword [esi + 0x2c]
cmp dword [eax], 0
jbe 0x409545
cmp dword [eax], ebx
mov esi, ebx
cmovb esi, dword [eax]
push esi
push ecx
push dword [ebp + 8]
call sub.msvcrt.dll_memcpy
mov ecx, dword [ebp - 8]
sub edi, esi
mov eax, dword [ebp + 8]
add esp, 0xc
add eax, esi
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, ecx
jmp 0x40954b
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [esi + 0x4c], 0
je 0x40959f
mov ecx, esi
call fcn.00408cab
mov ecx, dword [ebp - 4]
mov edx, edi
mov eax, 0xfff
cmp edi, eax
jbe 0x40958a
push dword [esi + 0x4c]
push eax
push 1
push ecx
call sub.msvcrt.dll_fread
mov ecx, dword [ebp - 4]
sub edi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x40959f
jmp 0x40955d
test edx, edx
je 0x40959f
push dword [esi + 0x4c]
push edi
push 1
push ecx
call sub.msvcrt.dll_fread
add esp, 0x10
sub edi, eax
mov edx, dword [ebp + 0x10]
sub ebx, edi
mov eax, ebx
sbb edx, 0
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x409cdd
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x409d12
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x409d0f
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x409d1b
add edx, 0x28
cmp edx, esi
jne 0x409cfd
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x409d18

Function at 0x40aa24
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x41a080]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x40b167
mov ecx, 5
int 0x29
push 2
call fcn.0040aac8
push 0x50
lea eax, [ebp - 0x320]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x2cc
lea eax, [ebp - 0x2d0]
push 0
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x320]
add esp, 0x1c
mov dword [ebp - 0x328], eax
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x234], edi
mov word [ebp - 0x208], ss
mov word [ebp - 0x214], cs
mov word [ebp - 0x238], ds
mov word [ebp - 0x23c], es
mov word [ebp - 0x240], fs
mov word [ebp - 0x244], gs
pushfd
pop dword [ebp - 0x210]
mov eax, dword [ebp + 4]
mov dword [ebp - 0x218], eax
lea eax, [ebp + 4]
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x2d0], 0x10001
mov eax, dword [eax - 4]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 4]
mov dword [ebp - 0x320], 0xc0000417
mov dword [ebp - 0x31c], 1
mov dword [ebp - 0x314], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x40b272
test esi, esi
jne 0x40b272
push 2
call fcn.0040aac8
add esp, 4
push 0xc0000417
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00409f2d
mov esp, ebp
pop ebp
ret
Function at 0x40d340
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0xa4]
shl ecx, 0x10
or ecx, dword [eax + 0xa8]
cmp ecx, 0x60000
jae 0x40d36a
mov eax, 2
pop ebp
ret
push esi
call fcn.0040af90
mov esi, eax
mov eax, dword [ebp + 8]
mov edx, dword [esi + 0x70]
mov ecx, edx
and cl, 2
movzx ecx, cl
neg ecx
sbb ecx, ecx
inc eax
cmp eax, 3
ja case.default.0x40d38a
jmp dword [eax*4 + 0x40d3c0]
or edx, 2
lea eax, [ecx + 2]
mov dword [esi + 0x70], edx
pop esi
pop ebp
ret
and edx, 0xfffffffd
mov dword [esi + 0x70], edx
lea eax, [ecx + 2]
pop esi
pop ebp
ret
call sub.msvcrt.dll__errno
mov dword [eax], 0x16
call fcn.0040b0d0
or eax, 0xffffffff
pop esi
pop ebp
ret

Function at 0x40d3d0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x504
mov eax, dword [0x41a080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x40d4cb
push 0x2d
push esi
call sub.msvcrt.dll_strchr
add esp, 8
test eax, eax
je 0x40d4cb
xor ecx, ecx
mov al, byte [ecx + esi]
lea edx, [ecx + ecx]
test al, al
je 0x40d42a
cbw
inc ecx
mov word [ebp + edx - 0x204], ax
cmp ecx, 0x100
jne 0x40d408
jmp 0x40d4cb
cmp edx, 0x200
jae 0x40d531
xor eax, eax
mov word [ebp + edx - 0x204], ax
lea eax, [ebp - 0x204]
push 0x2d
push eax
call sub.msvcrt.dll_wcsrchr
add esp, 8
test eax, eax
je 0x40d4cb
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
lea eax, [ebp - 0x504]
push 0xff
push eax
push 0x1001
lea eax, [ebp - 0x204]
push eax
call edi
test eax, eax
je 0x40d4ca
lea edx, [ebp - 0x504]
mov ecx, 0x5f
lea edx, [edx + eax*2]
mov word [edx - 2], cx
mov ecx, 0x100
sub ecx, eax
lea eax, [ebp - 0x204]
push ecx
push edx
push 0x1002
push eax
call edi
test eax, eax
je 0x40d4ca
lea edi, [ebp - 0x504]
xor eax, eax
nop
movzx ecx, word [edi + eax*2]
lea edx, [ebp - 0x304]
test cx, cx
je 0x40d513
mov byte [edx + eax], cl
inc eax
cmp eax, 0x100
jne 0x40d4b0
pop edi
mov eax, dword [0x41ac3c]
test eax, eax
jne 0x40d4f1
push str.setlocale
call fcn.0040ecd0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x40d4ec
or eax, 0xffffffff
mov dword [0x41ac3c], eax
lea ecx, [eax + 1]
neg ecx
sbb ecx, ecx
and ecx, eax
je 0x40d51f
push esi
push ebx
call ecx
add esp, 8
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409f2d
mov esp, ebp
pop ebp
ret
mov byte [edx + eax], 0
lea esi, [ebp - 0x304]
jmp 0x40d4ca
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.00409f2d
mov esp, ebp
pop ebp
ret
call fcn.0040ac38
int3

Function at 0x40d860
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.0040d890
mov esi, dword [ebp + 8]
test al, al
je 0x40d87e
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call fcn.0040d8a0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40d9d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 2
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40da2c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40da2c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40da2c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40da2c
cmp dword [ecx + 0x74], 0xe
jbe 0x40da2c
cmp dword [ecx + 0xe8], 0
je 0x40da2c
push dword [ebp + 8]
call fcn.0040d8a0
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x41ac48
call fcn.0040d670
add esp, 8
cmp dword [ebp - 8], 0
jne 0x40da61
push dword [ebp + 8]
call fcn.0040d860
mov esp, ebp
pop ebp
ret

Function at 0x40daa0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40dafc
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40dafc
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40dafc
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40dafc
cmp dword [ecx + 0x74], 0xe
jbe 0x40dafc
cmp dword [ecx + 0xe8], 0
je 0x40dafc
push dword [ebp + 8]
call fcn.0040d8a0
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x41ac48
call fcn.0040d670
add esp, 8
cmp dword [ebp - 8], 0
jne 0x40db31
push dword [ebp + 8]
call fcn.0040d860
mov esp, ebp
pop ebp
ret

Function at 0x432000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40729f
nop
nop
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x432030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x428d6d2b
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x2ef14c52
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x10001250
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10010
call fcn.10002130
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0
push 0
push 0
push 1
push str.RunPELoader
mov dword [ebp - 0x10010], edx
mov esi, ecx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebx, eax
mov dword [ebp - 0x1000c], ebx
test ebx, ebx
je 0x100012b0
push 0
push 0x84000000
push 0
push 0
push esi
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
test esi, esi
jne 0x100012c2
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000144b
mov esp, ebp
pop ebp
ret
push edi
push 0x10000
xor ebx, ebx
push 8
mov dword [ebp - 0x10008], ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
jne 0x10001309
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x1000c]
call esi
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000144b
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10008]
push eax
push 0x10000
lea eax, [ebp - 0x10004]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x100013ae
nop dword [eax + eax]
mov eax, dword [ebp - 0x10008]
test eax, eax
je 0x100013ae
lea ecx, [eax + ebx]
cmp ecx, 0x10000
jbe 0x10001362
push ecx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
test eax, eax
je 0x1000139c
mov edi, eax
mov eax, dword [ebp - 0x10008]
push eax
lea eax, [ebp - 0x10004]
push eax
lea eax, [ebx + edi]
push eax
call sub.VCRUNTIME140.dll_memcpy
add ebx, dword [ebp - 0x10008]
lea eax, [ebp - 0x10008]
add esp, 0xc
push eax
push 0x10000
lea eax, [ebp - 0x10004]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x10001330
jmp 0x100013ae
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor edi, edi
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x1000c]
call esi
mov eax, dword [ebp - 0x10010]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [eax], ebx
mov eax, edi
pop edi
pop esi
pop ebx
call fcn.1000144b
mov esp, ebp
pop ebp
ret
Function at 0x405cfc
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x110], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x405e06
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
jne 0x405d4f
push 0x105
lea eax, [ebp - 0x109]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA_2
mov ecx, eax
lea edx, [ebp - 0x109]
mov eax, dword [ebp - 4]
call fcn.004030d0
jmp 0x405ded
call sub.kernel32.dll_GetCommandLineA_1
mov ebx, eax
mov eax, ebx
call fcn.00405cb0
mov ebx, eax
mov edi, ebx
mov eax, ebx
call fcn.00405cd0
mov ebx, eax
test esi, esi
je 0x405d77
dec esi
test esi, esi
jl 0x405d77
cmp edi, ebx
jne 0x405d56
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x110]
mov edx, edi
call fcn.00403110
mov eax, dword [ebp - 0x110]
mov ecx, ebx
sub ecx, edi
mov edx, 1
call fcn.0040335c
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00403158
cmp eax, 2
jl 0x405ded
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp byte [eax], 0x22
jne 0x405ded
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00403158
mov edx, dword [ebp - 4]
mov edx, dword [edx]
cmp byte [edx + eax - 1], 0x22
jne 0x405ded
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00403158
mov ecx, eax
sub ecx, 2
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, 2
call fcn.0040335c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405e0d
lea eax, [ebp - 0x110]
call fcn.00402fec
ret

Function at 0x405e14
Capabilities:
Get file attributes

Disassembly:
call fcn.00404d60
push eax
call sub.kernel32.dll_GetFileAttributesA
inc eax
je 0x405e28
dec eax
and al, 0x10
sete al
ret

Function at 0x405e94
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x405f2c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebx + 0x18], 0
jne 0x405ee1
mov eax, dword [ebx + 0x19]
call fcn.0040331c
push eax
push esi
mov eax, edi
call fcn.0040331c
push eax
mov eax, dword [ebx + 0x1d]
call fcn.0040331c
push eax
call sub.kernel32.dll_GetPrivateProfileIntA
mov dword [ebp - 4], eax
jmp 0x405f16
mov dword [ebp - 4], esi
mov eax, dword [ebx + 0x19]
call fcn.0040331c
push eax
lea edx, [ebp - 8]
mov eax, esi
call fcn.00405b28
mov eax, dword [ebp - 8]
call fcn.0040331c
push eax
mov eax, edi
call fcn.0040331c
push eax
mov eax, dword [ebx + 0x1d]
call fcn.0040331c
push eax
call sub.kernel32.dll_WritePrivateProfileStringA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405f33
lea eax, [ebp - 8]
call fcn.00402fec
ret
Function at 0x407578
Capabilities:
Get graphical window text

Disassembly:
xchg edx, eax
movzx ecx, byte [edx + 0x3a]
jecxz 0x407587
mov edx, dword [edx + 0x36]
jmp fcn.00403110
mov ecx, dword [edx + 0x18]
jecxz 0x40757f
push ebx
push esi
xchg ebx, eax
mov esi, ecx
push esi
call sub.user32.dll_GetWindowTextLengthA
mov edx, eax
inc eax
push eax
mov eax, ebx
call fcn.00403488
pop edx
mov ecx, dword [ebx]
jecxz 0x4075af
push edx
push ecx
push esi
call sub.user32.dll_GetWindowTextA
pop esi
pop ebx
ret

Function at 0x40c7a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdcc
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov esi, eax
mov edi, dword [ebp + 8]
mov eax, edi
call fcn.00402fec
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x20
call fcn.004025fc
call fcn.0040a4c0
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x12d]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
call fcn.0040331c
mov dword [ebp - 0x1c], eax
mov edx, ebx
mov eax, esi
call fcn.0040c764
mov dword [ebp - 0x18], eax
test ebx, 0x1000
jle 0x40c815
lea eax, [ebp - 8]
push eax
push 0x12
call fcn.0040a4c0
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
jmp 0x40c834
test ebx, 0x2000
jle 0x40c834
lea eax, [ebp - 8]
push eax
push 4
call fcn.0040a4c0
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x28]
push eax
call sub.shell32.dll_SHBrowseForFolderA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40c88c
test ebx, 0x3000
jle 0x40c862
mov eax, edi
lea edx, [ebp - 0x12d]
mov ecx, 0x105
call fcn.00403140
jmp 0x40c88c
lea eax, [ebp - 0x232]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
mov eax, edi
lea edx, [ebp - 0x232]
mov ecx, 0x105
call fcn.00403140
mov eax, dword [ebp - 8]
call fcn.00404b24
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40ce50
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40cfd0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebx + 0x10]
push eax
lea eax, [ebp - 4]
mov ecx, 0x40cfe8
mov edx, edi
call fcn.004031a4
mov eax, dword [ebp - 4]
call fcn.0040331c
push eax
call sub.kernel32.dll_FindFirstFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x40cfb5
cmp byte [ebx + 0x3c], 0x2e
je 0x40cf97
test byte [ebx + 0x10], 0x10
je 0x40cf0f
cmp byte [ebx + 0x15a], 0
jbe 0x40cecd
lea eax, [ebp - 4]
lea edx, [ebx + 0x3c]
mov ecx, 0x104
call fcn.00403140
mov ecx, dword [ebp - 4]
mov edx, edi
mov eax, ebx
call fcn.0040cce4
cmp byte [ebx + 0x158], 0
jne 0x40cf97
push edi
lea eax, [ebp - 8]
lea edx, [ebx + 0x3c]
mov ecx, 0x104
call fcn.00403140
push dword [ebp - 8]
push 0x40cff4
lea eax, [ebp - 4]
mov edx, 3
call fcn.00403218
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0040ce50
jmp 0x40cf97
lea eax, [ebp - 8]
lea edx, [ebx + 0x3c]
mov ecx, 0x104
call fcn.00403140
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.00405bd8
mov eax, dword [ebp - 4]
mov edx, dword [ebx + 0xc]
call fcn.0040cb90
test al, al
je 0x40cf63
inc dword [ebx + 4]
cmp byte [ebx + 0x15a], 1
je 0x40cf97
lea eax, [ebp - 4]
lea edx, [ebx + 0x3c]
mov ecx, 0x104
call fcn.00403140
mov ecx, dword [ebp - 4]
mov edx, edi
mov eax, ebx
call fcn.0040cce4
jmp 0x40cf97
push edi
push 0x40cff4
lea eax, [ebp - 8]
lea edx, [ebx + 0x3c]
mov ecx, 0x104
call fcn.00403140
push dword [ebp - 8]
lea eax, [ebp - 4]
mov edx, 3
call fcn.00403218
mov edx, dword [ebp - 4]
lea eax, [ebx + 0x18c]
call fcn.0040a28c
cmp byte [ebx + 8], 0
jne 0x40cfaf
lea eax, [ebx + 0x10]
push eax
push esi
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x40ce98
push esi
call sub.kernel32.dll_FindClose
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cfd7
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403010
ret
Function at 0x40e260
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x140]
call fcn.00405e6c
test eax, eax
jbe 0x40e37f
mov eax, dword [ebp + 8]
add eax, 0xffffff04
xor ecx, ecx
mov edx, 0xf8
call fcn.004025fc
mov eax, dword [ebp + 8]
lea edx, [eax - 0x13c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x140]
mov ecx, 0x40
call fcn.00405e70
cmp eax, 0x40
jne 0x40e37f
mov eax, dword [ebp + 8]
cmp word [eax - 0x13c], 0x5a4d
jne 0x40e37f
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x100]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x140]
xor ecx, ecx
call fcn.00405e74
mov edx, dword [ebp + 8]
cmp eax, dword [edx - 0x100]
jne 0x40e37f
mov eax, dword [ebp + 8]
lea edx, [eax - 0xfc]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x140]
mov ecx, 4
call fcn.00405e70
cmp eax, 4
jne 0x40e37f
mov eax, dword [ebp + 8]
cmp dword [eax - 0xfc], 0x4550
jne 0x40e37f
mov eax, dword [ebp + 8]
lea edx, [eax - 0xf8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x140]
mov ecx, 0x14
call fcn.00405e70
cmp eax, 0x14
jne 0x40e37f
mov eax, dword [ebp + 8]
cmp word [eax - 0xf8], 0x14c
jne 0x40e37f
mov eax, dword [ebp + 8]
movzx ecx, word [eax - 0xe8]
mov eax, dword [ebp + 8]
lea edx, [eax - 0xe4]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x140]
call fcn.00405e70
mov edx, dword [ebp + 8]
movzx edx, word [edx - 0xe8]
cmp eax, edx
jne 0x40e37f
mov bl, 1
mov eax, ebx
pop ebx
pop ebp
ret

Function at 0x40e958
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor edx, edx
mov eax, dword [ebp + 8]
mov ax, word [eax - 0xf6]
test ax, ax
jbe 0x40ea38
mov edx, dword [ebp + 8]
movzx eax, ax
dec eax
test eax, eax
jl 0x40ea36
inc eax
mov dword [ebp - 4], eax
xor ebx, ebx
mov esi, ebx
add esi, esi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + esi*8 + 0xc]
xor edx, edx
test eax, 0x20000000
je 0x40e9ce
test eax, 0x40000000
je 0x40e9ba
test eax, 0x80000000
je 0x40e9b5
or edx, 0x40
jmp 0x40e9f5
or edx, 0x20
jmp 0x40e9f5
test eax, 0x80000000
je 0x40e9c9
or edx, 0x80
jmp 0x40e9f5
or edx, 0x10
jmp 0x40e9f5
test eax, 0x40000000
je 0x40e9e6
test eax, 0x80000000
je 0x40e9e1
or edx, 4
jmp 0x40e9f5
or edx, 2
jmp 0x40e9f5
test eax, 0x80000000
je 0x40e9f2
or edx, 8
jmp 0x40e9f5
or edx, 1
test eax, 0x4000000
je 0x40ea02
or edx, 0x200
mov eax, dword [ebp + 8]
add eax, 0xfffffebc
push eax
push edx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + esi*8 + 8]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + esi*8]
push eax
call sub.kernel32.dll_VirtualProtect
inc ebx
dec dword [ebp - 4]
jne 0x40e988
mov dl, 1
mov eax, edx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219