joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401dc5
Capabilities:
Terminate process

Disassembly:
push esi
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x406818], eax
call fcn.00401b36
test eax, eax
je 0x401e27
mov eax, dword [0x40681c]
mov eax, dword [eax + 0xc]
dec eax
je 0x401df9
dec eax
jne 0x401e16
push esi
push 0x4012e7
push esi
push str.SETUPMAINDLG
jmp 0x401e05
push esi
push 0x4012e7
push esi
push str.STANDARDMAINDLG
push dword [0x406818]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp eax, 1
je 0x401e27
call fcn.0040174f
push dword [0x406810]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x401fa2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [edi + 4]
mov dword [ebp - 0xc], ebx
push eax
mov dword [ebp - 4], eax
call fcn.00401000
cmp eax, ebx
pop ecx
mov dword [ebp - 8], eax
je 0x402094
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
call esi
push dword [ebp + 0xc]
lea eax, [edi + 8]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
call fcn.00401e76
add esp, 0x10
cmp eax, 0xfffffffb
je 0x40209b
cmp eax, 0xfffffffc
je 0x402094
cmp eax, 0xfffffffd
je 0x40208d
cmp dword [ebp - 4], ebx
mov dword [ebp + 8], ebx
jbe 0x40202d
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov al, byte [ecx + eax]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.004020a5
inc dword [ebp + 8]
pop ecx
mov eax, dword [ebp + 8]
pop ecx
cmp eax, dword [ebp - 4]
jb 0x40200d
push ebx
call esi
mov eax, dword [ebp - 0xc]
cmp eax, dword [edi]
je 0x40203e
mov eax, str.Data_corrupted__CRC32_ERROR___please_check_the_source_media.
jmp 0x4020a0
push ebx
push ebx
push 2
push ebx
push ebx
push 0xc0000000
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x402060
mov eax, str.Unable_to_create_output_file.
jmp 0x4020a0
push ebx
call esi
mov esi, dword [ebp - 4]
lea eax, [ebp - 0x10]
push ebx
push eax
push esi
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x10], esi
je 0x402082
mov eax, str.Unable_to_write_output_file.
jmp 0x4020a0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4020a0
mov eax, str.Data_corrupted__please_check_the_source_media.
jmp 0x4020a0
mov eax, str.Out_of_memory
jmp 0x4020a0
mov eax, str.Buffer_error
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1663700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0166378f
jae 0x166370e
xor ecx, ecx
call fcn.0166378f
jae 0x166373d
xor eax, eax
call fcn.0166378f
jae 0x166374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0166378f
adc al, al
jae 0x166372f
jne 0x1663779
stosb byte es:[edi], al
jmp 0x1663711
call fcn.0166379b
sub ecx, ebx
jne 0x1663756
call fcn.01663799
jmp 0x1663775
lodsb al, byte [esi]
shr eax, 1
je 0x1663783
adc ecx, ecx
jmp 0x1663772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.01663799
cmp eax, 0x7d00
jae 0x1663772
cmp ah, 5
jae 0x1663773
cmp eax, 0x7f
ja 0x1663774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1663711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x1001d550
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x1001d578
push 0
push 0x184d
push 0
push 0
push 0x20f5
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x1001d5c3
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x1001d5a6
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 1
jge 0x1001d5c3
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x10]
call fcn.10027bb7
mov dword [eax], 0x5dcec3d7
jmp 0x1001d59b
mov esp, ebp
pop ebp
ret

Function at 0x1001d9b3
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x1001d9da
push 0x148b
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x1001da5c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
neg eax
cmp eax, 0x54668dac
jne 0x1001da15
mov dword [ebp - 4], 1
jmp 0x1001da19
and dword [ebp - 4], 0
cmp dword [ebp - 4], 7
jae 0x1001da28
mov dword [ebp - 8], 1
jmp 0x1001da2c
and dword [ebp - 8], 0
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
sub eax, 0x5d9f20c7
sub eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
cmp eax, dword [ecx]
jge 0x1001da4d
push 0xfffffffffffffffb
pop eax
test eax, eax
jne 0x1001da4d
and dword [ebp - 0x10], 0
jmp 0x1001da54
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret
Function at 0x1002b536
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push esi
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1002b554
push 0
push 0
call dword [sym.imp.USER32.dll_EnumWindows]
jmp 0x1002b67e
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
push 1
mov ecx, dword [ebp - 0x40]
call fcn.10027bb7
mov ecx, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
dec ecx
cmp dword [eax], ecx
jne 0x1002b5b4
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
cmp dword [eax], ecx
jle 0x1002b5c9
mov dword [ebp - 8], 1
jmp 0x1002b5cd
and dword [ebp - 8], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
cmp dword [ebp - 8], 0
jne 0x1002b5ea
mov eax, 0xdda259c4
test eax, eax
jne 0x1002b5ea
and dword [ebp - 0x18], 0
jmp 0x1002b5f1
mov dword [ebp - 0x18], 1
imul eax, dword [ebp - 0x18], 0xd860
cmp eax, 1
ja 0x1002b606
mov dword [ebp - 0x1c], 1
jmp 0x1002b60a
and dword [ebp - 0x1c], 0
push 0
mov ecx, dword [ebp - 0xc]
call fcn.10027bb7
mov eax, dword [eax]
cmp eax, dword [ebp - 0x1c]
jle 0x1002b624
mov dword [ebp - 0x20], 1
jmp 0x1002b628
and dword [ebp - 0x20], 0
mov eax, dword [ebp - 4]
mov esi, dword [eax]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x20]
sub ecx, dword [eax]
add ecx, 0x1e2985c3
sub esi, ecx
push 0
mov ecx, dword [ebp - 0xc]
call fcn.10027bb7
cmp esi, dword [eax]
jle 0x1002b654
mov dword [ebp - 0x24], 1
jmp 0x1002b658
and dword [ebp - 0x24], 0
push 0
mov ecx, dword [ebp - 0xc]
call fcn.10027bb7
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [eax]
je 0x1002b672
mov dword [ebp - 0x28], 1
jmp 0x1002b676
and dword [ebp - 0x28], 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x28]
mov dword [eax], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1002c56a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1002c593
push 0x1c0b
push 0
push 0x24f8
push 0x18d
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x1002c5b2
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x1002c5b2
push 0
push 0
push 0xb60
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esp, ebp
pop ebp
ret
Function at 0x1002eaef
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1002ec89
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x28], eax
push 2
mov ecx, dword [ebp - 4]
call fcn.10027bb7
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0x4c], eax
push 0
mov ecx, dword [ebp - 4]
call fcn.10027bb7
cmp dword [eax], 0xfa55
jge 0x1002eb5f
mov dword [ebp - 0x10], 1
jmp 0x1002eb63
and dword [ebp - 0x10], 0
cmp dword [ebp - 0x10], 0xfffe
je 0x1002eb75
mov dword [ebp - 0x14], 1
jmp 0x1002eb79
and dword [ebp - 0x14], 0
imul eax, dword [ebp - 0x14], 0xfffffff9
test eax, eax
jne 0x1002eb90
mov eax, 0x7684593f
test eax, eax
jne 0x1002eb90
and dword [ebp - 0x44], 0
jmp 0x1002eb97
mov dword [ebp - 0x44], 1
push 2
mov ecx, dword [ebp - 4]
call fcn.10027bb7
mov eax, dword [ebp - 8]
imul eax, dword [eax], 0x3b26
cmp eax, 1
jbe 0x1002ebb8
mov dword [ebp - 0x18], 1
jmp 0x1002ebbc
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
add eax, 0x29e0465d
mov ecx, dword [ebp - 8]
cmp eax, dword [ecx]
jne 0x1002ebd4
mov dword [ebp - 0x1c], 1
jmp 0x1002ebd8
and dword [ebp - 0x1c], 0
push 0
mov ecx, dword [ebp - 4]
call fcn.10027bb7
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax]
jl 0x1002ebf2
mov dword [ebp - 0x20], 1
jmp 0x1002ebf6
and dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x28]
mov esi, dword [eax]
add esi, dword [ebp - 0x20]
push 1
mov ecx, dword [ebp - 4]
call fcn.10027bb7
sub esi, dword [eax]
push 2
mov ecx, dword [ebp - 4]
call fcn.10027bb7
cmp esi, dword [eax]
jg 0x1002ec21
mov dword [ebp - 0x24], 1
jmp 0x1002ec25
and dword [ebp - 0x24], 0
push 0
mov ecx, dword [ebp - 4]
call fcn.10027bb7
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [eax]
jl 0x1002ec3f
mov dword [ebp - 0xc], 1
jmp 0x1002ec43
and dword [ebp - 0xc], 0
push 0
mov ecx, dword [ebp - 4]
call fcn.10027bb7
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
cmp dword [ebp - 0xc], eax
jge 0x1002ec65
mov dword [ebp - 0x2c], 1
jmp 0x1002ec69
and dword [ebp - 0x2c], 0
cmp dword [ebp - 0x2c], 0x1449c9fb
jle 0x1002ec7b
mov dword [ebp - 0x30], 1
jmp 0x1002ec7f
and dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x30]
mov dword [eax], ecx
jmp 0x1002eca1
push 0
push 0x184d
push 0
push 0
push 0x20f5
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1003388f
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x100338b3
xor eax, eax
jmp 0x100339c3
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x100338d1
xor eax, eax
jmp 0x100339c3
push 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.100337a4
add esp, 0xc
cmp dword [ebp - 0xc], 0
jne 0x100338f0
xor eax, eax
jmp 0x100339c3
push dword [ebp - 0x10]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x6638
push dword [ebp - 8]
lea eax, [ebp - 4]
push eax
push 1
call fcn.1003360b
add esp, 0x1c
push dword [ebp - 4]
push dword [ebp + 8]
push 0
push dword [ebp - 8]
call fcn.1002b736
add esp, 0x10
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
sub ecx, dword [eax + 0x34]
mov dword [ebp - 0x1c], ecx
lea eax, [ebp - 4]
push eax
push 0x210a
lea eax, [ebp - 0x1c]
push eax
push 0x759e
push 1
call fcn.100337fb
add esp, 0x14
push dword [ebp - 4]
call fcn.10033132
pop ecx
test eax, eax
jne 0x1003395d
xor eax, eax
jmp 0x100339c3
push dword [ebp - 4]
push 1
call fcn.1002c5b6
pop ecx
pop ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [eax + 0x28], 0
je 0x100339ab
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x14], ecx
jne 0x10033988
xor eax, eax
jmp 0x100339c3
push 0
push 1
push 0xdeadbeef
call dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x100339a1
xor eax, eax
jmp 0x100339c3
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 1
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x100339bc
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
jmp 0x100339c0
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret
Function at 0x1003c1be
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1003c1eb
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x1003c1e9
push 0
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x1003c203
push 0
push 0x184d
push 0
push 0
push 0x20f5
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esp, ebp
pop ebp
ret
Function at 0x10047afa
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10047b1f
push 0
push 0x184d
push 0
push 0
push 0x20f5
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x10047b25
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
pop ebp
ret
Function at 0x10048e62
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push esi
movzx eax, byte [ebp + 0x1c]
test eax, eax
je 0x10048ffa
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0x20]
call fcn.10027bb7
mov ecx, dword [ebp - 0x54]
mov ecx, dword [ecx]
cmp dword [eax], ecx
jle 0x10048f00
mov dword [ebp - 4], 1
jmp 0x10048f04
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
cmp dword [ebp - 4], eax
jle 0x10048f1f
mov dword [ebp - 0x10], 1
jmp 0x10048f23
and dword [ebp - 0x10], 0
cmp dword [ebp - 0x10], 0x8af0
jge 0x10048f35
mov dword [ebp - 0x14], 1
jmp 0x10048f39
and dword [ebp - 0x14], 0
cmp dword [ebp - 0x14], 0
jb 0x10048f48
mov dword [ebp - 0x18], 1
jmp 0x10048f4c
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
cmp dword [ebp - 0x18], eax
jg 0x10048f5f
mov dword [ebp - 0x1c], 1
jmp 0x10048f63
and dword [ebp - 0x1c], 0
cmp dword [ebp - 0x1c], 0x7c694a6
jge 0x10048f75
mov dword [ebp - 0x5c], 1
jmp 0x10048f79
and dword [ebp - 0x5c], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0x20]
call fcn.10027bb7
cmp dword [eax], 0xca3eaa3e
ja 0x10048f9f
mov dword [ebp - 0x24], 1
jmp 0x10048fa3
and dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x60]
mov dword [eax], 0xe9c9
mov eax, dword [ebp - 0x64]
mov dword [eax], 0xe9c9
mov esi, dword [ebp - 0x24]
add esi, 0xe9c9
push 2
mov ecx, dword [ebp - 0x68]
call fcn.10027bb7
cmp esi, dword [eax]
jge 0x10048fd5
mov dword [ebp - 0x28], 1
jmp 0x10048fd9
and dword [ebp - 0x28], 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
cmp dword [ebp - 0x28], eax
jle 0x10048fec
mov dword [ebp - 0x2c], 1
jmp 0x10048ff0
and dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x2c]
mov dword [eax], ecx
jmp 0x10049007
push 0
push 0xf0b
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1007db75
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10089330]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.1006dfe4
mov dword [ebp - 0x14], eax
cmp dword [0x10676224], esi
jne 0x1007dc68
push 0x800
push esi
push 0x10007e5c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x1007dbf5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1007dd48
push esi
push esi
push 0x10007e5c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x1007dd48
push 0x10007e74
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1007dd48
push eax
call ebx
push 0x10007e80
push edi
mov dword [0x10676224], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007e90
push edi
mov dword [0x10676228], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007ea4
push edi
mov dword [0x1067622c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10676234], eax
test eax, eax
je 0x1007dc65
push 0x10007ec0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10676230], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1007dc8d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1007dc80
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x1007dca2
push 4
pop eax
jmp 0x1007dd4a
cmp dword [ebp - 0x14], esi
je 0x1007dca2
push dword [0x10676224]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1007dc87
mov eax, dword [0x10676230]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x1007dd00
cmp dword [0x10676234], edi
je 0x1007dd00
push eax
call ebx
push dword [0x10676234]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1007dd00
test eax, eax
je 0x1007dd00
call ecx
test eax, eax
je 0x1007dcf5
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x1007dcf5
test byte [ebp - 8], 1
jne 0x1007dd00
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x1007dd30
mov eax, dword [0x10676228]
cmp eax, edi
je 0x1007dd2d
push eax
call ebx
test eax, eax
je 0x1007dd2d
call eax
mov esi, eax
test esi, esi
je 0x1007dd2d
mov eax, dword [0x1067622c]
cmp eax, edi
je 0x1007dd2d
push eax
call ebx
test eax, eax
je 0x1007dd2d
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x10676224]
call ebx
test eax, eax
je 0x1007dd48
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x1007dd4a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call main
mov esp, ebp
pop ebp
ret
Function at 0x40e1c0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x499b6b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0048bf0e
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40e242
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004894fd
mov eax, dword [eax]
push 0x5291e0
push eax
call fcn.0047aca4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0048c199
test bl, bl
je 0x40e242
push 0x5291e0
lea ecx, [esp + 0xc]
call fcn.0048c575
push 0x52cd98
lea ecx, [esp + 0xc]
call fcn.0048c575
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40e27e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0048c199
jmp 0x40e349
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40e302
lea edx, [esp + 0x7c]
push 0x52cd94
push edx
call fcn.0047aca4
add esp, 8
test eax, eax
je 0x40e302
lea eax, [esp + 0x7c]
push 0x52cd90
push eax
call fcn.0047aca4
add esp, 8
test eax, eax
je 0x40e302
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40e292
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0048c199
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40f5c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40f622
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc