joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402e50
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
push esi
mov esi, ecx
push edi
mov ecx, dword [esp + 0x20]
mov dword [esp + 8], 0
test eax, eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
je 0x402f63
test ecx, ecx
jbe 0x402f63
mov eax, dword [esi + 0x10]
cmp eax, 0xffffffff
je 0x402f63
test eax, eax
je 0x402f63
mov ecx, dword [esi + 8]
test ecx, ecx
jne 0x402eaf
pop edi
mov eax, 0xfffffffe
pop esi
add esp, 0x10
ret 0xc
lea edi, [esi + 0x28]
push 0
push edi
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x20]
push 1
push edx
push eax
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x402f34
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x402eed
mov dword [esi + 0xc], 1
mov dword [esp + 8], 0xfffffffe
jmp 0x402f34
mov ecx, dword [esp + 0x24]
mov edx, dword [esi + 0x38]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x402f11
cmp eax, 0x102
jne 0x402f34
mov dword [esp + 8], 0xfffffffc
jmp 0x402f34
mov edx, dword [esi + 0x10]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push 0
push ecx
push edi
push edx
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
jne 0x402f34
mov dword [esp + 8], 0xfffffffd
mov eax, dword [esi + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [esp + 8]
test ecx, ecx
jle 0x402f59
mov edi, dword [esi + 0x48]
mov eax, ecx
cdq
add edi, eax
mov dword [esi + 0x48], edi
mov eax, dword [esi + 0x4c]
adc eax, edx
mov dword [esi + 0x4c], eax
pop edi
mov eax, ecx
pop esi
add esp, 0x10
ret 0xc
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x10
ret 0xc

Function at 0x404d00
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 4]
push 0
push eax
push 0
push 0
push 0x64
push 0xc8
push 0
push accept
push 0xcf0000
push 0x414064
push 0x4140c8
push 0
mov dword [0x414060], eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
test eax, eax
mov dword [0x41405c], eax
jne 0x404d3f
ret
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
call fcn.00405470
mov eax, dword [0x41405c]
add esp, 4
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
ret

Function at 0x405470
Capabilities:
Inspect load icon resource

Disassembly:
sub esp, 0x1e8
push edi
mov ecx, 0x7a
xor eax, eax
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
mov ecx, dword [0x414060]
mov eax, dword [0x41405c]
push 0x6c
push ecx
mov dword [esp + 0xc], 0x1e8
mov dword [esp + 0x10], eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1f0]
test eax, eax
mov dword [esp + 0x10], 7
mov dword [esp + 0x14], 0x401
mov byte [esp + 0x1c], 0
pop edi
jne 0x4054dd
lea edx, [esp]
push edx
push 2
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
add esp, 0x1e8
ret
lea eax, [esp]
push eax
push 0
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
add esp, 0x1e8
ret
Function at 0x405cd0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
lea eax, [esp + 4]
lea edx, [esp]
push eax
lea eax, [esp + 0x10]
push edx
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [ecx + 4]
push 0
push edx
push eax
mov dword [esp + 0x1c], 4
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405d11
mov ecx, dword [esp + 0x10]
mov edx, dword [esp]
mov dword [ecx], edx
add esp, 8
ret 8

Function at 0x405ed0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x120
lea ecx, [esp + 8]
push ebx
push ebp
push esi
push edi
call fcn.00405b40
mov edi, dword [esp + 0x13c]
mov esi, 0x10008
test edi, edi
je 0x405ef8
mov esi, 0x10108
mov ebx, dword [esp + 0x138]
test ebx, ebx
jne 0x405f1c
lea ecx, [esp + 0x18]
call fcn.00405b50
pop edi
pop esi
pop ebp
mov eax, 0x3f2
pop ebx
add esp, 0x120
ret
mov ebp, dword [esp + 0x134]
push edi
push ebx
push ebp
call fcn.00406000
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push esi
push 0
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x405fdf
mov eax, dword [esp + 0x10]
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x40]
push ecx
push edx
push 0
push eax
mov dword [esp + 0x34], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
cmp esi, 0x103
je 0x405f98
test esi, esi
jne 0x405fd4
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x30]
push edi
push ecx
push edx
call fcn.00405ed0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x405f48
jmp 0x405fd4
lea ecx, [esp + 0x24]
call fcn.00405b40
push edi
push ebx
push ebp
call fcn.00406000
add esp, 0xc
test edi, edi
je 0x405fc1
push edi
push ebx
push ebp
call fcn.00405e60
mov esi, eax
add esp, 0xc
test esi, esi
je 0x405fcb
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
lea ecx, [esp + 0x24]
call fcn.00405b50
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x18]
call fcn.00405b50
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x120
ret

Function at 0x4069c0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x4069e7
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4069dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
ret
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop esi
ret
Function at 0x4069f0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40e400
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
test esi, esi
jne 0x406a2f
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x406a5e
mov dword [ebp - 4], 0
push esi
call fcn.004069c0
push esi
call fcn.00406660
add esp, 8
jmp 0x406a57
mov dword [ebp - 4], 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x406b1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x406b0a
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov byte [ebp - 0x128], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x127]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, dword [ebp - 0x16]
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 0x18]
and edx, 0xffff
push edx
mov eax, dword [ebp - 0x1a]
and eax, 0xffff
push eax
mov ecx, dword [ebp - 0x1c]
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 0x1e]
and edx, 0xffff
push edx
push esi
push str._s._x_x_x_x_x
push 0x103
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x24
push 3
lea ecx, [ebp - 0x128]
push ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
call esi
push 4
push 0
lea edx, [ebp - 0x128]
push edx
call esi
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406b80
Capabilities:
Get file version info

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
push esi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [esp + 0x14], eax
jle 0x406bf7
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [esp + 0x18]
add esp, 4
mov ebx, eax
push ebx
push ecx
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x406bea
lea edx, [esp + 0x14]
lea eax, [esp + 8]
push edx
push eax
push 0x412bd8
push ebx
mov dword [esp + 0x24], 0
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x406bff
test ebx, ebx
je 0x406bf7
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
mov esi, dword [esp + 8]
push edi
mov ecx, 0xd
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
test ebx, ebx
pop edi
je 0x406bf7
mov ecx, dword [ebx + 8]
mov edx, dword [esp + 0x18]
shr ecx, 0x10
mov dword [edx], ecx
mov eax, dword [ebx + 8]
mov ecx, dword [esp + 0x1c]
and eax, 0xffff
push ebx
mov dword [ecx], eax
mov edx, dword [ebx + 0xc]
mov eax, dword [esp + 0x24]
shr edx, 0x10
mov dword [eax], edx
mov ecx, dword [ebx + 0xc]
mov edx, dword [esp + 0x28]
and ecx, 0xffff
mov dword [edx], ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, 1
pop esi
pop ebx
add esp, 8
ret
Function at 0x406fb0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x14c
push esi
mov esi, dword [esp + 0x154]
test esi, esi
push edi
jne 0x406fce
pop edi
xor eax, eax
pop esi
add esp, 0x14c
ret
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 3
ja 0x406fe8
pop edi
pop esi
add esp, 0x14c
ret
mov eax, dword [esp + 0x15c]
test eax, eax
je 0x407010
push eax
push esi
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
jne 0x407010
pop edi
mov eax, 1
pop esi
add esp, 0x14c
ret
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ebp
mov ebp, ecx
mov ecx, 0x50
lea edi, [esp + 0x1c]
mov dword [esp + 0x18], ebp
lea ebx, [ebp + 5]
rep stosd dword es:[edi], eax
push ebx
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x10], edi
je 0x40718b
test ebx, ebx
jle 0x407064
lea eax, [ebp + 4]
push eax
push esi
push edi
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
mov byte [edi + ebp + 4], 0
test ebx, ebx
mov ebx, dword [sym.imp.MSVCRT.dll_strncat]
jle 0x407080
lea ecx, [ebp + 4]
push ecx
push str..
push edi
call ebx
add esp, 0xc
mov byte [edi + ebp + 4], 0
lea edx, [esp + 0x1c]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x14], esi
je 0x40717a
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x407173
cmp byte [esp + 0x48], 0x2e
je 0x40715f
lea edi, [esp + 0x48]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [ecx + ebp + 2]
push edi
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x407157
test edi, edi
mov byte [esi], 0
jle 0x40711a
mov ecx, dword [esp + 0x160]
lea ebp, [edi - 1]
push ebp
push ecx
push esi
call ebx
push ebp
push 0x412c08
push esi
mov byte [esi + edi - 1], 0
call ebx
lea edx, [esp + 0x60]
push ebp
push edx
push esi
mov byte [esi + edi - 1], 0
call ebx
mov ebp, dword [esp + 0x3c]
add esp, 0x24
mov byte [esi + edi - 1], 0
test byte [esp + 0x1c], 0x10
je 0x40713c
mov eax, dword [esp + 0x168]
mov ecx, dword [esp + 0x164]
push eax
push ecx
push esi
call fcn.00406fb0
add esp, 0xc
jmp 0x40714d
mov edx, dword [esp + 0x168]
push edx
push esi
call fcn.004069f0
add esp, 8
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4070af
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call dword [sym.imp.MSVCRT.dll_free]
mov esi, dword [esp + 0x164]
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
add esp, 0x14c
ret
Function at 0x407d10
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push ebp
xor ebp, ebp
push esi
push ebp
push 0xa
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x407d92
push ebx
lea eax, [esp + 0xc]
push edi
push eax
push esi
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x407d7e
mov edi, dword [esp + 0x13c]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea ecx, [esp + 0x34]
push ecx
push edi
call ebx
test eax, eax
je 0x407d6c
lea edx, [esp + 0x10]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x407d7e
jmp 0x407d4f
mov eax, dword [esp + 0x140]
mov ecx, dword [esp + 0x18]
mov ebp, 1
mov dword [eax], ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov eax, ebp
pop esi
pop ebp
add esp, 0x128
ret
mov eax, ebp
pop esi
pop ebp
add esp, 0x128
ret

Function at 0x4097c0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x104
push ebx
mov ebx, dword [esp + 0x110]
mov ecx, ebx
push ebp
mov ebp, dword [esp + 0x110]
push esi
mov edx, ecx
push edi
xor eax, eax
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov byte [esp + 0x10], 0
and ecx, 3
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
rep stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push eax
push str.ProgramFiles
call esi
call fcn.00407c20
test eax, eax
je 0x40984a
mov al, byte [esp + 0x120]
test al, al
je 0x40984a
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x10]
push 0x104
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push ecx
push str.ProgramFiles_x86_
call esi
lea edx, [esp + 0x10]
push edx
push str._sGatewaySSLVPN
push ebx
push ebp
call fcn.00402420
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret

Function at 0x409d50
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x58], ecx
mov eax, 1
ret
Function at 0x40b260
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
push ebx
push edi
xor ebx, ebx
push 0x4000
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
cmp edi, ebx
jne 0x40b28b
pop edi
or eax, 0xffffffff
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x20]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 8], eax
jne 0x40b2b9
pop edi
mov eax, 0xfffffffe
pop ebx
add esp, 0x10
ret
push ebp
push esi
mov byte [esp + 0x28], 1
mov ecx, dword [esp + 0x24]
push 0xea60
push 0x4000
push edi
mov edx, dword [ecx]
call dword [edx + 0x14]
mov ebp, eax
test ebp, ebp
jle 0x40b3a4
mov al, byte [esp + 0x28]
test al, al
je 0x40b377
lea eax, [ebp - 3]
xor esi, esi
test eax, eax
jle 0x40b2c0
cmp byte [esi + edi], 0xd
jne 0x40b30e
cmp byte [esi + edi + 1], 0xa
jne 0x40b30e
cmp byte [esi + edi + 2], 0xd
jne 0x40b30e
cmp byte [esi + edi + 3], 0xa
je 0x40b315
inc esi
cmp esi, eax
jl 0x40b2f3
jmp 0x40b2c0
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x40b332
mov ecx, ebp
sub ecx, esi
sub ecx, 4
push ecx
call eax
add esp, 4
test eax, eax
jl 0x40b3b4
sub ebp, esi
push esi
push edi
lea ebx, [ebx + ebp - 4]
call fcn.0040b140
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
jle 0x40b3b4
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push 0
add ebp, 0xfffffffc
push edx
lea eax, [esi + edi + 4]
push ebp
push eax
push ecx
mov dword [esp + 0x28], 1
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov byte [esp + 0x28], 0
jmp 0x40b2c0
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x40b389
push ebp
call eax
add esp, 4
test eax, eax
jl 0x40b3b4
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push 0
push edx
push ebp
push edi
push eax
add ebx, ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x40b2c0
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esp + 0x14]
add esp, 4
push ecx
jmp 0x40b3b9
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
pop esi
test eax, eax
pop ebp
jne 0x40b3d4
pop edi
mov eax, 0xfffffffe
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x10]
test eax, eax
jg 0x40b3e7
pop edi
mov eax, 0xfffffffd
pop ebx
add esp, 0x10
ret
cmp eax, ebx
mov eax, 0xfffffffc
jne 0x40b3f2
mov eax, ebx
pop edi
pop ebx
add esp, 0x10
ret
Function at 0x40bac0
Capabilities:
Check os version
Get system information on windows

Disassembly:
sub esp, 0xc0
lea eax, [esp + 0x9c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [esp + 0xb4], 1
je 0x40bb5a
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x26
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea ecx, [esp + 8]
mov dword [esp + 8], 0x9c
push ecx
call esi
test eax, eax
pop edi
jne 0x40bb23
lea edx, [esp + 4]
mov dword [esp + 4], 0x94
push edx
call esi
mov eax, 1
pop esi
add esp, 0xc0
ret
mov eax, dword [esp + 0x14]
mov ecx, 2
cmp eax, ecx
jne 0x40bb5a
mov eax, dword [esp + 8]
cmp eax, 5
jb 0x40bb5a
jne 0x40bb5a
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x40bb5a
cmp word [esp + 0x98], cx
jae 0x40bb5a
mov eax, 1
pop esi
add esp, 0xc0
ret
xor eax, eax
pop esi
add esp, 0xc0
ret
Function at 0x414200
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa000]
push edi
jmp 0x41421a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x414221
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x414210
mov eax, 1
add ebx, ebx
jne 0x414233
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x414228
jne 0x414244
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x414228
xor ecx, ecx
sub eax, 3
jb 0x414258
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4142ca
mov ebp, eax
add ebx, ebx
jne 0x414263
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x414270
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x414294
inc ecx
add ebx, ebx
jne 0x414280
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x414275
jne 0x414291
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x414275
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4142b4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4142a5
jmp 0x414216
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4142b4
add edi, ecx
jmp 0x414216
pop esi
mov edi, esi
mov ecx, 0x380
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4142d2
cmp byte [edi], 6
jne 0x4142d2
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 0x4142d7
lea edi, [esi + 0x12000]
mov eax, dword [edi]
or eax, eax
je 0x41434f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x14000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x140d8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x414304
mov ecx, edi
jns 0x414333
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 + 0x140e0]
or eax, eax
je 0x414349
mov dword [ebx], eax
add ebx, 4
jmp 0x414321
call dword [esi + 0x140dc]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x414380
cmp al, 0xef
ja 0x414373
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x414355
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x414362
mov ebp, dword [esi + 0x140e4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
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 0x4143b4
sub esp, 0xffffff80
jmp 0x402e94
Function at 0x401ad0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401af9
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push esi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push ebx
push eax
call fcn.0042d4f0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [esp + 0x14]
push eax
push 1
push edi
mov dword [esp + 0x20], 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x401c67
cmp dword [esp + 0x14], eax
je 0x401c67
lea esi, [esp + 0x20]
call fcn.00401170
mov ecx, dword [esp + 0x14]
push ecx
mov edx, esi
push edx
call fcn.00401470
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
xor ebx, ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
test eax, eax
jle 0x401c3f
xor ebp, ebp
cmp dword [esp + 0x18], ebp
jle 0x401c2c
lea esp, [esp]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
imul eax, ebx
cdq
imul ecx, ebp
and edx, 7
add eax, edx
sar eax, 3
add eax, dword [esp + 0x28]
movzx edi, byte [ecx + eax + 3]
movzx esi, byte [ecx + eax]
add ecx, eax
imul esi, edi
add esi, 0x7f
mov eax, 0x80808081
imul esi
add edx, esi
movzx esi, byte [ecx + 1]
sar edx, 7
imul esi, edi
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [ecx], al
add esi, 0x7f
mov eax, 0x80808081
imul esi
add edx, esi
movzx esi, byte [ecx + 2]
sar edx, 7
imul esi, edi
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [ecx + 1], al
add esi, 0x7f
mov eax, 0x80808081
imul esi
add edx, esi
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
inc ebp
cmp ebp, dword [esp + 0x18]
mov byte [ecx + 2], al
jl 0x401ba0
inc ebx
cmp ebx, dword [esp + 0x1c]
jl 0x401b90
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push ecx
push ecx
push eax
mov ebx, eax
mov eax, dword [esp + 0x60]
lea esi, [esp + 0x2c]
call fcn.00401380
mov ecx, esi
call fcn.004011e0
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 4
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret 4