joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43f990
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x4ba948], 0
push esi
push edi
jne 0x43f9ec
push str.secur32.dll
call fcn.0043fad0
push str.sspicli.dll
mov esi, eax
call fcn.0043fad0
add esp, 8
test esi, esi
je 0x43f9d9
push str.GetUserNameExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4ba944], eax
mov dword [0x4ba948], 1
jmp 0x43f9f1
xor eax, eax
mov dword [0x4ba948], 1
mov dword [0x4ba944], eax
jmp 0x43f9f1
mov eax, dword [0x4ba944]
test eax, eax
je 0x43fa4a
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
push ecx
push 0
push 8
call eax
push 1
push dword [ebp - 4]
call fcn.004060a0
add esp, 8
mov edi, eax
lea eax, [ebp - 4]
push eax
push edi
push 8
call dword [0x4ba944]
movzx esi, al
test al, al
je 0x43fa3d
push 0x40
push edi
call fcn.0044a3e0
add esp, 8
test eax, eax
je 0x43fa46
mov byte [eax], 0
jmp 0x43fa46
push edi
call fcn.00406080
add esp, 4
test esi, esi
jne 0x43fa92
mov esi, dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [ebp - 4]
push eax
push 0
mov dword [ebp - 4], 0
call esi
mov ecx, dword [ebp - 4]
test eax, eax
mov edx, pe_nt_image_headers32
cmove ecx, edx
push 1
push ecx
mov dword [ebp - 4], ecx
call fcn.004060a0
add esp, 8
mov edi, eax
lea eax, [ebp - 4]
push eax
push edi
call esi
mov esi, eax
test esi, esi
jne 0x43fa92
push edi
call fcn.00406080
add esp, 4
xor eax, eax
test esi, esi
cmovne eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x43fad0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x4ba954]
push esi
push edi
test ecx, ecx
jne 0x43fb16
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
xor esi, esi
lea eax, [esi + esi*2]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
push 1
add esi, 0x200
push esi
push ecx
call fcn.00406150
add esp, 0xc
mov dword [0x4ba954], eax
push esi
push eax
call edi
mov ecx, dword [0x4ba954]
cmp eax, esi
jge 0x43fae7
push 0
push dword [ebp + 8]
push 0x4aa240
push ecx
call fcn.00405930
add esp, 0x10
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
mov edi, eax
call fcn.00406080
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x442360
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x4b97e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x12c]
push edi
push 0x107
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [ebp - 0x12c]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x442391
mov ax, word [0x4aabf0]
mov word [ecx], ax
mov al, byte [0x4aabf2]
mov byte [ecx + 2], al
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4423f7
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
nop
lea eax, [ebp - 0x26c]
push 0x140
push eax
call esi
add esp, 8
lea eax, [ebp - 0x26c]
push eax
push edi
call ebx
test eax, eax
jne 0x4423d0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x274], eax
lea eax, [ebp - 0x274]
push 4
push eax
call esi
add esp, 8
cmp dword [0x4bb04c], 0
jne 0x442494
push str.advapi32.dll
call fcn.0043fad0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
add esp, 4
mov dword [0x4bb04c], eax
test eax, eax
je 0x442447
push str.CryptAcquireContextA
push eax
call edi
mov ecx, eax
mov eax, dword [0x4bb04c]
jmp 0x442449
xor ecx, ecx
mov dword [0x4bb040], ecx
test eax, eax
je 0x442464
push str.CryptGenRandom
push eax
call edi
mov ecx, eax
mov eax, dword [0x4bb04c]
jmp 0x442466
xor ecx, ecx
mov dword [0x4bb044], ecx
test eax, eax
je 0x442488
push str.CryptReleaseContext
push eax
call edi
cmp dword [0x4bb04c], 0
mov dword [0x4bb048], eax
je 0x4424f7
jmp 0x442499
mov dword [0x4bb048], 0
jmp 0x4424f7
mov eax, dword [0x4bb048]
mov ecx, dword [0x4bb040]
test ecx, ecx
je 0x4424f7
cmp dword [0x4bb044], 0
je 0x4424f7
test eax, eax
je 0x4424f7
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 0x270]
push eax
call ecx
test eax, eax
je 0x4424f7
lea eax, [ebp - 0x24]
push eax
push 0x20
push dword [ebp - 0x270]
call dword [0x4bb044]
test eax, eax
je 0x4424e9
lea eax, [ebp - 0x24]
push 0x20
push eax
call esi
add esp, 8
push 0
push dword [ebp - 0x270]
call dword [0x4bb048]
push esi
call fcn.00446140
add esp, 4
call fcn.004426e0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00449391
mov esp, ebp
pop ebp
ret
Function at 0x442580
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x4b97e4]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push 4
push eax
call fcn.00431800
add esp, 8
call dword [sym.imp.USER32.dll_GetCapture]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push 4
push eax
call fcn.00431800
add esp, 8
call dword [sym.imp.USER32.dll_GetClipboardOwner]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push 4
push eax
call fcn.00431800
add esp, 8
push 0x1cbf
call dword [sym.imp.USER32.dll_GetQueueStatus]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x4c]
push 4
push eax
call fcn.00431800
add esp, 8
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0x54]
push 8
push eax
call fcn.00431800
add esp, 8
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
lea eax, [ebp - 0x44]
push 0x20
push eax
call fcn.00431800
add esp, 8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadTimes]
lea eax, [ebp - 0x24]
push 0x20
push eax
call fcn.00431800
add esp, 8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
lea eax, [ebp - 0x24]
push 0x20
push eax
call fcn.00431800
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
call fcn.00449391
mov esp, ebp
pop ebp
ret
Function at 0x444990
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [0x4bb06c], 0
jne 0x444abd
push esi
push str.advapi32.dll
mov dword [0x4bb06c], 1
call fcn.0043fad0
add esp, 4
mov dword [0x4bb074], eax
test eax, eax
je 0x444ab4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetSecurityInfo
push eax
call esi
mov dword [0x4bc40c], eax
test eax, eax
je 0x444ab4
mov eax, dword [0x4bb074]
test eax, eax
je 0x4449f7
push str.SetSecurityInfo
push eax
call esi
mov ecx, eax
mov eax, dword [0x4bb074]
jmp 0x4449f9
xor ecx, ecx
mov dword [0x4bc408], ecx
test ecx, ecx
je 0x444ab4
test eax, eax
je 0x444a1c
push str.OpenProcessToken
push eax
call esi
mov ecx, eax
mov eax, dword [0x4bb074]
jmp 0x444a1e
xor ecx, ecx
mov dword [0x4bc41c], ecx
test ecx, ecx
je 0x444ab4
test eax, eax
je 0x444a41
push str.GetTokenInformation
push eax
call esi
mov ecx, eax
mov eax, dword [0x4bb074]
jmp 0x444a43
xor ecx, ecx
mov dword [0x4bc418], ecx
test ecx, ecx
je 0x444ab4
test eax, eax
je 0x444a62
push 0x4ad180
push eax
call esi
mov ecx, eax
mov eax, dword [0x4bb074]
jmp 0x444a64
xor ecx, ecx
mov dword [0x4bc414], ecx
test ecx, ecx
je 0x444ab4
test eax, eax
je 0x444a83
push 0x4ad1a0
push eax
call esi
mov ecx, eax
mov eax, dword [0x4bb074]
jmp 0x444a85
xor ecx, ecx
mov dword [0x4bc410], ecx
test ecx, ecx
je 0x444ab4
test eax, eax
je 0x444a9d
push str.SetEntriesInAclA
push eax
call esi
jmp 0x444a9f
xor eax, eax
mov dword [0x4bc404], eax
test eax, eax
je 0x444ab4
mov eax, 1
mov dword [0x4bb070], eax
pop esi
ret
xor eax, eax
mov dword [0x4bb070], eax
pop esi
ret
mov eax, dword [0x4bb070]
ret
Function at 0x445d70
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
lea edi, [eax + eax*2]
push 1
push edi
call fcn.004060a0
mov esi, dword [ebp + 8]
add esp, 8
mov ebx, eax
mov edx, dword [esi + 4]
push edi
push ebx
push edx
push dword [esi]
lea ecx, [edx + 1]
mov dword [esi + 4], ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x445dc1
push dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
push esi
push ebx
call fcn.00446880
push ebx
call fcn.00406080
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret
push ebx
call fcn.00406080
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x445f20
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dl, byte [edi]
test dl, dl
je 0x445fa5
push esi
mov esi, dword [ebp + 0xc]
mov al, dl
cmp al, 0x20
je 0x445f69
cmp al, 0x5c
je 0x445f69
cmp al, 0x2a
je 0x445f69
cmp al, 0x3f
je 0x445f69
cmp al, 0x25
je 0x445f69
lea ecx, [eax - 0x20]
cmp cl, 0x5e
ja 0x445f69
cmp al, 0x2e
jne 0x445f5a
test ebx, ebx
je 0x445f69
cmp al, 0x2e
movzx edx, dl
movzx ecx, al
cmovne edx, ecx
mov byte [esi], dl
jmp 0x445f8e
mov byte [esi], 0x25
movzx eax, byte [edi]
shr eax, 4
movzx eax, byte [eax + str.0123456789ABCDEFUnable_to_create_registry_key_nHKEY_CURRENT_USER_s]
mov byte [esi + 1], al
add esi, 2
movzx eax, byte [edi]
and eax, 0xf
movzx eax, byte [eax + str.0123456789ABCDEFUnable_to_create_registry_key_nHKEY_CURRENT_USER_s]
mov byte [esi], al
mov dl, byte [edi + 1]
inc edi
inc esi
mov ebx, 1
mov al, dl
test dl, dl
jne 0x445f36
mov byte [esi], dl
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 0xc]
pop edi
mov byte [eax], bl
pop ebx
pop ebp
ret

Function at 0x446140
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x4b97e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push 1
call fcn.00445890
mov esi, eax
add esp, 4
cmp esi, 0xffffffff
je 0x4461cb
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x408]
push 0
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push esi
call edi
test eax, eax
je 0x4461c3
nop dword [eax]
mov eax, dword [ebp - 0x408]
test eax, eax
je 0x4461c3
push eax
lea eax, [ebp - 0x404]
push eax
call ebx
add esp, 8
lea eax, [ebp - 0x408]
push 0
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push esi
call edi
test eax, eax
jne 0x446190
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00449391
mov esp, ebp
pop ebp
ret
Function at 0x446350
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4463cd
lea eax, [ebp - 4]
push eax
push 0
lea eax, [ebp + 8]
push eax
push 0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4463cd
cmp dword [ebp + 8], 1
jne 0x4463cd
mov eax, dword [ebp - 4]
push esi
inc eax
push 1
push eax
call fcn.004060a0
add esp, 8
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 8]
push eax
push 0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4463bc
cmp dword [ebp + 8], 1
jne 0x4463bc
mov eax, dword [ebp - 4]
mov byte [esi + eax], 0
mov eax, esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret
push esi
call fcn.00406080
add esp, 4
xor eax, eax
pop esi
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x4463e0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x4b97e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10c]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push 0x105
push eax
push 0
push esi
call edi
test eax, eax
jne 0x446473
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop word [eax + eax]
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x10c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x44644f
push dword [ebp - 0x110]
call fcn.004463e0
add esp, 4
push dword [ebp - 0x110]
call ebx
lea eax, [ebp - 0x10c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push 0x105
lea eax, [ebp - 0x10c]
push eax
push 0
push esi
call edi
test eax, eax
je 0x446420
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00449391
mov esp, ebp
pop ebp
ret

Function at 0x4464b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, edi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4464c0
sub ecx, edx
mov edx, dword [ebp + 0x10]
lea esi, [edx + 1]
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x4464d0
sub edx, esi
lea eax, [ecx + 5]
add eax, edx
push 1
lea eax, [eax + eax*2]
push eax
call fcn.004060a0
push dword [ebp + 0x10]
mov esi, eax
push dword [ebp + 0xc]
push edi
push esi
call fcn.00445ea0
add esp, 0x18
lea eax, [ebp - 4]
push eax
push str.SoftwareSimonTathamPuTTYSshHostKeys
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x446545
mov edx, dword [ebp + 0x14]
mov ecx, edx
lea edi, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x446520
sub ecx, edi
lea eax, [ecx + 1]
push eax
push edx
push 1
push 0
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.00406080
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4022d9
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push 0x40bac0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
cmp dword [ebp + 0x10], 1
jae 0x4022f7
xor eax, eax
jmp 0x4025a8
mov eax, dword [0x405018]
xor edx, edx
mov ecx, 0xc
div ecx
mov dword [0x405018], eax
mov edx, dword [0x405014]
sub edx, 4
mov dword [0x405018], edx
mov eax, dword [ebp + 8]
mov cl, byte [eax]
mov byte [ebp - 0x18], cl
mov edx, dword [0x405018]
add edx, 8
mov dword [0x405018], edx
mov dword [ebp - 0x14], 1
mov eax, dword [0x405014]
imul eax, dword [0x405018]
mov ecx, dword [0x405018]
imul ecx, ecx, 5
sub eax, ecx
mov dword [0x405014], eax
mov edx, dword [0x405014]
sub edx, 4
mov dword [0x405018], edx
mov dword [ebp - 0x10], 0
mov eax, dword [0x405018]
add eax, 8
mov dword [0x405018], eax
mov ecx, dword [0x405018]
add ecx, 7
mov dword [0x405014], ecx
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x14]
mov al, byte [edx]
mov byte [ebp - 4], al
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 4]
and edx, 0xff
mov eax, dword [ebp - 0x18]
and eax, 0xff
cmp edx, eax
jne 0x402541
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x14]
xor edx, edx
mov dl, byte [ecx]
test edx, edx
jne 0x402424
push 0x40bac0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [0x405018]
shl eax, 1
mov dword [0x405014], eax
mov ecx, dword [0x405014]
imul ecx, dword [0x405018]
mov edx, dword [0x405018]
imul edx, edx, 5
sub ecx, edx
mov dword [0x405014], ecx
mov eax, dword [0x405018]
shl eax, 3
mov dword [0x405018], eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x10]
mov dl, byte [ebp - 0x18]
mov byte [ecx], dl
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
jmp 0x40253f
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x14]
push edx
lea eax, [ebp - 8]
push eax
jmp section..htext
jmp 0x40258c
mov edx, dword [0x405018]
shl edx, 3
mov dword [0x405018], edx
mov eax, dword [0x405018]
xor edx, edx
mov ecx, 0xc
div ecx
mov dword [0x405018], eax
mov edx, dword [0x405014]
mov eax, dword [0x405018]
lea ecx, [eax + edx - 9]
mov dword [0x405014], ecx
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x10]
mov al, byte [ebp - 4]
mov byte [edx], al
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp + 0x10]
jb 0x402369
mov eax, dword [0x405014]
sub eax, 4
mov dword [0x405018], eax
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x4038be
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x4038e7
cmp al, 0x22
je 0x4038df
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4038d3
cmp byte [esi], 0x22
jne 0x4038f1
inc esi
jmp 0x4038f1
cmp al, 0x20
jle 0x4038f1
inc esi
cmp byte [esi], 0x20
jg 0x4038eb
mov al, byte [esi]
test al, al
je 0x4038fb
cmp al, 0x20
jle 0x4038e4
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00403969
push 0x405004
push section..data
call fcn.0040394f
test byte [ebp - 0x18], 1
pop ecx
pop ecx
je 0x40392b
movzx eax, word [ebp - 0x14]
jmp 0x40392e
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
call fcn.00403981
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x40c470
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x9000]
push edi
or ebp, 0xffffffff
jmp 0x40c492
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40c499
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40c488
mov eax, 1
add ebx, ebx
jne 0x40c4ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40c4a0
jne 0x40c4bc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40c4a0
xor ecx, ecx
sub eax, 3
jb 0x40c4d0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40c542
mov ebp, eax
add ebx, ebx
jne 0x40c4db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40c4e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40c50c
inc ecx
add ebx, ebx
jne 0x40c4f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40c4ed
jne 0x40c509
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40c4ed
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40c52c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40c51d
jmp 0x40c48e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40c52c
add edi, ecx
jmp 0x40c48e
pop esi
mov edi, esi
mov ecx, 4
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40c54a
cmp byte [edi], 1
jne 0x40c54a
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 eax, ebx
loop 0x40c54f
lea edi, [esi + 0xa000]
mov eax, dword [edi]
or eax, eax
je 0x40c5c7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd70c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd748]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40c57c
mov ecx, edi
jns 0x40c5ab
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 + 0xd74c]
or eax, eax
je 0x40c5c1
mov dword [ebx], eax
add ebx, 4
jmp 0x40c599
call dword [esi + 0xd750]
popal
jmp 0x401128
Function at 0x40c3b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa000]
push edi
or ebp, 0xffffffff
jmp 0x40c3d2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40c3d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40c3c8
mov eax, 1
add ebx, ebx
jne 0x40c3eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40c3e0
jne 0x40c3fc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40c3e0
xor ecx, ecx
sub eax, 3
jb 0x40c410
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40c482
mov ebp, eax
add ebx, ebx
jne 0x40c41b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40c428
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40c44c
inc ecx
add ebx, ebx
jne 0x40c438
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40c42d
jne 0x40c449
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40c42d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40c46c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40c45d
jmp 0x40c3ce
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40c46c
add edi, ecx
jmp 0x40c3ce
pop esi
mov edi, esi
mov ecx, 8
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40c48a
cmp byte [edi], 1
jne 0x40c48a
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 0x40c48f
lea edi, [esi + 0xa000]
mov eax, dword [edi]
or eax, eax
je 0x40c507
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xc8f4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xc930]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40c4bc
mov ecx, edi
jns 0x40c4eb
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 + 0xc934]
or eax, eax
je 0x40c501
mov dword [ebx], eax
add ebx, 4
jmp 0x40c4d9
call dword [esi + 0xc93c]
mov ebp, dword [esi + 0xc938]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1e7]
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 0x40c53b
sub esp, 0xffffff80
jmp 0x401364
Function at 0x40cc4e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push edi
push esi
mov esi, ecx
mov eax, dword [ecx + 0x14]
cmp eax, 0x10
jb 0x40cc85
mov ecx, dword [esi]
lea edi, [eax + 1]
cmp edi, 0x1000
jb 0x40cc7b
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x40cc99
add eax, 0x24
mov edi, eax
mov ecx, edx
push edi
push ecx
call fcn.00471733
add esp, 8
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
pop esi
pop edi
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edi
push esi
mov esi, 0x378
mov eax, dword [esi + 0x47817c]
cmp eax, 0x10
jb 0x40cce0
mov ecx, dword [esi + 0x478168]
lea edi, [eax + 1]
cmp edi, 0x1000
jb 0x40ccd6
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x40cd03
add eax, 0x24
mov edi, eax
mov ecx, edx
push edi
push ecx
call fcn.00471733
add esp, 8
mov dword [esi + 0x478178], 0
mov dword [esi + 0x47817c], 0xf
mov byte [esi + 0x478168], 0
add esi, 0xffffffe8
jne 0x40cca6
pop esi
pop edi
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
Function at 0x4519f6
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov al, 1
cmp dword [ecx + 0x38], 0
je 0x451a74
mov esi, ecx
cmp byte [ecx + 0x3d], 0
je 0x451a74
mov eax, dword [esi]
mov ecx, esi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x451a6a
mov ecx, dword [esi + 0x38]
lea eax, [esp + 0x24]
lea edx, [esi + 0x40]
mov ebx, dword [ecx]
mov ebp, esp
lea edi, [esp + 4]
push ebp
push eax
push edi
push edx
call dword [ebx + 0x20]
cmp eax, 3
je 0x451a6e
cmp eax, 1
je 0x451a46
test eax, eax
jne 0x451a6a
mov byte [esi + 0x3d], 0
mov ebx, dword [esp]
sub ebx, edi
je 0x451a61
push dword [esi + 0x4c]
push ebx
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp ebx, eax
jne 0x451a6a
cmp byte [esi + 0x3d], 0
sete al
jmp 0x451a74
xor eax, eax
jmp 0x451a74
mov byte [esi + 0x3d], 0
mov al, 1
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret