joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42e9b4
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x44f014]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x42e9ff
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0042eb4f
test al, al
jne 0x42e9f9
sub edx, 2
cmp edx, edi
jne 0x42e9df
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x42ea21
lea eax, [edi + 2]
cmp edx, eax
je 0x42ea21
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0042e900
add esp, 0x10
jmp 0x42eb1b
push esi
lea ecx, [ebp - 0x255]
call fcn.0042eb4f
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42ea64
push dword [ebp - 0x25c]
jmp 0x42ea11
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x42eaa1
cmp word [ebp - 0x226], 0
je 0x42eac2
cmp word [ebp - 0x226], ax
jne 0x42eaa1
cmp word [ebp - 0x224], 0
je 0x42eac2
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0042e900
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x42eb0e
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x42ea7b
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x42eaf6
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x42eb1b
push 0x42e730
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004362a0
add esp, 0x10
jmp 0x42eaeb
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416ec0
leave

Function at 0x42f440
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x42f451
pop esi
ret
push ebx
push edi
push esi
call fcn.0042f409
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00427aa1
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x42f479
push ebx
push esi
push edi
call fcn.00418a30
add esp, 0xc
push 0
call fcn.00427a67
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x42f849
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042f48e
Function at 0x431d6f
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00427719
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x431dde
cmp esi, dword [ebp - 4]
je 0x431dd9
cmp dword [ebp + 0xc], 0
je 0x431dd9
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x431db6
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004318ac
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x431de0
xor eax, eax
inc eax
jmp 0x431de0
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x431e45
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x44f014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.00427719
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00427719
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x431ebc
cmp word [ecx], dx
je 0x431ebc
mov eax, dword [0x43fe44]
push edi
dec eax
push eax
push 0x43fd30
call fcn.00431de4
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x431f2f
cmp word [eax], dx
je 0x431f2f
mov eax, dword [edi]
test eax, eax
je 0x431ee0
cmp word [eax], dx
je 0x431ee0
lea eax, [ebp - 0x10]
push eax
call fcn.004317b2
jmp 0x431ee9
lea eax, [ebp - 0x10]
push eax
call fcn.0043184d
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x431f59
mov eax, dword [0x43fd2c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x43fa20
call fcn.00431de4
add esp, 0xc
test al, al
je 0x431f59
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x431f24
cmp word [eax], di
je 0x431f24
lea eax, [ebp - 0x10]
push eax
call fcn.004317b2
pop ecx
jmp 0x431f5b
lea eax, [ebp - 0x10]
push eax
call fcn.0043184d
jmp 0x431f21
mov eax, dword [edi]
test eax, eax
je 0x431f46
cmp word [eax], dx
je 0x431f46
lea eax, [ebp - 0x10]
push eax
call fcn.00431767
pop ecx
jmp 0x431f59
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x432024
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00431c69
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x432024
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x432024
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x432024
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x431fb1
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0042a7e2
test ebx, ebx
je 0x43201f
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0042a7e2
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x432024
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x432024
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00422315
add esp, 0x10
xor eax, eax
inc eax
jmp 0x432026
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416ec0
leave
ret
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43300c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
jl 0x433030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x401090
Capabilities:
Query environment variable

Disassembly:
push str.console_exe
call fcn.00401970
add esp, 4
test eax, eax
jne 0x4010ab
call fcn.00402850
jmp 0x401ac0
ret
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push esi
push edi
push eax
push ecx
call dword [0x4057b4]
push 1
call dword [0x40581c]
mov esi, eax
add esp, 0xc
test esi, esi
je 0x401b20
call dword [0x40568c]
push eax
call dword [0x40579c]
add esp, 4
test eax, eax
je 0x401b17
push eax
push 0
push esi
call dword [0x405824]
add esp, 0xc
test eax, eax
jne 0x401b17
push esi
push str.path
call dword [0x40578c]
add esp, 8
push esi
call fcn.00401b70
add esp, 4
call fcn.004019d0
push str.PYTHONINSPECT
mov edi, eax
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
test eax, eax
je 0x401b65
mov esi, dword [sym.imp.MSVCR90.dll___iob_func]
push 0x405244
call esi
push eax
call dword [0x4057a4]
add esp, 8
test eax, eax
je 0x401b65
push str._stdin_
call esi
push eax
call dword [0x4057ac]
add esp, 8
call dword [0x405684]
mov eax, edi
pop edi
pop esi
ret

Function at 0x401150
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push str.PYTHONSCRIPT
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp byte [0x406420], 0
mov esi, eax
jne 0x401178
push edi
call fcn.004010b0
add esp, 4
test esi, esi
jne 0x401195
push str.Could_not_locate_script_resource:
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call section..text
add esp, 8
pop edi
xor eax, eax
pop esi
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4011ba
push str.Could_not_load_script_resource:
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call section..text
add esp, 8
pop edi
xor eax, eax
pop esi
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [0x406524], eax
mov dword [0x40664c], eax
test eax, eax
jne 0x4011e8
push str.Could_not_lock_script_resource:
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call section..text
add esp, 8
pop edi
xor eax, eax
pop esi
ret
mov ecx, dword [eax + 0xc]
mov dword [0x406644], ecx
lea ecx, [eax + 0x10]
mov dword [0x406524], ecx
cmp dword [eax], 0x78563412
je 0x401216
push str.Bug:_Invalid_script_resource
push 0
call section..text
add esp, 8
pop edi
xor eax, eax
pop esi
ret
mov eax, ecx
lea esi, [eax + 1]
jmp 0x401220
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x401220
sub eax, esi
lea edx, [ecx + eax + 1]
mov dword [0x406524], edx
cmp byte [ecx], 0
je 0x40125e
push ecx
push 0x406420
push 0x4050c0
push 0x304
push 0x405de0
call dword [sym.imp.MSVCR90.dll__snprintf]
add esp, 0x14
pop edi
mov eax, 1
pop esi
ret
push 0x304
push 0x405de0
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
pop edi
mov eax, 1
pop esi
ret
Function at 0x401280
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ecx
push esi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4012a7
xor eax, eax
pop esi
pop ecx
ret
push ebx
push edi
lea ecx, [esp + 0xc]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
push 0
push 2
push 0
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
call esi
cmp edi, 0xffffffff
jne 0x4012df
pop edi
pop ebx
xor eax, eax
pop esi
pop ecx
ret
push ebp
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push edi
mov ebp, eax
call esi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4012fe
mov dword [eax], ebx
mov eax, ebp
pop ebp
pop edi
pop ebx
pop esi
pop ecx
ret

Function at 0x401310
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x308
cmp byte [0x406420], 0
push esi
mov esi, dword [esp + 0x310]
jne 0x401330
push esi
call fcn.004010b0
add esp, 4
push 0x4050c8
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x401385
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push 0x4050d8
call fcn.00401c90
add esp, 8
test eax, eax
jne 0x401430
push str.Could_not_load_python_dll
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call section..text
add esp, 8
xor eax, eax
pop esi
add esp, 0x308
ret
lea eax, [esp + 4]
push eax
mov eax, 0x405de0
call fcn.00401280
mov esi, eax
add esp, 4
test esi, esi
je 0x4013d4
push edi
push 0xb
push 0x405104
push esi
xor edi, edi
call dword [sym.imp.MSVCR90.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x4013c8
lea ecx, [esi + 0xf]
push ecx
push 0x405110
call fcn.00401c90
add esp, 8
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test edi, edi
pop edi
jne 0x401430
push str.PYTHON27.DLL
push 0x406420
push 0x405130
lea edx, [esp + 0x14]
push 0x304
push edx
call dword [sym.imp.MSVCR90.dll__snprintf]
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00401c90
add esp, 0x1c
test eax, eax
jne 0x401430
push str.LoadLibrary_pythondll__failed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call section..text
lea ecx, [esp + 0x10]
push ecx
push 0
call section..text
add esp, 0x10
xor eax, eax
pop esi
add esp, 0x308
ret
mov eax, 1
pop esi
add esp, 0x308
ret
Function at 0x401470
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x304
push esi
mov esi, dword [esp + 0x30c]
push str.ZLIB.PYD
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4014dc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401584
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push 0x405158
call fcn.00402450
add esp, 8
test eax, eax
je 0x401584
push 0x405164
push eax
call fcn.00402160
add esp, 8
test eax, eax
je 0x401584
pop esi
add esp, 0x304
jmp eax
push str.zlib.pyd
push 0x406420
push str._s_s
lea eax, [esp + 0x10]
push 0x304
push eax
call dword [sym.imp.MSVCR90.dll__snprintf]
add esp, 0x14
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x401527
push str.initzlib
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401527
call eax
pop esi
add esp, 0x304
ret
push edi
push 0
mov eax, 0x405de0
call fcn.00401280
mov esi, eax
add esp, 4
mov edi, esi
test esi, esi
je 0x401583
push ebx
mov ebx, dword [sym.imp.MSVCR90.dll_strncmp]
push 0xb
push str._pythondll_
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x40155e
mov edx, dword [esi + 0xb]
lea edi, [esi + edx + 0xf]
push 0xa
push str._zlib.pyd_
push edi
call ebx
add esp, 0xc
pop ebx
test eax, eax
jne 0x40157c
add edi, 0xe
push edi
call fcn.00401440
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop edi
pop esi
add esp, 0x304
ret

Function at 0x401810
Capabilities:
Compiled with py2exe
Query environment variable

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebx
call fcn.00401150
add esp, 4
test eax, eax
jne 0x401829
mov eax, 0xff
pop ebx
ret
push ebx
call fcn.00401310
jmp loc.0040e578

Function at 0x401be0
Capabilities:
Print debug messages

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
mov eax, edi
mov esi, 0x405670
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401bf1
sub eax, edx
add eax, edi
cmp eax, edi
je 0x401c0a
cmp byte [eax], 0x5c
je 0x401c0f
dec eax
cmp eax, edi
jne 0x401c00
cmp byte [eax], 0x5c
jne 0x401c10
inc eax
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x401c2a
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x401c84
cmp dword [str.Py_Initialize], 0
je 0x401c55
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea esp, [esp]
mov eax, dword [esi]
push eax
push ebx
call edi
mov dword [esi + 4], eax
test eax, eax
je 0x401c5e
add esi, 8
cmp dword [esi], 0
jne 0x401c40
pop edi
pop esi
mov eax, 1
pop ebx
ret
push 0x40583c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esi]
push ecx
push 0x40584c
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x401c90
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, 0x405670
test eax, eax
jne 0x401cad
mov eax, dword [esp + 8]
push eax
call fcn.00401be0
add esp, 4
pop esi
ret
mov ecx, dword [esp + 8]
push edi
push eax
push ecx
call fcn.00402450
mov edi, eax
add esp, 8
test edi, edi
je 0x401d19
cmp dword [str.Py_Initialize], 0
je 0x401ceb
jmp 0x401cd0
mov edx, dword [esi]
push edx
push edi
call fcn.00402160
add esp, 8
mov dword [esi + 4], eax
test eax, eax
je 0x401cf3
add esi, 8
cmp dword [esi], 0
jne 0x401cd0
jmp loc.0040e640
push str.undef_symbol
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esi]
push eax
push str.undefined_symbol__s____exit__1__n
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0xc
pop edi
xor eax, eax
pop esi
ret

Function at 0x401e90
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
mov ebx, dword [eax + 4]
mov eax, dword [eax]
movzx ecx, word [eax + 0x14]
xor edx, edx
push esi
lea esi, [ecx + eax + 0x18]
mov dword [esp + 8], 0
cmp dx, word [eax + 6]
jae 0x401f37
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
add esi, 0x10
mov eax, dword [esi]
test eax, eax
jne 0x401ef2
mov eax, dword [esp + 0x1c]
mov edi, dword [eax + 0x38]
test edi, edi
jle 0x401f1b
mov ecx, dword [esi - 4]
push 4
push 0x1000
push edi
add ecx, ebx
push ecx
call ebp
push edi
push 0
push eax
mov dword [esi - 8], eax
call sub.MSVCR90.dll_memset
jmp 0x401f18
mov edx, dword [esi - 4]
push 4
push 0x1000
push eax
add edx, ebx
push edx
call ebp
mov ecx, dword [esi + 4]
add ecx, dword [esp + 0x18]
mov edi, eax
mov eax, dword [esi]
push eax
push ecx
push edi
call sub.MSVCR90.dll_memcpy
mov dword [esi - 8], edi
add esp, 0xc
mov edx, dword [esp + 0x20]
mov ecx, dword [edx]
mov eax, dword [esp + 0x10]
movzx edx, word [ecx + 6]
inc eax
add esi, 0x28
cmp eax, edx
mov dword [esp + 0x10], eax
jl 0x401ec3
pop edi
pop ebp
pop esi
pop ebx
pop ecx
ret
Function at 0x401f40
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [eax]
movzx ecx, word [ebx + 0x14]
push ebp
xor edx, edx
xor ebp, ebp
lea eax, [ecx + ebx + 0x18]
cmp dx, word [ebx + 6]
jae 0x401ff7
push esi
push edi
lea edi, [eax + 0x24]
mov eax, dword [edi]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x401f97
mov eax, dword [edi - 0x14]
mov ecx, dword [edi - 0x1c]
push 0x4000
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x401fdf
lea edx, [edx + ecx*2]
lea ecx, [esi + edx*2]
mov esi, dword [ecx*4 + 0x4058a4]
test eax, 0x4000000
je 0x401fb1
or esi, 0x200
mov edx, dword [edi - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x401fcc
test al, 0x40
je 0x401fc3
mov ecx, dword [ebx + 0x20]
jmp 0x401fca
test al, al
jns 0x401fdf
mov ecx, dword [ebx + 0x24]
test ecx, ecx
jbe 0x401fdf
mov ecx, dword [edi - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [esp + 0x18]
mov ebx, dword [edx]
movzx eax, word [ebx + 6]
inc ebp
add edi, 0x28
cmp ebp, eax
jl 0x401f64
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x402450
Capabilities:
Parse pe header

Disassembly:
push ecx
push esi
mov esi, dword [0x405dbc]
push edi
test esi, esi
je 0x40247c
mov edi, dword [sym.imp.MSVCR90.dll__stricmp]
mov eax, dword [esi + 0x18]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call edi
add esp, 8
test eax, eax
je 0x40249b
mov esi, dword [esi + 0x20]
test esi, esi
jne 0x402463
push ebp
mov ebp, dword [esp + 0x18]
mov edx, 0x5a4d
cmp word [ebp], dx
je 0x4024a4
push 0xb
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebp
pop edi
xor eax, eax
pop esi
pop ecx
ret
inc dword [esi + 0x1c]
pop edi
mov eax, esi
pop esi
pop ecx
ret
push ebx
mov ebx, dword [ebp + 0x3c]
add ebx, ebp
cmp dword [ebx], 0x4550
je 0x4024c2
push 0xb
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebx
pop ebp
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov eax, dword [ebx + 0x50]
mov ecx, dword [ebx + 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x2000
push eax
push ecx
call esi
mov edi, eax
test edi, edi
jne 0x402503
mov edx, dword [ebx + 0x50]
push 4
push 0x2000
push edx
push eax
call esi
mov edi, eax
test edi, edi
jne 0x402503
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebx
pop ebp
pop edi
xor eax, eax
pop esi
pop ecx
ret
push 0x28
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
xor eax, eax
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x18]
push eax
mov dword [esi + 4], edi
mov dword [esi + 0x1c], 1
call dword [sym.imp.MSVCR90.dll__strdup]
add esp, 4
push 4
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], 0
mov ecx, dword [ebx + 0x50]
push 0x1000
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, dword [ebx + 0x54]
push 4
push 0x1000
push edx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebp + 0x3c]
add ecx, dword [ebx + 0x54]
mov dword [esp + 0x10], eax
push ecx
push ebp
push eax
call sub.MSVCR90.dll_memcpy
mov edx, dword [ebp + 0x3c]
mov eax, dword [esp + 0x1c]
push esi
add eax, edx
push ebx
mov dword [esi], eax
push ebp
mov dword [eax + 0x34], edi
call fcn.00401e90
mov eax, edi
add esp, 0x18
sub eax, dword [ebx + 0x34]
je 0x4025aa
push eax
mov eax, esi
call fcn.00402000
add esp, 4
push esi
call fcn.004022d0
add esp, 4
test eax, eax
je 0x4025e2
push esi
call fcn.00401f40
mov ecx, dword [esi]
mov eax, dword [ecx + 0x28]
add esp, 4
test eax, eax
je 0x402604
add eax, edi
jne 0x4025d7
push 0xb
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4025e2
push 0
push 1
push edi
call eax
test eax, eax
jne 0x4025fd
mov edx, dword [esi + 0x18]
push edx
call dword [sym.imp.MSVCR90.dll_free]
push esi
call fcn.004021f0
add esp, 8
pop ebx
pop ebp
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov dword [esi + 0x10], 1
mov eax, esi
call fcn.00401d20
pop ebx
pop ebp
pop edi
pop esi
pop ecx
ret
Function at 0xf42738
Capabilities:
Encode data using xor

Disassembly:
vpunpcklwd ymm1, ymm3, ymm7
invalid
jmp 0xf42742
pushal
call 0xf42748
pop ebp
sub ebp, 0x10
sub ebp, 0xb42738
jmp 0xf4275e
mov eax, 0xb42738
add eax, ebp
add eax, 0x4c
mov ecx, 0x5c0
mov edx, 0x701a898b
xor byte [eax], dl
inc eax
dec ecx
jne 0xf42775
jmp 0xf42788
add byte [esi], al
add dh, byte [edi + 0xa8b8b8b]
dec edx
jae 0xf4271f
mov ecx, dword [ebx - 0x72ccb978]
mov ecx, dword [ebx - 0x745cce75]
mov ecx, dword [ebx + 0x4388697c]
add byte [edx], cl
xchg dword [ebx + 0x4e888b8b], ecx
push es
out dx, eax
scasd eax, dword es:[edi]
ja 0xf427b5
invalid
push es
out dx, eax
scasd eax, dword es:[edi]
ja 0xf427bc
invalid
jecxz 0xf42809
mov edx, 0xfce38baa
jle 0xf427de
mov ecx, dword [edx + 0x30e3afa7]
popfd
xchg esp, eax
mov ebp, 0x8b8b8e63
mov esp, dword [edx - 0x43]
mov ecx, dword [ebx - 0x5010f975]
ja 0xf427df
cmpsd dword [esi], dword es:[edi]
scasd eax, dword es:[edi]
push es
out 0xaf, eax
mov eax, dword [eax]
push cs
or dword [ebx + 0x1e008b8b], 0xffffff87
mov ecx, dword [ebx - 0x64f9ff75]
mov ecx, dword [ebx - 0x769db575]
mov edx, 0x8f490889
ret 0xe84
scasd eax, dword es:[edi]
invalid