joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1352150
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov eax, edx
mov dword [esp + 4], eax
push esi
push edi
mov edi, ecx
test eax, eax
je 0x13522e5
test edi, edi
je 0x13521be
cmp byte [edi + 0x1e], 0
jne 0x13522e5
cmp byte [edi + 0xe2], 0
je 0x13521be
mov eax, 0x44
cmp ax, word [edi + 0xe0]
ja 0x13521be
mov ebx, dword [edi + 0xec]
test ebx, ebx
je 0x13521be
mov eax, dword [ebx]
mov dword [edi + 0xec], eax
mov eax, dword [edi + 0xe4]
inc eax
mov dword [edi + 0xe4], eax
cmp eax, dword [edi + 0xe8]
jle 0x13521de
mov dword [edi + 0xe8], eax
jmp 0x13521de
push 0x44
call fcn.01333dd0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x13521de
test edi, edi
je 0x13521d6
mov byte [edi + 0x1e], 1
test ebx, ebx
je 0x13522e5
mov edx, dword [esp + 0xc]
mov ecx, edi
mov esi, dword [ebp + 8]
push esi
mov edx, dword [edx]
call fcn.01351ba0
mov dword [ebx], eax
add esp, 4
mov eax, dword [esp + 0xc]
mov ecx, edi
push esi
mov edx, dword [eax + 8]
call fcn.01351dd0
mov dword [ebx + 8], eax
add esp, 4
mov eax, dword [esp + 0xc]
mov ecx, edi
push esi
mov edx, dword [eax + 0xc]
call fcn.01351b80
mov dword [ebx + 0xc], eax
add esp, 4
mov eax, dword [esp + 0xc]
mov ecx, edi
push esi
mov edx, dword [eax + 0x10]
call fcn.01351ba0
mov dword [ebx + 0x10], eax
add esp, 4
mov eax, dword [esp + 0xc]
mov ecx, edi
push esi
mov edx, dword [eax + 0x14]
call fcn.01351b80
mov dword [ebx + 0x14], eax
add esp, 4
mov eax, dword [esp + 0xc]
mov ecx, edi
push esi
mov edx, dword [eax + 0x18]
call fcn.01351ba0
mov ecx, dword [esp + 0x10]
add esp, 4
mov dword [ebx + 0x18], eax
mov al, byte [ecx + 4]
mov byte [ebx + 4], al
mov edx, dword [ecx + 0x1c]
mov ecx, edi
push esi
call fcn.01352150
mov dword [ebx + 0x1c], eax
add esp, 4
mov eax, dword [esp + 0xc]
mov ecx, edi
push esi
mov edx, dword [eax + 0x28]
call fcn.01351b80
add esp, 4
mov dword [ebx + 0x28], eax
mov ecx, edi
push esi
mov esi, dword [esp + 0x10]
mov edx, dword [esi + 0x2c]
call fcn.01351b80
mov dword [ebx + 0x2c], eax
add esp, 4
mov dword [ebx + 0x30], 0
mov eax, 0xfff7
mov dword [ebx + 0x34], 0
mov cx, word [esi + 6]
and cx, ax
mov dword [ebx + 0x24], 0
mov word [ebx + 6], cx
mov eax, ebx
mov dword [ebx + 0x38], 0xffffffff
mov dword [ebx + 0x3c], 0xffffffff
mov dword [ebx + 0x40], 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1356da0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x128
push esi
push edi
mov edi, ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x2c], 0
mov esi, dword [edi + 0xc]
mov dword [esp + 0x18], esi
test esi, esi
je 0x13571c4
test edx, edx
je 0x13571c4
movzx eax, byte [edx]
lea ecx, [eax + 1]
add eax, 0xffffffed
xor ecx, 1
dec ecx
mov dword [esp + 0x20], ecx
cmp eax, 0x7f
ja 0x13570df
movzx eax, byte [eax + 0xdbe9ec]
jmp dword [eax*4 + 0xdbe9cc]
lea eax, [esp + 0x1c]
mov ecx, edi
push eax
call fcn.01356530
mov dword [esp + 0x24], eax
add esp, 4
mov eax, dword [esi + 0xc]
mov dword [esp + 0x18], eax
cmp dword [esi + 0x10], eax
jg 0x135710d
mov ecx, esi
call fcn.01344ce0
test eax, eax
jne 0x1357146
mov eax, dword [esp + 0x18]
inc dword [esi + 0xc]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x14]
mov word [eax + ecx*4], 0x1b
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x20]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 8]
mov dword [ecx + 8], eax
xor eax, eax
cmp dword [ebp + 0xc], eax
setne al
mov dword [ecx + 0xc], eax
mov byte [ecx + 3], 0
mov dword [ecx + 0x10], 0
mov byte [esi + 0x6e], 0
cmp dword [esp + 0x1c], 0
je 0x1357184
mov al, byte [edi + 0x15]
mov byte [esp + 0x17], al
cmp al, 8
jae 0x1357184
xor ecx, ecx
lea eax, [edi + 0x60]
nop dword [eax]
mov edx, dword [esp + 0x1c]
cmp dword [eax + 0x10], edx
je 0x1357180
inc ecx
add eax, 0x18
cmp ecx, 0xa
jl 0x1357160
movzx eax, byte [esp + 0x17]
mov dword [edi + eax*4 + 0x18], edx
inc byte [edi + 0x15]
jmp 0x1357184
mov byte [eax + 9], 1
mov edx, dword [esp + 0x2c]
test edx, edx
je 0x13571c4
mov al, byte [edi + 0x15]
mov byte [esp + 0x17], al
cmp al, 8
jae 0x13571c4
xor ecx, ecx
lea eax, [edi + 0x60]
nop dword [eax]
cmp dword [eax + 0x10], edx
je 0x13571c0
inc ecx
add eax, 0x18
cmp ecx, 0xa
jl 0x13571a0
movzx eax, byte [esp + 0x17]
mov dword [edi + eax*4 + 0x18], edx
inc byte [edi + 0x15]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov byte [eax + 9], 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1357270
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov edi, edx
test esi, esi
je 0x13573f5
test edi, edi
je 0x13573f5
movzx ecx, word [esi + 2]
push ebx
test ecx, 0x1000
jne 0x13573ec
movzx eax, word [edi + 2]
test eax, 0x1000
jne 0x13573ec
xor al, cl
test al, 0x10
jne 0x13573ec
mov al, byte [esi]
cmp al, byte [edi]
jne 0x13573ec
mov edx, dword [edi + 8]
mov ecx, dword [esi + 8]
call fcn.01357270
test eax, eax
je 0x13573ec
mov edx, dword [edi + 0xc]
mov ecx, dword [esi + 0xc]
call fcn.01357270
test eax, eax
je 0x13573ec
mov eax, dword [esi + 0x10]
mov ecx, dword [edi + 0x10]
test eax, eax
je 0x135733f
test ecx, ecx
je 0x13573ec
mov edx, dword [eax]
cmp edx, dword [ecx]
jne 0x13573ec
xor ebx, ebx
test edx, edx
jle 0x1357347
xor edx, edx
mov dword [ebp - 4], edx
nop dword [eax + eax]
mov eax, dword [eax + 0xc]
mov ecx, dword [edx + eax]
mov eax, dword [edi + 0x10]
mov eax, dword [eax + 0xc]
mov edx, dword [edx + eax]
call fcn.01357270
test eax, eax
je 0x13573ec
mov eax, dword [esi + 0x10]
inc ebx
mov edx, dword [ebp - 4]
add edx, 0x14
mov dword [ebp - 4], edx
cmp ebx, dword [eax]
jl 0x1357310
jmp 0x1357347
test ecx, ecx
jne 0x13573ec
mov eax, dword [esi + 0x18]
cmp eax, dword [edi + 0x18]
jne 0x13573ec
mov eax, dword [esi + 0x20]
cmp eax, dword [edi + 0x20]
jne 0x13573ec
mov eax, dword [esi + 0x24]
cmp eax, dword [edi + 0x24]
jne 0x13573ec
mov eax, 0x800
test word [esi + 2], ax
je 0x1357384
test word [edi + 2], ax
je 0x13573ec
mov eax, dword [esi + 4]
cmp eax, dword [edi + 4]
jmp 0x13573de
cmp byte [esi], 0x98
je 0x13573e0
mov esi, dword [esi + 4]
test esi, esi
je 0x13573e0
test word [edi + 2], ax
jne 0x13573ec
mov edx, dword [edi + 4]
test edx, edx
je 0x13573ec
mov bl, byte [esi]
test bl, bl
je 0x13573c8
mov al, bl
sub esi, edx
movzx ecx, byte [edx]
mov bl, al
movzx eax, al
mov al, byte [eax + 0xe2e778]
cmp al, byte [ecx + 0xe2e778]
jne 0x13573c8
mov al, byte [esi + edx + 1]
inc edx
mov bl, al
test al, al
jne 0x13573a7
movzx eax, bl
movzx ecx, byte [eax + 0xe2e778]
movzx eax, byte [edx]
movzx eax, byte [eax + 0xe2e778]
sub ecx, eax
jne 0x13573ec
pop ebx
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
cmp edi, esi
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x13597e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, edx
mov edx, ecx
xor ecx, ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], ecx
push edi
mov edi, eax
test eax, eax
je 0x135980d
cmp byte [eax], cl
je 0x1359805
inc edi
cmp byte [edi], cl
jne 0x1359800
sub edi, eax
and edi, 0x3fffffff
mov eax, 1
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], eax
cmp dword [edx + 4], eax
jle 0x13598d5
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, eax
xor esi, 1
cmp eax, 2
cmovge esi, eax
test ebx, ebx
je 0x1359893
mov eax, dword [edx + 8]
mov ecx, esi
add ecx, ecx
mov edx, dword [eax + ecx*8]
mov ecx, dword [ebp + 8]
mov bl, byte [ecx]
test bl, bl
je 0x1359875
sub ecx, edx
mov al, bl
mov dword [ebp - 0x14], ecx
mov edi, ecx
movzx ecx, byte [edx]
mov bl, al
movzx eax, al
mov al, byte [eax + 0xe2e778]
cmp al, byte [ecx + 0xe2e778]
jne 0x1359872
mov al, byte [edi + edx + 1]
inc edx
mov bl, al
test al, al
jne 0x1359851
mov edi, dword [ebp - 4]
movzx eax, byte [edx]
movzx ecx, byte [eax + 0xe2e778]
movzx eax, bl
mov ebx, dword [ebp + 8]
movzx eax, byte [eax + 0xe2e778]
sub eax, ecx
jne 0x13598b6
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 8]
add esi, esi
mov edx, dword [ebp - 0x18]
push edi
mov ecx, dword [eax + esi*8 + 0xc]
add ecx, 4
call fcn.01337450
mov ecx, eax
add esp, 4
mov dword [ebp - 8], ecx
test ecx, ecx
jne 0x13598cc
jmp 0x13598b9
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0xc], eax
cmp eax, dword [edx + 4]
jl 0x1359826
pop esi
pop ebx
mov eax, ecx
pop edi
mov esp, ebp
pop ebp
ret
mov eax, ecx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x13598e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, edx
xor edx, edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], edx
push esi
mov esi, eax
push edi
test eax, eax
je 0x135990d
cmp byte [eax], dl
je 0x1359905
nop dword [eax]
inc esi
cmp byte [esi], dl
jne 0x1359900
sub esi, eax
and esi, 0x3fffffff
mov eax, dword [ecx + 4]
mov edi, 1
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
cmp eax, edi
jle 0x13599d5
push ebx
mov ebx, dword [ecx + 8]
mov dword [ebp - 0x18], ebx
nop word [eax + eax]
mov eax, edi
xor eax, 1
cmp edi, 2
cmovge eax, edi
add eax, eax
mov ecx, dword [ebx + eax*8 + 0xc]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x135999c
mov edx, dword [ebx + eax*8]
mov bl, byte [ecx]
test bl, bl
je 0x1359984
mov edi, ecx
mov al, bl
sub edi, edx
nop word [eax + eax]
movzx ecx, byte [edx]
mov bl, al
movzx eax, al
mov al, byte [eax + 0xe2e778]
cmp al, byte [ecx + 0xe2e778]
jne 0x1359981
mov al, byte [edi + edx + 1]
inc edx
mov bl, al
test al, al
jne 0x1359960
mov edi, dword [ebp - 8]
movzx eax, byte [edx]
movzx ecx, byte [eax + 0xe2e778]
movzx eax, bl
movzx eax, byte [eax + 0xe2e778]
sub eax, ecx
jne 0x13599b9
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
add ecx, 0x14
push esi
call fcn.01337450
mov edx, eax
add esp, 4
mov dword [ebp - 4], edx
test edx, edx
jne 0x13599cc
jmp 0x13599bc
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 0x18]
inc edi
mov dword [ebp - 8], edi
cmp edi, dword [ebp - 0x14]
jl 0x1359930
pop ebx
pop edi
mov eax, edx
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov eax, edx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1386085
Capabilities:
Parse pe header

Disassembly:
push 0
push esi
call fcn.01487078
test eax, eax
je 0x13860c4
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x13860c4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x13860c4
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x13860c4
cmp dword [ecx + 0x74], 0xe
jbe 0x13860c4
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x13aac40
Capabilities:
Parse pe header

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

Function at 0x437410
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2d000]
push edi
or ebp, 0xffffffff
jmp 0x437432
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x437439
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x437428
mov eax, 1
add ebx, ebx
jne 0x43744b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x437440
jne 0x43745c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x437440
xor ecx, ecx
sub eax, 3
jb 0x437470
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4374e2
mov ebp, eax
add ebx, ebx
jne 0x43747b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x437488
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4374ac
inc ecx
add ebx, ebx
jne 0x437498
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x43748d
jne 0x4374a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43748d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4374cc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4374bd
jmp 0x43742e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4374cc
add edi, ecx
jmp 0x43742e
pop esi
mov edi, esi
mov ecx, 0x165
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4374ea
cmp byte [edi], 2
jne 0x4374ea
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 eax, ebx
loop 0x4374ef
lea edi, [esi + 0x35000]
mov eax, dword [edi]
or eax, eax
je 0x437567
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3e5e0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3e61c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x43751c
mov ecx, edi
jns 0x43754b
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 + 0x3e620]
or eax, eax
je 0x437561
mov dword [ebx], eax
add ebx, 4
jmp 0x437539
call dword [esi + 0x3e624]
popal
jmp 0x402bd4
Function at 0x404900
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x4163e0], eax
mov ecx, 1
sub ecx, 1
lea esi, [esi]
add ecx, 1
mov edx, dword [ecx*4 + 0x4163dc]
mov eax, edx
shr eax, 0x1e
xor edx, eax
imul eax, edx, 0x6c078965
lea eax, [eax + ecx]
mov dword [ecx*4 + 0x4163e0], eax
cmp ecx, 0x26f
jl 0x404910
mov dword [0x4123f0], 0x270
ret

Function at 0x404950
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov eax, dword [0x4150a0]
cmp eax, dword [0x4123a0]
je 0x404968
mov dword [0x4123f0], 0x271
cmp dword [0x4123f0], 0x270
jl 0x404a87
cmp dword [0x4123f0], 0x271
jne 0x40499f
mov eax, dword [0x4150a0]
call fcn.00404900
mov eax, dword [0x4150a0]
not eax
mov dword [0x4150a0], eax
mov dword [0x4123a0], eax
mov ebx, 0
sub ebx, 1
nop
add ebx, 1
mov eax, dword [ebx*4 + 0x4163e4]
and eax, 0x7fffffff
mov edx, dword [ebx*4 + 0x4163e0]
and edx, 0x80000000
or edx, eax
mov ecx, edx
mov eax, ecx
shr eax, 1
mov edx, dword [ebx*4 + 0x416a14]
xor eax, edx
mov edx, ecx
and edx, 1
mov edx, dword [edx*4 + 0x412400]
xor edx, eax
mov dword [ebx*4 + 0x4163e0], edx
cmp ebx, 0xe2
jl 0x4049a8
mov ebx, 0xe3
sub ebx, 1
mov esi, esi
add ebx, 1
mov eax, dword [ebx*4 + 0x4163e4]
and eax, 0x7fffffff
mov edx, dword [ebx*4 + 0x4163e0]
and edx, 0x80000000
or edx, eax
mov ecx, edx
mov eax, ecx
shr eax, 1
mov edx, dword [ebx*4 + 0x416054]
xor eax, edx
mov edx, ecx
and edx, 1
mov edx, dword [edx*4 + 0x412400]
xor edx, eax
mov dword [ebx*4 + 0x4163e0], edx
cmp ebx, 0x26e
jl 0x4049fc
mov eax, dword [0x416d9c]
and eax, 0x80000000
mov edx, dword [0x4163e0]
and edx, 0x7fffffff
or edx, eax
mov ecx, edx
mov eax, ecx
shr eax, 1
mov edx, dword [0x416a10]
xor edx, eax
and ecx, 1
mov eax, dword [ecx*4 + 0x412400]
xor eax, edx
mov dword [0x416d9c], eax
mov dword [0x4123f0], 0
mov eax, dword [0x4123f0]
mov eax, dword [eax*4 + 0x4163e0]
add dword [0x4123f0], 1
mov edx, eax
shr edx, 0xb
xor eax, edx
mov edx, eax
shl edx, 7
and edx, 0x9d2c5680
xor eax, edx
mov edx, eax
shl edx, 0xf
and edx, 0xefc60000
xor eax, edx
mov edx, eax
shr edx, 0x12
xor eax, edx
pop ebx
ret
Function at 0x406290
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
mov ax, word [0x412180]
cmp ax, 0xcb
je 0x40638c
cmp ax, 0xcc
je 0x40638c
mov edx, dword [0x416ff0]
test edx, edx
je 0x4062c2
mov eax, dword [0x416e90]
call edx
mov ebx, eax
jmp 0x4062c7
mov ebx, 0x416e94
cmp word [0x416e80], 0
jle 0x4062ea
mov eax, 0x416e60
call fcn.00406500
mov eax, ebx
call fcn.00405e70
mov eax, ebx
call fcn.00405ee0
mov edi, dword [ebx]
jmp 0x40630a
mov esi, dword [edi + 4]
mov eax, dword [edi]
and eax, 1
jne 0x406305
mov edx, edi
mov eax, ebx
call fcn.00405340
jmp 0x406308
and dword [edi], 0xfffffffe
mov edi, esi
test edi, edi
jne 0x4062f0
mov dword [ebx], 0
mov dword [ebx + 0x88], 0
cmp word [0x416e80], 0
jle 0x40638c
mov edx, 0x416da0
mov eax, ebx
call fcn.00405470
mov edi, eax
test edi, edi
je 0x40635f
mov eax, dword [0x416e34]
mov dword [edi + 0xc], eax
cmp dword [0x416e34], 0
je 0x406354
mov eax, dword [0x416e34]
mov dword [eax + 8], edi
mov eax, dword [ebx + 0x94]
mov dword [0x416e34], eax
sub word [0x416e80], 1
cmp word [0x416e80], 0
sete bl
mov eax, 0x416e60
call fcn.00406510
test bl, bl
je 0x40638c
mov eax, 0x416e60
call fcn.004064f0
pop edi
pop esi
pop ebx
ret
Function at 0x407a60
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x114]
push ebx
push esi
push edi
mov dword [ebp - 0x114], 0
mov dword [0x4162e0], 0
mov dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp + eax - 0x108], 0
mov dword [ebp - 0x110], eax
mov ecx, dword [ebp - 0x110]
mov eax, ebp
mov edx, 0
call fcn.00407c40
mov eax, dword [ebp - 0x110]
lea ecx, [eax + 1]
mov eax, dword [0x4162e0]
mov edx, dword [eax]
lea eax, [ebp - 0x108]
call fcn.00403290
call sub.kernel32.dll_GetCommandLineA
mov dword [0x4121f0], eax
mov esi, dword [0x4121f0]
jmp 0x407c00
add esi, 1
movzx eax, byte [esi]
sub eax, 1
cmp eax, 0x20
jb 0x407af0
cmp byte [esi], 0
je 0x407c09
mov byte [ebp - 0x10c], 0
mov edi, esi
mov dword [ebp - 0x110], 0
jmp 0x407b65
mov al, byte [esi]
cmp al, 1
jb 0x407b5b
sub al, 0x20
jbe 0x407b2c
sub al, 2
je 0x407b3f
jmp 0x407b5b
mov al, byte [ebp - 0x10c]
test al, al
je 0x407b6a
add dword [ebp - 0x110], 1
jmp 0x407b62
cmp byte [esi + 1], 0x22
je 0x407b56
mov al, byte [ebp - 0x10c]
test al, al
sete byte [ebp - 0x10c]
jmp 0x407b62
add esi, 1
jmp 0x407b62
add dword [ebp - 0x110], 1
add esi, 1
cmp byte [esi], 0
jne 0x407b1c
test dword [ebp - 0x114], 0xffffffff
je 0x407bf9
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x114]
mov eax, ebp
call fcn.00407c40
mov byte [ebp - 0x10c], 0
mov esi, edi
mov eax, dword [0x4162e0]
mov edx, dword [ebp - 0x114]
mov ebx, dword [eax + edx*4]
jmp 0x407bf1
mov al, byte [esi]
cmp al, 1
jb 0x407be7
sub al, 0x20
jbe 0x407bb8
sub al, 2
je 0x407bcb
jmp 0x407be7
mov al, byte [ebp - 0x10c]
test al, al
je 0x407bf6
mov al, byte [esi]
mov byte [ebx], al
add ebx, 1
jmp 0x407bee
cmp byte [esi + 1], 0x22
je 0x407be2
mov al, byte [ebp - 0x10c]
test al, al
sete byte [ebp - 0x10c]
jmp 0x407bee
add esi, 1
jmp 0x407bee
mov al, byte [esi]
mov byte [ebx], al
add ebx, 1
add esi, 1
cmp byte [esi], 0
jne 0x407ba8
mov byte [ebx], 0
add dword [ebp - 0x114], 1
cmp byte [esi], 0
jne 0x407af3
mov ebx, dword [ebp - 0x114]
mov dword [0x4162d0], ebx
lea edx, [ebx + 1]
shl edx, 2
mov eax, 0x4162e0
call fcn.004060f0
mov eax, dword [0x4162e0]
mov dword [eax + ebx*4], 0
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409290
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
mov byte [ebp - 4], al
cmp al, 7
jb 0x4092e7
sub al, 7
je 0x409346
sub al, 1
je 0x4092cf
sub al, 2
je 0x4092b4
sub al, 3
je 0x4092c0
jmp 0x4092e7
add dword [0x417660], 1
jmp 0x409346
mov eax, dword [0x417590]
mov dword [0x417650], eax
jmp 0x409346
mov eax, dword [0x417650]
cmp eax, dword [0x417590]
jbe 0x409346
sub dword [0x417650], 1
jmp 0x409346
mov eax, dword [0x417650]
sub eax, 1
mov word [ebp - 8], ax
mov eax, dword [0x417660]
sub eax, 1
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push 1
lea eax, [ebp - 4]
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteConsoleOutputCharacterA
movzx ax, byte [0x4124e0]
mov word [ebp - 0x10], ax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push 1
lea eax, [ebp - 0x10]
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteConsoleOutputAttribute
add dword [0x417650], 1
mov eax, dword [0x417650]
cmp eax, dword [0x4175a0]
jbe 0x409379
mov eax, dword [0x417590]
mov dword [0x417650], eax
add dword [0x417660], 1
jmp 0x409379
mov eax, 1
call fcn.004091f0
sub dword [0x417660], 1
mov eax, dword [0x417660]
cmp eax, dword [0x4175c0]
ja 0x409368
leave
ret

Function at 0x409390
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc]
push ebx
push esi
push edi
mov edi, eax
mov eax, dword [0x417650]
sub eax, 2
mov word [ebp - 4], ax
mov eax, dword [0x417660]
sub eax, 1
mov word [ebp - 2], ax
movzx ax, byte [0x4124e0]
mov word [ebp - 0xc], ax
movzx ax, byte [edi]
mov si, ax
mov bx, 1
cmp si, bx
jl 0x40948b
sub bx, 1
lea esi, [esi]
add bx, 1
add word [ebp - 4], 1
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push 1
mov al, bl
and eax, 0xff
lea eax, [edi + eax]
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteConsoleOutputCharacterA
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push 1
lea eax, [ebp - 0xc]
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteConsoleOutputAttribute
add dword [0x417650], 1
mov eax, dword [0x417650]
cmp eax, dword [0x4175a0]
jbe 0x409482
mov eax, dword [0x417590]
mov dword [0x417650], eax
add dword [0x417660], 1
jmp 0x40945d
mov eax, 1
call fcn.004091f0
sub dword [0x417660], 1
mov eax, dword [0x417660]
cmp eax, dword [0x4175c0]
ja 0x40944c
mov eax, dword [0x417650]
sub eax, 2
mov word [ebp - 4], ax
mov eax, dword [0x417660]
sub eax, 1
mov word [ebp - 2], ax
cmp si, bx
jg 0x4093dc
pop edi
pop esi
pop ebx
leave
ret
Function at 0x410af0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, 0
cmp byte [0x4126c0], 0
je 0x410c11
push 0
push dword [0x416340]
push 0
push 0
movsx edx, word [0x417aa0]
add edx, dword [0x4126d4]
mov eax, dword [0x4126dc]
lea eax, [edx + eax]
lea ebx, [eax + 1]
push 0x21
call sub.user32.dll_GetSystemMetrics
shl eax, 1
lea ebx, [ebx + eax]
push 4
call sub.user32.dll_GetSystemMetrics
lea eax, [ebx + eax]
push eax
movsx eax, word [0x417a90]
add eax, dword [0x4126d0]
add eax, dword [0x4126d8]
lea ebx, [eax + 1]
push 0x20
call sub.user32.dll_GetSystemMetrics
shl eax, 1
lea eax, [ebx + eax]
push eax
push 0
push 0x80000000
mov eax, dword [0x41cb90]
or eax, 0x2cf0000
push eax
push dword [0x412670]
mov eax, str.FPCGraphWindowMain
push eax
call fcn.00411800
mov dword [0x4178d0], eax
test eax, eax
je 0x410c8e
push 5
push dword [0x4178d0]
call sub.user32.dll_ShowWindow
push dword [0x4178d0]
call sub.user32.dll_UpdateWindow
push 0
push dword [0x416340]
push 0
push dword [0x4178d0]
movsx eax, word [0x417aa0]
add eax, 1
push eax
movsx eax, word [0x417a90]
add eax, 1
push eax
push dword [0x4126d4]
push dword [0x4126d0]
push 0x40000000
push 0
mov eax, str.FPCGraphWindowChild
push eax
call fcn.00411800
mov ebx, eax
test ebx, ebx
je 0x410c8e
push 5
push ebx
call sub.user32.dll_ShowWindow
push ebx
call sub.user32.dll_UpdateWindow
mov esi, ebx
jmp 0x410c8e
push 0
push dword [0x416340]
push 0
push 0
movsx eax, word [0x417aa0]
lea edi, [eax + 1]
push 0x21
call sub.user32.dll_GetSystemMetrics
shl eax, 1
lea edi, [edi + eax]
push 4
call sub.user32.dll_GetSystemMetrics
lea eax, [edi + eax]
push eax
movsx eax, word [0x417a90]
lea edi, [eax + 1]
push 0x20
call sub.user32.dll_GetSystemMetrics
shl eax, 1
lea eax, [edi + eax]
push eax
push 0
push 0x80000000
mov eax, dword [0x41cb90]
or eax, 0xcf0000
push eax
push dword [0x412670]
mov eax, str.FPCGraphWindow
push eax
call fcn.00411800
mov ebx, eax
test ebx, ebx
je 0x410c8e
push 5
push ebx
call sub.user32.dll_ShowWindow
push ebx
call sub.user32.dll_UpdateWindow
mov esi, ebx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret