joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4028f0
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x1054
call fcn.004029e0
push esi
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x1c]
mov dword [esp + 8], eax
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], eax
mov ecx, 0x3ff
mov dword [esp + 0x10], eax
lea edi, [esp + 0x5d]
mov dword [esp + 0x14], eax
mov byte [esp + 0x5c], al
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x1060]
lea ecx, [esp + 0x5c]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0x1064]
mov dword [esp + 0x18], 0x44
push edi
push esi
push str.__s___s
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea edx, [esp + 8]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x5c]
push edx
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x402999
push edi
push esi
push 0x4048d8
call fcn.00401000
add esp, 0xc
xor eax, eax
pop edi
pop esi
add esp, 0x1054
ret
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
push edi
push esi
jne 0x4029c7
push 0x4048c0
call fcn.00401000
add esp, 0xc
mov eax, 1
pop edi
pop esi
add esp, 0x1054
ret
push 0x4048a8
call fcn.00401000
add esp, 0xc
xor eax, eax
pop edi
pop esi
add esp, 0x1054
ret
Function at 0x10008cc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov eax, dword [0x100b1880]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov ecx, dword [0x100b2d9c]
mov eax, dword [0x100b2d98]
mov edx, ecx
add edx, 0xb1592459
sub edx, 1
sub edx, 0xb1592459
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete cl
and cl, 1
mov byte [ebp - 0x1a], cl
cmp eax, 0xa
setl al
and al, 1
mov byte [ebp - 0x19], al
mov dword [ebp - 0x20], 0x27582b26
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
sub eax, 0xe687a906
je 0x10008e6f
jmp 0x10008d35
mov eax, dword [ebp - 0x2c]
sub eax, 0xfdb5fc2d
je 0x10008de4
jmp 0x10008d48
mov eax, dword [ebp - 0x2c]
sub eax, 0x5ae8187
je 0x10008eb8
jmp 0x10008d5b
mov eax, dword [ebp - 0x2c]
sub eax, 0x27582b26
je 0x10008d99
jmp 0x10008d6e
mov eax, dword [ebp - 0x2c]
sub eax, 0x2fdf4598
je 0x10008e63
jmp 0x10008d81
mov eax, dword [ebp - 0x2c]
sub eax, 0x5ac8fb06
je 0x10008eca
jmp 0x10008d94
jmp 0x10008ed9
mov bl, byte [ebp - 0x1a]
mov dh, byte [ebp - 0x19]
mov al, bl
xor al, 0xff
mov ah, dh
xor ah, 0xff
mov cl, 1
xor cl, 1
mov dl, al
and dl, 0xff
and bl, cl
mov ch, ah
and ch, 0xff
and dh, cl
or dl, bl
or ch, dh
xor dl, ch
or al, ah
xor al, 0xff
or cl, 1
and al, cl
or dl, al
mov eax, 0x5ac8fb06
mov ecx, 0xfdb5fc2d
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x20], eax
jmp 0x10008ed9
mov ecx, dword [ebp - 0x28]
push eax
mov eax, esp
mov dword [ebp - 0x18], eax
push eax
mov eax, esp
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
mov dword [eax], ecx
mov ecx, dword [0x100b2d9c]
mov eax, dword [0x100b2d98]
xor esi, esi
sub esi, 1
mov edx, ecx
add edx, esi
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete bl
cmp eax, 0xa
setl dh
mov al, bl
xor al, 0xff
mov ah, dh
xor ah, 0xff
mov cl, 1
xor cl, 1
mov dl, al
and dl, 0xff
and bl, cl
mov ch, ah
and ch, 0xff
and dh, cl
or dl, bl
or ch, dh
xor dl, ch
or al, ah
xor al, 0xff
or cl, 1
and al, cl
or dl, al
mov eax, 0x5ac8fb06
mov ecx, 0x2fdf4598
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x20], eax
jmp 0x10008ed9
mov dword [ebp - 0x20], 0xe687a906
jmp 0x10008ed9
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
mov dword [eax], ecx
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
pop eax
push eax
mov eax, eax
xor eax, 0x85
nop
mov ecx, dword [edx]
mov edi, dword [esi]
not byte [edi]
pop eax
push eax
mov eax, eax
xor eax, 0x85
nop
add byte [edi], 0x64
sub byte [edi], 0x88
pop eax
push eax
mov eax, eax
xor eax, 0x85
nop
imul byte [edi]
inc edi
loop 0x10008e8b
mov dword [ebp - 0x20], 0x5ae8187
jmp 0x10008ed9
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10023d70
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [ebp - 0x28]
push eax
mov eax, esp
mov dword [eax], ecx
mov dword [ebp - 0x20], 0xfdb5fc2d
jmp 0x10008d1f
Function at 0x1000b670
Capabilities:
Allocate or change rwx memory
Create process on windows
Encode data using base64
Encrypt data using speck
Execute anti-debugging instructions
Execute shellcode via indirect call
Hash data using murmur3
Hide graphical window
Parse pe header
Resume thread

Disassembly:
jmp 0x1001479a
push ebp
or ebp, 0xcd101d8e
shr eax, 0xba
mov ebp, esp
mov ax, ax
btr ax, cx
push ebx
setns al
push edi
lahf
push esi
lea esp, [esp - 0x260]
lahf
xadd al, ah
btr eax, 0x3a
mov eax, dword [0x100b1880]
cmc
clc
test esp, 0x76924f1c
xor eax, ebp
clc
cmc
mov dword [ebp - 0x10], eax
cbw
mov dword [ebp - 0x268], 0x231452ce
bt ax, 0xf
test ebx, eax

Function at 0x10028d8a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10028dc9
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10028dc9
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10028dc9
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10028dc9
cmp dword [ecx + 0x74], 0xe
jbe 0x10028dc9
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1002b757
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1002b7f4
push ebx
push esi
call fcn.1002b720
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1002b6b4
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1002b7a1
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1002b7f3
push edi
push eax
call fcn.1002a055
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1002b7c1
call fcn.1002a0a3
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1002b7f2
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1002b6b4
add esp, 0x20
test eax, eax
jne 0x1002b7e0
push edi
call fcn.1002a0a3
jmp 0x1002b7e8
push ebx
call fcn.1002a0a3
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1002ba61
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10034780
push 0x10034778
push str.FlsAlloc
push 0x1f
call fcn.1002b97d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002ba95
push dword [ebp + 8]
mov ecx, esi
call dword [0x10032150]
call esi
jmp 0x1002ba9b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1002badf
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10034790
push 0x10034788
push str.FlsGetValue
push 0x21
call fcn.1002b97d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002bb16
push dword [ebp + 8]
mov ecx, esi
call dword [0x10032150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1002bb1e
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10034798
push 0x10034790
push str.FlsSetValue
push 0x22
call fcn.1002b97d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002bb58
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10032150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10031060
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1003108d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1003108d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x430b00
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48483b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x4a70c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0x10]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x14]
mov dword [eax + 0xc], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x18]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0x1c]
mov dword [ecx + 0x14], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x20]
mov dword [eax + 0x18], ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x20
call fcn.00430bb0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x30], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x20
call fcn.00430bf0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x1c

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48483b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x4a70c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov dword [eax], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 8], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0xc], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x14], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x18], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x30], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x20
call fcn.00430bf0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0x20
call fcn.00430c40
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4322d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48483b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x4a70c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x20
call fcn.00430bb0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [eax], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
mov dword [eax + 0x14], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18]
mov dword [eax + 0x18], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x30]
mov dword [eax + 0x30], edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x20
call fcn.00430bf0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x44b6c0
Capabilities:
Encode data using xor

Disassembly:
and al, 0x28
mov edi, dword [esp + 0x24]
shr edx, 4
mov dword [esp + 0x34], edx
mov eax, edi
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x14], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x18], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x30]
push eax
push esi
push edi
mov dword [esp + 0x28], edx
call fcn.0044c510
mov ecx, ebx
add esp, 0xc
mov eax, esi
sub ecx, esi
mov ebp, 0x10
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc eax
dec ebp
jne 0x44b704
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov eax, ebx
mov ebp, dword [esp + 0x2c]
sub ebp, 0x10
add edi, 0x10
mov dword [eax], ecx
mov ecx, dword [esp + 0x18]
add esi, 0x10
mov dword [esp + 0x2c], ebp
mov dword [eax + 4], edx
mov edx, dword [esp + 0x1c]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x34]
dec eax
mov dword [esp + 0x34], eax
jne 0x44b6cd
mov edx, ebp
test edx, edx
je 0x44b7b2
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov edx, dword [edi + 8]
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x14]
push edx
push eax
call fcn.0044c510
mov edi, dword [esp + 0x38]
add esp, 0xc
test edi, edi
jbe 0x44b797
mov eax, ebx
sub eax, esi
mov cl, byte [esi + eax]
mov dl, byte [esi]
xor dl, cl
mov byte [esi], dl
inc esi
dec edi
jne 0x44b78a
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [ebx], edx
mov edx, dword [esp + 0x1c]
mov dword [ebx + 4], eax
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x44c510
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
dec esp
and al, 0x12
mov edx, dword [ebx*4 + 0x48f38c]
mov ecx, dword [ecx*4 + 0x48ef8c]
xor ecx, edx
mov edx, dword [esp + 0x30]
shr edx, 0x18
mov ebx, dword [edx*4 + 0x48eb8c]
mov edx, dword [eax*4 + 0x48f78c]
xor ecx, ebx
mov ebx, dword [esi + 0xc]
xor ecx, edx
xor eax, eax
xor ecx, ebx
xor edx, edx
mov dl, byte [esp + 0x29]
mov dword [esp + 0x30], ecx
mov al, byte [esp + 0x32]
mov edi, dword [edx*4 + 0x48f38c]
mov edx, dword [esp + 0x1c]
mov eax, dword [eax*4 + str.ccccwwww]
and ebx, 0xff
xor edi, ebx
mov ebx, dword [esi + 4]
xor edi, ebx
mov ebx, edi
ror ebx, 8
and ebx, 0xff00ff00
rol edi, 8
and edi, 0xff00ff
or ebx, edi
mov dword [ebp + 4], ebx
xor ebx, ebx
mov bl, byte [esp + 0x16]
mov edi, dword [ebx*4 + str.ccccwwww]
xor ebx, ebx
mov bl, dh
and edi, 0xff0000
mov edx, dword [ebx*4 + str.ccccwwww]
and edx, 0xff00
xor edi, edx
mov edi, dword [edi + 0x15]
mov eax, esi
push edi
mov fs, edx
pop ds
push ds
pushal
call [esp + ebx - 0x38c092]
xor edi, edx
mov edx, dword [esp + 0x24]
mov ebx, edx
and ebx, 0xff
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, 0xff
xor edi, ebx
mov ebx, dword [esi + 8]
xor edi, ebx
mov ebx, edi
ror ebx, 8
and ebx, 0xff00ff00
and eax, 0xff
rol edi, 8
and edi, 0xff00ff
or ebx, edi
mov dword [ebp - 0x31], ebx
mov bl, 0x16
adc byte [edi - 0x1e240cc8], dh
invalid

Function at 0x46c363
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
inc dword [edi + edi*2 - 0x4fde438a]
div byte [edi]
sal bl, cl
outsb dx, byte [esi]
daa
stc
popfd
fisubr word [0x8ed32ff]
push ebp
mov dword [0xea3ba5cf], eax
xchg esp, eax
fmul dword [edx]
jne 0x46c3bc
push ebx
push ebx
xor edi, edi
inc edi
push edi
push 0x494a48
push 0x5ae26701
rcr byte [edi], cl
and byte [edi + 0x5e736d25], al
nop
in eax, dx
sbb ecx, eax
cmp eax, 0x4ab728
jmp 0x46c3bc
dec esp
popal
dec eax
add byte [ebx + 0xa7578f8], al
mov dword [0x4ab728], 2
cmp dword [ebp + 0x14], ebx
jle 0x46c3e3
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
dec ecx
cmp byte [eax], bl
je 0x46c3d4
inc eax
cmp ecx, ebx
jne 0x46c3c7
or ecx, 0xffffffff
mov eax, dword [ebp + 0x14]
sub eax, ecx
dec eax
cmp eax, dword [ebp + 0x14]
jge 0x46c3e0
inc eax
mov dword [ebp + 0x14], eax
mov eax, dword [0x4ab728]
cmp eax, 2
je 0x46c59d
cmp eax, ebx
je 0x46c59d
cmp eax, 1
jne 0x46c5ce
push 1
push 0x101
mov dword [ebp - 0x28], eax
call fcn.0046c7a9
add esp, 0x24
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x2c], ebx
je 0x46c69c
adc edi, dword [edx]
jle 0x46c3a9
pop ds
fld qword [edx - 0x38]
invalid
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
cmp dword [ebp + 8], ebx
jne 0x46c5b0
call fcn.0047b499
mov esi, eax
mov dword [ebp - 0x10], esi
add esp, 0x18
neg esi
sbb esi, esi
and esi, dword [ebp - 8]
push edi
call fcn.00469d8c
pop ecx
jmp 0x46c6d3
Function at 0x401000
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x214
mov eax, dword [0x409044]
mov dword [esp + 0x210], eax
lea eax, [esp]
push eax
push 0x4072b0
push 1
push 0
push 0x4072c0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x401104
mov edx, dword [esp + 0x218]
mov eax, dword [esp]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x50]
mov eax, dword [esp + 0x224]
test eax, eax
je 0x401058
mov ecx, dword [esp]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x1c]
mov ecx, dword [esp + 0x228]
test ecx, ecx
push esi
je 0x401077
mov esi, dword [esp + 0x230]
mov eax, dword [esp + 4]
mov edx, dword [eax]
push esi
push ecx
push eax
call dword [edx + 0x44]
mov ecx, dword [esp + 0x234]
test ecx, ecx
je 0x40108d
mov eax, dword [esp + 4]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x2c]
mov ecx, dword [esp + 0x224]
test ecx, ecx
je 0x4010a3
mov eax, dword [esp + 4]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x24]
mov eax, dword [esp + 4]
mov ecx, dword [eax]
lea edx, [esp + 8]
push edx
push 0x4072d0
push eax
call dword [ecx]
mov esi, eax
test esi, esi
jl 0x4010f7
mov ecx, dword [esp + 0x220]
push 0x104
lea eax, [esp + 0x10]
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 8]
mov edx, dword [eax]
push 1
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [edx + 0x18]
mov esi, eax
mov eax, dword [esp + 8]
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
pop esi
mov ecx, dword [esp + 0x210]
call fcn.004015e7
add esp, 0x214
ret
Function at 0x401706
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x18
push 0x4072f0
call fcn.00401a7c
mov edi, 0x94
mov eax, edi
call fcn.00403250
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 [0x4096e8], ecx
mov eax, dword [esi + 4]
mov dword [0x4096f4], eax
mov edx, dword [esi + 8]
mov dword [0x4096f8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4096ec], esi
cmp ecx, 2
je 0x401766
or esi, 0x8000
mov dword [0x4096ec], esi
shl eax, 8
add eax, edx
mov dword [0x4096f0], eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x40179f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40179f
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4017b7
cmp eax, 0x20b
je 0x4017a4
mov dword [ebp - 0x1c], edi
jmp 0x4017cb
cmp dword [ecx + 0x84], 0xe
jbe 0x40179f
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x4017c5
cmp dword [ecx + 0x74], 0xe
jbe 0x40179f
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
push edi
call fcn.004031fe
pop ecx
test eax, eax
jne 0x4017f7
cmp dword [0x4096cc], 2
je 0x4017e4
call fcn.00402bbb
push 0x1c
call fcn.00402a44
push 0xff
call fcn.0040279b
pop ecx
pop ecx
call fcn.0040315c
mov dword [ebp - 4], edi
call fcn.0040251d
test eax, eax
jge 0x401810
push 0x1b
call fcn.004016e1
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x409c40], eax
call fcn.0040303a
mov dword [0x4096c4], eax
call fcn.00402f98
test eax, eax
jge 0x401836
push 8
call fcn.004016e1
pop ecx
call fcn.00402d65
test eax, eax
jge 0x401847
push 9
call fcn.004016e1
pop ecx
push 1
call fcn.004027cb
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, edi
je 0x40185d
push eax
call fcn.004016e1
pop ecx
mov eax, dword [0x409708]
mov dword [0x40970c], eax
push eax
push dword [0x409700]
push dword [0x4096fc]
call fcn.004011c0
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x1c], edi
jne 0x40188c
push esi
call fcn.004028f6
call fcn.00402918
jmp 0x4018be
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x34]
call fcn.00401ab7
ret
Function at 0x402835
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x409728], esi
push edi
jne 0x402855
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 [0x409724], esi
mov byte [0x409720], al
jne 0x4028bb
mov ecx, dword [0x409b2c]
test ecx, ecx
je 0x40289c
mov eax, dword [0x409b28]
sub eax, 4
cmp eax, ecx
jmp 0x402895
mov eax, dword [eax]
test eax, eax
je 0x402887
call eax
mov eax, dword [0x409b28]
sub eax, 4
cmp eax, dword [0x409b2c]
mov dword [0x409b28], eax
jae 0x40287f
mov eax, 0x409020
mov esi, 0x409028
cmp eax, esi
mov edi, eax
jae 0x4028bb
mov eax, dword [edi]
test eax, eax
je 0x4028b4
call eax
add edi, 4
cmp edi, esi
jb 0x4028ac
mov eax, 0x40902c
mov esi, 0x409030
cmp eax, esi
mov edi, eax
jae 0x4028da
mov eax, dword [edi]
test eax, eax
je 0x4028d3
call eax
add edi, 4
cmp edi, esi
jb 0x4028cb
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x4028f4
push dword [ebp + 8]
mov dword [0x409728], 1
call fcn.0040279b
pop ebp
ret

Function at 0x402a44
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x409044]
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 + 0x4092e0]
je 0x402a79
inc eax
cmp eax, 0x13
jb 0x402a6a
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4092e0]
jne 0x402b9f
mov eax, dword [0x4096cc]
cmp eax, 1
je 0x402b77
cmp eax, edx
jne 0x402aa9
cmp dword [0x4092cc], 1
je 0x402b77
cmp ecx, 0xfc
je 0x402b9f
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 0x402adf
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00403390
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.004035c0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x402b13
mov eax, edi
push eax
call fcn.004035c0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x407334
push edi
call fcn.00403490
add esp, 0x10
push edi
call fcn.004035c0
push dword [esi + 0x4092e4]
mov ebx, eax
call fcn.004035c0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00403250
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00403390
push edi
push ebx
call fcn.004033a0
push 0x407330
push ebx
call fcn.004033a0
push dword [esi + 0x4092e4]
push ebx
call fcn.004033a0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040328d
add esp, 0x2c
jmp 0x402b9f
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x4092e4]
push dword [esi]
call fcn.004035c0
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.004015e7
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret