joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409763
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004062a5
and dword [ebp - 4], 0
cmp dword [0x59da4c], 0
mov ebx, eax
jne 0x409814
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4098c5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4098c5
push eax
call fcn.00406233
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x59da4c], eax
call esi
push eax
call fcn.00406233
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x59da50], eax
call esi
push eax
call fcn.00406233
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x59da54], eax
call esi
push eax
call fcn.00406233
pop ecx
mov dword [0x59da5c], eax
test eax, eax
je 0x409814
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00406233
pop ecx
mov dword [0x59da58], eax
mov eax, dword [0x59da58]
cmp eax, ebx
je 0x40986c
cmp dword [0x59da5c], ebx
je 0x40986c
push eax
call fcn.004062ae
push dword [0x59da5c]
mov esi, eax
call fcn.004062ae
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40986c
test edi, edi
je 0x40986c
call esi
test eax, eax
je 0x409863
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409863
test byte [ebp - 0xc], 1
jne 0x40986c
or dword [ebp + 0x10], 0x200000
jmp 0x4098a5
mov eax, dword [0x59da50]
cmp eax, ebx
je 0x4098a5
push eax
call fcn.004062ae
pop ecx
test eax, eax
je 0x4098a5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4098a5
mov eax, dword [0x59da54]
cmp eax, ebx
je 0x4098a5
push eax
call fcn.004062ae
pop ecx
test eax, eax
je 0x4098a5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x59da4c]
call fcn.004062ae
pop ecx
test eax, eax
je 0x4098c5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4098c7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x433003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43300c
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x419610
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x410
lea eax, [esp + 0x208]
push esi
push edi
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea ecx, [esp + 0x210]
push ecx
call edi
push str.system.ini
lea edx, [esp + 0xc]
mov esi, eax
push 0x104
push edx
push esi
push str.shell
push str.boot
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveArgsW]
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveBlanksW]
lea edx, [esp + 8]
push edx
call edi
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push esi
push edi
call dword [sym.imp.SHELL32.dll_StrCmpNIW]
test eax, eax
je 0x4196ad
push str.install.exe
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4196ad
pop edi
xor eax, eax
pop esi
add esp, 0x410
ret
pop edi
mov eax, 1
pop esi
add esp, 0x410
ret

Function at 0x44a30c
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffdc
push edi
sub eax, 0x57d1fe51
push edi
js 0x44a2fd
pop ss
loopne 0x44a313
invalid

Function at 0x47b38c
Capabilities:
Encode data using xor

Disassembly:
sbb al, 0x14
test al, 0x73
pushfd
inc esi
mov al, 0x75
mov dh, 0x97
add byte [ebp + eax*4 + 1], cl
mov al, 0xd6
aas
mov ecx, 0x8f1bdd27
mov fs, word [edi]
cmp al, 0x58
cmpsb byte [esi], byte es:[edi]
sub esp, dword [edi]
mov eax, dword [0x112cdac3]
dec ecx
test cl, dh
invalid

Function at 0x48d168
Capabilities:
Encode data using xor

Disassembly:
lodsb al, byte [esi]
ret
iretd
sti
das
jge 0x48d114
scasb al, byte es:[edi]
insd dword es:[edi], dx
push eax
xchg esp, eax
push 0xffffffffffffffbe
mov ebp, 0x90f3eeac
jnp 0x48d1b7
dec esi
dec esi
and eax, 0xce1aec78
js 0x48d158
sbb cl, dh
jg 0x48d192
enter 0x5217, 0xffffffffffffffd7
test bl, 0xd2
sub byte [edx + 0x79aa5780], ah
outsb dx, byte [esi]
int1
jg 0x48d158
xlatb
neg byte [edx + edi*2 + 3]
xor byte [edi], ch
test byte [ecx - 0x745e768d], 0x41
add eax, 0x6ee22bd8
outsb dx, byte [esi]
mov cl, 0x1d
bound edx, qword [eax + esi*8 + 0x790907f6]
jae 0x48d180
mov edi, 0x690b2999
jae 0x48d1a2
imul esi, dword [ebx - 3], 0x269e20b7
jnp 0x48d16a
mov bh, 0x20
sahf
jnp 0x48d16a
jp 0x48d141
das
xor cl, al
xchg edi, eax
in eax, dx
invalid
retf
Function at 0x4c6982
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4cc488
cmp edx, dword [eax]
je 0x4c69a4
add eax, 8
inc ecx
cmp eax, 0x4cc518
jl 0x4c6995
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4cc488]
jne 0x4c6ad2
mov eax, dword [0x4d0b6c]
cmp eax, 1
je 0x4c6aac
test eax, eax
jne 0x4c69d5
cmp dword [0x4cc3cc], 1
je 0x4c6aac
cmp edx, 0xfc
je 0x4c6ad2
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne fcn.004c6a0c
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004c70a0
pop ecx
pop ecx
lea eax, [ebp + 8]
lea esi, [esi + 0x4cc48c]
push 0
push eax
push dword [esi]
call fcn.004c72d0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]

Function at 0x461f20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x455015
lea edi, [esi - 0x54015]
push edi
or ebp, 0xffffffff
jmp 0x461f42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x461f49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x461f38
mov eax, 1
add ebx, ebx
jne 0x461f5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x461f50
jne 0x461f6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f50
xor ecx, ecx
sub eax, 3
jb 0x461f80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x461ff2
mov ebp, eax
add ebx, ebx
jne 0x461f8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x461f98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x461fbc
inc ecx
add ebx, ebx
jne 0x461fa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x461f9d
jne 0x461fb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x461fdc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x461fcd
jmp 0x461f3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x461fdc
add edi, ecx
jmp 0x461f3e
pop esi
mov edi, esi
mov ecx, 0x32d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x461ffa
cmp byte [edi], 0
jne 0x461ffa
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 eax, ebx
loop 0x461fff
lea edi, [esi + 0x5f000]
mov eax, dword [edi]
or eax, eax
je 0x46206e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x621f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x62254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46202c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x62258]
or eax, eax
je 0x462068
mov dword [ebx], eax
add ebx, 4
jmp 0x462049
call dword [esi + 0x6225c]
popal
jmp 0x4095a4
Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40701c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x407028
push 0x407024
push 0x407020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x407028]
push dword [0x407024]
push dword [0x407020]
mov dword [0x407014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x40129c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x84], 0
call fcn.004019f0
mov edi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov eax, edi
or al, 0x40
push eax
lea eax, [0x404731]
lea edx, [fcn.00401a74]
sub eax, edx
push eax
push fcn.00401a74
call sub.KERNEL32.dll_VirtualProtect
cmp dword [ebp - 4], 0
je 0x40132d
push edi
call fcn.004018e0
lea eax, [ebp - 0x84]
push eax
push edi
call fcn.0040192f
mov eax, edi
add eax, 0x1e200
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x84]
push eax
mov esi, dword [ebp - 0x88]
mov ecx, edi
sar esi, cl
push esi
lea esi, [0x4070e4]
mov ebx, edi
dec ebx
and esi, ebx
push esi
call fcn.00401a74
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4019f0
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push edi
and dword [ebp - 0x120], 0
xor edi, edi
push 0
push 0
call sub.USER32.DLL_GetWindowLongA
push 0
push 0
call sub.USER32.DLL_GetDlgItem
push 0
push 0
push 0
push 0
call sub.USER32.DLL_GetDlgItemInt
mov dword [ebp - 0x11c], 0x14
mov byte [ebp - 0x104], 0
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x118]
push eax
push 1
push 1
lea eax, [ebp - 0x104]
push eax
call sub.CRYPT32.DLL_CryptBinaryToStringW
movzx eax, word [ebp - 0x118]
mov edi, eax
sub edi, 0x41
mov eax, edi
pop edi
leave
ret

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403e6a
nop
nop
sub eax, 0x403e10
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43101e
nop
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x423b47
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x423b75
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x423b93
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00423ab1
jmp 0x423b93
mov eax, dword [esi + 0x14]
test eax, eax
je 0x423b93
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00423ab1
test edi, edi
mov eax, edi
jne 0x423b7d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x438c24]
test ecx, ecx
je 0x423c46
jmp 0x423b46
ret 8

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x24ec13ec
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data_1
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x79463e09
nop
nop
nop
nop
test eax, eax
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x430364bf
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4306c004]
jne 0x43065ea5
repz ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x4306c5f0], eax
mov dword [0x4306c5ec], ecx
mov dword [0x4306c5e8], edx
mov dword [0x4306c5e4], ebx
mov dword [0x4306c5e0], esi
mov dword [0x4306c5dc], edi
mov word [0x4306c608], ss
mov word [0x4306c5fc], cs
mov word [0x4306c5d8], ds
mov word [0x4306c5d4], es
mov word [0x4306c5d0], fs
mov word [0x4306c5cc], gs
pushfd
pop dword [0x4306c600]
mov eax, dword [ebp]
mov dword [0x4306c5f4], eax
mov eax, dword [ebp + 4]
mov dword [0x4306c5f8], eax
lea eax, [ebp + 8]
mov dword [0x4306c604], eax
mov eax, dword [ebp - 0x320]
mov dword [0x4306c540], 0x10001
mov eax, dword [0x4306c5f8]
mov dword [0x4306c4f4], eax
mov dword [0x4306c4e8], 0xc0000409
mov dword [0x4306c4ec], 1
mov eax, dword [0x4306c004]
mov dword [ebp - 0x328], eax
mov eax, dword [0x4306c218]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x4306c538], eax
push 1
call sub.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x43065fa8
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x4306c538], 0
jne 0x43065f91
push 1
call sub.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret
Function at 0x4304c25f
Capabilities:
Hide graphical window

Disassembly:
cmp byte [edi + 0x30], 0
push esi
sete al
mov byte [edi + 0x30], al
lea esi, [edi + 4]
test al, al
je 0x4304c28c
push 5
push 0x1f7
push dword [esi]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [edi + 0x2c]
jmp 0x4304c2a5
push 0
push 0x1f7
push dword [esi]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [edi + 0x28]
call fcn.430626b7
xor eax, eax
pop esi
ret

Function at 0x4304eb37
Capabilities:
Set global application hook

Disassembly:
cmp dword [0x4306c86c], 0
jne 0x4304eb50
push 0x4304eb78
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
mov dword [0x4306c86c], eax
cmp dword [0x4306c868], 0
jne 0x4304eb74
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
push eax
push 0
push 0x4304eb9e
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x4306c868], eax
ret
Function at 0x43060d56
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x22c
mov eax, 0x43068466
call fcn.43065fef
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x224], edi
push 0x43061020
mov dword [ebp - 4], edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x220], eax
cmp eax, edi
jne 0x43060d98
push 0x8007000e
call fcn.430626b7
xor eax, eax
mov byte [ebp - 4], 1
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push edi
push eax
call sub.MSVCR100.dll_memset
mov eax, dword [ebx]
add esp, 0xc
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x228]
push ecx
push 0xd
push 0x43061004
push edi
push 0x43043bac
push ebx
mov dword [ebp - 0x238], 0x104
mov dword [ebp - 0x230], edi
mov dword [ebp - 0x22c], edi
call dword [eax + 0x38]
mov esi, eax
cmp esi, edi
jl 0x43060f86
mov ecx, dword [ebp - 0x228]
cmp word [ecx], 0x2e
mov eax, ecx
je 0x43060e23
xor edx, edx
mov esi, edx
sar esi, 1
cmp esi, dword [ebp - 0x21c]
jge 0x43060e23
add eax, 2
add edx, 2
cmp word [eax], 0x2e
jne 0x43060e0b
sub eax, ecx
sar eax, 1
push eax
push ecx
lea edi, [ebp - 0x220]
mov dword [ebp - 0x21c], eax
call fcn.430626b7
mov esi, eax
test esi, esi
js 0x43060f86
mov esi, 0x43044320
push esi
call dword [sym.imp.kernel32.dll_lstrlenW]
push eax
push esi
call fcn.430626b7
mov esi, eax
test esi, esi
js 0x43060f86
mov eax, dword [ebx]
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x228]
push ecx
push 7
push 0x43060fe4
push 0
push 0x43043bac
push ebx
call dword [eax + 0x38]
mov esi, eax
test esi, esi
js 0x43060f86
push dword [ebp - 0x21c]
push dword [ebp - 0x228]
call fcn.430626b7
mov esi, eax
test esi, esi
js 0x43060f86
mov eax, dword [ebx]
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x228]
push ecx
push 0x10
push 0x43060fc0
push 0
push 0x43043bac
push ebx
call dword [eax + 0x38]
mov esi, eax
test esi, esi
js 0x43060f86
push dword [ebp - 0x21c]
lea edi, [ebp - 0x224]
push dword [ebp - 0x228]
call fcn.430626b7
mov esi, eax
test esi, esi
js 0x43060f86
lea eax, [ebp - 0x22c]
push eax
push 0x20019
push 0
push dword [ebp - 0x220]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43060f84
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x230]
push eax
push 0
push 0x43060ff4
push dword [ebp - 0x22c]
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
jne 0x43060f84
cmp dword [ebp - 0x230], 1
jne 0x43060f84
push dword [ebp - 0x224]
lea eax, [ebp - 0x218]
call fcn.430626b7
mov esi, eax
test esi, esi
js 0x43060f86
cmp esi, 1
je 0x43060f84
mov ecx, dword [ebp - 0x234]
mov eax, dword [ebp - 0x224]
mov ecx, dword [ecx + 8]
and dword [ebp - 0x224], 0
mov dword [ecx + 0x14], eax
jmp 0x43060f86
xor esi, esi
cmp dword [ebp - 0x22c], 0
je 0x43060f9b
push dword [ebp - 0x22c]
call dword [sym.imp.advapi32.dll_RegCloseKey]
push dword [ebp - 0x220]
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call edi
push dword [ebp - 0x224]
call edi
mov eax, esi
call fcn.43066025
ret 4
Function at 0xba7370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0xba738e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0xbd0074
push ecx
mov edi, eax
call fcn.00bbb198
mov esi, eax
add esp, 8
test esi, esi
jne 0xba73cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00bbb02e
push esi
call fcn.00bbafb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xbaa850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0xbaa8ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0xbd5720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xbaa8ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.00bbb1e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0xbaa8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xbd5720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xbaa92a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00bbc082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xbaa957
mov word [eax], si
add eax, 2
push eax
call fcn.00bbc030
add esp, 4
jmp 0xbaa959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0xbaa8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xbaa8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0xbaaff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0xbab080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xbab0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xbd0458
push ecx
call fcn.00bbb1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00bbb1e1
add esp, 0x10
jmp 0xbab0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00bbb20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00bbadff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00bab050
mov eax, dword [0xbd5728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0xbab13b
push esi
call fcn.00baafb0
add esp, 4
mov dword [0xbd5728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xbab14c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.00baaff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0xbae440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xbae4b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0xbae48e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xbae471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xbae47e
add edx, ecx
cmp ebx, edx
jb 0xbae48a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xbae467
xor ecx, ecx
jmp 0xbae4a2
test eax, eax
jne 0xbae492
xor ecx, ecx
jmp 0xbae4a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.00bae3c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret