joyce8/EMBER2024-capa huggingface dataset:
Function at 0x154e058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.0154e1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x154e07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x154e06a
add dl, dl
jne 0x154e089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x154e0dc
xor eax, eax
add dl, dl
jne 0x154e096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x154e17d
add dl, dl
jne 0x154e0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x154e0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x154e0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x154e0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x154e0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x154e075
mov eax, 1
add dl, dl
jne 0x154e0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x154e0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x154e0e1
sub eax, ebx
mov ebx, 1
jne 0x154e128
mov ecx, 1
add dl, dl
jne 0x154e10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x154e119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x154e105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x154e075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x154e13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x154e14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x154e136
cmp eax, 0x7d00
jae 0x154e16d
cmp eax, 0x500
jb 0x154e168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x154e075
cmp eax, 0x7f
ja 0x154e170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x154e075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x154e19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x154e075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

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 0x6c941940
Capabilities:
Write file on windows

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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0xf0
mov edi, dword [0x6c9460b4]
mov esi, dword [ebp + 8]
test edi, edi
je 0x6c9420b0
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [0x6c9460b4]
movzx eax, al
bt eax, esi
jae 0x6c942110
mov ecx, dword [0x6c9460a4]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], ecx
je 0x6c941fb6
test byte [0x6c943030], 8
jne 0x6c942050
lea ebx, [esp + 0x28]
mov edi, ebx
test byte [0x6c943040], 8
jne 0x6c942000
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 0x6c941f85
cmp esi, 3
jbe 0x6c941fc0
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 8], str._s:_s:_s
lea edx, [edi + 1]
mov dword [esp], eax
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x6c945164]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x6c941f85
mov ecx, dword [0x6c9460b4]
test ecx, ecx
je 0x6c9420f0
mov dword [esp], 0x6c943040
call dword [0x6c9460b4]
test al, 8
je 0x6c941f5c
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 0x6c941f5c
mov ebx, dword [0x6c9460b4]
test ebx, ebx
je 0x6c9420d0
mov dword [esp], 0x6c943030
call dword [0x6c9460b4]
test al, 8
je 0x6c941f49
call dword [sym.imp.kernel32.dll_GetTickCount]
lea ebx, [esp + 0x28]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mov eax, 0x10624dd3
mov dword [esp], ebx
mul ecx
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 0x6c941f4f
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x6c9460b4
call sym._load_func.part.0
jmp 0x6c941f10
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x6c9460b4
call sym._load_func.part.0
jmp 0x6c94205a
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x6c9460b4
call sym._load_func.part.0
jmp 0x6c94200e
mov eax, 0xffffffff
jmp 0x6c941fb6
Function at 0x44a010
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push str.kernel32.dll
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
push 5
mov esi, eax
call sub.MPR.dll_WNetCloseEnum
push str.GetFirmwareEnvironmentVariableA
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x44a088
test esi, esi
je 0x44a066
mov ecx, dword [0x650d9c]
push 0x650ab8
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
push 0
push 0
push str.CLSIDB530CB63_D9DF_4B49_9439_34539662E598Version
push 0x850ee8
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec eax
pop edi
neg eax
sbb eax, eax
pop esi
neg eax
pop ebx
pop ecx
ret
pop edi
mov al, bl
pop esi
pop ebx
pop ecx
ret

Function at 0x601bd4
Capabilities:
Encode data using xor

Disassembly:
push cs
adc byte [eax + 0x53], al
inc eax
push ebx
cmp dword [ebp*8 + 0x6673479b], 0xfffffff7
xor eax, 0x84cd5995
invalid
aas
invalid
dec ebp
retf
inc ebx
invalid
invalid
Function at 0x1002b8e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x1002b8ef
pop dword [ebp - 0x14]
mov eax, 0x2b7060d9
sub eax, 0x1b6da7ea
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0x2aaa2708
add dword [ebp - 0x24], 0x23a81e43
mov dword [ebp - 0x20], 0x3845cf66
add dword [ebp - 0x20], 0xf9ed7cdf
mov dword [ebp - 0x1c], 0xa0ae4ad8
add dword [ebp - 0x1c], 0xab9df956
mov dword [ebp - 0x18], 0xb96adbe5
sub dword [ebp - 0x18], 0xb96adbe5
lea eax, [ebp - 0x24]
push eax
mov eax, 0xf6ec2b22
add eax, 0x191845a6
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0x41be89ef
add dword [ebp - 0x24], 0x32b3df67
mov dword [ebp - 0x20], 0xdaaa4276
add dword [ebp - 0x20], 0x66c21eff
mov dword [ebp - 0x1c], 0x89b7c8a2
sub dword [ebp - 0x1c], 0x26485c36
mov dword [ebp - 0x18], 0x5c5bb497
add dword [ebp - 0x18], 0xa3a44b69
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0x719f417
sub eax, 0xf7158333
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x45a35
push 0
call eax
mov ecx, 0x510ec385
sub ecx, 0x510e6e98
mov edx, eax
mov esi, 0x10063000
add esi, dword [ebp - 0x14]
mov ebx, 0x1c9a5e61
sub ebx, 0x77b3d246
mov dword [ebp - 4], 0x84879ca7
mov edi, dword [esi]
xor dword [ebp - 0xc], ebx
sub edi, ebx
add dword [ebp - 4], edi
mov dword [edx], edi
xor dword [ebp - 0xc], 0x9767c391
add edx, 0xed3ad112
sub edx, 0xed3ad10e
add esi, 0x8d0084fe
sub esi, 0x8d0084fa
loop 0x1002ba0b
add eax, 0x14687
xor ebx, ebx
add ebx, eax
add eax, 0xb56d1dc2
add eax, 0x4a92e243
mov ecx, 0x10000000
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x10032a80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100454eb
mov eax, dword fs:[0]
push eax
sub esp, 0xf4
mov eax, dword [0x10056018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx], 0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x44], eax
je 0x10032bf4
push 0x802
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 0x400
call dword [sym.imp.MSVCR110.dll_void____cdecl_operator_new___unsigned_int_]
add esp, 4
mov edi, eax
push 0x802
push 0
push edi
call sub.MSVCR110.dll_memset
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x10032afa
mov eax, dword [esi]
jmp 0x10032afc
mov eax, esi
lea ecx, [ebp - 0x4c]
push ecx
push edi
lea ecx, [ebp - 0x48]
push ecx
push 0
push eax
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cdq
test eax, eax
jne 0x10032bc7
test edx, edx
jne 0x10032bc7
cmp dword [ebp - 0x48], 4
jne 0x10032b8e
mov esi, dword [edi]
sub esp, 8
lea ecx, [ebp - 0x100]
call fcn.1002b8e0
push esi
lea ecx, [ebp - 0xf0]
mov dword [ebp - 4], 0
call dword [sym.imp.MSVCP110.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___int_]
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x100]
call fcn.1002b8e0
mov ecx, dword [ebp - 0x44]
push eax
call fcn.1002b8e0
cmp dword [ebp - 0x14], 8
jb 0x10032b75
push dword [ebp - 0x28]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
lea ecx, [ebp - 0x100]
call fcn.1002a840
push edi
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov al, 1
jmp 0x10032bf6
cmp word [edi], 0
jne 0x10032b98
xor ecx, ecx
jmp 0x10032baf
mov ecx, edi
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10032ba0
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x44]
push edi
call fcn.1002b8e0
push edi
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov al, 1
jmp 0x10032bf6
push esi
mov edx, str.Query_registry_value_with_key:
lea ecx, [ebp - 0x40]
call fcn.1002b8e0
add esp, 4
cmp dword [ebp - 0x2c], 8
jb 0x10032bea
push dword [ebp - 0x40]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
push edi
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1003fc71
mov esp, ebp
pop ebp
ret 8
Function at 0x4010f0
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ebp, esp
add esp, 0xfffffffc
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [0x40332c], eax
lea ecx, [ebp - 4]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov eax, dword [ebp + 4]
mov dword [0x40319b], eax
xor eax, eax
mov ecx, 0x16
push eax
dec ecx
jne 0x401121
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [ebp - 0x5c]
push ecx
mov eax, 0x30
mov dword [ecx], eax
mov eax, dword [0x40319b]
mov dword [ebp - 0x48], eax
mov eax, 0x401bbc
mov dword [ebp - 0x54], eax
mov ecx, 0x4030bd
mov dword [ebp - 0x34], ecx
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0
push 0
push str.Riched32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
xor ecx, ecx
push ecx
push dword [0x40319b]
push ecx
push ecx
push 0x12e
push 0x7a
push 0x34c
push 0x2aa
push 0x40000
lea eax, str.bananas
push eax
mov eax, str.secondclass
push eax
push ecx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x403378], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x403378]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
xor ebx, ebx
lea edi, [ebp - 0x50]
jmp 0x4011d9
push edi
call dword [sym.imp.USER32.dll_TranslateMessage]
push edi
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.USER32.dll_GetMessageA]
test al, al
jne 0x4011cb
mov esp, ebp
ret

Function at 0x10013a4
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 0x248]
mov edi, 0xfffff758
and eax, edi
or eax, dword [ebp + 8]
push eax
lea eax, [esi + 0x274]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x10013e4
mov eax, dword [esi + 0x248]
and eax, edi
or eax, dword [ebp + 8]
mov dword [esi + 0x248], eax
mov al, 1
jmp 0x10013f5
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x10013f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
xor al, al
pop edi
pop esi
pop ebp
ret 8
Function at 0x40129f
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
and dword [ebp - 0x10], 0
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x10]
push edi
mov dword [ebp - 0x38], esi
mov eax, dword [esi + 4]
mov edi, dword [esi]
mov dword [ebp - 0x20], eax
mov eax, dword [0x41b5c0]
mov dword [ebp - 0x30], eax
mov eax, dword [0x41b5c4]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x34], eax
call fcn.00401298
mov ebx, dword [ebp - 0x10]
mov eax, dword [0x41b5c8]
add ebx, 0x23f
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [0x41b5cc]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], 0x20
mov dword [ebp - 0x1c], 2
add dword [ebp - 0x1c], 3
mov ecx, dword [0xae38a4]
mov eax, edi
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x40132c
push 0x418300
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov eax, dword [ebp - 4]
mov ecx, dword [0xae38a4]
add eax, dword [ebp - 0x28]
mov edx, 0xedeb2e40
mov dword [ebp - 4], eax
cmp ecx, 0xfa9
mov eax, dword [0xae38a0]
cmove eax, edx
xor edx, edx
mov dword [0xae38a0], eax
cmp ecx, 0x3eb
mov eax, dword [0xae37f8]
cmove eax, edx
mov dword [0xae37f8], eax
lea eax, [ebx + edi]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
shr eax, 5
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
and dword [ebp - 0x14], edx
mov dword [0xae389c], 0xf4ea3dee
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
xor dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
xor eax, dword [ebp - 0x18]
sub esi, eax
mov dword [ebp - 0xc], eax
mov eax, esi
mov dword [ebp - 0x18], esi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
and dword [ebp - 8], edx
mov eax, dword [ebp - 0x10]
add dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
nop
add dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x1c]
mov edx, esi
mov eax, dword [ebp - 4]
add ebx, 0x61c88647
shr edx, cl
add edx, dword [ebp - 0x34]
mov dword [ebp - 0xc], edx
xor edx, dword [ebp - 0x20]
xor eax, edx
mov dword [ebp - 0x10], ebx
sub edi, eax
mov dword [ebp - 4], eax
dec dword [ebp - 0x24]
mov dword [ebp - 0x18], edi
jne 0x4012fa
mov dword [ebp - 0x20], esi
mov esi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x20]
mov dword [esi], edi
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d328
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a35c]
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.00405145
mov dword [ebp - 0x14], eax
cmp dword [0x43f058], esi
jne 0x40d41b
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d3a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d4fb
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d4fb
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d4fb
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x43f058], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x43f05c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x43f060], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43f068], eax
test eax, eax
je 0x40d418
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43f064], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d440
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d433
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d455
push 4
pop eax
jmp 0x40d4fd
cmp dword [ebp - 0x14], esi
je 0x40d455
push dword [0x43f058]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d43a
mov eax, dword [0x43f064]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d4b3
cmp dword [0x43f068], edi
je 0x40d4b3
push eax
call ebx
push dword [0x43f068]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d4b3
test eax, eax
je 0x40d4b3
call ecx
test eax, eax
je 0x40d4a8
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 0x40d4a8
test byte [ebp - 8], 1
jne 0x40d4b3
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d4e3
mov eax, dword [0x43f05c]
cmp eax, edi
je 0x40d4e0
push eax
call ebx
test eax, eax
je 0x40d4e0
call eax
mov esi, eax
test esi, esi
je 0x40d4e0
mov eax, dword [0x43f060]
cmp eax, edi
je 0x40d4e0
push eax
call ebx
test eax, eax
je 0x40d4e0
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x43f058]
call ebx
test eax, eax
je 0x40d4fb
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d4fd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404457
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push edi
push 0x103
lea eax, [ebp - 0x117]
push 0
push eax
mov byte [ebp - 0x118], 0
call sub.ntdll.dll_memset
xor eax, eax
mov byte [ebp - 0x14], 0
lea edi, [ebp - 0x13]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 0xc
push 0x1c
stosb byte es:[edi], al
pop eax
mov dword [ebp - 4], 1
call sub.ntdll.dll__alloca_probe
mov eax, esp
test eax, eax
je 0x40105c
push 0x8b
push 0x1b
mov edx, 0x405d44
call fcn.0040295d
push 0x104
lea ecx, [ebp - 0x118]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x4010ea
lea eax, [ebp - 0x118]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40107c
push 0x8003
lea ecx, [ebp - 0x14]
sub eax, edx
push ecx
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.00401cce
test eax, eax
je 0x4010ea
xor al, al
lea edi, [ebp - 0x118]
mov ecx, 0x104
rep stosb byte es:[edi], al
lea eax, [ebp - 0x118]
lea edi, [ebp - 0x14]
call fcn.00401da3
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
test ax, ax
jne 0x4010ea
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
mov word [0x42a568], ax
test ax, ax
je 0x4010ea
and dword [ebp - 4], 0
mov eax, dword [ebp - 4]
lea esp, [ebp - 0x11c]
pop edi
leave
ret

Function at 0x4010f6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
push edi
mov esi, 0x103
xor ebx, ebx
push esi
lea eax, [ebp - 0x103]
push ebx
push eax
mov byte [ebp - 0x104], bl
call sub.ntdll.dll_memset
push esi
lea eax, [ebp - 0x207]
push ebx
push eax
mov byte [ebp - 0x208], bl
call sub.ntdll.dll_memset
add esp, 0x18
inc esi
push esi
lea eax, [ebp - 0x208]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
cmp eax, ebx
je 0x401158
mov byte [eax - 1], bl
lea eax, [ebp - 0x104]
push eax
push ebx
push ebx
jmp loc.0042c000
Function at 0x40262c
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push edi
mov edi, 0x42a408
push edi
xor ebx, ebx
call esi
test eax, eax
je 0x40269c
push 0x14
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
test eax, eax
je 0x40266b
push 0x91
push 0x12
mov edx, 0x4059b0
call fcn.0040295d
push edi
push eax
lea eax, [ebp - 0x104]
push 0x104
push eax
call dword [sym.imp.ntdll.dll__snprintf]
add esp, 0x10
lea eax, [ebp - 0x104]
push eax
call esi
test eax, eax
je 0x40269c
lea edi, [ebp - 0x104]
call fcn.0040239f
mov ebx, eax
mov eax, ebx
lea esp, [ebp - 0x110]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4026a9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push edi
push 3
xor edi, edi
call fcn.00402b46
add eax, 3
push eax
call fcn.00402a1d
mov ebx, eax
cmp ebx, edi
je 0x402716
push esi
lea eax, [ebp - 0x104]
push eax
push edi
push edi
call fcn.00402929
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x40270e
mov esi, 0x104
jmp loc.0042ccc5
mov esi, ebx
call fcn.00402b12
pop esi
mov eax, edi
pop edi
pop ebx
leave
ret

Function at 0x4027a8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp edi, ebx
je 0x40288c
push edi
push ebx
push ebx
push 0x23
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x40288c
push 4
pop eax
call sub.ntdll.dll__alloca_probe
mov esi, esp
cmp esi, ebx
je 0x4027f4
push 0x93
push 2
mov eax, esi
mov edx, 0x405a1c
call fcn.0040295d
push 0xffffffffffffffff
call fcn.00402b46
push eax
push esi
lea eax, [ebp - 0x104]
push 0x104
push eax
call dword [sym.imp.ntdll.dll__snprintf]
lea eax, [ebp - 0x104]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40281b
sub eax, edx
cmp eax, 6
jb 0x4027f4
cmp byte [ebp - 0x104], bl
je 0x402855
lea ecx, [ebp - 0x104]
movsx eax, byte [ecx]
lea edx, [eax - 0x30]
and edx, 0x80000001
jns 0x40284a
dec edx
or edx, 0xfffffffe
inc edx
je 0x402850
add al, 0x31
mov byte [ecx], al
inc ecx
cmp byte [ecx], bl
jne 0x402837
lea eax, [ebp - 0x104]
push eax
push edi
call fcn.00402a47
push 8
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
cmp eax, ebx
je 0x402881
push 0x8b
push 4
mov edx, 0x4055ec
call fcn.0040295d
push eax
push edi
call dword [sym.imp.SHLWAPI.dll_PathAddExtensionA]
xor esi, esi
inc esi
mov eax, esi
lea esp, [ebp - 0x10c]
pop esi
pop ebx
leave
ret