joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003fb0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
push edi
cmp eax, 1
jne 0x10003f85
push eax
call fcn.1000a4cf
pop ecx
test eax, eax
jne 0x10003f1b
xor eax, eax
jmp 0x10004029
add dword [eax], eax
add al, ch
rol byte [ebx], cl
add byte [ebp - 0x17f88a40], al
salc
add byte gs:[eax], al
call fcn.100082f2
test eax, eax
jne 0x10003f2b
call fcn.1000a4ff
jmp 0x10003f14
clc
dec edi
add byte gs:[eax], al
std
adc eax, 0x1001d03c
mov dword [0x10022ac0], eax
call 0x5000a348
mov dword [0x10021f10], eax
call fcn.10005245
test eax, eax
jge 0x10003f55
call 0x10107f92
jmp 0x10003f24
call fcn.1000a28d
test eax, eax
jl 0x10003f7e
call fcn.1000a006
test eax, eax
jl 0x10003f7e
push 0
call fcn.10005e0d
pop ecx
test eax, eax
jne 0x10003f7e
inc dword [0x10021f0c]
jmp 0x10004026
call fcn.10005499
jmp 0x10003f4e
xor edi, edi
cmp eax, edi
jne 0x10003fbc
cmp dword [0x10021f0c], edi
jle 0x10003f18
dec dword [0x10021f0c]
cmp dword [0x10022280], edi
jne 0x10003fa6
jmp 0x1000600a
cmp dword [ebp + 0x10], edi
jne 0x10004026
call fcn.10005499
call fcn.10007f92
loopne 0x10003ffc
add byte gs:[eax], al
jmp 0x10004026
cmp eax, 2
jne 0x1000401a
call fcn.10007f39
push 0x40214
push 1
call fcn.10005aad
mov esi, eax
pop ecx
pop ecx
cmp esi, edi
je 0x10003f14
push esi
push dword [0x10021b88]
push dword [0x10022420]
call fcn.10007ea6
pop ecx
call eax
test eax, eax
je 0x1000400e
push edi
push esi
call fcn.10007fcf
sar dword [edi], 1
add byte [eax], al
add byte [eax], al
pop ecx
pop ebp
call dword [0x1001d038]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x10004026
push esi
call fcn.10005ba1
pop ecx
jmp 0xff83f14
cmp eax, 3
jne 0x10004026
push edi
call fcn.10008278
pop ecx
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret 0xc
push 1
push 0
push 0
call 0x5eb2
add esp, 0xc
ret
Function at 0x10003ff0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
push edi
cmp eax, 1
jne 0x10003f85
push eax
call fcn.1000a4cf
pop ecx
test eax, eax
jne 0x10003f1b
xor eax, eax
jmp 0x10004029
add dword [eax], eax
add al, ch
rol byte [ebx], cl
add byte [ebp - 0x17f88a40], al
salc
add byte gs:[eax], al
call fcn.100082f2
test eax, eax
jne 0x10003f2b
call fcn.1000a4ff
jmp 0x10003f14
clc
dec edi
add byte gs:[eax], al
std
adc eax, 0x1001d03c
mov dword [0x10022ac0], eax
call 0x5000a348
mov dword [0x10021f10], eax
call fcn.10005245
test eax, eax
jge 0x10003f55
call 0x10107f92
jmp 0x10003f24
call fcn.1000a28d
test eax, eax
jl 0x10003f7e
call fcn.1000a006
test eax, eax
jl 0x10003f7e
push 0
call fcn.10005e0d
pop ecx
test eax, eax
jne 0x10003f7e
inc dword [0x10021f0c]
jmp 0x10004026
call fcn.10005499
jmp 0x10003f4e
xor edi, edi
cmp eax, edi
jne 0x10003fbc
cmp dword [0x10021f0c], edi
jle 0x10003f18
dec dword [0x10021f0c]
cmp dword [0x10022280], edi
jne 0x10003fa6
jmp 0x1000600a
cmp dword [ebp + 0x10], edi
jne 0x10004026
call fcn.10005499
call fcn.10007f92
loopne 0x10003ffc
add byte gs:[eax], al
jmp 0x10004026
cmp eax, 2
jne 0x1000401a
call fcn.10007f39
push 0x40214
push 1
call fcn.10005aad
mov esi, eax
pop ecx
pop ecx
cmp esi, edi
je 0x10003f14
push esi
push dword [0x10021b88]
push dword [0x10022420]
call fcn.10007ea6
pop ecx
call eax
test eax, eax
je 0x1000400e
push edi
push esi
call fcn.10007fcf
sar dword [edi], 1
add byte [eax], al
add byte [eax], al
pop ecx
pop ebp
call dword [0x1001d038]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x10004026
push esi
call fcn.10005ba1
pop ecx
jmp 0xff83f14
cmp eax, 3
jne 0x10004026
push edi
call fcn.10008278
pop ecx
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret 0xc
push 1
push 0
push 0
call 0x5eb2
add esp, 0xc
ret

Function at 0x401000
Capabilities:
Allocate or change rwx memory

Disassembly:
push 0x40
push 0x1000
push 0x47800
push 0
call sub.user32.dll_GetDialogBaseUnits
call sub.kernel32.dll_VirtualAlloc
call fcn.0049f6bb
ret
Function at 0x401410
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x24
call sym.___main
mov word [ebp - 0xf], 0xff48
mov byte [ebp - 0xd], 0
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], 0x1000
mov dword [esp + 4], 3
mov dword [esp], 0
call sym._VirtualAlloc_16
sub esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx edx, word [ebp - 0xf]
mov word [eax], dx
movzx edx, byte [ebp - 0xd]
mov byte [eax + 2], dl
mov eax, dword [ebp - 0xc]
call eax
mov eax, 0
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret
Function at 0x401b00
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40703c]
sub esp, 4
test ebx, ebx
je 0x401b4b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401b44
test esi, esi
je 0x401b44
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401b20
mov dword [esp], 0x407044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401d30
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
lea esi, [esp + 0x24]
lea ebx, [eax + 0x40]
mov dword [esp + 4], 1
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401d80
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, edx
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x3c
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x401e54
mov eax, dword [esp + 0x28]
cmp eax, 0x40
je 0x401dbe
cmp eax, 4
jne 0x401de0
test esi, esi
je 0x401dd2
xor eax, eax
movzx ecx, byte [edi + eax]
mov byte [ebx + eax], cl
add eax, 1
cmp eax, esi
jb 0x401dc4
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x20]
lea ebp, [esp + 0x10]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov ecx, dword [esp + 0x28]
test esi, esi
je 0x401e1f
xor edx, edx
movzx eax, byte [edi + edx]
mov byte [ebx + edx], al
add edx, 1
cmp edx, esi
jb 0x401e11
cmp ecx, 0x40
je 0x401dd2
cmp ecx, 4
je 0x401dd2
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401d30
lea esi, [esi]
Function at 0x401451
Capabilities:
Check if file exists
Create process on windows
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
push esi
mov esi, dword [ebp + 8]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x401468
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40147a
xor al, al
jmp 0x401517
push ebx
push edi
push 0x44
pop edi
push edi
xor ebx, ebx
lea eax, [ebp - 0x90]
push ebx
push eax
call fcn.004032b0
add esp, 0xc
mov dword [ebp - 0x90], edi
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4014a2
mov eax, dword [esi]
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x90]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x40f180
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x401513
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str._startup_runner_CreateProcessW_failed_
call edi
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], str.runas
jb 0x4014ec
mov esi, dword [esi]
movaps xmm0, xmmword [0x40f260]
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x2c], esi
movups xmmword [ebp - 0x28], xmm0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x401513
push str._startup_runner_ShellExecuteExW_failed_
call edi
xor al, al
jmp 0x401515
mov al, 1
pop edi
pop ebx
pop esi
leave
ret

Function at 0x408344
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00407fde
Function at 0x401a09
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 0x10]
push 0x10
push eax
push 0x1004
mov esi, 0x4e4
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x401a47
push 0
lea eax, [ebp - 0x10]
push 0
push eax
call fcn.00403978
add esp, 0xc
test eax, eax
je 0x401a47
mov esi, eax
mov eax, esi
pop esi
leave
ret

Function at 0x402249
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
call fcn.00402916
test al, al
je 0x4023cc
push ebx
lea eax, [ebp - 0x18]
xor ebx, ebx
push str.GlobalConfig.ini
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call fcn.00402921
test al, al
je 0x4023bb
lea eax, [ebp - 6]
lea ecx, [ebp - 0x4c]
push eax
lea eax, [ebp - 5]
push eax
call fcn.00402448
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [ebp - 0x4c]
push ecx
push eax
push dword [ebp - 0xc]
call fcn.00401a4c
add esp, 0xc
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
push dword [0x40b160]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
push dword [0x40b16c]
push dword [ebp + 8]
call fcn.004023f9
test al, al
je 0x4023ab
lea eax, [ebp - 0x150]
push 0x104
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x402393
mov al, byte [ebp + 0xb]
push esi
push ebx
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], ebx
mov byte [ebp - 0x3c], al
call fcn.004014b5
mov esi, str.GlbGamesPath
push esi
call fcn.00402d90
pop ecx
push eax
push esi
lea ecx, [ebp - 0x3c]
call fcn.004014f1
lea eax, [ebp - 0x3c]
push ebx
push eax
lea ecx, [ebp - 0x4c]
call fcn.00401000
lea ecx, [ebp + 0xb]
mov byte [ebp + 0xb], bl
push ecx
push 0x80000002
push eax
lea ecx, [ebp - 4]
call fcn.00401458
push 1
lea ecx, [ebp - 0x3c]
mov byte [ebp + 0xb], al
call fcn.004014b5
cmp byte [ebp + 0xb], bl
je 0x402384
mov esi, dword [ebp - 0x20]
lea eax, [ebp - 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x150]
push eax
push 1
push ebx
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp dword [ebp - 4], ebx
pop esi
je 0x402393
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
lea eax, [ebp - 0x4c]
push dword [ebp - 0x20]
push dword [0x40b170]
push 7
push eax
call fcn.00401034
add esp, 0x14
lea ecx, [ebp - 0x2c]
call fcn.004023d2
lea ecx, [ebp - 0x4c]
call fcn.0040246b
lea ecx, [ebp - 0x18]
call fcn.004023d2
lea ecx, [ebp - 0x18]
call fcn.004023d2
pop ebx
xor eax, eax
leave
ret 0x10
Function at 0x4023f9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, ecx
xor bl, bl
call fcn.004023d2
push dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov dword [esi + 4], eax
push dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
mov dword [esi], eax
je 0x402441
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [esi + 8], eax
je 0x402441
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
mov dword [esi + 0xc], eax
je 0x402441
inc bl
mov al, bl
pop esi
pop ebx
ret 0xc
Function at 0x401393
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
and dword [ebp - 8], 0
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x30], 0x9e3779b9
push edi
lea ecx, [ebp - 8]
mov dword [ebp - 0x34], esi
mov eax, dword [esi]
mov edi, dword [esi + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [0x41a308]
mov dword [ebp - 0x24], eax
mov eax, dword [0x41a30c]
mov dword [ebp - 0x2c], eax
call fcn.0040138c
mov eax, dword [0x41a314]
add dword [ebp - 8], 0x23f
mov esi, dword [0x41a310]
push 0x20
mov dword [ebp - 0x20], eax
pop ebx
mov dword [ebp - 0x18], 2
add dword [ebp - 0x18], 3
mov eax, dword [ebp - 0x14]
shl eax, 4
add eax, esi
mov dword [ebp - 0x1c], 0xedeb2e40
cmp dword [0x476268], 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0x476264]
cmove eax, dword [ebp - 0x1c]
and dword [ebp - 0x1c], 0
cmp dword [0x476268], 0x3eb
mov dword [0x476264], eax
mov eax, dword [0x475cf0]
cmove eax, dword [ebp - 0x1c]
mov dword [0x475cf0], eax
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
shr eax, 5
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x20]
xor eax, dword [ebp - 0x1c]
xor eax, dword [ebp - 4]
sub edi, eax
mov dword [ebp - 0xc], eax
mov eax, edi
mov dword [0x476260], 0xf4ea3dee
shl eax, 4
mov dword [ebp - 0x28], edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x28]
nop
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x18]
mov eax, edi
shr eax, cl
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
xor eax, dword [ebp - 0x1c]
cmp dword [0x476268], 0xb03
mov dword [ebp - 4], eax
jne 0x4014c0
push str.Poh_petopanoz_fonoso_culowisuvekocamoc
push edx
push edx
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov eax, dword [ebp - 4]
xor eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x30]
sub dword [ebp - 8], eax
dec ebx
jne 0x4013e4
mov esi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x14]
mov dword [esi + 4], edi
pop edi
mov dword [esi], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d5c3
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419428]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040803b
mov dword [ebp - 0x14], eax
cmp dword [0x4309fc], esi
jne 0x40d6b6
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d643
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d796
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d796
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d796
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4309fc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x430a00], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x430a04], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x430a0c], eax
test eax, eax
je 0x40d6b3
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x430a08], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d6db
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d6ce
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d6f0
push 4
pop eax
jmp 0x40d798
cmp dword [ebp - 0x14], esi
je 0x40d6f0
push dword [0x4309fc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d6d5
mov eax, dword [0x430a08]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d74e
cmp dword [0x430a0c], edi
je 0x40d74e
push eax
call ebx
push dword [0x430a0c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d74e
test eax, eax
je 0x40d74e
call ecx
test eax, eax
je 0x40d743
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d743
test byte [ebp - 8], 1
jne 0x40d74e
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d77e
mov eax, dword [0x430a00]
cmp eax, edi
je 0x40d77b
push eax
call ebx
test eax, eax
je 0x40d77b
call eax
mov esi, eax
test esi, esi
je 0x40d77b
mov eax, dword [0x430a04]
cmp eax, edi
je 0x40d77b
push eax
call ebx
test eax, eax
je 0x40d77b
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4309fc]
call ebx
test eax, eax
je 0x40d796
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d798
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403ffd
mov esp, ebp
pop ebp
ret
Function at 0x1496480
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xdc8000]
push edi
or ebp, 0xffffffff
jmp 0x14964a2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x14964a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1496498
mov eax, 1
add ebx, ebx
jne 0x14964bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x14964b0
jne 0x14964cc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x14964b0
xor ecx, ecx
sub eax, 3
jb 0x14964e0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1496552
mov ebp, eax
add ebx, ebx
jne 0x14964eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x14964f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x149651c
inc ecx
add ebx, ebx
jne 0x1496508
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x14964fd
jne 0x1496519
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x14964fd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x149653c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x149652d
jmp 0x149649e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x149653c
add edi, ecx
jmp 0x149649e
pop esi
mov edi, esi
mov ecx, 0x1d23b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x149655a
cmp byte [edi], 0xbd
jne 0x149655a
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 0x149655f
lea edi, [esi + 0x106f000]
mov eax, dword [edi]
or eax, eax
je 0x14965d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x109b074]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x109b260]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x149658c
mov ecx, edi
jns 0x14965bb
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 + 0x109b268]
or eax, eax
je 0x14965d1
mov dword [ebx], eax
add ebx, 4
jmp 0x14965a9
call dword [esi + 0x109b264]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1496608
cmp al, 0xef
ja 0x14965fb
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x14965dd
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x14965ea
mov ebp, dword [esi + 0x109b26c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x287]
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 0x149663c
sub esp, 0xffffff80
jmp 0x80181f
Function at 0x403514
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
nop
lea eax, [ebp - 0x44]
push eax
call sub.kernel32.dll_GetStartupInfoA
mov eax, dword [ebp - 0x18]
and eax, 1
cmp eax, 0
je 0x403542
movzx eax, word [ebp - 0x14]
mov dword [ebp - 0x50], eax
jmp 0x40354a
mov eax, 0xa
mov dword [ebp - 0x50], eax
mov eax, 0
mov dword [ebp - 0x48], eax
call sub.kernel32.dll_GetCommandLineA
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 8]
cmp eax, 0
je 0x403579
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0x4c]
push eax
call sub.msvcrt.dll_strstr
add esp, 8
mov dword [ebp - 0x48], eax
mov eax, 0
mov ecx, dword [ebp - 0x48]
cmp eax, ecx
jne 0x40359f
mov eax, 0x4055e8
push eax
call sub.msvcrt.dll__strdup
add esp, 4
mov dword [ebp - 0x48], eax
jmp 0x4035c8
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x4c]
cmp eax, ecx
jbe 0x4035c8
mov eax, dword [ebp - 0x48]
add eax, 0xffffffff
movsx ecx, byte [eax]
cmp ecx, 0x22
jne 0x4035c8
mov eax, dword [ebp - 0x48]
add eax, 0xffffffff
mov dword [ebp - 0x48], eax
mov eax, 0x30000
push eax
mov eax, 0x10000
push eax
call sub.msvcrt.dll__controlfp
add esp, 8
mov eax, 0
push eax
call sub.kernel32.dll_GetModuleHandleA
mov ecx, dword [ebp - 0x50]
push ecx
mov ecx, dword [ebp - 0x48]
push ecx
mov ecx, 0
push ecx
push eax
call fcn.004031cc
leave
ret