joyce8/EMBER2024-capa huggingface dataset:
Function at 0x444e00
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x45f200]
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.00439500
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.00439500
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 0x444e77
cmp word [ecx], dx
je 0x444e77
mov eax, dword [0x452b94]
push edi
dec eax
push eax
push 0x452a80
call fcn.00444d9f
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x444eea
cmp word [eax], dx
je 0x444eea
mov eax, dword [edi]
test eax, eax
je 0x444e9b
cmp word [eax], dx
je 0x444e9b
lea eax, [ebp - 0x10]
push eax
call fcn.00444782
jmp 0x444ea4
lea eax, [ebp - 0x10]
push eax
call fcn.0044481d
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x444f14
mov eax, dword [0x452a7c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x452770
call fcn.00444d9f
add esp, 0xc
test al, al
je 0x444f14
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x444edf
cmp word [eax], di
je 0x444edf
lea eax, [ebp - 0x10]
push eax
call fcn.00444782
pop ecx
jmp 0x444f16
lea eax, [ebp - 0x10]
push eax
call fcn.0044481d
jmp 0x444edc
mov eax, dword [edi]
test eax, eax
je 0x444f01
cmp word [eax], dx
je 0x444f01
lea eax, [ebp - 0x10]
push eax
call fcn.00444737
pop ecx
jmp 0x444f14
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 0x444fdf
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00444c24
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x444fdf
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x444fdf
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x444fdf
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x444f6c
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0043b8a2
test ebx, ebx
je 0x444fda
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0043b8a2
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x444fdf
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 0x444fdf
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00449061
add esp, 0x10
xor eax, eax
inc eax
jmp 0x444fe1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004297d1
leave
ret
Function at 0x4497e5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00449761
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x449954
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x449954
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x449909
jg 0x449841
test eax, eax
je 0x4498ff
push 1
push 0x1000
call fcn.0043b132
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x449864
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4498f6
push 0x8000
push ebx
call fcn.004371cc
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x44988d
jg 0x449888
cmp ecx, 0x1000
jb 0x44988d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0043ab6c
add esp, 0x10
cmp eax, 0xffffffff
je 0x4498d2
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x449888
jl 0x4498b9
test ecx, ecx
jne 0x44987a
push dword [ebp - 0xc]
push ebx
call fcn.004371cc
push esi
call fcn.00439adf
add esp, 0xc
xor ebx, ebx
jmp 0x449962
cmp byte [edi + 0x24], 0
je 0x4498e9
cmp dword [edi + 0x20], 5
jne 0x4498e9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4498f4
mov ebx, dword [edi + 0x18]
jmp 0x4498f6
xor ebx, ebx
push esi
call fcn.00439adf
pop ecx
jmp 0x449962
test ecx, ecx
jg 0x4498cb
jl 0x449909
test eax, eax
jae 0x4498cb
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0043e17d
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x449929
cmp byte [edi + 0x1c], 0
je 0x4498cb
jmp 0x44995a
push ebx
call fcn.00442cfb
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4498cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x449962
cmp byte [edi + 0x1c], 0
je 0x44995f
mov ebx, dword [edi + 0x18]
jmp 0x449962
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0043e17d
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x44aa10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44aa3d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44aa3d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402770
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x40c02c], 0x8088405
inc edx
mov dword [0x40c02c], edx
mul edx
mov eax, edx
ret

Function at 0x405130
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405169
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040324c
jmp 0x405172
mov eax, ebx
mov edx, esi
call fcn.00403200
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40517c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x40519d
mov al, byte [esp]
jmp 0x40519f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x406910
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x406958
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.004068ac
mov eax, dword [ebp - 4]
call fcn.004033e8
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40695f
lea eax, [ebp - 4]
call fcn.0040316c
ret

Function at 0x406b60
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x406bee
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x406bab
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [ebp - 0x108]
mov eax, esi
call fcn.0040324c
jmp 0x406bd8
call sub.kernel32.dll_GetCommandLineA_1
cmp byte [eax], 0
jne 0x406bbf
lea eax, [ebp - 4]
call fcn.0040316c
jmp 0x406bce
lea edx, [ebp - 4]
call fcn.00406a24
test ebx, ebx
je 0x406bce
dec ebx
jmp 0x406bb0
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00403200
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406bf5
lea eax, [ebp - 4]
call fcn.0040316c
ret

Function at 0x406bfc
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
mov eax, esp
call fcn.00404d04
add esp, 0x104
pop ebx
ret
Function at 0x406d44
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x406e7c
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x406e66
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
je 0x406da1
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jne 0x406e66
cmp dword [ebp - 0x10], 0
jne 0x406db6
mov eax, dword [ebp - 8]
call fcn.0040316c
mov bl, 1
jmp 0x406e66
cmp dword [ebp - 0x10], 0x70000000
jb 0x406dc4
call fcn.004057a8
mov esi, dword [ebp - 0x10]
test esi, esi
sar esi, 0
lea eax, [ebp - 0x14]
mov ecx, esi
xor edx, edx
call fcn.0040324c
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
call fcn.004033f4
push eax
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExA
cmp eax, 0xea
je 0x406d6a
test eax, eax
jne 0x406e66
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
je 0x406e14
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jne 0x406e66
mov esi, dword [ebp - 0x10]
test esi, esi
sar esi, 0
jmp 0x406e1f
dec esi
test esi, esi
je 0x406e2d
mov eax, dword [ebp - 0x14]
cmp byte [eax + esi - 1], 0
je 0x406e1e
cmp dword [ebp - 0xc], 7
jne 0x406e38
test esi, esi
je 0x406e38
inc esi
lea eax, [ebp - 0x14]
mov edx, esi
call fcn.004034c4
cmp dword [ebp - 0xc], 7
jne 0x406e59
test esi, esi
je 0x406e59
lea eax, [ebp - 0x14]
call fcn.004033f4
mov byte [eax + esi - 1], 0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
call fcn.004031bc
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406e83
lea eax, [ebp - 0x14]
call fcn.0040316c
ret

Function at 0x4077c4
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x40c55c
mov eax, esi
mov edx, 8
test al, 1
je 0x4077e0
shr eax, 1
xor eax, 0xedb88320
jmp 0x4077e2
shr eax, 1
dec edx
jne 0x4077d3
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x4077cc
pop esi
ret

Function at 0x4077f8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x40c558], 0
jne 0x40781b
call fcn.004077c4
push 1
push 0x40c558
call sub.kernel32.dll_InterlockedExchange
mov eax, edi
test esi, esi
je 0x407846
mov edx, ebx
and dx, 0xff
xor ecx, ecx
mov cl, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x40c55c]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x407821
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x408eb4
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00408e68
test al, al
jne 0x408ed5
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x408f21
xor eax, eax
push ebp
push 0x408f11
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004033e8
push eax
call sub.kernel32.dll_DeleteFileA
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408f18
lea eax, [ebp - 0xc]
call fcn.00408ea4
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x409228
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x409317
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.00406c28
mov edx, dword [ebp - 8]
mov ecx, 0x409330
xor eax, eax
call fcn.0040911c
push 0
mov eax, dword [ebp - 4]
call fcn.004033e8
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x4092e5
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 0xb7
je 0x409248
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x18]
mov edx, dword [ebp - 4]
mov al, 0x2f
call fcn.00408cd0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.00404bb8
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.004071b8
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x14]
mov ecx, 2
mov al, 0x60
call fcn.00408ca0
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, 0x404584
call fcn.004057b4
call fcn.00402e88
jmp 0x409248
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00403200
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40931e
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.0040318c
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040318c
ret

Function at 0x409340
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffec
cmp dword [0x40b07c], 2
jne 0x4093a7
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x409362
xor eax, eax
jmp 0x4093b6
lea eax, [esp + 8]
push eax
push 0x4093bc
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
mov dword [esp + 4], 1
mov dword [esp + 0x10], 2
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError_1
test eax, eax
je 0x4093a7
xor eax, eax
jmp 0x4093b6
push 0
push 2
call sub.user32.dll_ExitWindowsEx
neg eax
sbb eax, eax
neg eax
add esp, 0x14
ret
Function at 0x4093d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x40942a
inc esi
xor edi, edi
cmp edi, 1
jne 0x4093f6
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep
jmp 0x409404
cmp edi, 1
jle 0x409404
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00408eb4
test eax, eax
jne 0x40942a
call sub.kernel32.dll_GetLastError_1
cmp eax, 2
je 0x40942a
call sub.kernel32.dll_GetLastError_1
cmp eax, 3
je 0x40942a
inc edi
dec esi
jne 0x4093e6
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x4096bc
Capabilities:
Identify system language via api

Disassembly:
push ebx
push esi
push edi
push ebp
cmp dword [0x40cca4], 0
je 0x409705
mov edi, dword [0x40cde0]
dec edi
test edi, edi
jl 0x409705
inc edi
xor esi, esi
mov eax, esi
shl eax, 6
add eax, esi
mov edx, dword [0x40cddc]
mov edx, dword [edx + eax]
mov eax, dword [0x40cca4]
call fcn.00404b64
test eax, eax
jne 0x409701
mov eax, esi
call fcn.00409670
jmp 0x4097ca
inc esi
dec edi
jne 0x4096d7
mov al, byte [0x40cdc4]
sub al, 1
jb 0x409712
je 0x40971b
jmp 0x409724
call fcn.00406f58
mov ebp, eax
jmp 0x409726
call sub.kernel32.dll_GetUserDefaultLangID
mov ebp, eax
jmp 0x409726
xor ebp, ebp
test bp, bp
je 0x4097c3
mov edi, dword [0x40cde0]
dec edi
test edi, edi
jl 0x409772
inc edi
xor esi, esi
mov eax, esi
shl eax, 6
add eax, esi
mov edx, dword [0x40cddc]
lea ebx, [edx + eax]
movzx eax, bp
cmp eax, dword [ebx + 0x28]
jne 0x40976e
cmp dword [ebx + 0x2c], 0
je 0x409765
call sub.kernel32.dll_GetACP
cmp eax, dword [ebx + 0x2c]
jne 0x40976e
mov eax, esi
call fcn.00409670
jmp 0x4097ca
inc esi
dec edi
jne 0x40973d
mov edi, dword [0x40cde0]
dec edi
test edi, edi
jl 0x4097c3
inc edi
xor esi, esi
mov eax, esi
shl eax, 6
add eax, esi
mov edx, dword [0x40cddc]
lea ebx, [edx + eax]
mov eax, dword [ebx + 0x28]
and eax, 0x3ff
mov edx, ebp
and dx, 0x3ff
movzx edx, dx
cmp eax, edx
jne 0x4097bf
cmp dword [ebx + 0x2c], 0
je 0x4097b6
call sub.kernel32.dll_GetACP
cmp eax, dword [ebx + 0x2c]
jne 0x4097bf
mov eax, esi
call fcn.00409670
jmp 0x4097ca
inc esi
dec edi
jne 0x409780
xor eax, eax
call fcn.00409670
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40985c
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 0x40992f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409948
push ebx
push 0x409954
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.00403388
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00402750
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.004033e8
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x4098dc
mov al, 0x62
call fcn.00409434
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.00409830
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x4098e5
call fcn.00409830
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 0x409936
lea eax, [ebp - 4]
call fcn.0040316c
ret

Function at 0x4099e8
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 0x409a9c
jmp 0x409a91
cmp dword [esi + 0x10], 0x1000
jne 0x409a7d
test byte [esi + 0x15], 1
jne 0x409a7d
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409a3c
cmp eax, 2
je 0x409a3c
cmp eax, 0x10
je 0x409a3c
cmp eax, 0x20
jne 0x409a51
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 0x409a51
mov bl, 1
xor ebp, ebp
jmp 0x409a62
mov eax, dword [esi]
add eax, ebp
call fcn.004099e0
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409a55
test bl, bl
je 0x409a7d
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 0x409a9c
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409a14
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x491630
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x83000]
push edi
or ebp, 0xffffffff
jmp 0x491652
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x491659
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x491648
mov eax, 1
add ebx, ebx
jne 0x49166b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x49167c
jne 0x49169b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x49169b
dec eax
add ebx, ebx
jne 0x491688
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x491660
add ebx, ebx
jne 0x491697
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4916ed
xor ecx, ecx
sub eax, 3
jb 0x4916b3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x491722
sar eax, 1
mov ebp, eax
jmp 0x4916be
add ebx, ebx
jne 0x4916be
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x49168c
inc ecx
add ebx, ebx
jne 0x4916cc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x49168c
add ebx, ebx
jne 0x4916d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4916ce
jne 0x4916ea
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4916ce
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x49170c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4916fe
jmp 0x49164e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x49170c
add edi, ecx
jmp 0x49164e
pop esi
mov edi, esi
mov ecx, 0x2a4
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x49172a
cmp byte [edi], 0xa
jne 0x49172a
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 0x49172f
lea edi, [esi + 0x8f000]
mov eax, dword [edi]
or eax, eax
je 0x49179e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xf5634]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xf571c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x49175c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xf5724]
or eax, eax
je 0x491798
mov dword [ebx], eax
add ebx, 4
jmp 0x491779
call dword [esi + 0xf5720]
mov ebp, dword [esi + 0xf5728]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
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 0x4917d2
sub esp, 0xffffff80
jmp 0x402819
Function at 0x40d439
Capabilities:
Write file on windows

Disassembly:
push 0x48
mov eax, 0x53c8c2
call fcn.00512310
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x3c], edi
je 0x40d549
cmp byte [esi + 0x41], 0
je 0x40d549
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 4]
cmp eax, 0xffffffff
jne 0x40d46f
xor al, al
jmp 0x40d54b
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00406abd
mov dword [ebp - 4], edi
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00409680
mov ecx, eax
call fcn.00409320
mov edi, dword [ebp - 0x18]
mov ebx, eax
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00409680
mov ecx, eax
call fcn.00409320
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x30]
push eax
add edi, ebx
push edi
push dword [ebp - 0x34]
lea eax, [esi + 0x44]
push eax
call dword [edx + 0x18]
sub eax, 0
je 0x40d4e3
dec eax
je 0x40d4e7
dec eax
dec eax
je 0x40d545
xor bl, bl
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00402a53
mov al, bl
jmp 0x40d54b
mov byte [esi + 0x41], 0
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00409680
mov ecx, eax
call fcn.00409320
mov edi, dword [ebp - 0x30]
sub edi, eax
je 0x40d527
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00409680
mov ecx, eax
call fcn.00409320
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0051307e
add esp, 0x10
cmp edi, eax
jne 0x40d4cd
cmp byte [esi + 0x41], 0
je 0x40d545
test edi, edi
jne 0x40d47d
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00405693
jmp 0x40d47d
mov bl, 1
jmp 0x40d4cf
mov al, 1
call fcn.00512393
ret