joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3503700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0350378f
jae 0x350370e
xor ecx, ecx
call fcn.0350378f
jae 0x350373d
xor eax, eax
call fcn.0350378f
jae 0x350374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0350378f
adc al, al
jae 0x350372f
jne 0x3503779
stosb byte es:[edi], al
jmp 0x3503711
call fcn.0350379b
sub ecx, ebx
jne 0x3503756
call fcn.03503799
jmp 0x3503775
lodsb al, byte [esi]
shr eax, 1
je 0x3503783
adc ecx, ecx
jmp 0x3503772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.03503799
cmp eax, 0x7d00
jae 0x3503772
cmp ah, 5
jae 0x3503773
cmp eax, 0x7f
ja 0x3503774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x3503711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x412210
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41223d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41223d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x4010c0
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x1c
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4010fa
lea ecx, [esp + 4]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x401100
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
add esp, 0x1c
ret
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
push 0
push 0
push 0x10
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
push 0
push eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x40114c
mov ecx, dword [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
add esp, 0x1c
ret
mov al, 1
add esp, 0x1c
ret

Function at 0x401160
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject dll
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ecx
push ebx
push esi
push eax
push 0
push 0x2a
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x40117c
pop esi
xor al, al
pop ebx
pop ecx
ret
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
push 4
push 0x1000
push ebx
call ebp
inc eax
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
test edi, edi
je 0x401200
lea ecx, [esp + 0x10]
push ecx
push 0x40
push ebx
mov dword [esp + 0x1c], 0
call ebp
inc eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0
push ebx
call ebp
inc eax
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x401200
push 0x40dbe4
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401200
push 0
push 0
push edi
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov ebx, eax
test ebx, ebx
jne 0x401208
pop edi
pop ebp
pop esi
xor al, al
pop ebx
pop ecx
ret
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x8000
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call edi
push esi
call edi
pop edi
pop ebp
pop esi
mov al, 1
pop ebx
pop ecx
ret

Function at 0x401d74
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40f090]
jne 0x401d7e
repz ret
jmp fcn.004027e8
Function at 0x40993c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00404805
and dword [ebp - 4], 0
cmp dword [0x4109d0], 0
mov ebx, eax
jne 0x4099ed
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x409a9e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x409a9e
push eax
call fcn.00404793
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4109d0], eax
call esi
push eax
call fcn.00404793
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4109d4], eax
call esi
push eax
call fcn.00404793
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4109d8], eax
call esi
push eax
call fcn.00404793
pop ecx
mov dword [0x4109e0], eax
test eax, eax
je 0x4099ed
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404793
pop ecx
mov dword [0x4109dc], eax
mov eax, dword [0x4109dc]
cmp eax, ebx
je 0x409a45
cmp dword [0x4109e0], ebx
je 0x409a45
push eax
call fcn.0040480e
push dword [0x4109e0]
mov esi, eax
call fcn.0040480e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x409a45
test edi, edi
je 0x409a45
call esi
test eax, eax
je 0x409a3c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409a3c
test byte [ebp - 0xc], 1
jne 0x409a45
or dword [ebp + 0x10], 0x200000
jmp 0x409a7e
mov eax, dword [0x4109d4]
cmp eax, ebx
je 0x409a7e
push eax
call fcn.0040480e
pop ecx
test eax, eax
je 0x409a7e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x409a7e
mov eax, dword [0x4109d8]
cmp eax, ebx
je 0x409a7e
push eax
call fcn.0040480e
pop ecx
test eax, eax
je 0x409a7e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4109d0]
call fcn.0040480e
pop ecx
test eax, eax
je 0x409a9e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x409aa0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x30041869
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x30043668
call fcn.300419d0
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x3007d2b4
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x3004160c
cmp eax, esi
jne 0x300415ff
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x3004160f
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x300415e6
xor esi, esi
inc esi
mov eax, dword [0x3007d2b0]
cmp eax, esi
jne 0x30041622
push 0x1f
call sub.MSVCR80.dll__amsg_exit
pop ecx
jmp 0x30041651
mov eax, dword [0x3007d2b0]
test eax, eax
jne 0x3004164b
mov dword [0x3007d2b0], esi
push 0x3000146c
push 0x30001460
call sub.MSVCR80.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x30041651
jmp 0x30041775
mov dword [0x3007cf60], esi
mov eax, dword [0x3007d2b0]
cmp eax, esi
jne 0x30041675
push 0x3000145c
push 0x30001444
call sub.MSVCR80.dll__initterm
pop ecx
pop ecx
mov dword [0x3007d2b0], 2
cmp dword [ebp - 0x20], ebx
jne 0x30041682
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x3007d2c0], ebx
je 0x300416a3
push 0x3007d2c0
call fcn.30041e9d
pop ecx
test eax, eax
je 0x300416a3
push ebx
push 2
push ebx
call dword [0x3007d2c0]
mov eax, dword [sym.imp.MSVCR80.dll__wcmdln]
cmp dword [eax], ebx
je 0x30041775
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x3004170d
cmp cx, bx
je 0x300416c8
cmp dword [ebp - 0x1c], ebx
jne 0x3004170d
movzx ecx, word [eax]
cmp cx, bx
je 0x300416dd
cmp cx, 0x20
ja 0x300416dd
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x300416c8
test byte [ebp - 0x40], 1
je 0x300416e9
movzx ecx, word [ebp - 0x3c]
jmp 0x300416ec
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x30000000
call main
mov dword [0x3007cf5c], eax
cmp dword [0x3007cf50], ebx
jne 0x30041752
push eax
call dword [sym.imp.MSVCR80.dll_exit]
cmp cx, 0x22
jne 0x3004171e
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x300416b2
cmp dword [0x3007cf60], ebx
jne 0x30041760
call dword [sym.imp.MSVCR80.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x3007cf5c]
jmp 0x30041781
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.30041a15
ret
call fcn.3010e000
jmp 0x300415a9
Function at 0x40274c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00403b48
test esi, esi
jne 0x402782
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00403c38
jmp 0x4027a0
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402600
mov edi, eax
test esi, esi
je 0x4027a0
cmp dword [ebx], 0
je 0x4027a0
dec esi
jmp 0x402789
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402924
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x413008], 0x8088405
inc edx
mov dword [ebx + 0x413008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403128
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x413010]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4031c0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4031a0
xor eax, eax
push ebp
push 0x403199
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4031dc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4031a0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x413010]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x413010], ax
mov esp, ebp
pop ebp
ret

Function at 0x4039cc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x414034], 0
je 0x403a2d
cmp word [0x414208], 0xd7b2
jne 0x4039f5
cmp dword [0x414210], 0
jbe 0x4039f5
mov eax, 0x414204
call dword [0x414220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x41307c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403a54
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41301c], 0
jne 0x403a49
push 0
push 0x41309c
push 0x41307c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40de24
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403f88
xor eax, eax
push ebp
push 0x40deee
push dword fs:[eax]
mov dword fs:[eax], esp
lea ebx, [ebp - 0xc]
mov dword [ebx], esi
mov eax, dword [ebp - 4]
call fcn.00403da0
mov edi, eax
xor eax, eax
mov dword [ebp - 0x10], eax
cmp edi, 4
jl 0x40de8e
mov esi, dword [ebx]
lea eax, [ebp - 4]
call fcn.00403fe8
mov edx, edi
test edx, edx
jns 0x40de77
add edx, 3
sar edx, 2
mov dword [ebp - 0x10], edx
mov ebx, dword [ebp - 0x10]
dec ebx
test ebx, ebx
jl 0x40de8e
inc ebx
xor dword [eax], esi
add eax, 4
dec ebx
jne 0x40de86
xor esi, esi
xor eax, eax
mov esi, eax
mov eax, dword [ebp - 0x10]
shl eax, 2
inc eax
mov ebx, edi
sub ebx, eax
jl 0x40decd
inc ebx
mov edi, eax
lea eax, [ebp - 4]
call fcn.00403fe8
mov edx, dword [ebp - 4]
mov dl, byte [edx + edi - 1]
xor dl, byte [ebp + esi - 0xc]
mov byte [eax + edi - 1], dl
inc esi
and esi, 0x80000003
jns 0x40dec9
dec esi
or esi, 0xfffffffc
inc esi
inc edi
dec ebx
jne 0x40dea4
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00403b9c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40def5
lea eax, [ebp - 4]
call fcn.00403b48
ret

Function at 0x40e24c
Capabilities:
Hash data with crc32

Disassembly:
push ebx
xor ebx, ebx
mov ecx, 0x414780
mov eax, ebx
mov edx, 0xfffffff8
test al, 1
je 0x40e268
shr eax, 1
xor eax, 0xedb88320
jmp 0x40e26a
shr eax, 1
inc edx
jne 0x40e25b
mov dword [ecx], eax
inc ebx
add ecx, 4
cmp ebx, 0x100
jne 0x40e254
pop ebx
ret

Function at 0x40e280
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, eax
cmp byte [0x41477c], 0
jne 0x40e299
mov byte [0x41477c], 1
call fcn.0040e24c
or ebx, 0xffffffff
mov eax, esi
call fcn.00403da0
mov edx, eax
test edx, edx
jle 0x40e2d3
mov ecx, 1
mov eax, ebx
xor ebx, ebx
mov bl, byte [esi + ecx - 1]
xor ebx, eax
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x414780]
shr eax, 8
and eax, 0xffffff
xor ebx, eax
inc ecx
dec edx
jne 0x40e2ae
and ebx, 0x7fffffff
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x410564
Capabilities:
Parse pe header

Disassembly:
xor ecx, ecx
mov edx, eax
cmp word [edx], 0x5a4d
jne 0x410586
mov edx, eax
mov eax, dword [edx + 0x3c]
test eax, eax
jle 0x410586
mov ecx, edx
add ecx, eax
cmp dword [ecx], 0x4550
je 0x410586
xor ecx, ecx
mov eax, ecx
ret
Function at 0x412244
Capabilities:
Clear file content
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
xor eax, eax
push ebp
push 0x4124ae
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.0040c5a0
test al, al
je 0x412493
mov ebx, sub.kernel32.dll_LoadLibraryA
mov esi, sub.kernel32.dll_GetProcAddress
call fcn.00411f94
lea edx, [ebp - 4]
mov eax, 0x4124c4
call fcn.0040dc38
mov eax, dword [ebp - 4]
call fcn.00403f98
push eax
call ebx
mov ebx, eax
lea edx, [ebp - 8]
mov eax, 0x4124dc
call fcn.0040dc38
mov eax, dword [ebp - 8]
call fcn.00403f98
push eax
push ebx
call esi
mov dword [0x414bcc], eax
lea edx, [ebp - 0xc]
mov eax, 0x412504
call fcn.0040dc38
mov eax, dword [ebp - 0xc]
call fcn.00403f98
push eax
push ebx
call esi
mov dword [0x414bd4], eax
call fcn.004113e8
mov eax, 0x64
call fcn.00402924
cmp eax, 0x3e8
jne 0x412493
push 0x2c
call sub.kernel32.dll_OpenFileMappingA
fld xword [0x412514]
call fcn.00402810
fabs
fcomp dword [0x412520]
fnstsw ax
sahf
je 0x412313
push 4
push 0x17
push 0x4d
call sub.kernel32.dll_FreeConsole
fld xword [0x412524]
call fcn.00402830
fcomp dword [0x412530]
fnstsw ax
sahf
je 0x41233d
push 0x41253c
push 0x412550
push 0x412568
call sub.kernel32.dll_SystemTimeToFileTime
call sub.kernel32.dll_SetEndOfFile
push 0x2e
push 4
push 0x45
call sub.kernel32.dll_EnumCalendarInfoA
push 0x62
push 0x37
push 0x22
call sub.kernel32.dll_CreateConsoleScreenBuffer
fld xword [0x412570]
call fcn.00402810
fmul st(0)
fcomp dword [0x41257c]
fnstsw ax
sahf
jne 0x412379
push 6
push 0x1f
call sub.kernel32.dll_EndUpdateResourceW
push 0x412588
push 0x41259c
call sub.kernel32.dll_FileTimeToDosDateTime
push 0x20
push 0xc
call sub.kernel32.dll_GetTimeFormatW
call sub.kernel32.dll_ReadConsoleInputW
fld xword [0x4125ac]
call fcn.00402810
fmul st(0)
fcomp dword [0x4125b8]
fnstsw ax
sahf
jne 0x4123b5
push 0x37
call sub.kernel32.dll_GetFullPathNameA
fld xword [0x4125bc]
call fcn.004027f8
fcomp dword [0x4125c8]
fnstsw ax
sahf
jne 0x4123df
push 0x4125d4
push 0x4125ec
push 0x412600
call sub.kernel32.dll_HeapCreate
push 0x51
push 0x54
push 0x58
call sub.kernel32.dll_TransmitCommChar
push 0x412614
push 0x412624
call sub.kernel32.dll_BackupRead
fld xword [0x412634]
call fcn.00402810
call fcn.00402840
cmp edx, 0
jne 0x41241f
cmp eax, 0x30c
jne 0x41241f
push 0x412648
call sub.kernel32.dll_GetCommTimeouts
fld xword [0x412654]
call fcn.004027e8
fcomp dword [0x412660]
fnstsw ax
sahf
je 0x412440
push 4
push 2
push 0x41
call sub.kernel32.dll_SetProcessPriorityBoost
push 0x14
push 0x13
call sub.kernel32.dll_AddAtomW
fld xword [0x412664]
call fcn.00402810
fmul st(0)
fcomp dword [0x412670]
fnstsw ax
sahf
jne 0x41246c
push 0x12
push 0x53
push 0x16
call sub.kernel32.dll_SetCommMask
push 0x41267c
call sub.kernel32.dll_GetVersionExA
push 0x43
push 0x60
call sub.kernel32.dll_GetFileAttributesExA
push 0x35
push 0x63
call sub.kernel32.dll_GetLastError_1
push 0x2d
push 0x55
push 4
call sub.kernel32.dll_GetLocaleInfoW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4124b5
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403b6c
ret
Function at 0x4070f5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40d468
cmp edx, dword [eax]
je 0x407117
add eax, 8
inc ecx
cmp eax, 0x40d4f8
jl 0x407108
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40d468]
jne 0x407245
mov eax, dword [0x40e498]
cmp eax, 1
je 0x40721f
test eax, eax
jne 0x407148
cmp dword [0x40d39c], 1
je 0x40721f
cmp edx, 0xfc
je 0x407245
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x40717f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00404350
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004041a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4071c2
lea eax, [ebp - 0x1a4]
push eax
call fcn.004041a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40b5ec
push edi
call fcn.00408c80
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00404350
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00404360
lea eax, [ebp - 0xa0]
push 0x40b5cc
push eax
call fcn.00404360
push dword [esi + 0x40d46c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00404360
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00408bf2
add esp, 0x2c
pop edi
jmp 0x407245
lea eax, [ebp + 8]
lea esi, [esi + 0x40d46c]
push 0
push eax
push dword [esi]
call fcn.004041a0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop esi
leave
ret
Function at 0x4db9a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x9a000]
push edi
or ebp, 0xffffffff
jmp 0x4db9c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4db9c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4db9b8
mov eax, 1
add ebx, ebx
jne 0x4db9db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4db9ec
jne 0x4dba0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4dba0b
dec eax
add ebx, ebx
jne 0x4db9f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4db9d0
add ebx, ebx
jne 0x4dba07
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4dba5d
xor ecx, ecx
sub eax, 3
jb 0x4dba23
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4dba92
sar eax, 1
mov ebp, eax
jmp 0x4dba2e
add ebx, ebx
jne 0x4dba2e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4db9fc
inc ecx
add ebx, ebx
jne 0x4dba3c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4db9fc
add ebx, ebx
jne 0x4dba49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4dba3e
jne 0x4dba5a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4dba3e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4dba7c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4dba6e
jmp 0x4db9be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4dba7c
add edi, ecx
jmp 0x4db9be
pop esi
mov edi, esi
mov ecx, 0x18b2
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4dba9a
cmp byte [edi], 0xc
jne 0x4dba9a
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 0x4dba9f
lea edi, [esi + 0xd8000]
mov eax, dword [edi]
or eax, eax
je 0x4dbb17
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xebc70]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xebd74]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4dbacc
mov ecx, edi
jns 0x4dbafb
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 + 0xebd78]
or eax, eax
je 0x4dbb11
mov dword [ebx], eax
add ebx, 4
jmp 0x4dbae9
call dword [esi + 0xebd88]
mov ebp, dword [esi + 0xebd7c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x4dbb4b
sub esp, 0xffffff80
jmp 0x43f1c1