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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x562040]
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.004f43df
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.004f43df
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 0x4fd8e5
cmp word [ecx], dx
je 0x4fd8e5
mov eax, dword [0x51aa1c]
push edi
dec eax
push eax
push 0x51a908
call fcn.004fd80d
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4fd958
cmp word [eax], dx
je 0x4fd958
mov eax, dword [edi]
test eax, eax
je 0x4fd909
cmp word [eax], dx
je 0x4fd909
lea eax, [ebp - 0x10]
push eax
call fcn.004fd1f0
jmp 0x4fd912
lea eax, [ebp - 0x10]
push eax
call fcn.004fd28b
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4fd982
mov eax, dword [0x51a904]
push dword [ebp - 0x14]
dec eax
push eax
push 0x51a5f8
call fcn.004fd80d
add esp, 0xc
test al, al
je 0x4fd982
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4fd94d
cmp word [eax], di
je 0x4fd94d
lea eax, [ebp - 0x10]
push eax
call fcn.004fd1f0
pop ecx
jmp 0x4fd984
lea eax, [ebp - 0x10]
push eax
call fcn.004fd28b
jmp 0x4fd94a
mov eax, dword [edi]
test eax, eax
je 0x4fd96f
cmp word [eax], dx
je 0x4fd96f
lea eax, [ebp - 0x10]
push eax
call fcn.004fd1a5
pop ecx
jmp 0x4fd982
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 0x4fda4d
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004fd692
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4fda4d
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4fda4d
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4fda4d
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4fd9da
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004f6910
test ebx, ebx
je 0x4fda48
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004f6910
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4fda4d
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 0x4fda4d
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0050146b
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4fda4f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cfcce
leave
ret
Function at 0x501695
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.00501611
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x501804
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x501804
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x5017b9
jg 0x5016f1
test eax, eax
je 0x5017af
push 1
push 0x1000
call fcn.004f605f
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x501714
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x5017a6
push 0x8000
push ebx
call fcn.004f03f0
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x50173d
jg 0x501738
cmp ecx, 0x1000
jb 0x50173d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004f8ab0
add esp, 0x10
cmp eax, 0xffffffff
je 0x501782
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 0x501738
jl 0x501769
test ecx, ecx
jne 0x50172a
push dword [ebp - 0xc]
push ebx
call fcn.004f03f0
push esi
call fcn.004f593f
add esp, 0xc
xor ebx, ebx
jmp 0x501812
cmp byte [edi + 0x24], 0
je 0x501799
cmp dword [edi + 0x20], 5
jne 0x501799
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x5017a4
mov ebx, dword [edi + 0x18]
jmp 0x5017a6
xor ebx, ebx
push esi
call fcn.004f593f
pop ecx
jmp 0x501812
test ecx, ecx
jg 0x50177b
jl 0x5017b9
test eax, eax
jae 0x50177b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004f4043
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x5017d9
cmp byte [edi + 0x1c], 0
je 0x50177b
jmp 0x50180a
push ebx
call fcn.004fb70f
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x50177b
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 0x501812
cmp byte [edi + 0x1c], 0
je 0x50180f
mov ebx, dword [edi + 0x18]
jmp 0x501812
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004f4043
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x502d80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x502dad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x502dad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43301e
nop
popal
nop
nop
nop
nop
jmp fcn.00431219

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 0x4028e4
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402921
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x108]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402941
lea eax, [esp + 0x108]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x104
call fcn.00403ea4
add esp, 0x20c
pop esi
pop ebx
ret

Function at 0x402ac0
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x402aef
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403d5c
jmp 0x402b0d
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.00402a48
mov edi, eax
test ebx, ebx
je 0x402b0d
cmp dword [esi], 0
je 0x402b0d
dec ebx
jmp 0x402af6
add esp, 0x108
pop edi
pop esi
pop ebx
ret
Function at 0x405edc
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call dword [ebp - 0x538]
mov dword [ebp - 0x398], eax
mov byte [ebp - 0x544], 1
cmp dword [ebp - 0x398], 0
je 0x405f0f
cmp dword [ebp - 0x398], 0
je 0x4060d9
cmp dword [ebp + 0xc], 1
je 0x4060d9
cmp dword [ebp + 0xc], 8
jne 0x4060a1
and byte [ebp - 0x6b8], 0
and byte [ebp - 0x6b7], 0
mov byte [ebp - 0x6b6], 0x9b
and byte [ebp - 0x6b5], 0
mov byte [ebp - 0x6b4], 0x33
mov byte [ebp - 0x6b3], 0x16
mov byte [ebp - 0x6b2], 0xd
mov byte [ebp - 0x6b1], 0x10
dec edi
stc
invalid
call dword [eax]
mov byte [ebp - 0x6b0], 1
mov byte [ebp - 0x6af], 0x34
mov byte [ebp - 0x6ae], 0x16
mov byte [ebp - 0x6ad], 0xb
mov byte [ebp - 0x6ac], 7
mov byte [ebp - 0x6ab], 1
mov byte [ebp - 0x6aa], 0x17
mov byte [ebp - 0x6a9], 0x17
mov byte [ebp - 0x6a8], 0x29
mov byte [ebp - 0x6a7], 1
mov byte [ebp - 0x6a6], 9
mov byte [ebp - 0x6a5], 0xb
or eax, esi
test dword [ecx + edi*8 - 1], ebx
call dword [esi]
call fcn.0040521b
popfd
or ah, byte [eax - 0x435a7fc9]
cli
invalid
and byte [ebp - 0x230], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x22f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x12c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.004051f9
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.0040522b
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004051e0
add esp, 0xc
mov dword [ebp - 0x3d4], eax
call fcn.0040521b
dec ecx
test al, 0x77
ret

Function at 0x4073c8
Capabilities:
Access peb ldr_data

Disassembly:
mov cl, bh
invalid
jb 0x407397
mov eax, dword fs:[0x30]

Function at 0x41993c
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x419942
ret
Function at 0x429438
Capabilities:
Open clipboard

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4294c2
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebx + 4], 0
jne 0x4294a9
mov eax, dword [0x48df64]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
mov dword [ebx + 8], eax
test eax, eax
jne 0x429477
push ebx
push 0x4294d0
call fcn.00442780
mov dword [ebx + 8], eax
mov byte [ebx + 0xc], 1
mov eax, dword [ebx + 8]
push eax
call sub.user32.dll_OpenClipboard
test eax, eax
jne 0x4294a5
lea edx, [ebp - 4]
mov eax, dword [0x48dc64]
call fcn.00405f4c
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x407d20]
call fcn.0040bf54
call fcn.00403770
mov byte [ebx + 0xd], 0
inc dword [ebx + 4]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4294c9
lea eax, [ebp - 4]
call fcn.00403c78
ret

Function at 0x429790
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00429438
xor eax, eax
push ebp
push 0x429805
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004293f0
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
call fcn.0041d9e8
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.user32.dll_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x4297ef
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42980c
mov eax, dword [ebp - 4]
call fcn.0042940c
ret

Function at 0x429814
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00429438
xor eax, eax
push ebp
push 0x429889
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004293f0
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x5c]
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.user32.dll_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x429873
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x429890
mov eax, dword [ebp - 4]
call fcn.0042940c
ret

Function at 0x43c3c8
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00403c78
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x43c429
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call fcn.00407410
cmp byte [ebp - 0x101], 0
jne 0x43c429
cmp byte [ebp - 0x102], 0
je 0x43c429
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00403ea4
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44a8f4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x8c], 0
je 0x44a929
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403d5c
jmp 0x44a933
mov eax, esi
mov edx, dword [ebx + 0x74]
call fcn.00403d10
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44b820
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x6c]
test esi, esi
je 0x44b858
mov eax, esi
call fcn.00434834
test al, al
je 0x44b858
mov eax, dword [ebx + 0x6c]
call fcn.0043440c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44b858
push 0
mov eax, dword [ebx + 0x6c]
call fcn.0043440c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x488ea0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004040a8
mov eax, dword [ebp - 8]
call fcn.004040a8
mov eax, dword [ebp - 0xc]
call fcn.004040a8
xor eax, eax
push ebp
push 0x488f6f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x488f88
call fcn.00403efc
lea eax, [ebp - 8]
mov edx, 0x488f88
call fcn.00403efc
lea eax, [ebp - 0xc]
mov edx, 0x488f88
call fcn.00403efc
mov bl, 1
push 1
lea eax, [ebp - 0xc]
call fcn.004040c4
push eax
lea eax, [ebp - 8]
call fcn.004040c4
push eax
lea eax, [ebp - 4]
call fcn.004040c4
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteA
cmp eax, 0x20
jae 0x488f54
xor ebx, ebx
push 0
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov edx, 0x488f94
call fcn.00403f40
mov eax, dword [ebp - 0x10]
mov cx, word [0x488fa8]
mov dl, 1
call fcn.0044eb04
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x488f76
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00403c9c
ret
Function at 0x401620
Capabilities:
Get common file path

Disassembly:
sub esp, 0x218
mov eax, dword [0x408030]
mov dword [esp + 0x214], eax
push 0x104
lea eax, [esp + 8]
push eax
mov dword [esp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x401666
mov eax, 1
mov ecx, dword [esp + 0x214]
call fcn.004019c1
add esp, 0x218
ret
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esp + eax + 3], 0x5c
je 0x401682
mov byte [esp + eax + 4], 0x5c
mov byte [esp + eax + 5], 0
push str.MSIEXEC.EXE
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x114]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x120]
push edx
call fcn.004014f0
add esp, 0x18
test eax, eax
je 0x40164e
mov eax, dword [esp]
push str.2.0.0000.0000
push eax
call fcn.00401560
mov ecx, dword [esp + 0x21c]
add esp, 8
inc eax
neg eax
sbb eax, eax
inc eax
call fcn.004019c1
add esp, 0x218
ret
Function at 0x401a78
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x406490
call fcn.00401e04
mov edi, 0x94
mov eax, edi
call fcn.00403650
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x408828], ecx
mov eax, dword [esi + 4]
mov dword [0x408834], eax
mov edx, dword [esi + 8]
mov dword [0x408838], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x40882c], esi
cmp ecx, 2
je 0x401ad8
or esi, 0x8000
mov dword [0x40882c], esi
shl eax, 8
add eax, edx
mov dword [0x408830], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x401b13
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401b13
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x401b2b
cmp eax, 0x20b
je 0x401b18
mov dword [ebp - 0x1c], esi
jmp 0x401b3f
cmp dword [ecx + 0x84], 0xe
jbe 0x401b13
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x401b39
cmp dword [ecx + 0x74], 0xe
jbe 0x401b13
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00401f73
pop ecx
test eax, eax
jne 0x401b6b
cmp dword [0x40880c], 1
jne 0x401b58
call fcn.00402e14
push 0x1c
call fcn.00402c9d
push 0xff
call fcn.00402b02
pop ecx
pop ecx
call fcn.004035bd
mov dword [ebp - 4], esi
call fcn.00403412
test eax, eax
jge 0x401b84
push 0x1b
call fcn.00401a53
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x408d98], eax
call fcn.004032f0
mov dword [0x408804], eax
call fcn.0040324e
test eax, eax
jge 0x401baa
push 8
call fcn.00401a53
pop ecx
call fcn.0040301b
test eax, eax
jge 0x401bbb
push 9
call fcn.00401a53
pop ecx
push 1
call fcn.00402b32
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x401bd1
push eax
call fcn.00401a53
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00402fbe
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x401bf2
movzx eax, word [ebp - 0x40]
jmp 0x401bf5
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004016f0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x401c13
push edi
call fcn.00402c5d
call fcn.00402c7f
jmp 0x401c45
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00401e3f
ret
Function at 0x402b9c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x408868], esi
push edi
jne 0x402bbc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x408864], esi
mov byte [0x408860], al
jne 0x402c22
mov ecx, dword [0x408d68]
test ecx, ecx
je 0x402c03
mov eax, dword [0x408d64]
sub eax, 4
cmp eax, ecx
jmp 0x402bfc
mov eax, dword [eax]
test eax, eax
je 0x402bee
call eax
mov eax, dword [0x408d64]
sub eax, 4
cmp eax, dword [0x408d68]
mov dword [0x408d64], eax
jae 0x402be6
mov eax, 0x40801c
mov esi, 0x408020
cmp eax, esi
mov edi, eax
jae 0x402c22
mov eax, dword [edi]
test eax, eax
je 0x402c1b
call eax
add edi, 4
cmp edi, esi
jb 0x402c13
mov eax, 0x408024
mov esi, 0x408028
cmp eax, esi
mov edi, eax
jae 0x402c41
mov eax, dword [edi]
test eax, eax
je 0x402c3a
call eax
add edi, 4
cmp edi, esi
jb 0x402c32
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x402c5b
push dword [ebp + 8]
mov dword [0x408868], 1
call fcn.00402b02
pop ebp
ret

Function at 0x402c9d
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x408030]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x408040]
je 0x402cd2
inc eax
cmp eax, 0x13
jb 0x402cc3
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x408040]
jne 0x402df8
mov eax, dword [0x40880c]
cmp eax, 1
je 0x402dd0
cmp eax, edx
jne 0x402d02
cmp dword [0x408038], 1
je 0x402dd0
cmp ecx, 0xfc
je 0x402df8
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x402d38
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00403790
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.004039c0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x402d6c
mov eax, edi
push eax
call fcn.004039c0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x4064d4
push edi
call fcn.00403890
add esp, 0x10
push edi
call fcn.004039c0
push dword [esi + 0x408044]
mov ebx, eax
call fcn.004039c0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00403650
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00403790
push edi
push ebx
call fcn.004037a0
push 0x4064d0
push ebx
call fcn.004037a0
push dword [esi + 0x408044]
push ebx
call fcn.004037a0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040368d
add esp, 0x2c
jmp 0x402df8
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x408044]
push dword [esi]
call fcn.004039c0
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]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.004019c1
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x40368d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x408984], ebx
push esi
push edi
jne 0x40370d
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x403748
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x406aec
push edi
call esi
test eax, eax
mov dword [0x408984], eax
je 0x403748
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x408988], eax
call esi
cmp dword [0x408828], 2
mov dword [0x40898c], eax
jne 0x40370d
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x408994], eax
je 0x40370d
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x408990], eax
mov eax, dword [0x408990]
test eax, eax
je 0x403752
call eax
test eax, eax
je 0x403739
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x408994]
test eax, eax
je 0x403739
test byte [ebp - 8], 1
jne 0x403752
cmp dword [0x408834], 4
jb 0x40374c
or byte [ebp + 0x12], 0x20
jmp 0x403771
xor eax, eax
jmp 0x403781
or byte [ebp + 0x12], 4
jmp 0x403771
mov eax, dword [0x408988]
test eax, eax
je 0x403771
call eax
mov ebx, eax
test ebx, ebx
je 0x403771
mov eax, dword [0x40898c]
test eax, eax
je 0x403771
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x408984]
pop edi
pop esi
pop ebx
leave
ret