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

Disassembly:
call fcn.010771a8
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 0x107707e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x107706a
add dl, dl
jne 0x1077089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10770dc
xor eax, eax
add dl, dl
jne 0x1077096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x107717d
add dl, dl
jne 0x10770a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10770b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10770bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10770c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x10770d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1077075
mov eax, 1
add dl, dl
jne 0x10770ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10770f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10770e1
sub eax, ebx
mov ebx, 1
jne 0x1077128
mov ecx, 1
add dl, dl
jne 0x107710e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1077119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1077105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1077075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x107713f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x107714a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1077136
cmp eax, 0x7d00
jae 0x107716d
cmp eax, 0x500
jb 0x1077168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1077075
cmp eax, 0x7f
ja 0x1077170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1077075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x107719e
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 0x1077075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401207
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x854
mov eax, dword [0x41a1e8]
xor edx, edx
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x20], eax
mov eax, dword [0x41a1ec]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0xc], edx
mov esi, dword [edi]
mov ebx, dword [edi + 4]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x34], 0x9e3779b9
mov dword [ebp - 0x18], eax
call fcn.00401200
add dword [ebp - 0xc], 0x23f
cmp dword [0x2dc498c], 0x14
jne 0x401263
push edx
lea eax, [ebp - 0x854]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
mov ecx, dword [0x41a1f0]
mov edx, dword [0x41a1f4]
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x1c], 0x20
mov dword [ebp - 0x18], 2
add dword [ebp - 0x18], 3
mov eax, esi
mov dword [ebp - 8], 0xedeb2e40
shl eax, 4
add eax, ecx
cmp dword [0x2dc498c], 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0x2dc4988]
cmove eax, dword [ebp - 8]
and dword [ebp - 8], 0
cmp dword [0x2dc498c], 0x3eb
mov dword [0x2dc4988], eax
mov eax, dword [0x2dc48dc]
cmove eax, dword [ebp - 8]
mov dword [0x2dc48dc], eax
mov eax, dword [ebp - 0xc]
add eax, esi
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x14]
shr eax, 5
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
add dword [ebp - 0x10], edx
and dword [ebp - 8], 0
mov dword [0x2dc4984], 0xf4ea3dee
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 8], eax
mov eax, dword [ebp - 8]
xor dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
xor ecx, eax
cmp dword [0x2dc498c], 0x213
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], ecx
jne 0x401359
lea eax, [ebp - 0x40]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaNodeProcessorMask]
lea eax, [ebp - 0x854]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x38]
push eax
push 0
lea eax, [ebp - 0x54]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_ChangeTimerQueueTimer]
mov ecx, dword [ebp - 0x10]
sub ebx, ecx
mov eax, ebx
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 0x18]
mov edx, ebx
mov eax, dword [ebp - 0xc]
shr edx, cl
add eax, ebx
mov ecx, dword [ebp - 4]
add edx, edi
xor ecx, eax
mov dword [ebp - 0x10], edx
cmp dword [0x2dc498c], 0xb03
mov dword [ebp - 4], ecx
jne 0x40139c
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthW]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
xor ecx, edx
sub esi, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x34]
sub dword [ebp - 0xc], eax
dec dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
jne 0x40127f
mov edi, dword [ebp - 0x24]
mov dword [edi], esi
mov dword [edi + 4], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40bb17
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419c10]
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.00406d67
mov dword [ebp - 0x14], eax
cmp dword [0x4cb068], esi
jne 0x40bc0a
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40bb97
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40bcea
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40bcea
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40bcea
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4cb068], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4cb06c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4cb070], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4cb078], eax
test eax, eax
je 0x40bc07
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4cb074], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40bc2f
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40bc22
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40bc44
push 4
pop eax
jmp 0x40bcec
cmp dword [ebp - 0x14], esi
je 0x40bc44
push dword [0x4cb068]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40bc29
mov eax, dword [0x4cb074]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40bca2
cmp dword [0x4cb078], edi
je 0x40bca2
push eax
call ebx
push dword [0x4cb078]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40bca2
test eax, eax
je 0x40bca2
call ecx
test eax, eax
je 0x40bc97
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 0x40bc97
test byte [ebp - 8], 1
jne 0x40bca2
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40bcd2
mov eax, dword [0x4cb06c]
cmp eax, edi
je 0x40bccf
push eax
call ebx
test eax, eax
je 0x40bccf
call eax
mov esi, eax
test esi, esi
je 0x40bccf
mov eax, dword [0x4cb070]
cmp eax, edi
je 0x40bccf
push eax
call ebx
test eax, eax
je 0x40bccf
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4cb068]
call ebx
test eax, eax
je 0x40bcea
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40bcec
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040395d
mov esp, ebp
pop ebp
ret
Function at 0x10002270
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x1c
mov ebx, dword [ebp + 8]
test byte [0x100150dc], 8
jne 0x100022b0
mov dword [esp], ebx
call sym._UXTHEME_SetActiveTheme
mov dword [esp + 4], 0x31a
mov ebx, eax
mov dword [esp], sym._UXTHEME_broadcast_msg_8
call dword [sym.imp.user32.dll_EnumWindows]
mov eax, ebx
mov ebx, dword [ebp - 4]
sub esp, 8
leave
ret 0xc
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.__p__s__p__n
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], str.ApplyTheme
mov dword [esp + 0x14], eax
mov dword [esp + 4], 0x100150dc
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_7
jmp 0x10002283

Function at 0x100072e0
Capabilities:
Enumerate gui resources
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
test byte [0x100150dc], 8
jne 0x10007310
mov edx, dword [0x1001510c]
test edx, edx
je 0x10007300
mov eax, dword [ebp + 8]
test eax, eax
je 0x10007340
leave
xor eax, eax
ret 4
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], str.__d__n
mov dword [esp + 8], str.EnableTheming
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x100150dc
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_7
jmp 0x100072ef
lea eax, [ebp - 4]
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionThemeManager
mov dword [0x1001510c], 0
mov dword [esp + 8], eax
mov dword [esp], 0x80000001
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
sub esp, 0xc
test eax, eax
je 0x10007390
mov dword [esp + 4], 0x31a
mov dword [esp], sym._UXTHEME_broadcast_msg_8
call dword [sym.imp.user32.dll_EnumWindows]
xor eax, eax
sub esp, 8
leave
ret 4
mov eax, dword [ebp - 4]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], 0x10017d2a
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.ThemeActive
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
mov eax, dword [ebp - 4]
sub esp, 0x18
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x1000736d
Function at 0x1000d6b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 4]
mov dword [ebp - 8], 1
mov dword [esp + 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 4], 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], str.AppsUseLightTheme
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionThemesPersonalize
mov dword [esp], 0x80000001
call dword [sym.imp.advapi32.dll_RegGetValueW]
mov edx, dword [ebp - 8]
xor eax, eax
sub esp, 0x1c
leave
test edx, edx
sete al
ret

Function at 0x1000d710
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 4]
mov dword [ebp - 8], 1
mov dword [esp + 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 4], 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], str.SystemUsesLightTheme
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionThemesPersonalize
mov dword [esp], 0x80000001
call dword [sym.imp.advapi32.dll_RegGetValueW]
mov edx, dword [ebp - 8]
xor eax, eax
sub esp, 0x1c
leave
test edx, edx
sete al
ret

Function at 0x1000db80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x14
mov esi, dword [ebp + 8]
test byte [0x100150ec], 8
jne 0x1000dc10
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], str.TEXTFILE
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_FindResourceW]
sub esp, 0xc
mov edi, eax
test eax, eax
je 0x1000dc48
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_LoadResource]
sub esp, 8
mov ebx, eax
test eax, eax
je 0x1000dc50
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_SizeofResource]
sub esp, 8
mov edi, eax
mov dword [esp], 0xc
and edi, 0xfffffffe
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [eax], ebx
mov esi, eax
mov dword [eax + 4], ebx
add ebx, edi
mov dword [eax + 8], ebx
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
call sym._wine_dbgstr_wn.constprop.0_2
mov dword [esp + 0xc], str.Loading_resource_INI__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.UXINI_LoadINI
mov dword [esp + 4], 0x100150ec
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_8
jmp 0x1000db95
xor ebx, ebx
jmp 0x1000dbd4
xor esi, esi
test byte [0x100150ec], 8
je 0x1000dc02
mov eax, dword [ebp + 0xc]
call sym._wine_dbgstr_wn.constprop.0_2
mov dword [esp + 0xc], str._s_resource_not_found_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.UXINI_LoadINI
mov dword [esp + 4], 0x100150ec
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_8
jmp 0x1000dc02
Function at 0x1000f750
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
lea eax, [ebp - 0xa8]
push ebx
sub esp, 0xc4
mov dword [ebp - 0xac], edx
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0xf003f
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.Control_PanelColors
mov dword [esp], 0x80000001
call dword [sym.imp.advapi32.dll_RegCreateKeyExW]
sub esp, 0x24
test eax, eax
jne 0x1000f856
mov edi, eax
lea ebx, [ebp - 0xa2]
lea esi, [esi]
lea esi, [esi]
mov eax, dword [esi + edi*4]
mov dword [esp + 8], str._d__d__d
mov dword [esp + 4], 0xd
mov edx, eax
mov dword [esp], ebx
shr edx, 0x10
movzx edx, dl
mov dword [esp + 0x14], edx
movzx edx, ah
movzx eax, al
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
call sym._swprintf.constprop.0
mov dword [esp + 0x10], ebx
lea eax, [eax + eax + 2]
mov dword [esp + 0xc], 1
mov dword [esp + 0x14], eax
mov eax, dword [edi*4 + 0x100184a0]
inc edi
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xa8]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
cmp edi, 0x1f
jne 0x1000f7d0
mov eax, dword [ebp - 0xa8]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
mov eax, dword [ebp - 0xac]
test eax, eax
je 0x1000f891
xor eax, eax
lea edx, [ebp - 0x88]
lea esi, [esi]
nop
mov dword [edx + eax*4], eax
inc eax
cmp eax, 0x1f
jne 0x1000f870
mov dword [esp + 8], esi
mov dword [esp + 4], edx
mov dword [esp], 0x1f
call dword [sym.imp.user32.dll_SetSysColors]
sub esp, 0xc
mov edi, dword [sym.imp.user32.dll_SetThreadDpiAwarenessContext]
mov dword [esp], 0xffffffff
call edi
mov ebx, dword [sym.imp.user32.dll_SystemParametersInfoW]
sub esp, 4
mov dword [ebp - 0xac], eax
lea eax, [esi + 0x7c]
mov dword [esp + 0xc], 1
mov dword [esp + 8], eax
mov dword [esp + 4], 0x1f8
mov dword [esp], 0x2a
call ebx
lea eax, [esi + 0x274]
sub esp, 0x10
mov dword [esp + 0xc], 1
mov dword [esp + 8], eax
mov dword [esp + 4], 0x5c
mov dword [esp], 0x22
call ebx
mov eax, dword [esi + 0x2d0]
sub esp, 0x10
mov dword [esp + 0xc], 1
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1009
call ebx
mov eax, dword [esi + 0x2d4]
sub esp, 0x10
mov dword [esp + 0xc], 3
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1023
call ebx
mov eax, dword [ebp - 0xac]
sub esp, 0x10
mov dword [esp], eax
call edi
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x10011830
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
test ebx, ebx
je 0x10011890
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
call dword [sym.imp.user32.dll_PostMessageW]
sub esp, 0x10
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], sym._UXTHEME_broadcast_msg_enumchild_8
call dword [sym.imp.user32.dll_EnumChildWindows]
mov eax, 1
sub esp, 0xc
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 8
mov dword [esp + 4], esi
mov dword [esp], sym._UXTHEME_broadcast_msg_8
call dword [sym.imp.user32.dll_EnumWindows]
mov eax, 1
sub esp, 8
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 8
Function at 0x10012b50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
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 0x10012ba8
cmp byte [esi + ebx - 1], 0xa
je 0x10012b7c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x100151d8], 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]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x6abf3283
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..rsrc
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x7d655054
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219

Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push 0x5040d1
push 0x504088
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.USER32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.USER32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.USER32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret
Function at 0x401000
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [0x42cfe0], 0x24e1
mov eax, dword [0x42cfe0]
sub eax, 0x24e1
mov dword [0x42cfe0], eax
mov ecx, 1
test ecx, ecx
je 0x4010ab
mov edx, dword [0x42cfe0]
cmp edx, dword [ebp + 0xc]
jb 0x401037
jmp 0x4010ab
cmp dword [0x42cfe0], 0
jne 0x401055
push 0x263
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
test eax, eax
je 0x401055
xor eax, eax
jmp 0x4010ab
mov eax, dword [ebp + 8]
add eax, dword [0x42cfe0]
mov ecx, dword [eax]
add ecx, dword [0x42cfe0]
mov edx, dword [ebp + 8]
add edx, dword [0x42cfe0]
mov dword [edx], ecx
mov dword [ebp - 4], 0x1091
mov eax, dword [0x42cfe0]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax + 2]
push edx
mov eax, dword [ebp + 8]
add eax, dword [0x42cfe0]
push eax
jmp section..htext
mov esp, ebp
pop ebp
ret
Function at 0x402acc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004045ec
test esi, esi
jne 0x402b02
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004046dc
jmp 0x402b20
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029e0
mov edi, eax
test esi, esi
je 0x402b20
cmp dword [ebx], 0
je 0x402b20
dec esi
jmp 0x402b09
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403688
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x490020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403720
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403700
xor eax, eax
push ebp
push 0x4036f9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x40373c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403700
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x490020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x490020], ax
mov esp, ebp
pop ebp
ret

Function at 0x4043ec
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x49504c], 0
je 0x40444d
cmp word [0x495220], 0xd7b2
jne 0x404415
cmp dword [0x495228], 0
jbe 0x404415
mov eax, 0x49521c
call dword [0x495238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x490070
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404474
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x490030], 0
jne 0x404469
push 0
push 0x490068
push 0x490070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4045a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004027a4
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x49504d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404568
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc