joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403a00
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x403ad0
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x403ad0
mov eax, dword [ebp + 0x10]
lea edi, [ebp - 0x20]
mov dword [esp + 0xc], 0x2001b
mov dword [esp + 0x10], edi
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
jne 0x403ae0
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
mov esi, eax
test eax, eax
je 0x403b60
mov eax, dword [ebp + 8]
mov edx, edi
mov dword [ebp - 0x1c], ebx
call dbg.read_value
mov esi, eax
test eax, eax
jne 0x403b00
mov eax, dword [params.value_name]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, esi
sub esp, 4
lea esp, [params.data]
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [params.data]
xor esi, esi
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x7e1
xor esi, esi
mov dword [esp], eax
call dbg.error_code_messagebox
lea esp, [params.data]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [params.type]
mov dword [esp + 8], 0
mov dword [esp + 0x14], eax
mov eax, dword [params.value_name]
mov dword [esp + 0x10], eax
mov eax, dword [params.hkey]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
mov esi, eax
test eax, eax
jne 0x403b80
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], ebx
mov ebx, dword [sym.imp.advapi32.dll_RegDeleteValueW]
mov dword [esp], eax
call ebx
sub esp, 8
test eax, eax
jne 0x403ba0
mov esi, 1
jmp 0x403aa7
mov eax, dword [ebp + 8]
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x7de
mov dword [esp], eax
call dbg.error_code_messagebox
jmp 0x403aa7
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x7e1
xor esi, esi
mov dword [esp], eax
call dbg.error_code_messagebox
jmp 0x403aa7
mov eax, dword [ebp + 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call ebx
mov eax, dword [ebp + 8]
sub esp, 8
mov dword [esp + 4], 0x7e1
mov dword [esp], eax
call dbg.error_code_messagebox
jmp 0x403aa7
Function at 0x4098b0
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [esp], 0
call dword [sym.imp.ucrtbase.dll_exit]
lea esi, [esi]
lea esi, [esi]

Function at 0x4098d0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov eax, 1
mov ebp, esp
mov edx, dword [ebp + 8]
lea ecx, [ebp + 0xc]
call dbg.output_formatstring
call dbg.error_exit
lea esi, [esi]
nop
Function at 0x40a060
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x18
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x28]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x24]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x20]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
mov eax, dword [ebx + 0x1c]
sub esp, 0x18
sub eax, 3
cmp eax, 1
jbe 0x40a0d0
xor eax, eax
cmp word [ebx + 0xc], 0
mov dword [ebx + 0x24], 0
setne al
mov dword [ebx + 0x28], 0
add eax, 1
mov dword [ebx + 0x30], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp - 4]
leave
ret
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x40a0a8

Function at 0x40a340
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 8
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
lea ebx, [eax + 2]
movzx eax, word [eax + 2]
cmp ax, 9
je 0x40a361
cmp ax, 0x20
jne 0x40a373
add ebx, 2
movzx eax, word [ebx]
cmp ax, 0x20
je 0x40a361
cmp ax, 9
je 0x40a361
test ax, ax
je 0x40a390
cmp ax, 0x3b
je 0x40a390
mov dword [esi + 0x30], 2
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
mov eax, dword [esi + 0x18]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x10]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegDeleteValueW]
mov dword [esi + 0x30], 2
mov eax, ebx
sub esp, 8
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x40a690
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x14
mov edi, dword [ebp + 8]
mov eax, dword [global_size.0]
test edi, edi
je 0x40a791
test eax, eax
je 0x40a7e0
mov ebx, dword [global_next.0]
test ebx, ebx
je 0x40a849
mov dword [esp + 4], 0x4128fe
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_wcspbrk]
test eax, eax
jne 0x40a81e
mov ecx, dword [global_next.0]
cmp word [ecx], 0
je 0x40a810
mov eax, ecx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x40a6f0
sub eax, ecx
mov edi, eax
mov ebx, eax
sar edi, 1
lea eax, [edi + edi + 2]
mov esi, dword [global_buf.0]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_memmove]
mov eax, dword [global_size.0]
mov ecx, eax
sub ecx, edi
cmp ecx, 2
jbe 0x40a7b0
mov ecx, edi
mov edx, dword [ebp + 8]
add ebx, esi
mov dword [esp + 4], 2
not ecx
mov dword [esp], ebx
add eax, ecx
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
call dword [sym.imp.ucrtbase.dll_fread]
test eax, eax
jne 0x40a770
mov dword [global_next.0], 0
mov ebx, dword [global_buf.0]
add esp, 0x14
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [global_buf.0]
add eax, edi
xor ecx, ecx
mov word [ebx + eax*2], cx
mov dword [global_next.0], ebx
test ebx, ebx
jne 0x40a6bf
mov eax, dword [global_size.0]
test eax, eax
jne 0x40a849
mov dword [global_size.0], 0
xor ebx, ebx
add esp, 0x14
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
lea ecx, [eax + eax]
shl eax, 2
mov dword [esp], esi
mov dword [global_size.0], ecx
mov dword [ebp - 0x10], ecx
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll_realloc]
mov ecx, dword [ebp - 0x10]
mov esi, eax
mov dword [global_buf.0], eax
mov eax, ecx
jmp 0x40a72e
mov dword [global_size.0], 0x1000
xor esi, esi
mov dword [esp], 0x2000
call dword [sym.imp.ucrtbase.dll_malloc]
mov ebx, eax
mov dword [global_buf.0], eax
mov word [eax], si
mov dword [global_next.0], eax
jmp 0x40a6bf
xor edi, edi
xor ebx, ebx
mov eax, 2
jmp 0x40a705
lea edx, [eax + 2]
cmp word [eax], 0xd
mov dword [global_next.0], edx
je 0x40a837
xor edx, edx
mov word [eax], dx
jmp 0x40a766
cmp word [eax + 2], 0xa
jne 0x40a82d
lea edx, [eax + 4]
mov dword [global_next.0], edx
jmp 0x40a82d
mov eax, dword [global_buf.0]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x40a799
Function at 0x40a860
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, edx
push esi
mov esi, eax
push ebx
sub esp, 0x10
mov dword [esp + 4], 0x412904
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_lstrcmpW]
sub esp, 8
test eax, eax
jne 0x40a950
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov ebx, eax
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__fileno]
mov dword [esp + 4], 0x8000
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__setmode]
mov dword [esp + 0xc], ebx
test edi, edi
je 0x40a920
mov dword [esp + 8], 2
mov esi, dword [sym.imp.ucrtbase.dll_fwrite]
mov dword [esp + 4], 1
mov dword [esp], global_bom
call esi
mov edx, 0x69
mov eax, global_header
jmp 0x40a8e9
movzx edx, word [eax + 2]
add eax, 2
test dx, dx
jne 0x40a8e5
sub eax, 0x4129c0
mov dword [esp + 0xc], ebx
sar eax, 1
mov dword [esp + 4], 2
mov dword [esp + 8], eax
mov dword [esp], global_header
call esi
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 0xa
mov dword [esp + 4], 1
mov dword [esp], str.REGEDIT4_r_n
call sym._fwrite
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 0x412908
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll__wfopen]
mov ebx, eax
test eax, eax
jne 0x40a8b2
mov dword [esp], 0x41290e
call dword [sym.imp.ucrtbase.dll__wperror]
mov dword [esp + 4], esi
mov dword [esp], 0xbbf
call dbg.output_message
call dbg.error_exit
jmp 0x40a8b2
Function at 0x40ae60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x14
mov eax, dword [global_lineW]
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x10], eax
call eax
mov edx, dword [ebp + 8]
mov eax, dword [global_size]
test edx, edx
je 0x40af61
test eax, eax
je 0x40afb1
mov ebx, dword [global_next]
test ebx, ebx
je 0x40b004
mov edi, ebx
mov dword [esp + 4], 0x412929
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_strpbrk]
test eax, eax
jne 0x40afe0
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, dword [global_buf]
mov dword [esp + 4], edi
mov esi, eax
lea eax, [eax + 1]
mov dword [esp + 8], eax
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_memmove]
mov edi, dword [global_size]
mov eax, edi
sub eax, esi
cmp eax, 2
jbe 0x40af90
mov eax, dword [ebp + 8]
add ebx, esi
mov dword [esp + 4], 1
mov dword [esp], ebx
mov dword [esp + 0xc], eax
mov eax, esi
not eax
lea edx, [eax + edi]
mov dword [esp + 8], edx
call dword [sym.imp.ucrtbase.dll_fread]
test eax, eax
jne 0x40af42
mov eax, dword [global_buf]
mov dword [global_next], 0
test eax, eax
je 0x40af35
call sym._GetWideString.part.2
mov dword [global_lineW], eax
add esp, 0x14
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [global_buf]
add esi, edi
mov dword [global_next], edi
mov byte [esi + eax], 0
test edi, edi
jne 0x40aea3
mov eax, dword [global_size]
mov dword [global_lineW], 0
test eax, eax
jne 0x40b00e
mov dword [global_size], 0
add esp, 0x14
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
add edi, edi
mov dword [esp], ebx
mov dword [global_size], edi
mov dword [esp + 4], edi
call dword [sym.imp.ucrtbase.dll_realloc]
mov ebx, eax
mov dword [global_buf], eax
jmp 0x40aef4
mov dword [global_size], 0x1000
mov dword [esp], 0x1000
call dword [sym.imp.ucrtbase.dll_malloc]
mov ebx, eax
mov dword [global_buf], eax
mov byte [eax], 0
mov dword [global_next], eax
jmp 0x40aea1
lea edx, [eax + 1]
cmp byte [eax], 0xd
mov ebx, edi
mov dword [global_next], edx
je 0x40b020
mov byte [eax], 0
mov eax, ebx
call sym._GetWideString.part.2
mov dword [global_lineW], eax
jmp 0x40af3a
mov dword [global_lineW], 0
mov eax, dword [global_buf]
mov dword [esp], eax
mov eax, dword [ebp - 0x10]
call eax
jmp 0x40af73
cmp byte [eax + 1], 0xa
jne 0x40aff0
lea edx, [eax + 2]
mov dword [global_next], edx
jmp 0x40aff0

Function at 0x40b360
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, edx
push ebx
mov ebx, eax
sub esp, 0x10
test ecx, ecx
je 0x40b3b0
cmp word [edx], 0
je 0x40b3e0
mov eax, edx
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x40b380
sub eax, esi
sar eax, 1
mov dword [esp + 0xc], ebx
mov dword [esp], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 2
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
test edx, edx
je 0x40b3bd
mov eax, edx
call sym._GetMultiByteString.part.7
mov esi, eax
mov dword [esp + 4], ebx
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fputs]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_free]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
xor eax, eax
jmp 0x40b38d
Function at 0x40bdc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x40bdf5
lea eax, [ebp - 0x42]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_fread]
cmp eax, 1
je 0x40be01
xor ebx, ebx
lea esp, [parser.backslash]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
movzx eax, byte [ebp - 0x42]
movzx edx, byte [ebp - 0x41]
xor esi, esi
mov dword [ebp - 0x48], dbg.get_lineA
cmp al, 0xff
jne 0x40be2c
xor ecx, ecx
mov edi, dbg.get_lineW
cmp dl, 0xfe
cmovne edi, dword [ebp - 0x48]
sete cl
mov dword [ebp - 0x48], edi
mov esi, ecx
mov ecx, dword [ebp - 0x48]
mov word [ebp - 0x3a], dx
mov edx, 0xffffffff
mov dword [ebp - 0x40], ebx
lea ebx, [ebp - 0x40]
mov word [ebp - 0x3c], ax
lea eax, [ebp - 0x3c]
mov word [parser.two_wchars], dx
mov edx, dbg.header_state
mov dword [parser.file], esi
mov dword [0x414d60], ecx
mov dword [parser.is_unicode], 0
mov dword [parser.reg_version], 0
mov dword [parser.hkey], 0
mov dword [parser.key_name], 0
mov dword [parser.value_name], 0
mov dword [parser.parse_type], 0
mov dword [parser.data_type], 0
mov dword [parser.data], 0
mov dword [parser.data_size], 0
jmp 0x40beaa
mov edx, dword [parser.data_size]
mov edx, dword [edx*4 + 0x412ac0]
mov dword [esp + 4], eax
mov dword [esp], ebx
call edx
test eax, eax
jne 0x40bea0
movzx eax, word [parser.two_wchars]
lea edx, [eax - 3]
cmp dx, 1
jbe 0x40bf10
mov eax, dword [parser.hkey]
mov esi, dword [sym.imp.ucrtbase.dll_free]
mov ebx, 1
mov dword [esp], eax
call esi
mov eax, dword [parser.is_unicode]
test eax, eax
je 0x40bdf7
mov eax, dword [parser.reg_version]
mov dword [esp], eax
call esi
mov eax, dword [parser.is_unicode]
mov dword [parser.reg_version], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, ebx
sub esp, 4
lea esp, [parser.backslash]
pop ebx
pop esi
pop edi
pop ebp
ret
xor ebx, ebx
cmp ax, 3
sete bl
lea esp, [parser.backslash]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40e360
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov eax, dword [0x414d64]
mov ebp, esp
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
test eax, eax
jne 0x40e390
mov eax, 1
test byte [edx + 0x40], 0x40
je 0x40e380
pop ebp
ret
mov edx, dword [edx + 0x3c]
mov eax, ecx
pop ebp
jmp sym._UpdateExpandingTree.part.1
xor eax, eax
pop ebp
ret

Function at 0x40e7c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_strlen]
mov esi, eax
xor eax, eax
test esi, esi
je 0x40e818
cmp byte [ebx + esi - 1], 0xa
je 0x40e7ec
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x414e04], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x40ee30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp], eax
call dbg.__wine_dbg_get_channel_flags
movzx eax, al
bt eax, esi
jae 0x40eff4
mov edx, dword fs:[0x18]
xor eax, eax
mov edi, dword [0x414e04]
cmp dword [edx + 0x24], edi
je 0x40ef17
test byte [0x4103e0], 8
jne 0x40efa0
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x4103f0], 8
jne 0x40ef63
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call dbg.sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x40eeb9
cmp esi, 3
jbe 0x40ef22
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov ecx, ebx
mov edi, eax
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
and edx, 0x80808080
je 0x40eeca
mov esi, edx
mov dword [esp + 0xc], edi
shr esi, 0x10
test edx, 0x8080
mov dword [esp + 4], 1
cmove edx, esi
lea esi, [ecx + 2]
mov dword [esp], ebx
cmove ecx, esi
mov eax, edx
add al, dl
sbb ecx, 3
sub ecx, ebx
mov dword [esp + 8], ecx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x412c80]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.2
jmp 0x40eeb9
mov dword [esp], 0x4103f0
call dbg.__wine_dbg_get_channel_flags
test al, 8
je 0x40ee90
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call dbg.sprintf
add edi, eax
jmp 0x40ee90
mov dword [esp], 0x4103e0
call dbg.__wine_dbg_get_channel_flags
test al, 8
je 0x40ee7b
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call dbg.sprintf
lea edi, [ebx + eax]
jmp 0x40ee83
mov eax, 0xffffffff
jmp 0x40ef17

Function at 0x40f0d0
Capabilities:
Accept command line arguments
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov ebx, dword [eax]
call sym.___p___wargv
mov esi, dword [eax]
call sym.__get_initial_wide_environment
mov edi, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov edx, dword [eax + 8]
mov eax, dword [edx + 0x3c]
cmp word [edx + eax + 0x5c], 2
sete dl
movzx edx, dl
add edx, 1
mov dword [esp], edx
call sym.__set_app_type
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call dbg.wmain
mov dword [esp], eax
call sym._exit
nop
nop
nop
Function at 0x40f140
Capabilities:
Accept command line arguments
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x58
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x40f1c6
cmp ax, 9
je 0x40f1b4
cmp ax, 0x20
je 0x40f1b4
mov dword [ebp - 0x54], 0
xor edi, edi
nop
cmp ax, 0x5c
je 0x40f212
cmp ax, 0x22
je 0x40f220
mov dword [ebp - 0x54], 0
add ebx, 2
movzx eax, word [ebx]
test ax, ax
je 0x40f1c6
cmp ax, 9
sete cl
cmp ax, 0x20
mov esi, ecx
sete cl
mov edx, esi
or dl, cl
je 0x40f170
test edi, 1
jne 0x40f170
add ebx, 2
movzx eax, word [ebx]
cmp ax, 9
je 0x40f1b4
cmp ax, 0x20
je 0x40f1b4
lea eax, [ebp - 0x50]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x24], 1
je 0x40f232
movzx esi, word [ebp - 0x20]
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 ebx
pop esi
pop edi
pop ebp
ret
add dword [ebp - 0x54], 1
jmp 0x40f18b
and dword [ebp - 0x54], 1
jne 0x40f184
xor edi, 1
jmp 0x40f18b
mov eax, 1
mov esi, 1
mov word [ebp - 0x20], ax
jmp 0x40f1df
Function at 0x40fc83
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a794]
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.0040b148
mov dword [ebp - 0x14], eax
cmp dword [0x814e88], esi
jne 0x40fd76
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40fd03
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40fe56
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40fe56
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40fe56
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x814e88], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x814e8c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x814e90], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x814e98], eax
test eax, eax
je 0x40fd73
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x814e94], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40fd9b
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40fd8e
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40fdb0
push 4
pop eax
jmp 0x40fe58
cmp dword [ebp - 0x14], esi
je 0x40fdb0
push dword [0x814e88]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40fd95
mov eax, dword [0x814e94]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40fe0e
cmp dword [0x814e98], edi
je 0x40fe0e
push eax
call ebx
push dword [0x814e98]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40fe0e
test eax, eax
je 0x40fe0e
call ecx
test eax, eax
je 0x40fe03
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 0x40fe03
test byte [ebp - 8], 1
jne 0x40fe0e
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40fe3e
mov eax, dword [0x814e8c]
cmp eax, edi
je 0x40fe3b
push eax
call ebx
test eax, eax
je 0x40fe3b
call eax
mov esi, eax
test esi, esi
je 0x40fe3b
mov eax, dword [0x814e90]
cmp eax, edi
je 0x40fe3b
push eax
call ebx
test eax, eax
je 0x40fe3b
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x814e88]
call ebx
test eax, eax
je 0x40fe56
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40fe58
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404609
mov esp, ebp
pop ebp
ret