joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402070
Capabilities:
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push 0x40652c
push dword [ebp + 0xc]
mov edi, edx
mov esi, ecx
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
add esp, 8
mov dword [ebp - 8], eax
test eax, eax
jne 0x4020bc
push str.fopen_dump__failed_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401050
add esp, 8
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov edx, dword [ebp + 8]
mov ebx, edi
lea eax, [edi + edx]
mov dword [ebp - 0x10], eax
cmp edi, eax
jae 0x40219b
nop
mov ecx, edi
mov byte [ebp - 0x1d], bl
sub ecx, ebx
mov dword [ebp - 0x18], 0
add ecx, edx
mov eax, ebx
cmp ecx, dword [ebp + 0x10]
mov edx, 6
push 0xc
cmova ecx, dword [ebp + 0x10]
shr eax, 0x18
mov byte [ebp - 0x20], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp - 0x1f], al
mov eax, ebx
shr eax, 8
mov byte [ebp - 0x1e], al
mov eax, ecx
shr eax, 0x18
mov byte [ebp - 0x1c], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp - 0x1b], al
mov eax, ecx
shr eax, 8
mov byte [ebp - 0x1a], al
lea eax, [ebp - 0x20]
mov dword [ebp - 0xc], ecx
mov byte [ebp - 0x19], cl
mov ecx, esi
push eax
call fcn.00401550
add esp, 8
mov ecx, esi
call fcn.00401680
mov ecx, esi
call fcn.00401790
mov ecx, esi
call fcn.00401af0
cmp eax, 0x93
jne 0x402214
mov ecx, dword [esi]
mov edi, dword [ebp - 0xc]
movzx esi, byte [ecx + 2]
movzx eax, byte [ecx + 3]
shl esi, 8
or esi, eax
cmp edi, esi
jb 0x4021f3
push dword [ebp - 8]
lea eax, [ecx + 4]
push esi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp eax, esi
jne 0x4021d2
mov edx, dword [ebp + 8]
add ebx, esi
cmp edi, esi
mov edi, dword [ebp - 4]
jne 0x40219b
mov esi, dword [ebp - 0x14]
cmp ebx, dword [ebp - 0x10]
jb 0x4020d0
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov eax, ebx
sub eax, edi
push eax
push edx
push edi
push str.dump_mem:_0x_08x__target:_0x_x__read:_0x_x_n
push 2
call esi
add esp, 4
push eax
call fcn.00401050
add esp, 0x14
push dword [ebp - 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.fwrite_dump__failed_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401050
add esp, 8
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push str.unexpected_length_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401050
add esp, 8
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push eax
push str.unexpected_response__0x_04x__n
push 2
call esi
add esp, 4
push eax
call fcn.00401050
mov edx, dword [ebp + 8]
add esp, 0xc
jmp 0x4021a1
Function at 0x402240
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x58
lea eax, [ebp - 0x60]
mov esi, edx
push 0
push eax
mov edi, ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor edx, edx
nop dword [eax]
cmp edx, 0x24
jae 0x40230b
mov al, byte [edx + esi]
movsx ecx, al
mov byte [ebp + edx*2 - 0x60], al
mov eax, ecx
sar eax, 8
mov byte [ebp + edx*2 - 0x5f], al
inc edx
test ecx, ecx
jne 0x402270
mov edx, dword [ebp + 8]
mov ecx, edx
mov ebx, dword [ebp + 0xc]
mov eax, ebx
shrd ecx, eax, 8
mov eax, ebx
mov byte [ebp - 0x18], dl
mov byte [ebp - 0x17], cl
mov ecx, edx
shrd ecx, eax, 0x10
mov eax, ebx
shrd edx, eax, 0x18
mov byte [ebp - 0x16], cl
mov byte [ebp - 0x15], dl
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x4022d9
mov eax, ebx
mov byte [ebp - 0x14], bl
shr eax, 8
mov byte [ebp - 0x13], al
mov eax, ebx
shr eax, 0x10
shr ebx, 0x18
mov byte [ebp - 0x12], al
mov byte [ebp - 0x11], bl
test edx, edx
mov ecx, 0x58
mov edx, dword [ebp + 0x14]
mov eax, 0x4c
cmovne eax, ecx
mov ecx, edi
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00401550
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00404e5a
mov esp, ebp
pop ebp
ret
push str.name_too_long_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401050
add esp, 8
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x403490
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
lea eax, [ebp - 8]
push esi
push eax
push ecx
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoull]
mov ecx, dword [ebp - 8]
add esp, 0xc
mov edi, eax
mov ebx, edx
mov cl, byte [ecx]
test cl, cl
je 0x403551
movsx ecx, cl
push ecx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
add esp, 4
cmp al, 0x6b
jne 0x4034dd
mov esi, 0xa
jmp 0x4034f1
cmp al, 0x6d
jne 0x4034e8
mov esi, 0x14
jmp 0x4034f1
cmp al, 0x67
jne 0x403530
mov esi, 0x1e
mov ecx, 0x3f
mov eax, edi
sub ecx, esi
mov edx, ebx
call fcn.00405ca0
mov ecx, eax
or ecx, edx
je 0x403551
not eax
not edx
or eax, edx
je 0x403551
push str.size_overflow_on_multiply_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401050
add esp, 8
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push str.unknown_size_suffix_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401050
add esp, 8
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov eax, edi
mov edx, ebx
mov ecx, esi
call fcn.00405c80
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404e5a
mov esp, ebp
pop ebp
ret
Function at 0x403a7d
Capabilities:
Allocate or change rwx memory
Read .ini file

Disassembly:
mov eax, 0x447e0b
call fcn.00447d18
sub esp, 0x178
push ebx
push esi
mov eax, 0xb2d3b
add dword [0x487314], eax
xor ebx, ebx
cmp dword [0x487314], 0x20a
jne 0x403b10
push edi
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push ebx
call dword [sym.imp.USER32.dll_ChildWindowFromPoint]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasW]
lea eax, [ebp - 0x184]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0x402c08
push ebx
push 0x402c2c
push 0x402c54
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
call fcn.00403030
lea eax, [ebp - 0x3c]
call fcn.00403d4d
push ebx
mov dword [ebp - 4], ebx
call fcn.00404be2
push ebx
push ebx
push ebx
call fcn.004051dd
or dword [ebp - 4], 0xffffffff
add esp, 0x10
lea edi, [ebp - 0x3c]
call fcn.00403d72
pop edi
xor eax, eax
cmp eax, 0xf027935
jg 0x403b21
inc eax
cmp eax, 0x736251e2
jl 0x403b12
push 0x45ab08
mov byte [0x45ab0d], 0x6c
mov byte [0x45ab0f], 0x32
mov byte [0x45ab10], 0x2e
mov byte [0x45ab0b], 0x6e
mov byte [0x45ab0c], 0x65
mov byte [0x45ab11], 0x64
mov byte [0x45ab0e], 0x33
mov byte [0x45ab12], 0x6c
mov byte [0x45ab13], 0x6c
mov byte [0x45ab14], bl
mov byte [0x45ab08], 0x6b
mov byte [0x45ab09], 0x65
mov byte [0x45ab0a], 0x72
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push dword [0x487314]
mov dword [0x487284], eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea ecx, [ebp - 0x10]
push ecx
push 0x40
push dword [0x487314]
mov dword [0x487280], eax
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [0x45503c]
xor esi, esi
mov dword [0x4873ec], eax
cmp dword [0x487314], ebx
jbe 0x403c12
mov eax, dword [0x4873ec]
mov dword [ebp - 0x14], eax
mov eax, 0xb2d3b
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov al, byte [eax + esi]
mov ecx, dword [0x487280]
mov byte [ecx + esi], al
cmp dword [0x487314], 0x44
jne 0x403c09
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalCompact]
push ebx
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
inc esi
cmp esi, dword [0x487314]
jb 0x403bc4
call fcn.004039c0
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetAtomNameA]
cmp esi, 0x770e
jne 0x403c36
call fcn.00403a57
inc esi
cmp esi, 0x286c535
jl 0x403c19
push 0x7b
pop esi
cmp dword [0x487314], 0xd
jne 0x403c77
push 0x30
lea eax, [ebp - 0x6c]
push ebx
push eax
mov dword [ebp - 0x70], ebx
call fcn.00405d80
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetDefaultCommConfigW]
push 0x402c98
call dword [sym.imp.KERNEL32.dll_lstrlenW]
dec esi
jne 0x403c42
call fcn.00403a71
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4059bb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x454168]
jne 0x4059c5
repz ret
jmp fcn.0040c76c
Function at 0x100152d0
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x10015494
pushal
mov esi, section.UPX1
lea edi, [esi - 0xe000]
push edi
jmp 0x100152fa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10015301
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x100152f0
mov eax, 1
add ebx, ebx
jne 0x10015313
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10015308
jne 0x10015324
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10015308
xor ecx, ecx
sub eax, 3
jb 0x10015338
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x100153aa
mov ebp, eax
add ebx, ebx
jne 0x10015343
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x10015350
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x10015374
inc ecx
add ebx, ebx
jne 0x10015360
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x10015355
jne 0x10015371
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10015355
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x10015394
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x10015385
jmp 0x100152f6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x10015394
add edi, ecx
jmp 0x100152f6
pop esi
mov edi, esi
mov ecx, 0x278
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x100153b2
cmp byte [edi], 0xa
jne 0x100153b2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x100153b7
lea edi, [esi + 0x13000]
mov eax, dword [edi]
or eax, eax
je 0x10015426
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x152f4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1531c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x100153e4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x15320]
or eax, eax
je 0x10015420
mov dword [ebx], eax
add ebx, 4
jmp 0x10015401
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x10015457
cmp al, 0xef
ja 0x1001544a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1001542c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x10015439
mov ebp, dword [esi + 0x15324]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
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 0x1001548b
sub esp, 0xffffff80
jmp 0x10003a88
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
call fcn.0040123a
mov esi, dword [ebp + 8]
test esi, esi
jne 0x401036
call fcn.00406707
call fcn.0040150d
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
call fcn.00401160
test eax, eax
jne 0x401036
push 0x80004004
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [esi + 0x10]
cmp dword [eax + 0x44], 0
jne 0x40104e
push 1
call fcn.0040151f
add esp, 4
call fcn.004011c0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x401713
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4098a8
push 0x4098a0
push 0x4098a8
push 0x1f
call fcn.0040164e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x401747
push dword [ebp + 8]
mov ecx, esi
call dword [0x409114]
call esi
jmp 0x40174d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x401791
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4098cc
push 0x4098c4
push 0x4098cc
push 0x21
call fcn.0040164e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4017c8
push dword [ebp + 8]
mov ecx, esi
call dword [0x409114]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4017d0
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4098e0
push 0x4098d8
push 0x4098e0
push 0x22
call fcn.0040164e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40180a
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x409114]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x4036c3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x403702
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x403702
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x403702
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x403702
cmp dword [ecx + 0x74], 0xe
jbe 0x403702
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x408a50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x408a7d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x408a7d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x749670
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x300000]
push edi
jmp 0x74968a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x749691
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x749680
mov eax, 1
add ebx, ebx
jne 0x7496a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x7496b4
jne 0x7496d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7496d3
dec eax
add ebx, ebx
jne 0x7496c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x749698
add ebx, ebx
jne 0x7496cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x749725
xor ecx, ecx
sub eax, 3
jb 0x7496eb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x74975a
sar eax, 1
mov ebp, eax
jmp 0x7496f6
add ebx, ebx
jne 0x7496f6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7496c4
inc ecx
add ebx, ebx
jne 0x749704
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7496c4
add ebx, ebx
jne 0x749711
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x749706
jne 0x749722
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x749706
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x749744
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x749736
jmp 0x749686
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x749744
add edi, ecx
jmp 0x749686
pop esi
lea edi, [esi + 0x344000]
mov ecx, 2
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x749766
cmp byte [edi], 0
jne 0x749766
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x74976b
lea edi, [esi + 0x346000]
mov eax, dword [edi]
or eax, eax
je 0x7497e3
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x34a1c4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x34a2b0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x749798
mov ecx, edi
jns 0x7497c7
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 + 0x34a2b8]
or eax, eax
je 0x7497dd
mov dword [ebx], eax
add ebx, 4
jmp 0x7497b5
call dword [esi + 0x34a2b4]
mov ebp, dword [esi + 0x34a2bc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
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 0x749817
sub esp, 0xffffff80
jmp 0x4340a6
Function at 0x10004770
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, ecx
cmp eax, 0xad561f71
nop
mov eax, 0x70cbfbfb
nop
cmp eax, 0xffffffe7
nop
mov eax, 0xfabef152
nop
cmp eax, 0x64
mov eax, ebx
mov eax, ecx
cmp eax, 0xa8a45bd5
nop
mov eax, 0xd26b2510
push 3
push 2
push 1
call fcn.1000c200
add esp, 0xc
mov eax, ecx
mov eax, ebx
mov eax, 0x7e9e05de
mov eax, ecx
mov eax, ecx
mov eax, ebx
mov eax, ecx
cmp eax, 0x7a
inc eax
nop
cmp eax, 0xffffffbf
mov eax, 0x3905ddb4
nop
inc eax
mov eax, 0x81b33614
cmp eax, 0x5e
mov eax, ecx
push 3
push 2
push 1
call fcn.1000c200
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov eax, ecx
nop
mov eax, ebx
inc eax
cmp eax, 0xffffffe9
cmp eax, 0x41
mov eax, ecx
nop
mov eax, ebx
mov eax, ebx
mov eax, ecx
cmp eax, 0x3ae1825d
mov eax, ebx
cmp eax, 0x6ab0fa19
mov eax, ebx
mov eax, 0x1e6d2b18
mov eax, ebx
push 3
push 2
push 1
call fcn.1000c200
add esp, 0xc
push 0x1002beb4
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, 0x875f5f0d
inc eax
nop
mov eax, 0x7827d0eb
mov eax, ecx
inc eax
cmp eax, 0x52
mov eax, 0xab1869ee
cmp eax, 0xffffffcb
mov eax, ecx
mov eax, ebx
nop
mov eax, ecx
mov eax, ecx
mov eax, 0x6b4c6c82
mov eax, ebx
push 3
push 2
push 1
call fcn.1000c200
add esp, 0xc
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x1003e22c], eax
nop
mov eax, ecx
mov eax, 0xd36ee150
mov eax, 0x48488c46
inc eax
mov eax, ebx
mov eax, ebx
cmp eax, 0x88b73165
mov eax, ecx
mov eax, ebx
inc eax
cmp eax, 0xffffffcc
cmp eax, 0x66844adf
nop
inc eax
nop
mov eax, ebx
inc eax
push 3
push 2
push 1
call fcn.1000c200
add esp, 0xc
cmp dword [0x1003e22c], 0
jne 0x1000491f
push 0x41030
push str.DllWrap
push str.miss
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 0x25cd88a1
inc eax
inc eax
nop
nop
cmp eax, 0x2c
mov eax, ebx
cmp eax, 0xffffffa2
mov eax, 0x53528c96
nop
nop
cmp eax, 0x88a847ba
mov eax, ecx
mov eax, 0xaba9183
mov eax, ebx
mov eax, ecx
nop
nop
push 3
push 2
push 1
call fcn.1000c200
add esp, 0xc
cmp dword [0x1003e22c], 0
je 0x10004931
mov dword [ebp - 4], 1
jmp 0x10004938
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x401b41
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0xa4
mov eax, dword [0x48d250]
xor eax, ebp
mov dword [ebp + 0x68], eax
mov ecx, dword [ebp + 0x78]
mov eax, dword [ebp + 0x74]
push esi
mov esi, dword [ebp + 0x7c]
lea edx, [ebp - 0x34]
push edx
push 1
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x401b78
xor eax, eax
jmp 0x401bab
test esi, esi
je 0x401b9d
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x30]
push eax
push 0
push 0
push esi
push dword [ebp - 0x34]
mov dword [ebp - 0x38], 0x96
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401b74
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg eax
sbb eax, eax
inc eax
mov ecx, dword [ebp + 0x68]
xor ecx, ebp
pop esi
call fcn.004500e1
add ebp, 0x6c
leave
ret

Function at 0x4059a8
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x100
lea ebp, [esp - 4]
mov eax, dword [0x48d250]
xor eax, ebp
mov dword [ebp + 0x100], eax
push 0x48
mov eax, 0x46dc62
call fcn.00450123
mov eax, dword [ebp + 0x114]
mov ecx, dword [ebp + 0x10c]
mov esi, dword [ebp + 0x110]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x118]
xor ebx, ebx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x2c], ebx
call fcn.00403929
lea eax, [ebp - 0x14]
push eax
push 0x20019
push ebx
push dword [ebp - 0x18]
xor edi, edi
inc edi
push esi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x405ad1
push 0xfe
lea eax, [ebp + 1]
push ebx
push eax
mov byte [ebp], bl
call fcn.00450200
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x30]
push eax
push ebx
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x34], 0xff
mov dword [ebp - 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x20]
mov dword [ebp - 0x1c], 4
push dword [ebp - 0x14]
call esi
test eax, eax
jne 0x405ac8
push dword [ebp - 0x1c]
call fcn.00451e60
pop ecx
lea ecx, [ebp - 0x1c]
push ecx
push eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
push eax
push ebx
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call esi
test eax, eax
jne 0x405abf
cmp dword [ebp - 0x28], edi
jne 0x405abf
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
call fcn.004015e6
push dword [ebp - 0x18]
call fcn.00451471
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x100]
xor ecx, ebp
call fcn.004500e1
add ebp, 0x104
leave
ret