joyce8/EMBER2024-capa huggingface dataset:
Function at 0x667ed8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
mov ebx, eax
cmp byte [ebx + 0x237], 0
je 0x667f0a
movzx eax, word [ebx + 0x232]
push eax
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebx + 0x2c0]
push eax
movzx eax, word [ebx + 0x230]
push eax
call sub.kernel32.dll_MulDiv
mov esi, eax
jmp 0x667f11
movzx esi, word [ebx + 0x230]
call sub.kernel32.dll_GetTickCount
mov dword [ebx + 0x2c0], eax
cmp byte [ebx + 0x235], 0
je 0x667f4f
mov al, byte [ebx + 0x234]
xor edx, edx
mov dl, al
cmp esi, edx
jge 0x667f44
mov edx, esi
push edx
mov edx, eax
pop eax
sub dl, al
mov eax, ebx
call fcn.00666dd0
jmp 0x667f7a
xor edx, edx
mov eax, ebx
call fcn.00666dd0
jmp 0x667f7a
mov al, byte [ebx + 0x234]
xor edx, edx
mov dl, al
mov ecx, 0x64
sub ecx, esi
cmp edx, ecx
jge 0x667f71
mov edx, esi
add dl, al
mov eax, ebx
call fcn.00666dd0
jmp 0x667f7a
mov dl, 0x64
mov eax, ebx
call fcn.00666dd0
cmp byte [ebx + 0x235], 0
je 0x667f8c
cmp byte [ebx + 0x234], 0
jne 0x667fa3
cmp byte [ebx + 0x235], 0
jne 0x667f9e
cmp byte [ebx + 0x234], 0x64
jne 0x667fa3
xor eax, eax
pop esi
pop ebx
ret
mov al, 1
pop esi
pop ebx
ret

Function at 0x678b08
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
xor eax, eax
push ebp
push 0x678b8e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x70c868]
mov eax, dword [eax + 0x60]
cmp byte [eax + 0x4b], 0
je 0x678b30
xor edx, edx
call fcn.0058e810
push 0
mov eax, dword [0x70ac0c]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_SetWindowTextA
mov eax, dword [0x70ac0c]
mov eax, dword [eax]
mov byte [eax + 0x5b], 0
push 1
lea edx, [ebp - 4]
mov eax, dword [0x70ac0c]
mov eax, dword [eax]
call fcn.0046f568
mov eax, dword [ebp - 4]
call fcn.00404ee4
push eax
call sub.kernel32.dll_WinExec
mov eax, dword [0x70ac0c]
mov eax, dword [eax]
call fcn.0046f07c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x678b95
lea eax, [ebp - 4]
call fcn.00404a34
ret

Function at 0x6aa2ec
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, ecx
mov edi, edx
mov eax, edi
call fcn.00451c68
mov ebp, eax
dec ebp
test ebp, ebp
jl 0x6aa31c
inc ebp
xor esi, esi
mov edx, esi
mov eax, edi
call fcn.00451c2c
mov edx, ebx
xor dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x64]
inc esi
dec ebp
jne 0x6aa305
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x403594
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0xab2008], 0x8088405
inc edx
mov dword [ebx + 0xab2008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41c674
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41c6a5
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41c68d
add dl, dl
jne 0x41c6b0
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41c701
xor eax, eax
add dl, dl
jne 0x41c6bd
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41c79e
add dl, dl
jne 0x41c6cc
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41c6d7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41c6e2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41c6ed
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41c6f7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41c69c
mov eax, 1
add dl, dl
jne 0x41c70f
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41c71a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41c706
sub eax, ebx
mov ebx, 1
jne 0x41c74d
mov ecx, 1
add dl, dl
jne 0x41c733
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41c73e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41c72a
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41c69c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41c764
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41c76f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41c75b
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41c69c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41c7bf
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41c69c
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41d33c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
test dl, dl
je 0x41d34f
add esp, 0xfffffff0
call fcn.00403d6c
mov esi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00403af4
mov byte [ebx + 4], 0
cmp dword [esi + 0x5c], 0
jne 0x41d375
cmp dword [esi + 0x58], 0x40
jb 0x41d55b
jmp 0x41d37b
jl 0x41d55b
lea eax, [ebx + 0xc]
mov edx, 0x40
call fcn.00406e44
push 0
push 0
push 0
push 0x40
lea edx, [ebx + 0xc]
mov eax, esi
call fcn.0041cef4
cmp word [ebx + 0xc], 0x5a4d
jne 0x41d55b
mov ecx, dword [ebx + 0x48]
test ecx, ecx
jle 0x41d55b
cmp ecx, 0x10000
jge 0x41d55b
mov eax, ecx
add eax, 4
add eax, 0x14
cdq
cmp edx, dword [esi + 0x5c]
jne 0x41d3d6
cmp eax, dword [esi + 0x58]
ja 0x41d55b
jmp 0x41d3dc
jg 0x41d55b
lea eax, [ebx + 0x4c]
mov edx, 4
call fcn.00406e44
mov eax, dword [ebx + 0x48]
cdq
push edx
push eax
push 0
push 4
lea edx, [ebx + 0x4c]
mov eax, esi
call fcn.0041cef4
cmp dword [ebx + 0x4c], 0x4550
jne 0x41d55b
lea eax, [ebx + 0x50]
mov edx, 0x14
call fcn.00406e44
mov eax, dword [ebx + 0x48]
add eax, 4
cdq
push edx
push eax
push 0
push 0x14
lea edx, [ebx + 0x50]
mov eax, esi
call fcn.0041cef4
mov ax, word [ebx + 0x50]
cmp ax, 0x8664
jne 0x41d493
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
add eax, 0xf0
cdq
cmp edx, dword [esi + 0x5c]
jne 0x41d457
cmp eax, dword [esi + 0x58]
ja 0x41d4e4
jmp 0x41d45d
jg 0x41d4e4
lea eax, [ebx + 0x144]
mov edx, 0xf0
call fcn.00406e44
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
cdq
push edx
push eax
push 0
push 0xf0
lea edx, [ebx + 0x144]
mov eax, esi
call fcn.0041cef4
mov byte [ebx + 4], 1
jmp 0x41d4e4
cmp ax, 0x14c
jne 0x41d4e4
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
add eax, 0xe0
cdq
cmp edx, dword [esi + 0x5c]
jne 0x41d4b4
cmp eax, dword [esi + 0x58]
ja 0x41d4e4
jmp 0x41d4b6
jg 0x41d4e4
lea eax, [ebx + 0x64]
mov edx, 0xe0
call fcn.00406e44
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
cdq
push edx
push eax
push 0
push 0xe0
lea edx, [ebx + 0x64]
mov eax, esi
call fcn.0041cef4
mov byte [ebx + 4], 1
cmp byte [ebx + 4], 0
je 0x41d55b
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
movzx edx, word [ebx + 0x60]
add eax, edx
mov di, word [ebx + 0x52]
movzx edx, di
shl edx, 3
lea edx, [edx + edx*4]
add eax, edx
cdq
cmp edx, dword [esi + 0x5c]
jne 0x41d515
cmp eax, dword [esi + 0x58]
ja 0x41d55b
jmp 0x41d517
jg 0x41d55b
movzx eax, di
push eax
lea eax, [ebx + 8]
mov ecx, 1
mov edx, dword [0xa9ce0c]
call fcn.00405b38
add esp, 4
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
movzx edx, word [ebx + 0x60]
add eax, edx
cdq
push edx
push eax
movzx eax, word [ebx + 0x52]
shl eax, 3
lea eax, [eax + eax*4]
xor edx, edx
push edx
push eax
mov edx, dword [ebx + 8]
mov eax, esi
call fcn.0041cef4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x41d572
call fcn.00403dc4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x41e270
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0xa9e72f
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41e321
add edx, ebx
mov eax, edx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp edx, 0xffff
jbe 0x41e30a
test esi, esi
jbe 0x41e321
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.00408868
test eax, eax
jne 0x41e2fc
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41e321
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e2d9
jmp 0x41e321
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e321
mov eax, ecx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xa9e736
ret
Function at 0x41eb80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0xa9f12f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404c94
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x41ebbb
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41ebd4
lea eax, [ebp - 0x10]
mov edx, dword [0xab4188]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404cf4
jmp 0x41ebe7
lea eax, [ebp - 0x10]
mov edx, dword [0xab4188]
mov edx, dword [edx]
mov edx, dword [edx + 0x14]
call fcn.00404cf4
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41ebf3
adc edx, 0
mov edx, dword [edx*4 + 0xab2ca8]
call fcn.00404ee4
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404ec8
push eax
call fcn.00406ab8
mov esi, eax
cmp esi, 0xffffffff
je 0x41ed01
mov eax, 0x40
call fcn.00403250
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00406d00
test eax, eax
je 0x41ecf4
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41ecf4
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406d58
mov eax, edi
call fcn.00403270
mov eax, 0x18
call fcn.00403250
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00406d00
test eax, eax
je 0x41ecf4
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41ecf4
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41ecf4
cmp dx, 0x150
ja 0x41ecf4
mov eax, edi
call fcn.00403270
mov eax, 0xe0
call fcn.00403250
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00406d00
test eax, eax
je 0x41ecf4
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41ecf4
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404cd0
mov eax, edi
call fcn.00403270
push esi
call fcn.00406a70
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.00404ff0
jne 0x41ed19
inc ebx
cmp ebx, 0x19
jne 0x41ebad
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xa9f136
lea eax, [ebp - 0x10]
call fcn.00404c94
ret
Function at 0x4018c0
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, eax
push str._Default_
push esi
call dword [sym.imp.MSVCP80.dll_bool___cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 8
test al, al
mov edx, 0x10
je 0x4018e2
mov esi, 0x4222ea
jmp 0x4018ef
cmp dword [esi + 0x18], edx
jb 0x4018ec
mov esi, dword [esi + 4]
jmp 0x4018ef
add esi, 4
cmp dword [edi + 0x18], edx
mov ecx, dword [edi + 0x14]
jb 0x4018fc
mov eax, dword [edi + 4]
jmp 0x4018ff
lea eax, [edi + 4]
add ecx, 1
push ecx
push eax
mov eax, dword [esp + 0x10]
push 1
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
ret

Function at 0x401920
Capabilities:
Set registry value

Disassembly:
push str._Default_
push esi
call dword [sym.imp.MSVCP80.dll_bool___cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 8
test al, al
je 0x40193a
mov eax, 0x4222ea
jmp 0x401948
cmp dword [esi + 0x18], 0x10
jb 0x401945
mov eax, dword [esi + 4]
jmp 0x401948
lea eax, [esi + 4]
mov edx, dword [esp + 4]
push 4
lea ecx, [esp + 0xc]
push ecx
push 4
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x3fb3284c
nop
nop
nop
nop
test eax, eax
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x60d63a63
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x69efe0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x187000]
push edi
or ebp, 0xffffffff
jmp 0x69f002
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x69f009
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x69eff8
mov eax, 1
add ebx, ebx
jne 0x69f01b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x69f010
jne 0x69f02c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x69f010
xor ecx, ecx
sub eax, 3
jb 0x69f040
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x69f0b2
mov ebp, eax
add ebx, ebx
jne 0x69f04b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x69f058
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x69f07c
inc ecx
add ebx, ebx
jne 0x69f068
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x69f05d
jne 0x69f079
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x69f05d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x69f09c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x69f08d
jmp 0x69effe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x69f09c
add edi, ecx
jmp 0x69effe
pop esi
mov edi, esi
mov ecx, 0x293457
mov al, 0xe8
repne scasb al, byte es:[edi]
jne 0x69f0d7
cmp byte [edi], 0x18
jne 0x69f0bc
mov eax, dword [edi]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
stosd dword es:[edi], eax
jmp 0x69f0ba
lea edi, [esi + 0x29c000]
mov eax, dword [edi]
or eax, eax
je 0x69f128
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x29ffbc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x29fff8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x69f0dd
mov ecx, edi
jns 0x69f10c
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 + 0x29fffc]
or eax, eax
je 0x69f122
mov dword [ebx], eax
add ebx, 4
jmp 0x69f0fa
call dword [esi + 0x2a0004]
mov ebp, dword [esi + 0x2a0000]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x69f15c
sub esp, 0xffffff80
jmp 0x4011d0
Function at 0x401000
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x260
mov eax, dword [0x40a004]
xor eax, esp
mov dword [esp + 0x25c], eax
push esi
mov esi, dword [esp + 0x270]
push str.SSDAL.EXE
lea eax, [esp + 0x5c]
push 0x104
push eax
call fcn.004010c9
push esi
lea ecx, [esp + 0x68]
push 0x104
push ecx
call fcn.00401135
push 0x44
lea edx, [esp + 0x30]
push 0
push edx
call fcn.00402dd0
or dword [esp + 0x64], 1
add esp, 0x24
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x78]
push edx
push 0
mov dword [esp + 0x3c], 0x44
mov word [esp + 0x6c], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4010a0
mov eax, dword [esp + 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 8]
push ecx
call esi
mov ecx, dword [esp + 0x260]
pop esi
xor ecx, esp
xor eax, eax
call fcn.004010ba
add esp, 0x260
ret 0x10

Function at 0x4010ba
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40a004]
jne 0x4010c4
repz ret
jmp fcn.004013fd
Function at 0x4019e0
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x40a188]
je 0x4019fb
inc edi
cmp edi, 0x17
jb 0x4019ec
cmp edi, 0x17
jae 0x401b7b
push ebp
push 3
call fcn.004039d0
cmp eax, 1
pop ecx
je 0x401b47
push 3
call fcn.004039d0
test eax, eax
pop ecx
jne 0x401a2f
cmp dword [section..data], 1
je 0x401b47
cmp ebx, 0xfc
je 0x401b7a
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x40b040
push ebp
call fcn.0040396b
add esp, 0xc
test eax, eax
je 0x401a65
push esi
push esi
push esi
push esi
push esi
call fcn.0040150b
add esp, 0x14
push 0x104
mov esi, 0x40b059
push esi
push 0
mov byte [0x40b15d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x401aa9
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0040396b
add esp, 0xc
test eax, eax
je 0x401aa9
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040150b
add esp, 0x14
push esi
call fcn.004038e0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x401aee
push esi
call fcn.004038e0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x40b354
push 0x40870c
sub ecx, eax
push ecx
push eax
call fcn.00403822
add esp, 0x14
test eax, eax
je 0x401aee
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0040150b
add esp, 0x14
jmp 0x401af0
xor esi, esi
push 0x408708
push ebx
push ebp
call fcn.004037b1
add esp, 0xc
test eax, eax
je 0x401b10
push esi
push esi
push esi
push esi
push esi
call fcn.0040150b
add esp, 0x14
push dword [edi*8 + 0x40a18c]
push ebx
push ebp
call fcn.004037b1
add esp, 0xc
test eax, eax
je 0x401b32
push esi
push esi
push esi
push esi
push esi
call fcn.0040150b
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004035f4
add esp, 0xc
jmp 0x401b7a
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x401b7a
cmp ebp, 0xffffffff
je 0x401b7a
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x40a18c]
push dword [esi]
call fcn.004038e0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4035f4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00402591
xor ebx, ebx
cmp dword [0x40b704], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4036ca
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4037aa
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4037aa
push eax
call fcn.00402523
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40b704], eax
call esi
push eax
call fcn.00402523
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40b708], eax
call esi
push eax
call fcn.00402523
mov dword [0x40b70c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040176d
test eax, eax
pop ecx
pop ecx
je 0x403698
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040150b
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4036ca
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00402523
cmp eax, ebx
pop ecx
mov dword [0x40b714], eax
je 0x4036ca
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402523
pop ecx
mov dword [0x40b710], eax
mov eax, dword [0x40b710]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x40374f
cmp dword [0x40b714], ecx
je 0x40374f
push eax
call fcn.0040259a
push dword [0x40b714]
mov esi, eax
call fcn.0040259a
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x40374f
cmp edi, ebx
je 0x40374f
call esi
cmp eax, ebx
je 0x40371c
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40371c
test byte [ebp - 0x18], 1
jne 0x40374f
lea eax, [ebp - 0x10]
push eax
call fcn.004017a4
test eax, eax
pop ecx
je 0x403737
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040150b
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x403746
or dword [ebp + 0x10], 0x200000
jmp 0x40378a
or dword [ebp + 0x10], 0x40000
jmp 0x40378a
mov eax, dword [0x40b708]
cmp eax, dword [ebp - 8]
je 0x40378a
push eax
call fcn.0040259a
cmp eax, ebx
pop ecx
je 0x40378a
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40378a
mov eax, dword [0x40b70c]
cmp eax, dword [ebp - 8]
je 0x40378a
push eax
call fcn.0040259a
cmp eax, ebx
pop ecx
je 0x40378a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40b704]
call fcn.0040259a
cmp eax, ebx
pop ecx
je 0x4037aa
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4037ac
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret