joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401470
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
mov eax, dword [0x41e060]
xor eax, esp
mov dword [esp + 0xa0], eax
push ebx
push esi
push edi
push str.csMusicMutext
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x4015d6
cmp eax, 0xb7
je 0x4015d6
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0
lea eax, [esp + 0x28]
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
add eax, 0xfffffe34
add ecx, 0xfffffefc
lea esi, [esp + 0x50]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
call fcn.00401070
push ecx
mov eax, esp
mov dword [esp + 0x14], esp
push ecx
mov dword [eax], 0
mov eax, esp
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], esp
mov dword [eax], ecx
call fcn.004016f0
test eax, eax
jne 0x401549
mov eax, dword [esp + 0x64]
test eax, eax
je 0x40152d
push eax
call fcn.0040b4dc
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.0040b6ee
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [ebp + 0x14]
mov eax, dword [esp + 0x54]
push edx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esp + 0x54]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
push 0
lea edx, [esp + 0x40]
push edx
call esi
test eax, eax
jle 0x4015a5
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
lea eax, [esp + 0x34]
push eax
call edi
lea ecx, [esp + 0x34]
push ecx
call ebx
push 0
push 0
push 0
lea edx, [esp + 0x40]
push edx
call esi
test eax, eax
jg 0x401586
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [esp + 0x64]
mov esi, dword [esp + 0x3c]
test eax, eax
je 0x4015bd
push eax
call fcn.0040b4dc
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.0040b6ee
mov esp, ebp
pop ebp
ret 0x10
push 0
push 0x419134
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
test esi, esi
je 0x401609
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
push 1
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esp + 0xac]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0040b6ee
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4091a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x4091b0
lea eax, [ebp + 0xd]
pop ebp
ret 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
lea ecx, [ecx]
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x4091c0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x409730
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x228
mov eax, dword [0x41e060]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [ecx]
push ebx
mov ebx, dword [ecx + 4]
push ebp
push esi
push edi
mov edi, dword [esp + 0x23c]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x20]
push ecx
xor ebp, ebp
or ebx, 0x2001f
push ebx
push ebp
push edi
push eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x14]
mov esi, eax
cmp esi, ebp
jne 0x4097aa
xor eax, eax
cmp ecx, ebp
je 0x409792
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
and ebx, 0x300
mov esi, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
cmp eax, ebp
je 0x4097b8
cmp ecx, ebp
je 0x40984b
push ecx
jmp 0x409845
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x28]
push edx
push ebp
push ebp
push ebp
lea eax, [esp + 0x2c]
push eax
lea edx, [esp + 0x44]
push edx
push ebp
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
jne 0x40981a
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
call fcn.00409730
mov ebx, eax
cmp ebx, ebp
jne 0x409868
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x18]
push ebp
push ebp
push ebp
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x44]
push eax
push ebp
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
je 0x4097e0
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40982d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebp
mov esi, dword [esp + 0x24]
mov dword [esp + 0x18], ebp
call fcn.004098e0
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40984b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040b6ee
add esp, 0x228
ret 4
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x409877
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x40984d
Function at 0x40a360
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x416070
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x41e060]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x410]
mov esi, dword [ebp + 0x414]
xor ebx, ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], ebx
mov dword [ebp], ebx
push 2
push ebx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x18], edi
cmp edi, ebx
jne 0x40a3df
call fcn.00408ab0
mov esi, eax
jmp 0x40a4c1
mov eax, dword [ebp - 0x14]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x40a3fb
call fcn.00408ab0
jmp 0x40a4b8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x40a414
call fcn.00408ab0
jmp 0x40a4b8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [eax + 1]
mov dword [ebp - 0x14], eax
cmp ecx, eax
jae 0x40a448
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x40a436
lea eax, [ebp]
call fcn.00408a40
lea esi, [ebp - 0x1c]
call fcn.004091f0
mov eax, 0x8007000e
jmp 0x40a4d3
mov eax, ecx
lea esi, [ebp]
mov byte [ebp - 4], 2
call fcn.00408a70
mov dword [ebp - 4], 1
jmp 0x40a471
mov ecx, dword [ebp]
cmp ecx, ebx
jne 0x40a47f
mov esi, 0x8007000e
jmp 0x40a4ba
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
push eax
push ecx
push eax
push edx
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
jne 0x40a49d
call fcn.00408ab0
jmp 0x40a4b8
mov edx, dword [ebp]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x418]
mov ecx, dword [ebp]
push eax
lea edx, [ebp - 0x28]
call fcn.0040a210
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x40a4d1
lea eax, [ebp]
call fcn.00408a40
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.0040b6ee
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40abf0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x41617c
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x41e060]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41e060]
xor eax, esp
push eax
lea eax, [esp + 0x22c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x23c]
xor edi, edi
mov eax, 1
mov dword [esp + 0x14], edi
test byte [0x420a90], al
jne 0x40ac62
or dword [0x420a90], eax
mov eax, dword [0x41fd48]
push 0x4163a0
mov dword [0x420a8c], eax
call fcn.0040b8fd
add esp, 4
mov ecx, dword [0x420a8c]
cmp dword [ecx - 8], edi
jne 0x40ae03
lea edx, [esp + 0x20]
push edx
push edi
push edi
push 0x1a
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, edi
jne 0x40adab
lea ebx, [esp + 0x20]
lea esi, [esp + 0x18]
call fcn.0040b330
mov dword [esp + 0x234], edi
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 8]
cmp eax, edi
jle 0x40acc1
movzx eax, word [ecx + eax*2 - 2]
cmp ax, 0x5c
jne 0x40acc1
mov eax, 0x419adc
mov edi, esi
call fcn.0040a9e0
jmp 0x40acdc
push str.Chaosu_
push str.Chaosu_
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
lea eax, [esp + 0x1c]
call fcn.0040a950
lea edi, [esp + 0x18]
mov eax, 0x420a8c
call fcn.0040b040
mov eax, edi
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.0040aec0
mov byte [esp + 0x234], 1
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, 0xffffffff
jne 0x40ad5b
lea ecx, [esp + 0x14]
call fcn.0040aa40
mov edi, eax
mov eax, 0x420a8c
mov byte [esp + 0x234], 2
call fcn.0040b040
mov eax, dword [esp + 0x14]
lea ecx, [eax - 0xc]
cmp ecx, 0x41fd38
je 0x40ad5b
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x40ad5b
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call fcn.0040b77a
add esp, 4
mov eax, dword [esp + 0x1c]
lea edx, [eax - 0xc]
cmp edx, 0x41fd38
je 0x40ad84
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x40ad84
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff4
push eax
call fcn.0040b77a
add esp, 4
mov dword [esp + 0x234], 0xffffffff
mov eax, dword [esp + 0x18]
lea ecx, [eax - 0xc]
cmp ecx, 0x41fd38
je 0x40ae03
lea esi, [eax - 0xc]
push esi
call ebx
test eax, eax
jg 0x40ae03
push esi
jmp 0x40adfb
lea ecx, [esp + 0x14]
call fcn.0040aa40
mov edi, eax
mov eax, 0x420a8c
mov dword [esp + 0x234], 3
call fcn.0040b040
mov dword [esp + 0x234], 0xffffffff
mov eax, dword [esp + 0x14]
lea edx, [eax - 0xc]
cmp edx, 0x41fd38
je 0x40ae03
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40ae03
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call fcn.0040b77a
add esp, 4
mov eax, ebp
call fcn.0040af40
mov eax, ebp
mov ecx, dword [esp + 0x22c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.0040b6ee
add esp, 0x224
ret
Function at 0x40b58e
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x41ff18], 0
push esi
jne 0x40b501
call fcn.0040b427
test eax, eax
je 0x40b544
mov eax, dword [0x41ff18]
cmp eax, 1
jne 0x40b522
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x40b544
pop esi
ret
push eax
call dword [0x41ff20]
test eax, eax
jne 0x40b58c
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x40b548
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x41ff18]
call dword [0x41ff20]
mov edi, eax
test edi, edi
je 0x40b56d
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x40b589
mov edi, esi
add esi, 0xff0
push edi
push dword [0x41ff18]
call dword [0x41ff1c]
add edi, 0x10
cmp edi, esi
jb 0x40b575
mov eax, edi
pop edi
pop esi
ret
jmp 0x40b4ee

Function at 0x40b6ee
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41e060]
jne 0x40b6f8
repz ret
jmp fcn.0040c2cc

Function at 0x410c71
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.0040ca9a
and dword [ebp - 4], 0
cmp dword [0x420910], 0
mov ebx, eax
jne 0x410d22
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x410dd3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x410dd3
push eax
call fcn.0040ca28
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x420910], eax
call esi
push eax
call fcn.0040ca28
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x420914], eax
call esi
push eax
call fcn.0040ca28
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x420918], eax
call esi
push eax
call fcn.0040ca28
pop ecx
mov dword [0x420920], eax
test eax, eax
je 0x410d22
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040ca28
pop ecx
mov dword [0x42091c], eax
mov eax, dword [0x42091c]
cmp eax, ebx
je 0x410d7a
cmp dword [0x420920], ebx
je 0x410d7a
push eax
call fcn.0040caa3
push dword [0x420920]
mov esi, eax
call fcn.0040caa3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x410d7a
test edi, edi
je 0x410d7a
call esi
test eax, eax
je 0x410d71
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x410d71
test byte [ebp - 0xc], 1
jne 0x410d7a
or dword [ebp + 0x10], 0x200000
jmp 0x410db3
mov eax, dword [0x420914]
cmp eax, ebx
je 0x410db3
push eax
call fcn.0040caa3
pop ecx
test eax, eax
je 0x410db3
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x410db3
mov eax, dword [0x420918]
cmp eax, ebx
je 0x410db3
push eax
call fcn.0040caa3
pop ecx
test eax, eax
je 0x410db3
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x420910]
call fcn.0040caa3
pop ecx
test eax, eax
je 0x410dd3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x410dd5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40cf5d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x42d338
cmp edx, dword [eax]
je 0x40cf7f
add eax, 8
inc ecx
cmp eax, 0x42d3c8
jl 0x40cf70
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x42d338]
jne 0x40d0ad
mov eax, dword [0x4301a4]
cmp eax, 1
je 0x40d087
test eax, eax
jne 0x40cfb0
cmp dword [0x42cf14], 1
je 0x40d087
cmp edx, 0xfc
je 0x40d0ad
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40cfe7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040d1e0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040d2d0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40d02a
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040d2d0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x425e6c
push edi
call fcn.0040fe50
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040d1e0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040d1f0
lea eax, [ebp - 0xa0]
push 0x425e4c
push eax
call fcn.0040d1f0
push dword [esi + 0x42d33c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040d1f0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040fdb8
add esp, 0x2c
pop edi
jmp 0x40d0ad
lea eax, [ebp + 8]
lea esi, [esi + 0x42d33c]
push 0
push eax
push dword [esi]
call fcn.0040d2d0
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]
pop esi
leave
ret
Function at 0x415760
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0040a6a0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41582b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41582b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4157de
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4157e9
or bh, 8
and edi, 0x8000000
je 0x415804
mov eax, dword [0x43193c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41582b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x415c00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x415c2b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x415c4f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x415c6a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x41a252
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x41a294
call fcn.0041f19b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41a294
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41a28b
xor eax, eax
jmp 0x41a29c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041a2a2
pop edi
pop esi
pop ebx
ret 4

Function at 0x41ec00
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 0x41ec2e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41ec4c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041eb66
jmp 0x41ec4c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41ec4c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0041eb66
test edi, edi
mov eax, edi
jne 0x41ec36
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x409978
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409a4b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409a64
push ebx
push 0x409a70
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.00403388
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00402750
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004033e8
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x4099f8
mov al, 0x69
call fcn.0040961c
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.0040994c
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409a01
call fcn.0040994c
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409a52
lea eax, [ebp - 4]
call fcn.0040316c
ret

Function at 0x409b04
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409bb8
jmp 0x409bad
cmp dword [esi + 0x10], 0x1000
jne 0x409b99
test byte [esi + 0x15], 1
jne 0x409b99
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409b58
cmp eax, 2
je 0x409b58
cmp eax, 0x10
je 0x409b58
cmp eax, 0x20
jne 0x409b6d
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409b6d
mov bl, 1
xor ebp, ebp
jmp 0x409b7e
mov eax, dword [esi]
add eax, ebp
call fcn.00409afc
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409b71
test bl, bl
je 0x409b99
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409bb8
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409b30
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

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