joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401880
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push edi
push 9
mov esi, ecx
lea edi, [ebp - 0x24]
pop ecx
xor eax, eax
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemInfo]
cmp word [ebp - 0x24], 0
jne 0x4018ae
push 0x40116c
jmp 0x4018ba
cmp word [ebp - 0x24], 5
jne 0x4018c6
push 0x401178
mov edx, 0x104
mov ecx, esi
call fcn.0040165f
pop edi
pop esi
leave
ret

Function at 0x4019ca
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov dword [ebp - 0xc], ecx
xor bl, bl
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCommandLineW]
test eax, eax
je 0x401abc
push esi
mov ecx, eax
mov bh, 1
call fcn.00401566
mov esi, eax
test esi, esi
je 0x401abb
mov dword [ebp - 8], 0x20
push edi
test bh, bh
je 0x401a1c
mov ecx, esi
call fcn.004015b0
test eax, eax
jne 0x401aba
xor bh, bh
jmp 0x401aa9
push 7
push 0x401188
push esi
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x401aa0
lea edx, [esi + 0xe]
mov ecx, edx
mov dword [ebp - 4], ecx
test edx, edx
je 0x401aa9
mov edi, edx
movzx eax, word [ecx]
mov ecx, edi
test ax, ax
je 0x401a66
cmp ax, word [ebp - 8]
je 0x401a66
mov eax, edi
sub eax, edx
sar eax, 1
cmp eax, 0x20
jae 0x401a66
lea ecx, [edi + 2]
mov dword [ebp - 4], ecx
mov edi, ecx
test ecx, ecx
jne 0x401a3f
cmp ecx, edx
je 0x401aa9
sub ecx, edx
push 0x20
sar ecx, 1
pop eax
cmp ecx, eax
jae 0x401aa9
push 0x10
lea eax, [ebp - 4]
push eax
push edx
call dword [sym.imp.msvcrt.dll_wcstol]
add esp, 0xc
push eax
push 0
push 0x100000
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_OpenProcess]
test eax, eax
je 0x401aa9
mov ecx, dword [ebp - 0xc]
mov bl, 1
mov dword [ecx], eax
jmp 0x401aa9
mov ecx, esi
call fcn.00401566
mov esi, eax
mov ecx, esi
call fcn.00401566
mov esi, eax
test esi, esi
jne 0x401a02
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x401c30
Capabilities:
Terminate process

Disassembly:
call fcn.004021ab
jmp 0x401c40
push 0x58
push 0x4024b0
call fcn.00402270
xor ebx, ebx
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x404384
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x401c92
cmp eax, esi
jne 0x401c85
xor esi, esi
inc esi
mov edi, esi
jmp 0x401c95
push 0x3e8
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x401c69
xor esi, esi
inc esi
cmp dword [0x404388], esi
jne 0x401ca7
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x401ce1
cmp dword [0x404388], ebx
jne 0x401cdb
mov dword [0x404388], esi
push 0x4010dc
push 0x4010d0
call fcn.00401e25
pop ecx
pop ecx
test eax, eax
je 0x401ce1
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x401e0f
mov dword [0x404028], esi
cmp dword [0x404388], esi
jne 0x401d04
push 0x4010cc
push 0x4010c4
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x404388], 2
test edi, edi
jne 0x401d11
xor eax, eax
mov ecx, 0x404384
xchg dword [ecx], eax
cmp dword [0x40438c], 0
je 0x401d3d
push 0x40438c
call fcn.004020a0
pop ecx
test eax, eax
je 0x401d3d
push ebx
push 2
push ebx
mov esi, dword [0x40438c]
mov ecx, esi
call dword [0x4050dc]
call esi
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x1c], esi
mov edi, dword [ebp - 0x20]
mov cl, byte [esi]
cmp cl, 0x20
ja 0x401d9b
test cl, cl
je 0x401d6a
test edi, edi
jne 0x401d9b
test cl, cl
je 0x401d6a
cmp cl, 0x20
ja 0x401d6a
inc esi
mov dword [ebp - 0x1c], esi
mov cl, byte [esi]
jmp 0x401d59
test byte [ebp - 0x3c], 1
je 0x401d76
movzx eax, word [ebp - 0x38]
jmp 0x401d79
push 0xa
pop eax
push eax
push esi
push ebx
push 0x400000
call main
mov dword [0x404024], eax
cmp dword [0x40403c], 0
jne 0x401df4
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cl, 0x22
jne 0x401dac
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [ebp - 0x20], edi
movzx eax, cl
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x401dbf
inc esi
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x401d4a
cmp dword [0x404028], 0
jne 0x401e08
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x404024]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401f70
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x4024d0
call fcn.00402270
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x401fd0
cmp eax, 0xffffffff
je 0x401fd0
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x401fc9
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x401fc9
cmp edx, 0x10000000
jae 0x401fc9
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x401fc6
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x402050
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40208e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x402086
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x402090
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x402076
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x402170
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x4021a1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4021a1
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x4021a1
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1b017769
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x1b01b190
cmp edx, dword [eax]
je 0x1b01778b
add eax, 8
inc ecx
cmp eax, 0x1b01b220
jl 0x1b01777c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x1b01b190]
jne 0x1b0178b9
mov eax, dword [0x1b01bbb0]
cmp eax, 1
je 0x1b017893
test eax, eax
jne 0x1b0177bc
cmp dword [0x1b01b0e4], 1
je 0x1b017893
cmp edx, 0xfc
je 0x1b0178b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1b0177f3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.1b018670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.1b018490
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x1b017836
lea eax, [ebp - 0x1a4]
push eax
call fcn.1b018490
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x1b01a45c
push edi
call fcn.1b018f00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.1b018670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.1b018680
lea eax, [ebp - 0xa0]
push 0x1b01a43c
push eax
call fcn.1b018680
push dword [esi + 0x1b01b194]
lea eax, [ebp - 0xa0]
push eax
call fcn.1b018680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.1b018e75
add esp, 0x2c
pop edi
jmp 0x1b0178b9
lea eax, [ebp + 8]
lea esi, [esi + 0x1b01b194]
push 0
push eax
push dword [esi]
call fcn.1b018490
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 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408f6c
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
mov esi, 0x4fad52af
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e3d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x65827c8f
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x403e48
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call fcn.00403bae
lds esi, [eax + esi + 0x7a]
mov ax, word [edi + 6]
cmp ax, bx
jbe 0x403e08
lea ecx, [esi + 0xc]
movzx edx, ax
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
add eax, esi
cmp dword [ebp - 8], eax
jae 0x403e02
mov dword [ebp - 8], eax
add ecx, 0x28
dec edx
jne 0x403df3
mov byte [ebp - 0x58], bl
mov byte [ebp - 0x57], bl
mov byte [ebp - 0x56], 0x58
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x54], 0xe0
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
enter 0x45c6, 0xffffffffffffffb9
cmpsd dword [esi], dword es:[edi]
call fcn.00403bae
fbld tbyte [ebp + esi*2 - 0x80]
lea eax, [ebp - 0x58]
push eax
call fcn.00403bbe
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.00403b73
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
test dword [edi + edi*8 - 1], esi
dec dword [ebx - 0xe0807bb]
test edx, edx
je 0x403e9c
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.00403bae
or eax, 0x8d607055
inc ebp
rcl byte [eax - 0x18], 0xc5
cld
invalid
Function at 0x403e88
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call fcn.00403bae
lds esi, [eax + esi + 0x7a]
mov ax, word [edi + 6]
cmp ax, bx
jbe 0x403e08
lea ecx, [esi + 0xc]
movzx edx, ax
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
add eax, esi
cmp dword [ebp - 8], eax
jae 0x403e02
mov dword [ebp - 8], eax
add ecx, 0x28
dec edx
jne 0x403df3
mov byte [ebp - 0x58], bl
mov byte [ebp - 0x57], bl
mov byte [ebp - 0x56], 0x58
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x54], 0xe0
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
enter 0x45c6, 0xffffffffffffffb9
cmpsd dword [esi], dword es:[edi]
call fcn.00403bae
fbld tbyte [ebp + esi*2 - 0x80]
lea eax, [ebp - 0x58]
push eax
call fcn.00403bbe
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.00403b73
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
test dword [edi + edi*8 - 1], esi
dec dword [ebx - 0xe0807bb]
test edx, edx
je 0x403e9c
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.00403bae
or eax, 0x8d607055
inc ebp
rcl byte [eax - 0x18], 0xc5
cld
invalid

Function at 0x403f1b
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push eax
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.00403bbe
push eax
push esi
push dword [ebp + 8]
call fcn.00403b73
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
Function at 0x40426d
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x404285
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x4042a3
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x404301
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x4042e8
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x4042f1
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x4042fb
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x4042dd
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x404267
mov dword [ebp + 8], esi
xor edi, edi

Function at 0x404aa0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add byte [edx + 0x40], ch
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
invalid

Function at 0x405d61
Capabilities:
Resolve function by parsing pe exports

Disassembly:
inc dword [edx]
stosb byte es:[edi], al
fsubr dword [edi + 0x64]
mov eax, dword [0x30]
add byte [eax], al
add byte [eax], al
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
cmp byte [eax + 0x1c], 0x18
je 0x405d72
xchg esi, eax
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call fcn.00403bae
cmp bl, byte [ecx - 0x77422d6]
clc
mov eax, dword [edi + 0x3c]
mov edx, dword [edi + eax + 0x78]
add edx, edi
push esp
pop es
js 0x405d8c
xlatb
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
sbb byte [ebx - 0x20fcdfa6], cl
call fcn.00403bae
jge 0x405d85
jns 0x405d58
dec ecx
mov esi, dword [ebx + ecx*4]
add esi, edi
mov eax, 0x50746547
cmp dword [esi], eax
jne 0x405d9b
mov eax, 0x41636f72
cmp dword [esi + 4], eax
jne 0x405d9b
call fcn.00403bae
push es
xor byte [esi], ch
insb byte es:[edi], dx
mov ebx, dword [edx + 0x24]
add ebx, edi
mov cx, word [ebx + ecx*2]
mov ebx, dword [edx + 0x1c]
add ebx, edi
mov eax, dword [ebx + ecx*4]
add eax, edi
push eax
call fcn.00403bae
push ebx
lodsb al, byte [esi]
imul edi, edi, 0x75ff0875
add al, 0xff
jne 0x405de3
call fcn.004043ae
add byte [eax], al
add byte [ebx + 0xc7204e9], al
and eax, 3
add ecx, eax
jmp dword [eax*4 + 0x405e08]
Function at 0x405d80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
inc dword [edx]
stosb byte es:[edi], al
fsubr dword [edi + 0x64]
mov eax, dword [0x30]
add byte [eax], al
add byte [eax], al
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
cmp byte [eax + 0x1c], 0x18
je 0x405d72
xchg esi, eax
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call fcn.00403bae
cmp bl, byte [ecx - 0x77422d6]
clc
mov eax, dword [edi + 0x3c]
mov edx, dword [edi + eax + 0x78]
add edx, edi
push esp
pop es
js 0x405d8c
xlatb
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
sbb byte [ebx - 0x20fcdfa6], cl
call fcn.00403bae
jge 0x405d85
jns 0x405d58
dec ecx
mov esi, dword [ebx + ecx*4]
add esi, edi
mov eax, 0x50746547
cmp dword [esi], eax
jne 0x405d9b
mov eax, 0x41636f72
cmp dword [esi + 4], eax
jne 0x405d9b
call fcn.00403bae
push es
xor byte [esi], ch
insb byte es:[edi], dx
mov ebx, dword [edx + 0x24]
add ebx, edi
mov cx, word [ebx + ecx*2]
mov ebx, dword [edx + 0x1c]
add ebx, edi
mov eax, dword [ebx + ecx*4]
add eax, edi
push eax
call fcn.00403bae
push ebx
lodsb al, byte [esi]
imul edi, edi, 0x75ff0875
add al, 0xff
jne 0x405de3
call fcn.004043ae
add byte [eax], al
add byte [ebx + 0xc7204e9], al
and eax, 3
add ecx, eax
jmp dword [eax*4 + 0x405e08]
Function at 0x401470
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
test eax, eax
je 0x4014e0
cmp byte [esi + eax - 1], 0xa
mov ebx, eax
je 0x4014d8
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4060a4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov eax, 1
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
xor eax, eax
jmp 0x40149d
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret
Function at 0x401eb0
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete dl
movzx edx, dl
inc edx
mov dword [esp], edx
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop
Function at 0x402554
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, ecx
xor esi, esi
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi + 0x7c], esi
je 0x4025c2
mov eax, dword [eax + edi + 0x78]
add eax, edi
push ebx
mov dword [ebp - 4], eax
mov ebx, esi
mov ecx, dword [eax + 0x1c]
add ecx, edi
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + 0x20]
add ecx, edi
mov dword [ebp - 8], ecx
cmp dword [eax + 0x14], esi
jbe 0x4025c1
mov eax, dword [ecx + ebx*4]
add eax, edi
push 0x401500
push eax
call dword [0x406010]
pop ecx
test eax, eax
mov eax, dword [ebp - 4]
pop ecx
je 0x4025af
mov ecx, dword [ebp - 8]
inc ebx
cmp ebx, dword [eax + 0x14]
jb 0x40258a
jmp 0x4025c1
mov eax, dword [eax + 0x24]
mov esi, dword [ebp - 0xc]
lea eax, [eax + ebx*2]
movzx eax, word [eax + edi]
mov esi, dword [esi + eax*4]
add esi, edi
pop ebx
call fcn.00403482
sub eax, dword [0x406040]
xor ecx, ecx
cmp eax, 0x7fff
pop edi
cmova esi, ecx
mov eax, esi
pop esi
leave
ret
Function at 0x40314e
Capabilities:
Accept command line arguments
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0x401194
mov dword [ebp - 8], ecx
call edi
push eax
call dword [0x406008]
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x403193
add esi, 0x2a
push 0x20
push esi
call dword [0x406004]
pop ecx
pop ecx
test eax, eax
jne 0x40319a
push ecx
push 0x4011c0
call fcn.00402489
xor al, al
pop edi
pop esi
pop ebx
leave
ret
sub eax, esi
sar eax, 1
cmp eax, 2
jae 0x4031b4
push ecx
push 0x4011d4
call fcn.00402489
push ecx
call edi
push eax
jmp 0x40318e
lea edi, [eax + eax]
lea eax, [edi + 2]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
mov dword [ebp - 0x18], ebx
test ebx, ebx
jne 0x4031db
push ecx
push 0x4011e8
jmp 0x40318e
push edi
push esi
push ebx
call dword [0x40601c]
add esp, 0xc
xor eax, eax
mov word [edi + ebx], ax
push ebx
xor ebx, ebx
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x403223
push ecx
push 0x4011fc
call fcn.00402489
push 0xa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, 0x406050
call fcn.00402421
jmp 0x403193
mov esi, dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push ebx
push ebx
push ebx
push 4
push eax
call esi
mov ebx, eax
test ebx, ebx
jne 0x40323f
push ecx
push 0x401210
jmp 0x403206
push 0x20
push ebx
push dword [ebp - 8]
call dword [0x40601c]
add esp, 0xc
call fcn.0040338a
mov edi, eax
mov dword [ebp - 0x10], edi
test edi, edi
je 0x403193
mov eax, dword [ebp - 8]
mov ecx, dword [ebx + 0x20]
add eax, 0x18
mov dword [ebp - 4], ecx
mov edx, eax
mov ecx, edi
mov dword [ebp - 8], eax
call fcn.00403339
test al, al
je 0x403193
lea edx, [ebp - 4]
mov ecx, edi
call fcn.00403339
test al, al
je 0x403193
xor eax, eax
push eax
push eax
push eax
mov eax, dword [ebp - 8]
push 2
push dword [eax]
call esi
mov ecx, eax
mov dword [ebp - 8], ecx
test ecx, ecx
jne 0x4032b4
push ecx
push 0x401224
jmp 0x403206
mov eax, dword [ebx + 0x24]
lea esi, [ebx + 0x28]
add eax, 0xa
lea eax, [ebx + eax*4]
mov dword [ebp - 0xc], eax
cmp esi, eax
je 0x4032e5
mov edx, dword [esi]
add edx, ecx
mov ecx, edi
call fcn.00403339
test al, al
je 0x403193
mov ecx, dword [ebp - 8]
add esi, 4
cmp esi, dword [ebp - 0xc]
jne 0x4032c7
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x4032fd
push ecx
push 0x401238
jmp 0x403206
push dword [ebp - 8]
mov edi, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
call edi
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
push ebx
call edi
push dword [ebp - 0x14]
call esi
push dword [ebp - 0x18]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
jmp 0x403195