joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402380
Capabilities:
Get graphical window text

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
mov eax, 0x1018
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
call fcn.0040b6b8
sub esp, eax
mov eax, dword [ecx + 4]
mov ebx, dword [ecx]
mov edx, dword [ecx + 8]
mov esi, dword [ecx + 0xc]
cmp eax, 0x110
je 0x402448
cmp eax, 0x111
je 0x4023d0
xor eax, eax
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
cmp edx, 2
je 0x402508
cmp edx, 0xfe
je 0x402490
cmp edx, 1
jne 0x402481
mov dword [esp + 4], 0xffffffeb
mov dword [esp], ebx
call sym._GetWindowLongW_8
sub esp, 8
mov esi, eax
mov dword [esp + 4], 0xc9
mov dword [esp], ebx
call sym._GetDlgItem_8
sub esp, 8
mov dword [esp + 8], 0x104
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._GetWindowTextW_12
sub esp, 0xc
mov dword [esp + 4], 1
mov dword [esp], ebx
call sym._EndDialog_8
sub esp, 8
jmp 0x402481
mov dword [esp + 8], esi
mov dword [esp + 4], 0xffffffeb
mov dword [esp], ebx
call sym._SetWindowLongW_12
sub esp, 0xc
mov dword [esp + 4], 0xc9
mov dword [esp], ebx
call sym._GetDlgItem_8
sub esp, 8
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._SetWindowTextW_8
sub esp, 8
mov eax, 1
jmp 0x4023bc
lea edi, [ebp - 0x818]
mov dword [esp + 0xc], 0x400
lea esi, [ebp - 0x1018]
mov dword [esp + 8], edi
mov dword [esp + 4], 0x4b0
mov eax, dword [0x414020]
mov dword [esp], eax
call sym._LoadStringW_16
sub esp, 0x10
mov dword [esp + 0xc], 0x400
mov dword [esp + 8], esi
mov dword [esp + 4], 0x4b7
mov eax, dword [0x414020]
mov dword [esp], eax
call sym._LoadStringW_16
sub esp, 0x10
mov dword [esp + 0xc], 0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._MessageBoxW_16
sub esp, 0x10
jmp 0x402481
mov dword [esp + 4], 2
mov dword [esp], ebx
call sym._EndDialog_8
sub esp, 8
jmp 0x402481

Function at 0x402750
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
mov esi, edx
push ebx
sub esp, 0x1c
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x18f
mov eax, dword [eax]
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
mov ebx, eax
mov dword [esp + 4], 0
mov eax, dword [edi]
add ebx, 1
mov dword [esp], eax
call sym._ShowWindow_8
sub esp, 8
jmp 0x4027c9
mov ecx, dword [esi + 0x14]
cmp dword [eax + 0x14], ecx
jle 0x4027f2
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x182
mov eax, dword [edi]
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x199
mov eax, dword [edi]
mov dword [esp], eax
call sym._SendMessageW_16
lea edx, [eax + 1]
sub esp, 0x10
cmp edx, 1
ja 0x4027a0
mov dword [esi + 0xc], 0
mov dword [esp + 4], 5
mov eax, dword [edi]
mov dword [esp], eax
call sym._ShowWindow_8
sub esp, 8
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x402820
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x2c
mov dword [esp + 4], 0
mov eax, dword [eax]
mov dword [esp], eax
call sym._ShowWindow_8
sub esp, 8
test ebx, ebx
je 0x40291a
mov eax, dword [ebp + 8]
and eax, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
and eax, 0xe
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 0x18]
mov edx, dword [esi + 0x84]
and eax, 0x10
test edx, edx
jne 0x402940
test eax, eax
je 0x402880
test byte [ebp + 8], 1
je 0x402910
test edi, edi
je 0x402892
lea eax, [ebx + 0x44]
mov edx, edi
call dbg.pattern_imatch
test eax, eax
je 0x402910
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
jne 0x40289f
test byte [ebx + 0x18], 6
jne 0x402910
cmp dword [ebp - 0x20], 0xe
je 0x4028c8
lea eax, [ebx + 0x44]
call dbg.get_file_type
cmp eax, 1
je 0x4029b0
cmp eax, 2
je 0x402970
test byte [ebp + 8], 8
je 0x402910
lea esi, [esi]
cmp dword [ebp + 0xc], 0xffffffff
mov eax, 0xffffffff
je 0x4028da
add dword [ebp + 0xc], 1
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], 0x181
mov eax, dword [esi]
mov dword [esp], eax
call sym._SendMessageW_16
mov edx, dword [esi + 0x84]
sub esp, 0x10
test edx, edx
je 0x402910
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x402980
lea esi, [esi]
nop
mov ebx, dword [ebx]
test ebx, ebx
jne 0x40285e
mov dword [esp + 4], 5
mov eax, dword [esi]
mov dword [esp], eax
call sym._ShowWindow_8
mov eax, dword [ebp + 0xc]
sub esp, 8
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test eax, eax
je 0x402910
cmp word [ebx + 0x44], 0x2e
jne 0x402880
movzx eax, word [ebx + 0x46]
test ax, ax
je 0x402910
cmp ax, 0x2e
jne 0x402880
cmp word [ebx + 0x48], 0
jne 0x402880
jmp 0x402910
test byte [ebp + 8], 4
jne 0x4028c8
jmp 0x402910
mov edx, dword [ebx + 4]
test edx, edx
je 0x402910
mov eax, dword [ebp + 0xc]
mov ecx, edi
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, esi
call sym._insert_entries.part.0
mov ebx, dword [ebx]
mov dword [ebp + 0xc], eax
test ebx, ebx
jne 0x40285e
jmp 0x40291a
test byte [ebp + 8], 2
jne 0x4028c8
jmp 0x402910
Function at 0x402d50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
mov esi, eax
push ebx
mov ebx, ecx
sub esp, 0x64c
mov eax, dword [eax + 0x90]
mov dword [ebp - 0x62c], edx
lea edx, [ebp - 0x220]
call dbg.get_path
lea eax, [ebp - 0x220]
mov dword [esp + 0xc], dbg.DestinationDlgProc
mov dword [esp + 0x10], eax
mov eax, dword [esi]
mov dword [esp + 4], 0x68
mov dword [esp + 8], eax
mov eax, dword [0x414020]
mov dword [esp], eax
call sym._DialogBoxParamW_20
sub esp, 0x14
cmp eax, 1
je 0x402dc0
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebp - 0x62c]
mov edi, eax
mov eax, dword [esi + 0x90]
call dbg.get_path
xor eax, eax
cmp word [ebp - 0x220], 0x2f
je 0x402df0
cmp word [ebp - 0x21e], 0x3a
jne 0x402e88
lea esi, [esi]
movzx edx, word [ebp + eax - 0x220]
mov word [ebx + eax], dx
add eax, 2
test dx, dx
jne 0x402df0
lea eax, [ebp - 0x220]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
sub esp, 4
cmp eax, 0xffffffff
je 0x402dae
test al, 0x10
je 0x402dae
lea esi, [ebp - 0x620]
lea eax, [ebp - 0x420]
mov dword [esp + 8], 0
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x62c]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wsplitpath]
lea eax, [ebp - 0x420]
mov dword [esp], ebx
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x220]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], global_sAppend
call sym._wsprintfW
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esi + 0x90]
mov edx, ebx
mov eax, dword [eax + 8]
call dbg.get_path
cmp word [ebx], 0
mov eax, ebx
je 0x402ef1
add eax, 2
cmp word [eax], 0
jne 0x402ea0
mov edx, eax
sub edx, ebx
lea esi, [edx - 2]
sar edx, 1
movzx esi, word [ebx + esi]
cmp si, 0x5c
je 0x402ecd
cmp si, 0x2f
je 0x402ecd
mov ecx, 0x2f
add edx, 1
mov word [eax], cx
lea esi, [ebx + edx*2]
xor eax, eax
lea esi, [esi]
movzx edx, word [ebp + eax - 0x220]
mov word [esi + eax], dx
add eax, 2
test dx, dx
jne 0x402ed8
jmp 0x402e04
xor edx, edx
mov esi, 0xfffffffe
jmp 0x402eb2
Function at 0x403c40
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
mov esi, ecx
push ebx
mov ebx, edx
sub esp, 0x22c
cmp dword [eax + 0x2a0], 1
mov edx, dword [ebp + 8]
je 0x403d20
mov edx, ebx
call dbg.read_directory_win
mov edx, dword [0x414868]
test edx, edx
je 0x403d04
movzx eax, word [ebx]
test ax, ax
je 0x403daf
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x22c], ecx
nop
add ebx, 2
mov word [ecx], ax
add ecx, 2
movzx eax, word [ebx]
test ax, ax
jne 0x403c90
mov ebx, dword [edi + 4]
mov eax, 0x5c
mov word [ecx], ax
test ebx, ebx
je 0x403d04
mov dword [ebp - 0x230], edi
mov edi, ebx
mov ebx, ecx
jmp 0x403cc6
mov edi, dword [edi]
test edi, edi
je 0x403cfe
test byte [edi + 0x18], 0x10
je 0x403cc0
xor eax, eax
nop
movzx edx, word [edi + eax + 0x44]
mov word [ebx + eax + 2], dx
add eax, 2
test dx, dx
jne 0x403cd0
mov edx, dword [ebp - 0x22c]
mov eax, edi
call dbg.read_directory_win
mov eax, edi
mov edx, esi
call dbg.SortDirectory
mov edi, dword [edi]
test edi, edi
jne 0x403cc6
mov edi, dword [ebp - 0x230]
add esp, 0x22c
mov edx, esi
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
jmp dbg.SortDirectory
mov dword [ebp - 0x22c], edx
call dbg.read_directory_shell
mov eax, dword [0x414868]
test eax, eax
je 0x403d04
movzx ecx, word [ebx]
mov edx, dword [ebp - 0x22c]
lea eax, [ebp - 0x220]
test cx, cx
je 0x403d61
lea esi, [esi]
nop
add ebx, 2
mov word [eax], cx
add eax, 2
movzx ecx, word [ebx]
test cx, cx
jne 0x403d50
mov ebx, dword [edi + 4]
mov ecx, 0x5c
mov word [eax], cx
test ebx, ebx
je 0x403d04
mov dword [ebp - 0x22c], edi
mov edi, ebx
mov ebx, edx
jmp 0x403d86
mov edi, dword [edi]
test edi, edi
je 0x403da4
test byte [edi + 0x18], 0x10
je 0x403d80
mov eax, edi
mov edx, ebx
call dbg.read_directory_shell
mov eax, edi
mov edx, esi
call dbg.SortDirectory
mov edi, dword [edi]
test edi, edi
jne 0x403d86
mov edi, dword [ebp - 0x22c]
jmp 0x403d04
lea eax, [ebp - 0x220]
mov dword [ebp - 0x22c], eax
mov ecx, eax
jmp 0x403ca1
Function at 0x406f80
Capabilities:
Set current directory

Disassembly:
test edx, edx
je 0x407060
push ebp
mov ebp, esp
push esi
mov esi, edx
push ebx
mov ebx, eax
xor eax, eax
sub esp, 0x220
mov dword [ebx + 0x94], edx
mov word [ebp - 0x210], ax
mov eax, dword [edx + 4]
mov dword [ebx + 0x128], edx
test eax, eax
cmove eax, edx
mov dword [ebx + 0x124], eax
mov edx, dword [edx + 0x10]
test edx, edx
je 0x407028
mov eax, ebx
call dbg.refresh_right_pane
mov eax, esi
lea edx, [ebp - 0x210]
call dbg.get_path
xor eax, eax
lea esi, [esi]
nop
movzx edx, word [ebp + eax - 0x210]
mov word [ebx + eax + 0x164], dx
add eax, 2
test dx, dx
jne 0x406fe0
mov eax, dword [ebx]
test eax, eax
je 0x407013
lea ecx, [ebp - 0x210]
mov dword [esp], eax
mov dword [esp + 4], ecx
call sym._SetWindowTextW_8
sub esp, 8
cmp word [ebp - 0x210], 0
jne 0x407040
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov eax, dword [ebp + 8]
mov edx, esi
mov dword [esp], eax
mov eax, ebx
call dbg.scan_entry
jmp 0x406fc8
lea eax, [ebp - 0x210]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryW]
sub esp, 4
test eax, eax
je 0x40701d
call dbg.set_space_status
jmp 0x40701d
ret
Function at 0x40b500
Capabilities:
Accept command line arguments
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 al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call dbg.wmain
mov dword [esp], eax
call sym._exit

Function at 0x40b570
Capabilities:
Accept command line arguments
Encrypt data using rc4 prga

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x6c
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x40b5d7
xor ecx, ecx
xor edx, edx
jmp 0x40b5b9
cmp ax, 0x5c
jne 0x40b648
add edx, 1
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x40b5d7
cmp ax, 9
je 0x40b5c5
cmp ax, 0x20
jne 0x40b5a0
test ecx, ecx
je 0x40b633
movzx eax, word [ebx + 2]
add ebx, 2
xor edx, edx
test ax, ax
jne 0x40b5b9
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x30], 1
je 0x40b668
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call dbg.wWinMain@16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
add ebx, 2
movzx eax, word [ebx]
cmp ax, 9
je 0x40b630
cmp ax, 0x20
je 0x40b630
jmp 0x40b5d7
cmp ax, 0x22
jne 0x40b5c9
and edx, 1
jne 0x40b5c9
xor ecx, 1
jmp 0x40b5ad
mov eax, 1
mov esi, 1
mov word [ebp - 0x2c], ax
jmp 0x40b5f0
Function at 0x4bc17c
Capabilities:
Encode data using xor

Disassembly:
push esp
xchg dword [esp], ebp
sub ebp, 4
sub esp, 0x28
adc dword [ecx - 0x54], 0xffffffd8
lea ebx, [0x4be138]
push edi
mov edi, esp
push edi
push 0x40
push 0xa1c
push 0x4be218
mov edi, 0x65fd65a5
push dword [edi - 0x65b19599]
mov edi, sym.imp.KERNEL32.dll_LoadLibraryW
pop dword [edi]
call sub.KERNEL32.dll_LoadLibraryW
add esp, 4
xor ecx, ecx
dec ecx
and ecx, 0x4be218
mov dword [ebx - 0x108], ecx
mov edi, ecx
xor ecx, ecx
xor ecx, 0x4bd60b
mov esi, 0x61c
mov edx, dword [ecx]
add ecx, 4
push edx
pop dword [edi]
or eax, esi
add dword [edi], 0x7ad3ea56
xor dword [edi], 0x8dc3469c
add edi, 4
sub esi, 4
cmp esi, 0
jne 0x4bc1d8
mov eax, 0
push eax
call sub.KERNEL32.dll_GlobalFree
add esp, 0x28
pop ebp
ret 8
Function at 0x403ef7
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
cld
xor edx, edx
mov edx, dword fs:[edx + 0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
push 0x18
pop ecx
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x403f25
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x403f1c
cmp edi, 0x6a4abc5b
mov ebx, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x403f14
mov eax, ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x403f46
mov esp, ebp
pop ebp
ret

Function at 0x403f4a
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
add esp, 0xffffffec
push esi
push ebx
push edi
push edx
push ecx
mov eax, dword [ebp + 0x10]
xor edx, edx
xchg edx, eax
mov esi, 0x3c
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov esi, dword [eax + 0x78]
add esi, 0x18
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
add esi, 4
lea edi, [ebp - 8]
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
stosd dword es:[edi], eax
mov dword [ebp - 8], eax
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
push eax
stosd dword es:[edi], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
pop esi
mov dword [ebp - 4], 0
push esi
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
xchg edi, eax
mov ebx, edi
push edi
xor al, al
scasb al, byte es:[edi]
jne 0x403fb6
pop esi
sub edi, ebx
push edx
cld
xor ecx, ecx
dec ecx
mov edx, ecx
xor eax, eax
xor ebx, ebx
lodsb al, byte [esi]
xor al, cl
mov cl, ch
mov ch, dl
mov dl, dh
mov dh, 8
shr bx, 1
rcr ax, 1
jae 0x403fe3
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x403fd2
xor ecx, eax
xor edx, ebx
dec edi
jne 0x403fc3
not edx
not ecx
mov eax, edx
rol eax, 0x10
mov ax, cx
pop edx
cmp edx, eax
je 0x404009
pop esi
add esi, 4
add dword [ebp - 4], 1
jmp 0x403faa
pop esi
mov eax, dword [ebp - 4]
shl eax, 1
add eax, dword [ebp - 0x10]
xor esi, esi
xchg esi, eax
mov ax, word [esi]
shl ax, 2
add eax, dword [ebp - 8]
xchg esi, eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
pop ecx
pop edx
pop edi
pop ebx
pop esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x404035
mov esp, ebp
pop ebp
ret 0xc
Function at 0x404b1a
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x404b2a
sub esp, 0x38
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
cmp dword [ebp + 8], 0
jle 0x404b7f
push dword [ebp + 8]
call fcn.00404d2b
mov dword [ebp - 0x24], eax
cmp word [ebp - 0x24], 0x5a4d
jne 0x404b7f
xor eax, eax
jmp 0x404b84
mov eax, 1
test eax, eax
je 0x404b96
mov eax, 0
jmp 0x404d25
push 0x3c
push dword [ebp + 8]
call fcn.00404d6d
push eax
call fcn.00404d47
push eax
push dword [ebp + 8]
call fcn.00404d6d
mov dword [ebp - 4], eax
push dword [ebp - 4]
call fcn.00404d47
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x4550
jne 0x404bf1
push 0x7c
push dword [ebp - 4]
call fcn.00404d6d
push eax
call fcn.00404d47
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x404bf1
xor eax, eax
jmp 0x404bf6
mov eax, 1
test eax, eax
je 0x404c08
mov eax, 0
jmp 0x404d25
push 0x78
push dword [ebp - 4]
call fcn.00404d6d
push eax
call fcn.00404d47
push eax
push dword [ebp + 8]
call fcn.00404d6d
mov dword [ebp - 8], eax
push 0x20
push dword [ebp - 8]
call fcn.00404d6d
push eax
call fcn.00404d47
push eax
push dword [ebp + 8]
call fcn.00404d6d
push eax
call fcn.00404d47
push eax
push dword [ebp + 8]
call fcn.00404d6d
mov dword [ebp - 0xc], eax
push 0x18
push dword [ebp - 8]
call fcn.00404d6d
push eax
call fcn.00404d47
mov dword [ebp - 0x10], eax
push 1
push dword [ebp - 0x10]
call fcn.00404d94
push eax
lea eax, [ebp - 0x10]
mov ebx, eax
mov ecx, 0
pop edx
push edx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, edx
jg 0x404d18
push dword [ebp - 0x18]
push dword [ebp - 0xc]
call fcn.00404d6d
mov dword [ebp - 0x14], eax
push dword [ebp + 0xc]
push dword [ebp - 0x14]
call fcn.00404dbb
test eax, eax
je 0x404cfb
push 0x1c
push dword [ebp - 8]
call fcn.00404d6d
push eax
call fcn.00404d47
push eax
push dword [ebp + 8]
call fcn.00404d6d
mov dword [ebp - 0x24], eax
push 4
push dword [ebp - 0x10]
call fcn.00404def
push eax
push dword [ebp - 0x24]
call fcn.00404d6d
push eax
call fcn.00404d47
push eax
push dword [ebp + 8]
call fcn.00404d6d
jmp 0x404d25
push dword [ebp - 0x14]
call fcn.00404e17
push eax
push dword [ebp - 0x18]
call fcn.00404d6d
mov dword [ebp - 0x18], eax
pop ebx
pop ecx
pop edx
inc ecx
jmp 0x404c84
add esp, 0xc
mov eax, 0
jmp 0x404d25
mov esp, ebp
pop ebp
ret 8
Function at 0x438a10
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4cad5b
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.004bf6ee
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x438a92
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004bd5c8
mov eax, dword [eax]
push 0x518cd8
push eax
call fcn.004ac8f4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004bf979
test bl, bl
je 0x438a92
push 0x518cd8
lea ecx, [esp + 0xc]
call fcn.004bfd09
push 0x518ce4
lea ecx, [esp + 0xc]
call fcn.004bfd09
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 0x438ace
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004bf979
jmp 0x438b99
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 0x438b52
lea edx, [esp + 0x7c]
push 0x518ce0
push edx
call fcn.004ac8f4
add esp, 8
test eax, eax
je 0x438b52
lea eax, [esp + 0x7c]
push 0x518cdc
push eax
call fcn.004ac8f4
add esp, 8
test eax, eax
je 0x438b52
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 0x438ae2
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.004bf979
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 0x439390
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 0x4393f2
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
Function at 0x439400
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4caddb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x5d1ba8]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x439538
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x439466
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004bf979
xor eax, eax
jmp 0x4395af
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004bfab6
push esi
lea ecx, [esp + 0xc]
call fcn.004bfd45
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x43958d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push connect
call fcn.00439390
test eax, eax
jne 0x43958d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push connect
mov ecx, edi
call fcn.00439390
test eax, eax
jne 0x43958d
lea eax, [esp + 0x14]
push 0x518cf4
push eax
call fcn.004ada60
mov esi, eax
add esp, 8
test esi, esi
jne 0x43956c
lea ecx, [esp + 0x14]
push 0x518cf0
push ecx
call fcn.004ad9e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x43956c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x43956f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004bfa66
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x43947e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004bf979
xor eax, eax
jmp 0x4395af
mov byte [esi], 0
push 0x518cec
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.004bf979
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4