joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402880
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 4]
push 0
push eax
push 0
push 0
push 1
push 1
push 0
push 0
push 0xff0000
push 0x4100a8
push 0x4100a0
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 0
push eax
mov dword [0x412204], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
ret

Function at 0x404afe
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov dword [ebp - 0x8c], 0
push 0x88
push 0
lea eax, [ebp - 0x88]
push eax
call fcn.004083d0
add esp, 0xc
push 0x4000
lea ecx, [ebp - 0x88]
push ecx
push 0x410920
call dword [sym.imp.KERNEL32.dll_OpenFile]
cmp eax, 0xffffffff
jne 0x404b62
push 0x1041
lea edx, [ebp - 0x88]
push edx
push 0x410930
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov dword [ebp - 0x8c], eax
jmp 0x404b7c
push 0x41
lea eax, [ebp - 0x88]
push eax
push 0x410940
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov dword [ebp - 0x8c], eax
push 2
push 0
mov ecx, dword [ebp - 0x8c]
push ecx
call dword [sym.imp.KERNEL32.dll__llseek]
cmp eax, 0xffffffff
jne 0x404b9d
push 0x410950
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x8c]
push ecx
call dword [sym.imp.KERNEL32.dll__lwrite]
cmp eax, 0xffffffff
jne 0x404bc9
push 0x41096c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [ebp - 0x8c]
push edx
call dword [sym.imp.KERNEL32.dll__lclose]
cmp eax, 0xffffffff
jne 0x404be6
push 0x410988
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esp, ebp
pop ebp
ret
Function at 0x4051cf
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
lea eax, [ebp - 0x104]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov word [ebp - 0x110], 0
mov ecx, dword [0x412854]
push ecx
lea edx, [ebp - 0x104]
push edx
push 0x4109a4
lea eax, [ebp - 0x218]
push eax
call fcn.00407e08
add esp, 0x10
mov ecx, dword [0x412854]
add ecx, 1
mov dword [0x412854], ecx
mov word [ebp - 0x118], 9
mov word [ebp - 0x116], 0xffff
lea edx, [ebp - 0x218]
push edx
push 6
push 7
push 1
push 0x412938
push 0x412898
call dword [0x4129e0]
mov word [ebp - 0x108], ax
mov eax, dword [ebp - 0x108]
and eax, 0xffff
test eax, eax
je 0x40526b
jmp 0x40528d
push 0
push 1
push 0x105
push 2
push 0x412938
push 0x412898
call dword [0x4129e0]
mov word [ebp - 0x108], ax
mov ecx, dword [ebp - 0x108]
and ecx, 0xffff
mov dword [ebp - 0x224], ecx
cmp dword [ebp - 0x224], 1
je 0x405399
cmp dword [ebp - 0x224], 3
je 0x40535d
cmp dword [ebp - 0x224], 6
je 0x4052c7
jmp 0x4053d5
push 0x104
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
je 0x405319
mov edx, dword [ebp - 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp - 0x220]
push ecx
call fcn.004082e0
add esp, 8
mov edx, dword [ebp - 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 0x110]
push eax
push 0x701
push 5
push 1
push 0x412938
push 0x412898
call dword [0x4129e0]
mov word [ebp - 0x21c], ax
mov ecx, dword [ebp - 0x114]
push ecx
push 0
push 0x400
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x40540f
lea eax, [ebp - 0x110]
push eax
push 0x701
push 5
push 1
push 0x412938
push 0x412898
call dword [0x4129e0]
mov word [ebp - 0x21c], ax
push 0
push 0
push 0x400
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x40540f
lea edx, [ebp - 0x110]
push edx
push 0x701
push 5
push 1
push 0x412938
push 0x412898
call dword [0x4129e0]
mov word [ebp - 0x21c], ax
push 0
push 0
push 0x400
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x40540f
lea ecx, [ebp - 0x110]
push ecx
push 0x701
push 5
push 1
push 0x412938
push 0x412898
call dword [0x4129e0]
mov word [ebp - 0x21c], ax
push 0
push 0
push 0x400
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp - 0x110]
and eax, 0xffff
test eax, eax
jne 0x4051f3
mov esp, ebp
pop ebp
ret
Function at 0x405575
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov word [ebp - 4], 1
push 0x88
push 0
lea eax, [ebp - 0x8c]
push eax
call fcn.004083d0
add esp, 0xc
push 0xa0
push 0
lea ecx, [ebp - 0x150]
push ecx
call fcn.004083d0
add esp, 0xc
push 0x22
push 0
lea edx, [ebp - 0xb0]
push edx
call fcn.004083d0
add esp, 0xc
cmp dword [0x4129e4], 1
jne 0x4055d9
push 0x410a10
call fcn.00404afe
add esp, 4
cmp dword [0x4129e4], 1
je 0x4057a0
push 0xa0
lea eax, [ebp - 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x410a24
lea ecx, [ebp - 0xb0]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [ebp - 0x150]
push edx
call fcn.00408450
add esp, 4
movsx eax, byte [ebp + eax - 0x151]
cmp eax, 0x5c
je 0x405638
push 0x410a34
lea ecx, [ebp - 0x150]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [ebp - 0xb0]
push edx
lea eax, [ebp - 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x4000
lea ecx, [ebp - 0x8c]
push ecx
lea edx, [ebp - 0x150]
push edx
call dword [sym.imp.KERNEL32.dll_OpenFile]
cmp eax, 0xffffffff
je 0x405778
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x4129e8], eax
cmp dword [0x4129e8], 0
je 0x405778
cmp dword [0x4129e8], 0x20
jb 0x405778
push 1
mov ecx, dword [0x4129e8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4129e0], eax
cmp dword [0x4129e0], 0
je 0x405778
push 0x4129ec
push 0x301
push 4
push 1
push 0
push 0x412898
call fcn.00406116
add esp, 0x18
mov word [ebp - 4], ax
mov edx, dword [ebp - 4]
and edx, 0xffff
mov dword [ebp - 0x154], edx
cmp dword [ebp - 0x154], 0
je 0x4056ff
cmp dword [ebp - 0x154], 1
je 0x405733
jmp 0x405740
mov dword [0x4129e4], 1
call fcn.00402dff
cmp eax, 3
jl 0x405731
push 0x410a38
push 0x410a4c
push 0
push 0
push 0
mov eax, dword [0x4129ec]
push eax
call fcn.00402cfc
add esp, 0x18
jmp 0x405776
push 0x410a74
call fcn.00404afe
add esp, 4
mov dword [0x4129e4], 0
call fcn.00402dff
cmp eax, 1
jl 0x405776
push 0x410a88
push 0x4129fc
push 0
mov cx, word [ebp - 4]
push ecx
push 1
mov edx, dword [0x4129ec]
push edx
call fcn.00402cfc
add esp, 0x18
jmp 0x4057a0
call fcn.00402dff
cmp eax, 1
jl 0x4057a0
push 0x410aac
push 0x410abc
push 0
push 0
push 0
mov eax, dword [0x4129ec]
push eax
call fcn.00402cfc
add esp, 0x18
mov eax, dword [0x4129e4]
mov esp, ebp
pop ebp
ret
Function at 0x406a80
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov dword [ebp - 0x250], 0
cmp dword [ebp + 8], 0
je 0x406aaa
mov eax, dword [ebp + 8]
push eax
call fcn.00408450
add esp, 4
cmp eax, 3
jae 0x406ab2
or eax, 0xffffffff
jmp 0x406b7c
mov dword [ebp - 0x10c], 3
jmp 0x406acd
mov ecx, dword [ebp - 0x10c]
add ecx, 1
mov dword [ebp - 0x10c], ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00408450
add esp, 4
cmp dword [ebp - 0x10c], eax
jae 0x406b7a
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x10c]
movsx ecx, byte [eax + 1]
test ecx, ecx
je 0x406b08
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x10c]
movsx eax, byte [edx + 1]
cmp eax, 0x5c
jne 0x406b75
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x104]
push edx
call fcn.004082e0
add esp, 8
mov eax, dword [ebp - 0x10c]
mov byte [ebp + eax - 0x103], 0
lea ecx, [ebp - 0x24c]
push ecx
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 0xffffffff
jne 0x406b68
push 0
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x406b66
mov eax, 0xfffffffe
jmp 0x406b7c
jmp 0x406b75
mov ecx, dword [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x406abe
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x406f20
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x46c
push esi
push edi
cmp dword [ebp + 8], 0
je 0x406f41
mov eax, dword [ebp + 8]
push eax
call fcn.00408450
add esp, 4
test eax, eax
jne 0x406f4a
xor eax, eax
xor edx, edx
jmp 0x4070e5
mov ecx, dword [0x4111d8]
mov dword [ebp - 0x338], ecx
mov edx, dword [0x4111dc]
mov dword [ebp - 0x334], edx
mov eax, dword [0x4111e0]
mov dword [ebp - 0x330], eax
mov cl, byte [0x4111e4]
mov byte [ebp - 0x32c], cl
mov ecx, 5
mov esi, 0x4111e8
lea edi, [ebp - 0x34c]
rep movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x10c]
push edx
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x318]
push ecx
lea edx, [ebp - 0x464]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0040891b
add esp, 0x14
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x464]
push ecx
call fcn.00408450
add esp, 4
mov byte [ebp + eax - 0x463], 0
lea edx, [ebp - 0x464]
push edx
call fcn.00408450
add esp, 4
mov byte [ebp + eax - 0x464], 0x5c
lea eax, [ebp - 0x338]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x350], eax
cmp dword [ebp - 0x350], 0
jne 0x407014
xor eax, eax
xor edx, edx
jmp 0x4070e5
lea ecx, [ebp - 0x34c]
push ecx
mov edx, dword [ebp - 0x350]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x320], eax
cmp dword [ebp - 0x320], 0
je 0x40706d
lea eax, [ebp - 0x46c]
push eax
lea ecx, [ebp - 0x360]
push ecx
lea edx, [ebp - 0x358]
push edx
lea eax, [ebp - 0x464]
push eax
call dword [ebp - 0x320]
mov ecx, dword [ebp - 0x358]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x354]
mov dword [ebp - 4], edx
jmp 0x4070d2
lea eax, [ebp - 0x328]
push eax
lea ecx, [ebp - 0x324]
push ecx
lea edx, [ebp - 0x31c]
push edx
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x464]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x4070d2
mov edx, dword [ebp - 0x110]
imul edx, dword [ebp - 0x31c]
imul edx, dword [ebp - 0x324]
xor eax, eax
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jg 0x4070d2
jl 0x4070c4
cmp dword [ebp - 8], 0
jae 0x4070d2
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x350]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4071c7
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x10], 0x1a
mov dword [ebp - 0x14], 0
mov dword [ebp - 8], 0x10000000
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 1
mov eax, dword [0x4111fc]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
jmp 0x40720c
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0x1f
jge 0x40724a
mov edx, dword [ebp - 0x14]
and edx, dword [ebp - 0x18]
test edx, edx
je 0x407238
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
je 0x407238
mov ecx, dword [ebp - 0x18]
not ecx
mov edx, dword [ebp - 0x14]
and edx, ecx
mov dword [ebp - 0x14], edx
mov al, byte [ebp - 4]
add al, 1
mov byte [ebp - 4], al
mov ecx, dword [ebp - 0x18]
shl ecx, 1
mov dword [ebp - 0x18], ecx
jmp 0x407203
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret

Function at 0x407510
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3124
call fcn.00408ab0
push edi
cmp dword [ebp + 8], 0
jne 0x40752b
xor eax, eax
jmp 0x407649
mov dword [ebp - 0x311c], 0
mov al, byte [0x412a24]
mov byte [ebp - 0x100], al
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0xff]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea ecx, [ebp - 0x3118]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [ebp - 0x311c]
push edx
lea eax, [ebp - 0x3118]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x3124], eax
lea ecx, [ebp - 0x3010]
push ecx
mov edx, dword [ebp - 0x3124]
push edx
mov eax, dword [ebp - 0x311c]
push eax
lea ecx, [ebp - 0x3118]
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
lea edx, [ebp - 0x3124]
push edx
lea eax, [ebp - 0x3120]
push eax
push 0x411248
lea ecx, [ebp - 0x3010]
push ecx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x407633
mov edx, dword [ebp - 0x3120]
mov eax, dword [edx]
shr eax, 0x10
and eax, 0xffff
and eax, 0xffff
push eax
mov ecx, dword [ebp - 0x3120]
xor edx, edx
mov dx, word [ecx]
push edx
push 0x411264
lea eax, [ebp - 0x900]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [ebp - 0x3124]
push ecx
lea edx, [ebp - 0x3014]
push edx
lea eax, [ebp - 0x900]
push eax
lea ecx, [ebp - 0x3010]
push ecx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x407633
mov edx, dword [ebp - 0x3014]
push edx
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp - 0x100]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x40764e
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3138
call fcn.00408ab0
push edi
cmp dword [ebp + 8], 0
jne 0x407669
xor eax, eax
jmp 0x407850
mov dword [ebp - 0x311c], 0
mov al, byte [0x412a28]
mov byte [ebp - 0x100], al
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0xff]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea ecx, [ebp - 0x3118]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [ebp - 0x311c]
push edx
lea eax, [ebp - 0x3118]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x3128], eax
lea ecx, [ebp - 0x3010]
push ecx
mov edx, dword [ebp - 0x3128]
push edx
mov eax, dword [ebp - 0x311c]
push eax
lea ecx, [ebp - 0x3118]
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
lea edx, [ebp - 0x3128]
push edx
lea eax, [ebp - 0x3120]
push eax
push 0x41128c
lea ecx, [ebp - 0x3010]
push ecx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x407771
mov edx, dword [ebp - 0x3120]
mov eax, dword [edx]
shr eax, 0x10
and eax, 0xffff
and eax, 0xffff
push eax
mov ecx, dword [ebp - 0x3120]
xor edx, edx
mov dx, word [ecx]
push edx
push 0x4112a8
lea eax, [ebp - 0x900]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [ebp - 0x3128]
push ecx
lea edx, [ebp - 0x3014]
push edx
lea eax, [ebp - 0x900]
push eax
lea ecx, [ebp - 0x3010]
push ecx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x407771
mov edx, dword [ebp - 0x3014]
push edx
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [0x41112c]
mov dword [ebp - 0x3124], ecx
mov byte [ebp - 0x312c], 0x2e
push 0x2c
lea edx, [ebp - 0x100]
push edx
call fcn.00408af0
add esp, 8
test eax, eax
je 0x4077a0
mov byte [ebp - 0x312c], 0x2c
cmp dword [ebp - 0x3124], 3
jg 0x40783a
cmp dword [ebp - 0x3124], 0
jl 0x40783a
lea eax, [ebp - 0x100]
mov dword [ebp - 0x3134], eax
mov dword [ebp - 0x3138], 0
jmp 0x4077e1
mov ecx, dword [ebp - 0x3138]
add ecx, 1
mov dword [ebp - 0x3138], ecx
mov edx, dword [ebp - 0x3138]
cmp edx, dword [ebp - 0x3124]
jge 0x407828
movsx eax, byte [ebp - 0x312c]
push eax
mov ecx, dword [ebp - 0x3134]
push ecx
call fcn.00408af0
add esp, 8
mov dword [ebp - 0x3130], eax
cmp dword [ebp - 0x3130], 0
jne 0x407817
jmp 0x407828
mov edx, dword [ebp - 0x3130]
add edx, 1
mov dword [ebp - 0x3134], edx
jmp 0x4077d2
cmp dword [ebp - 0x3130], 0
je 0x40783a
mov eax, dword [ebp - 0x3130]
mov byte [eax], 0
lea ecx, [ebp - 0x100]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x408a62
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x408a82
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040b3b1
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x408aa3
test byte [esp + 8], 2
je 0x408aa3
mov dword [0x412a40], 0xd
mov dword [0x412a44], 5
jmp 0x408a7e
xor eax, eax
ret
Function at 0x40a089
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x411660
cmp edx, dword [eax]
je 0x40a0ab
add eax, 8
inc ecx
cmp eax, 0x4116f0
jl 0x40a09c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x411660]
jne 0x40a1d9
mov eax, dword [0x412a34]
cmp eax, 1
je 0x40a1b3
test eax, eax
jne 0x40a0dc
cmp dword [0x411338], 1
je 0x40a1b3
cmp edx, 0xfc
je 0x40a1d9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40a113
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004082e0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00408450
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40a156
lea eax, [ebp - 0x1a4]
push eax
call fcn.00408450
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40e1fc
push edi
call fcn.0040ad00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004082e0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004082f0
lea eax, [ebp - 0xa0]
push 0x40e1f4
push eax
call fcn.004082f0
push dword [esi + 0x411664]
lea eax, [ebp - 0xa0]
push eax
call fcn.004082f0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040aab2
add esp, 0x2c
pop edi
jmp 0x40a1d9
lea eax, [ebp + 8]
lea esi, [esi + 0x411664]
push 0
push eax
push dword [esi]
call fcn.00408450
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 0x412867
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004126e6

Function at 0x416c5f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004165cd

Function at 0x416c6a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00416808

Function at 0x48f9e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section..rsrc
lea edi, [esi - 0x7c000]
push edi
jmp 0x48f9fa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x48fa01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48f9f0
mov eax, 1
add ebx, ebx
jne 0x48fa13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x48fa24
jne 0x48fa43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48fa43
dec eax
add ebx, ebx
jne 0x48fa30
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x48fa08
add ebx, ebx
jne 0x48fa3f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x48fa95
xor ecx, ecx
sub eax, 3
jb 0x48fa5b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x48faca
sar eax, 1
mov ebp, eax
jmp 0x48fa66
add ebx, ebx
jne 0x48fa66
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48fa34
inc ecx
add ebx, ebx
jne 0x48fa74
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48fa34
add ebx, ebx
jne 0x48fa81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x48fa76
jne 0x48fa92
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x48fa76
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x48fab4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x48faa6
jmp 0x48f9f6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x48fab4
add edi, ecx
jmp 0x48f9f6
pop esi
mov edi, esi
mov ecx, 0x1a9e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x48fad2
cmp byte [edi], 6
jne 0x48fad2
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 0x48fad7
lea edi, [esi + 0x8d000]
mov eax, dword [edi]
or eax, eax
je 0x48fb4f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8f000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8f104]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x48fb04
mov ecx, edi
jns 0x48fb33
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 + 0x8f108]
or eax, eax
je 0x48fb49
mov dword [ebx], eax
add ebx, 4
jmp 0x48fb21
call dword [esi + 0x8f118]
mov ebp, dword [esi + 0x8f10c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
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 0x48fb83
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x422e7a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00422b2f

Function at 0x422e85
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00422cb2

Function at 0x45e6f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x56d7bb
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x59b000]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
mov dword [edi], 0x444320
mov byte [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
lea ecx, [edi + 0x18]
mov dword [esp + 0x18], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
call fcn.0056b090
mov dword [edi + 0x18], eax
mov eax, edi
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov word [edi + 0x30], 0
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret