joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x42e072
mov ebx, 0x407ef8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x50b528bb
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x42e060
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
je 0x42e0d2
nop
nop
nop
mov ebx, 0x42cd70
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x245c3775
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x41fb80
Capabilities:
Parse credit card information

Disassembly:
push ebx
push esi
mov esi, ecx
xor dl, dl
push edi
mov ecx, dword [esi + 0x4c]
cmp ecx, 0xffffffff
je 0x41fd5e
mov eax, ecx
cmp eax, 0x7c
je 0x41fd5e
cmp eax, 0x29
jne 0x41fbc3
cmp dword [esi + 0x10], 0
jne 0x41fd5e
cmp eax, eax
jne 0x41fbc3
test dword [esi + 0x50], 0x10000000
je 0x41fd6b
jmp 0x41fd15
cmp eax, 0x2e
jne 0x41fc24
push 5
lea ecx, [esi + 0x24]
call fcn.0041ff50
mov ecx, dword [esi]
mov edx, dword [esi + 8]
cmp ecx, edx
je 0x41fc18
cmp word [ecx], 0x5c
jne 0x41fc13
lea eax, [ecx + 2]
cmp eax, edx
je 0x41fc13
mov edx, dword [esi + 0x50]
test dl, 8
jne 0x41fbfd
movzx edi, word [eax]
cmp edi, 0x28
je 0x41fc0f
cmp edi, 0x29
je 0x41fc0f
test dl, 0x10
jne 0x41fc13
movzx edx, word [eax]
cmp edx, 0x7b
je 0x41fc0f
cmp edx, 0x7d
jne 0x41fc13
mov dword [esi], eax
mov ecx, eax
lea eax, [ecx + 2]
mov dword [esi], eax
mov ecx, esi
call fcn.0041d090
jmp 0x41fd47
cmp eax, 0x5c
jne 0x41fc83
mov ecx, esi
call fcn.0041fb30
test byte [esi + 0x50], 0x80
je 0x41fc77
movzx eax, word [esi + 0x48]
cmp eax, 0x62
jne 0x41fc55
push 4
lea ecx, [esi + 0x24]
call fcn.0041ff50
mov ecx, esi
call fcn.0041fb30
jmp 0x41fd4e
cmp eax, 0x42
jne 0x41fc77
push 4
lea ecx, [esi + 0x24]
call fcn.0041ff50
mov eax, dword [esi + 0x28]
mov ecx, esi
xor dword [eax + 8], 1
call fcn.0041fb30
jmp 0x41fd4e
mov ecx, esi
call fcn.00421bf0
jmp 0x41fd47
cmp eax, 0x5b
jne 0x41fca5
mov ecx, esi
call fcn.0041fb30
mov ecx, esi
call fcn.00421b40
cmp dword [esi + 0x4c], 0x5d
jne 0x41fd72
jmp 0x41fd40
cmp eax, 0x28
jne 0x41fcd1
mov ecx, esi
call fcn.0041fb30
mov ecx, esi
call fcn.00421da0
cmp dword [esi + 0x4c], 0x29
mov bl, al
jne 0x41fd6b
mov ecx, esi
call fcn.0041fb30
test bl, bl
je 0x41fd4e
jmp 0x41fd47
cmp eax, 0x5e
jne 0x41fce9
push 2
lea ecx, [esi + 0x24]
call fcn.0041ff50
mov ecx, esi
call fcn.0041fb30
jmp 0x41fd4e
cmp eax, 0x24
jne 0x41fd01
push 3
lea ecx, [esi + 0x24]
call fcn.0041ff50
mov ecx, esi
call fcn.0041fb30
jmp 0x41fd4e
cmp eax, 0x2a
je 0x41fd64
cmp eax, 0x2b
je 0x41fd64
cmp eax, 0x3f
je 0x41fd64
cmp eax, 0x7b
je 0x41fd64
cmp ecx, 0x7d
jne 0x41fd25
test dword [esi + 0x50], 0x10000000
je 0x41fd79
jmp 0x41fd33
cmp ecx, 0x5d
jne 0x41fd33
test dword [esi + 0x50], 0x10000000
je 0x41fd72
movzx eax, word [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.00421fc0
mov ecx, esi
call fcn.0041fb30
mov ecx, esi
call fcn.00421e60
mov ecx, dword [esi + 0x4c]
mov dl, 1
mov eax, ecx
cmp ecx, 0xffffffff
jne 0x41fb95
pop edi
pop esi
mov al, dl
pop ebx
ret
push 0xa
call fcn.0041d080
push 5
call fcn.0041d080
push 4
call fcn.0041d080
push 6
call fcn.0041d080
int3
Function at 0x10001041
Capabilities:
Print debug messages
Write file on windows

Disassembly:
jmp 0x100018d0
mov eax, 0x100c
call fcn.1000ef50
mov eax, dword [0x101daa88]
xor eax, esp
mov dword [esp + 0x1008], eax
push ebx
push esi
mov esi, dword [esp + 0x101c]
push edi
mov edi, dword [esp + 0x101c]
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
mov ebx, eax
lea eax, [esp + 0x14]
push eax
push 0x400
push ebx
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
push edi
je 0x10001943
mov ecx, dword [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push str._s_n_s
push edx
call fcn.1000eda0
add esp, 0x10
jmp 0x10001955
lea eax, [esp + 0x18]
push 0x10038b78
push eax
call fcn.1000eda0
add esp, 0xc
test esi, esi
lea eax, [esp + 0x14]
je 0x10001981
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10001960
push 0
lea ecx, [esp + 0x14]
push ecx
sub eax, edx
push eax
lea edx, [esp + 0x20]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x10001995
push 0x40
push str.Child_Process_Error
push eax
call fcn.10001850
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
call esi
push 0x10038b5c
call esi
mov eax, dword [esp + 0xc]
test eax, eax
je 0x100019b4
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [esp + 0x1014]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.1000ef34
add esp, 0x100c
ret

Function at 0x10001091
Capabilities:
Write file on windows

Disassembly:
jmp 0x100035a0
mov eax, dword [0x101dc308]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push 1
push ecx
push edx
call fcn.100108bb
add esp, 0x10
ret

Function at 0x10001096
Capabilities:
Terminate process

Disassembly:
jmp 0x10001be0
push edi
mov edi, dword [esp + 8]
test edi, edi
je 0x10001c3c
mov eax, dword [edi]
test eax, eax
je 0x10001c3c
push ebx
xor ebx, ebx
cmp dword [eax], ebx
je 0x10001c2a
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
xor esi, esi
mov eax, dword [edi]
mov ecx, dword [esi + eax]
push 0xffffffffffffffff
push ecx
call ebp
mov edx, dword [edi]
mov eax, dword [esi + edx]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [edi]
add ebx, 1
lea esi, [ebx*4]
cmp dword [esi + ecx], 0
jne 0x10001c00
pop esi
pop ebp
mov edx, dword [edi]
push edx
call fcn.1000f17a
add esp, 4
mov dword [edi], 0
pop ebx
pop edi
ret
Function at 0x10001140
Capabilities:
Read file on windows

Disassembly:
jmp 0x1000e070
mov eax, dword [esp + 4]
sub esp, 8
push 0x10038d40
push eax
call fcn.1000fc8d
add esp, 8
test eax, eax
mov dword [0x101f03a8], eax
jne 0x1000e095
or eax, 0xffffffff
add esp, 8
ret
push 0x64
mov dword [0x101f03a0], 0x64
call fcn.1000f2cc
mov ecx, dword [0x101f03a8]
mov edx, dword [0x101f03a0]
push ecx
push edx
push 1
push eax
mov dword [0x101f038c], eax
mov dword [0x101f03a4], eax
call fcn.1000fbae
add esp, 0x14
cmp eax, dword [0x101f03a0]
mov dword [0x101f039c], eax
jne 0x1000e08e
mov eax, dword [0x101f038c]
push esi
push 0x10038b5c
push eax
call fcn.100113d0
mov ecx, dword [0x101f038c]
sub eax, ecx
mov byte [ecx + eax], 0
mov ecx, dword [0x101f038c]
lea eax, [ecx + eax + 1]
push 0x10038b5c
push eax
mov dword [0x101f038c], eax
call fcn.100113d0
mov ecx, dword [0x101f038c]
sub eax, ecx
mov esi, eax
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
mov byte [ecx + esi], 0
mov ecx, dword [0x101f038c]
push str._d__d
push ecx
call fcn.100114be
mov edx, dword [0x101f038c]
lea eax, [edx + esi + 1]
push 0x10038b5c
push eax
mov dword [0x101f038c], eax
call fcn.100113d0
mov ecx, dword [0x101f038c]
sub eax, ecx
mov esi, eax
mov byte [ecx + esi], 0
mov eax, dword [0x101f038c]
push eax
call fcn.10011725
add dword [0x101f038c], esi
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x44]
mov dword [ecx], edx
mov ecx, dword [esp + 0x34]
add esp, 0x2c
mov dword [eax], ecx
xor eax, eax
pop esi
add esp, 8
ret
Function at 0x1000118b
Capabilities:
Write file on windows

Disassembly:
jmp 0x10001a10
sub esp, 0x450
mov eax, dword [0x101daa88]
xor eax, esp
mov dword [esp + 0x44c], eax
push ebx
mov ebx, dword [esp + 0x458]
push ebp
mov ebp, dword [esp + 0x460]
test ebp, ebp
push esi
mov esi, dword [esp + 0x468]
je 0x10001b4f
push 0x3f
lea eax, [esp + 0x1d]
push 0
push eax
mov byte [esp + 0x24], 0
call fcn.1000f100
add esp, 0xc
test esi, esi
je 0x10001a97
lea ecx, [esp + 0xc]
push ecx
call fcn.1000ed64
mov eax, dword [esi]
mov esi, dword [esi + 4]
mov edx, dword [esp + 0x14]
push esi
push eax
mov eax, dword [esp + 0x18]
push edx
push eax
call fcn.1000ec94
fstp qword [esp + 0xc]
add esp, 0xc
lea ecx, [esp + 0x20]
push str.____.0f_Seconds
push ecx
call fcn.1000eda0
add esp, 0x10
lea eax, [esp + 0x58]
mov word [esp + 0x58], 0xa
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10001aa5
sub eax, edx
lea edx, [esp + eax + 0x58]
push edi
push edx
call fcn.1000f0de
lea edi, [esp + 0x60]
add esp, 4
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x10001ac5
mov ax, word [0x10038b8c]
mov word [edi], ax
lea eax, [esp + 0x5c]
lea edx, [eax + 1]
pop edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10001ae0
sub eax, edx
lea ecx, [esp + eax + 0x58]
push ecx
call fcn.1000f025
lea eax, [esp + 0x5c]
add esp, 4
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10001b00
sub eax, edx
lea edx, [esp + 0x18]
push edx
push ebx
lea eax, [esp + eax + 0x60]
push str.__s_s_n
push eax
call fcn.1000eda0
lea eax, [esp + 0x68]
add esp, 0x10
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10001b30
push 0
lea ecx, [esp + 0x18]
push ecx
sub eax, edx
push eax
lea edx, [esp + 0x64]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x458]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1000ef34
add esp, 0x450
ret
Function at 0x1000128a
Capabilities:
Read file on windows

Disassembly:
jmp 0x1000e280
sub esp, 0xc
mov eax, dword [esp + 0x14]
imul eax, dword [esp + 0x24]
mov ecx, dword [0x101f03a4]
push ebx
push ebp
mov ebp, dword [esp + 0x24]
push esi
mov esi, dword [0x101f03a0]
mov dword [esp + 0x14], eax
mov eax, dword [0x101f038c]
push edi
mov dword [esp + 0x14], 0
add eax, 1
lea edx, [esi + ecx]
cmp eax, edx
mov dword [0x101f038c], eax
jl 0x1000e2f0
mov eax, dword [0x101f03a8]
push eax
push esi
push 1
push ecx
mov dword [0x101f038c], ecx
call fcn.1000fbae
mov ecx, dword [0x101f03a4]
mov esi, eax
mov dword [0x101f039c], eax
mov eax, dword [0x101f038c]
add esp, 0x10
mov dword [0x101f03a0], esi
mov dl, byte [eax]
movzx edi, dl
add eax, 1
lea edx, [esi + ecx]
cmp eax, edx
mov dword [0x101f038c], eax
jge 0x1000e30c
mov dl, byte [eax]
mov byte [esp + 0x24], dl
jmp 0x1000e342
mov eax, dword [0x101f03a8]
push eax
push esi
push 1
push ecx
mov dword [0x101f038c], ecx
call fcn.1000fbae
mov dword [0x101f039c], eax
mov esi, eax
mov eax, dword [0x101f038c]
mov dword [0x101f03a0], esi
mov cl, byte [eax]
mov byte [esp + 0x34], cl
mov ecx, dword [0x101f03a4]
add esp, 0x10
add eax, 1
lea edx, [esi + ecx]
cmp eax, edx
mov dword [0x101f038c], eax
jge 0x1000e359
mov dl, byte [eax]
mov byte [esp + 0x13], dl
jmp 0x1000e38f
mov eax, dword [0x101f03a8]
push eax
push esi
push 1
push ecx
mov dword [0x101f038c], ecx
call fcn.1000fbae
mov dword [0x101f039c], eax
mov esi, eax
mov eax, dword [0x101f038c]
mov dword [0x101f03a0], esi
mov cl, byte [eax]
mov byte [esp + 0x23], cl
mov ecx, dword [0x101f03a4]
add esp, 0x10
add eax, 1
lea edx, [esi + ecx]
cmp eax, edx
mov dword [0x101f038c], eax
jl 0x1000e3ce
mov eax, dword [0x101f03a8]
push eax
push esi
push 1
push ecx
mov dword [0x101f038c], ecx
call fcn.1000fbae
mov ecx, dword [0x101f03a4]
mov esi, eax
mov dword [0x101f039c], eax
mov eax, dword [0x101f038c]
add esp, 0x10
mov dword [0x101f03a0], esi
mov bl, byte [eax]
add edi, 1
imul edi, dword [esp + 0x34]
mov edx, edi
test edx, edx
jle 0x1000e42f
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x30]
lea eax, [ecx + ebp]
mov ecx, dword [esp + 0x28]
sub ecx, ebp
sub esi, ebp
add dword [esp + 0x14], edx
jmp 0x1000e400
movzx edx, byte [esp + 0x24]
mov byte [ecx + eax], dl
movzx edx, byte [esp + 0x13]
mov byte [eax], dl
mov byte [esi + eax], bl
add eax, 1
sub edi, 1
jne 0x1000e400
mov eax, dword [0x101f038c]
mov ecx, dword [0x101f03a4]
mov esi, dword [0x101f03a0]
mov ebp, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
cmp dword [esp + 0x14], edx
jl 0x1000e2b1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x100018d0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
jmp 0x100018d0
mov eax, 0x100c
call fcn.1000ef50
mov eax, dword [0x101daa88]
xor eax, esp
mov dword [esp + 0x1008], eax
push ebx
push esi
mov esi, dword [esp + 0x101c]
push edi
mov edi, dword [esp + 0x101c]
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
mov ebx, eax
lea eax, [esp + 0x14]
push eax
push 0x400
push ebx
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
push edi
je 0x10001943
mov ecx, dword [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push str._s_n_s
push edx
call fcn.1000eda0
add esp, 0x10
jmp 0x10001955
lea eax, [esp + 0x18]
push 0x10038b78
push eax
call fcn.1000eda0
add esp, 0xc
test esi, esi
lea eax, [esp + 0x14]
je 0x10001981
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10001960
push 0
lea ecx, [esp + 0x14]
push ecx
sub eax, edx
push eax
lea edx, [esp + 0x20]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x10001995
push 0x40
push str.Child_Process_Error
push eax
call fcn.10001850
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
call esi
push 0x10038b5c
call esi
mov eax, dword [esp + 0xc]
test eax, eax
je 0x100019b4
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [esp + 0x1014]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.1000ef34
add esp, 0x100c
ret
Function at 0x10001a10
Capabilities:
Write file on windows

Disassembly:
jmp 0x10001a10
sub esp, 0x450
mov eax, dword [0x101daa88]
xor eax, esp
mov dword [esp + 0x44c], eax
push ebx
mov ebx, dword [esp + 0x458]
push ebp
mov ebp, dword [esp + 0x460]
test ebp, ebp
push esi
mov esi, dword [esp + 0x468]
je 0x10001b4f
push 0x3f
lea eax, [esp + 0x1d]
push 0
push eax
mov byte [esp + 0x24], 0
call fcn.1000f100
add esp, 0xc
test esi, esi
je 0x10001a97
lea ecx, [esp + 0xc]
push ecx
call fcn.1000ed64
mov eax, dword [esi]
mov esi, dword [esi + 4]
mov edx, dword [esp + 0x14]
push esi
push eax
mov eax, dword [esp + 0x18]
push edx
push eax
call fcn.1000ec94
fstp qword [esp + 0xc]
add esp, 0xc
lea ecx, [esp + 0x20]
push str.____.0f_Seconds
push ecx
call fcn.1000eda0
add esp, 0x10
lea eax, [esp + 0x58]
mov word [esp + 0x58], 0xa
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10001aa5
sub eax, edx
lea edx, [esp + eax + 0x58]
push edi
push edx
call fcn.1000f0de
lea edi, [esp + 0x60]
add esp, 4
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x10001ac5
mov ax, word [0x10038b8c]
mov word [edi], ax
lea eax, [esp + 0x5c]
lea edx, [eax + 1]
pop edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10001ae0
sub eax, edx
lea ecx, [esp + eax + 0x58]
push ecx
call fcn.1000f025
lea eax, [esp + 0x5c]
add esp, 4
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10001b00
sub eax, edx
lea edx, [esp + 0x18]
push edx
push ebx
lea eax, [esp + eax + 0x60]
push str.__s_s_n
push eax
call fcn.1000eda0
lea eax, [esp + 0x68]
add esp, 0x10
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10001b30
push 0
lea ecx, [esp + 0x18]
push ecx
sub eax, edx
push eax
lea edx, [esp + 0x64]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x458]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1000ef34
add esp, 0x450
ret
Function at 0x10002050
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x458
mov eax, dword [0x101daa88]
xor eax, esp
mov dword [esp + 0x454], eax
xor eax, eax
push ebp
mov ebp, dword [esp + 0x460]
push 0x44
push eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x1c]
push eax
call fcn.1000f100
add esp, 0xc
test esi, esi
mov dword [esp + 0x14], 0x44
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], edi
jne 0x100020ae
test ebx, ebx
jne 0x100020ae
test edi, edi
je 0x100020b6
mov dword [esp + 0x40], 0x100
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
push 0
push 0x8000000
push 1
push 0
push 0
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x100020f2
pop ebp
mov ecx, dword [esp + 0x454]
xor ecx, esp
call fcn.1000ef34
add esp, 0x458
ret
test edi, edi
je 0x1000212c
push 0x400
lea eax, [esp + 0x5c]
push 0
push eax
call fcn.1000f100
mov ecx, dword [esp + 0x18]
push ebp
push ecx
lea edx, [esp + 0x6c]
push str.ProcID__d___s_
push edx
call fcn.1000eda0
push 0
lea eax, [esp + 0x78]
push edi
push eax
call fcn.1000118b
add esp, 0x28
test esi, esi
mov ebp, dword [sym.imp.KERNEL32.dll_SetHandleInformation]
je 0x1000213d
push 0
push 1
push esi
call ebp
test ebx, ebx
je 0x10002148
push 0
push 1
push ebx
call ebp
test edi, edi
je 0x10002153
push 0
push 1
push edi
call ebp
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x458]
mov eax, dword [esp + 4]
pop ebp
xor ecx, esp
call fcn.1000ef34
add esp, 0x458
ret
Function at 0x1000ef34
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x101daa88]
jne 0x1000ef3e
repz ret
jmp fcn.10013c3b
Function at 0x10015794
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 + 0x101dafe8]
je 0x100157af
inc edi
cmp edi, 0x17
jb 0x100157a0
cmp edi, 0x17
jae 0x1001592f
push ebp
push 3
call fcn.1002216c
cmp eax, 1
pop ecx
je 0x100158fb
push 3
call fcn.1002216c
test eax, eax
pop ecx
jne 0x100157e3
cmp dword [0x101ef918], 1
je 0x100158fb
cmp ebx, 0xfc
je 0x1001592e
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x101efde8
push ebp
call fcn.1001ebb0
add esp, 0xc
test eax, eax
je 0x10015819
push esi
push esi
push esi
push esi
push esi
call fcn.10013652
add esp, 0x14
push 0x104
mov esi, 0x101efe01
push esi
push 0
mov byte [0x101eff05], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1001585d
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.1001ebb0
add esp, 0xc
test eax, eax
je 0x1001585d
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.10013652
add esp, 0x14
push esi
call fcn.100188b0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x100158a2
push esi
call fcn.100188b0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x101f00fc
push 0x1003a33c
sub ecx, eax
push ecx
push eax
call fcn.100220b9
add esp, 0x14
test eax, eax
je 0x100158a2
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.10013652
add esp, 0x14
jmp 0x100158a4
xor esi, esi
push 0x1003a338
push ebx
push ebp
call fcn.10022048
add esp, 0xc
test eax, eax
je 0x100158c4
push esi
push esi
push esi
push esi
push esi
call fcn.10013652
add esp, 0x14
push dword [edi*8 + 0x101dafec]
push ebx
push ebp
call fcn.10022048
add esp, 0xc
test eax, eax
je 0x100158e6
push esi
push esi
push esi
push esi
push esi
call fcn.10013652
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.10021e8b
add esp, 0xc
jmp 0x1001592e
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x1001592e
cmp ebp, 0xffffffff
je 0x1001592e
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x101dafec]
push dword [esi]
call fcn.100188b0
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 0x10021e8b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.10017d48
xor ebx, ebx
cmp dword [0x101f0354], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x10021f61
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10022041
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x10022041
push eax
call fcn.10017cda
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x101f0354], eax
call esi
push eax
call fcn.10017cda
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x101f0358], eax
call esi
push eax
call fcn.10017cda
mov dword [0x101f035c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.100153ff
test eax, eax
pop ecx
pop ecx
je 0x10021f2f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10013652
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x10021f61
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.10017cda
cmp eax, ebx
pop ecx
mov dword [0x101f0364], eax
je 0x10021f61
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10017cda
pop ecx
mov dword [0x101f0360], eax
mov eax, dword [0x101f0360]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x10021fe6
cmp dword [0x101f0364], ecx
je 0x10021fe6
push eax
call fcn.10017d51
push dword [0x101f0364]
mov esi, eax
call fcn.10017d51
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x10021fe6
cmp edi, ebx
je 0x10021fe6
call esi
cmp eax, ebx
je 0x10021fb3
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10021fb3
test byte [ebp - 0x18], 1
jne 0x10021fe6
lea eax, [ebp - 0x10]
push eax
call fcn.100154ae
test eax, eax
pop ecx
je 0x10021fce
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10013652
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x10021fdd
or dword [ebp + 0x10], 0x200000
jmp 0x10022021
or dword [ebp + 0x10], 0x40000
jmp 0x10022021
mov eax, dword [0x101f0358]
cmp eax, dword [ebp - 8]
je 0x10022021
push eax
call fcn.10017d51
cmp eax, ebx
pop ecx
je 0x10022021
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x10022021
mov eax, dword [0x101f035c]
cmp eax, dword [ebp - 8]
je 0x10022021
push eax
call fcn.10017d51
cmp eax, ebx
pop ecx
je 0x10022021
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x101f0354]
call fcn.10017d51
cmp eax, ebx
pop ecx
je 0x10022041
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10022043
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret