joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10081191
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x160
mov eax, dword [0x10243228]
xor eax, ebp
mov dword [esp + 0x158], eax
lea esi, [esp + 0x54]
push 0x104
push 0xff
push esi
call fcn.101db130
add esp, 0xc
mov dword [esi - 0xc], esi
mov dword [esi - 8], esi
lea eax, [esp + 0x154]
mov dword [esi - 4], eax
xor esi, esi
lea eax, [esp + 0x10]
mov dword [eax + 0x24], esi
mov dword [eax + 0x20], esi
xorps xmm0, xmm0
movaps xmmword [eax + 0x10], xmm0
movaps xmmword [eax], xmm0
mov dword [eax + 0x28], 0xffff
xor edi, edi
dec edi
lea ebx, [esp + 8]
mov dword [ebx], edi
mov dword [ebx + 4], edi
push eax
push dword [ebp + 0xc]
push ebx
call fcn.100807f3
add esp, 0xc
cmp dword [ebx], esi
je 0x1008123a
mov esi, dword [ebp + 8]
call fcn.101ad951
cmp dword [esp + 0xc], eax
jne 0x10081286
cmp dword [esp + 8], 2
jne 0x10081286
cmp byte [ebp + 0x10], 0
je 0x10081286
mov dword [esi], 0
call fcn.101ada37
mov dword [esi + 4], eax
jmp 0x10081290
mov esi, dword [ebp + 8]
mov dword [esi], edi
mov dword [esi + 4], edi
lea eax, [esp + 0x48]
push eax
push dword [ebp + 0xc]
push esi
call fcn.10080c93
add esp, 0xc
cmp dword [esi], 0
lea edi, [esp + 0x54]
jne 0x10081294
cmp dword [esp + 0x34], 3
jne 0x100812bd
mov word [esp + 8], 0
lea ecx, [esp + 0x48]
push ebx
call fcn.10081508
lea eax, [esp + 0x48]
add dword [eax + 4], 0xfffffffe
push dword [eax]
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
jmp 0x100812de
movsd xmm0, qword [esp + 8]
movsd qword [esi], xmm0
lea edi, [esp + 0x54]
mov eax, dword [esp + 0x48]
cmp eax, edi
je 0x100812a5
push eax
call fcn.101f61b2
add esp, 4
mov ecx, dword [esp + 0x158]
xor ecx, ebp
call fcn.101d7611
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov word [esp + 8], 0
lea ecx, [esp + 0x48]
push ebx
call fcn.10081508
lea eax, [esp + 0x48]
add dword [eax + 4], 0xfffffffe
push dword [eax]
call dword [sym.imp.kernel32.dll_DeleteFileW]
test eax, eax
jne 0x1008130f
xor eax, eax
dec eax
mov dword [esi], eax
mov dword [esi + 4], eax
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push esi
call fcn.1007f423
add esp, 8
call fcn.101ad951
cmp dword [esi + 4], eax
jne 0x10081294
cmp dword [esi], 2
jne 0x10081294
cmp byte [ebp + 0x10], 0
je 0x10081294
mov dword [esi], 0
call fcn.101ada37
mov dword [esi + 4], eax
jmp 0x10081294
Function at 0x101f61b2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x101f61c1
pop dword [ebp - 0x10]
mov eax, 0x101f61c1
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x11b45a8c
sub dword [ebp - 0x20], 0xc3621541
mov dword [ebp - 0x1c], 0xda3ce57c
add dword [ebp - 0x1c], 0x57f666c9
mov dword [ebp - 0x18], 0x737f0ba7
sub dword [ebp - 0x18], 0x2732c779
mov dword [ebp - 0x14], 0x62a3c493
sub dword [ebp - 0x14], 0x62a3c493
lea eax, [ebp - 0x20]
push eax
mov eax, 0xf5aa689
add eax, 0xc93ef7
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x64f7c5e8
sub dword [ebp - 0x20], 0xf0855c92
mov dword [ebp - 0x1c], 0x5e610404
sub dword [ebp - 0x1c], 0x1cf4a28f
mov dword [ebp - 0x18], 0x44e5f891
add dword [ebp - 0x18], 0x1e8973db
mov dword [ebp - 0x14], 0x54a67315
sub dword [ebp - 0x14], 0x54a67315
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x45fee
push 0
call eax
mov ecx, 0x499f
xor edx, edx
add edx, eax
mov esi, 0x102a4600
add esi, dword [ebp - 0x10]
mov ebx, 0x5133926f
sub ebx, 0xf0c8196b
add dword [ebp - 8], 0x160f3816
mov edi, dword [esi]
xor dword [ebp - 8], eax
sub edi, ebx
mov dword [edx], edi
add dword [ebp - 8], 0x26ef03da
add edx, 0xc8835344
add edx, 0x377cacc0
add esi, 4
loop 0x101f62cf
add eax, 0x1194f
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, sym.libGLESv2.dll_Ordinal_0
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x402340
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x493830
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [ebp - 0xac]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xac]
mov dword [ebp - 0xac], 0x9c
push eax
call esi
test eax, eax
jne 0x4023b5
lea ecx, [ebp - 0xac]
mov dword [ebp - 0xac], 0x94
push ecx
call esi
test eax, eax
jne 0x4023b5
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x9c]
sub eax, 0
je 0x40257d
dec eax
je 0x4024eb
dec eax
jne 0x40258a
mov eax, dword [ebp - 0xa8]
mov esi, dword [ebp + 8]
mov edi, 4
cmp eax, edi
ja 0x4023f6
push str.Microsoft_Windows_NT
mov ecx, esi
call fcn.0046b583
mov eax, dword [ebp - 0xa8]
cmp eax, 5
jne 0x402437
mov eax, dword [ebp - 0xa4]
test eax, eax
jne 0x40241c
push str.Microsoft_Windows_2000
mov ecx, esi
call fcn.0046b583
mov eax, dword [ebp - 0xa8]
cmp eax, 5
jne 0x402437
cmp dword [ebp - 0xa4], 1
jne 0x402497
push str.Microsoft_Windows_XP
mov ecx, esi
call fcn.0046b583
mov eax, dword [ebp - 0xa8]
cmp eax, edi
ja 0x402497
mov edx, dword [0x4bf204]
mov dword [ebp + 8], edx
mov ecx, dword [ebp - 0xa0]
lea edx, [ebp - 0x98]
and ecx, 0xffff
mov dword [ebp - 4], 0
push ecx
mov ecx, dword [ebp - 0xa4]
push edx
push ecx
push eax
lea edx, [ebp + 8]
push str.version__d._d__s__Build__d_
push edx
call fcn.00463999
add esp, 0x18
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.0046b812
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.0046b3fa
jmp 0x40258a
mov ecx, dword [0x4bf204]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0xa0]
lea eax, [ebp - 0x98]
and edx, 0xffff
lea ecx, [ebp - 0x10]
push edx
push eax
push str._s__Build__d_
push ecx
mov dword [ebp - 4], 1
call fcn.00463999
add esp, 0x10
lea edx, [ebp - 0x10]
mov ecx, esi
push edx
call fcn.0046b812
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.0046b3fa
jmp 0x40258a
mov eax, dword [ebp - 0xa8]
mov edi, 4
cmp eax, edi
jne 0x40258a
mov eax, dword [ebp - 0xa4]
mov esi, dword [ebp + 8]
test eax, eax
jne 0x402539
push str.Microsoft_Windows_95
mov ecx, esi
call fcn.0046b583
mov al, byte [ebp - 0x97]
cmp al, 0x43
je 0x402525
cmp al, 0x42
jne 0x402531
push str.OSR2
mov ecx, esi
call fcn.0046b583
cmp dword [ebp - 0xa8], edi
jne 0x40258a
cmp dword [ebp - 0xa4], 0xa
jne 0x40256b
push str.Microsoft_Windows_98
mov ecx, esi
call fcn.0046b583
cmp byte [ebp - 0x97], 0x41
jne 0x402563
push 0x4bc458
mov ecx, esi
call fcn.0046b583
cmp dword [ebp - 0xa8], edi
jne 0x40258a
cmp dword [ebp - 0xa4], 0x5a
jne 0x40258a
push str.Microsoft_Windows_Me
mov ecx, esi
jmp 0x402585
mov ecx, dword [ebp + 8]
push str.Microsoft_Win32s
call fcn.0046b583
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x403ac0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x493a40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
mov ebx, ecx
push esi
push edi
lea ecx, [ebx + 4]
call fcn.00421b90
push eax
lea ecx, [ebp - 0x14]
call fcn.0046b468
mov eax, dword [0x4bf204]
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], eax
lea edi, [ebx + 0x15e4]
push str._Desc
lea ecx, [ebp - 0x1c]
push edi
push ecx
mov byte [ebp - 4], 1
call fcn.0046b68f
mov esi, dword [eax]
mov eax, dword [ebp - 0x14]
mov edx, dword [ebx + 0x15e0]
push eax
push 0x104
push 0x104
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], edx
call fcn.0046b82a
mov ecx, dword [ebp - 0x18]
push eax
push 0x4c4d50
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.0046b3fa
or esi, 0xffffffff
lea ecx, [ebp - 0x10]
push esi
call fcn.0046b879
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x403bb8
lea edx, [ebp - 0x3d]
lea ecx, [ebp - 0x3e]
push edx
lea edx, [ebp - 0x3f]
push ecx
push edx
lea ecx, [ebp - 0x40]
lea edx, [ebp - 0x41]
push ecx
push edx
lea ecx, [ebp - 0x42]
lea edx, [ebp - 0x43]
push ecx
push edx
lea ecx, [ebp - 0x44]
lea edx, [ebp - 0x48]
push ecx
push edx
lea ecx, [ebp - 0x4c]
lea edx, [ebp - 0x50]
push ecx
push edx
lea ecx, [ebp - 0x54]
lea edx, [ebp - 0x58]
push ecx
push edx
push str._d:_d:_d:_d:_d:_d:_d:_d:_d:_d:_d:_d:_d
push eax
call fcn.00442d1a
add esp, 0x3c
cmp eax, 0xd
je 0x403bcc
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0
call fcn.0046b3fa
mov dword [ebp - 4], esi
jmp 0x403c75
push str._Name
lea eax, [ebp - 0x1c]
push edi
push eax
call fcn.0046b68f
mov ecx, dword [ebp - 0x14]
mov edi, dword [eax]
mov esi, dword [ebx + 0x15e0]
push ecx
push 0x104
push 0x104
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.0046b82a
push eax
push 0x4c4d50
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.0046b3fa
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.0046b879
mov edi, dword [ebp - 0x10]
mov eax, dword [edi - 8]
test eax, eax
jle 0x403c62
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x3c]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebx + 0x15a4]
mov ecx, 0xf
lea esi, [ebp - 0x58]
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
call fcn.00403a90
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0
call fcn.0046b3fa
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0046b3fa
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4045d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x493b58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x208
mov eax, dword [ebp + 8]
push edi
push eax
lea ecx, [ebp + 8]
call fcn.0046b16f
mov ecx, dword [ebp + 8]
push 5
push 0
push 0
push ecx
push str.open
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
ja 0x4046e4
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x214]
push ecx
mov eax, dword [edx]
push eax
push OleUIInsertObjectA
call fcn.00404710
add esp, 0xc
test eax, eax
jne 0x4046e4
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [ebp - 0x214]
push str._shellopencommand
push edx
call edi
lea eax, [ebp - 0x214]
lea ecx, [ebp - 0x214]
push eax
push ecx
push OleUIInsertObjectA
call fcn.00404710
add esp, 0xc
test eax, eax
jne 0x4046e4
push esi
lea edx, [ebp - 0x214]
push str.__1_
push edx
call fcn.0044302f
mov esi, eax
add esp, 8
test esi, esi
jne 0x4046c2
lea eax, [ebp - 0x214]
push 0x4bc66c
push eax
call fcn.0044302f
mov esi, eax
add esp, 8
test esi, esi
jne 0x4046c2
lea ecx, [ebp - 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [ebp + eax - 0x215]
jmp 0x4046c5
mov byte [esi], 0
push 0x4bc668
push esi
call edi
mov edx, dword [ebp + 8]
push edx
push esi
call edi
lea eax, [ebp - 0x214]
push 5
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop esi
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.0046b3fa
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x404710
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40476e
mov edx, dword [ebp + 0xc]
lea eax, [ebp + 8]
lea ecx, [ebp - 0x104]
push eax
push ecx
push esi
push edx
mov dword [ebp + 8], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x104]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x407e10
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xff
cmp eax, 5
jb 0x407e35
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x40]
push eax
push str..Global_s
push ecx
jmp 0x407e42
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x40]
push edx
push str.._s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x40]
push 0
push 0x40000080
push 3
push 0
push 0
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x407e72
xor eax, eax
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x407e84
mov dword [ecx], eax
mov eax, 1
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x407ea0
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push esi
push 0xf01ff
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x407ec5
pop esi
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x1c]
push edi
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x407fd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov dx, word [0x4bc668]
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x10a]
mov word [ebp - 0x10c], dx
mov word [ebp - 0x220], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x44
xor eax, eax
lea edi, [ebp - 0x21e]
push 0x105
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [ebp - 0x10c]
mov dword [ebp - 4], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
jbe 0x408063
lea ecx, [ebp - 0x10c]
lea edx, [ebp - 0x220]
push ecx
push str._skernel32.dll
push edx
call fcn.00442d4e
add esp, 0xc
test eax, eax
jle 0x408063
lea eax, [ebp - 0x220]
push eax
call edi
mov esi, eax
test esi, esi
jne 0x408070
push str.kernel32.dll
call edi
mov esi, eax
test esi, esi
je 0x4080ad
push str.IsWow64Process
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x4080a2
lea ecx, [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
test eax, eax
jne 0x4080a2
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x4080ad
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4080c0
Capabilities:
Get common file path
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
xor ebx, ebx
push 0x4dcbc4
push 0x104
mov dword [0x4dcdd4], ebx
mov dword [0x4dcdd8], ebx
mov dword [0x4dcdcc], 0xffffffff
mov dword [0x4bc734], 0xffffffff
mov byte [0x4dccc8], bl
mov byte [0x4dcbc4], bl
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x4dccc8
push ebx
push 0x4bc730
push 0x4dcbc4
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push ebx
push 0x8000000
push 4
push ebx
push 1
push 0xc0000000
push 0x4dccc8
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x408146
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
push 0x4000000
push ebx
push 4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4bc734], eax
call esi
cmp dword [0x4bc734], ebx
jne 0x408175
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [0x4bc734]
push 0x4000000
push ebx
push ebx
push 0xf001f
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
mov dword [0x4dcdd0], eax
jne 0x4081b2
mov edx, dword [0x4bc734]
push edx
call esi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
add eax, 0x400000
pop esi
mov dword [0x4dcdd8], eax
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4119d0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x494b48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, ecx
mov esi, dword [ebp + 8]
mov ebx, dword [sym.imp.USER32.dll_GetSysColor]
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x30], eax
add eax, 0xb
mov dword [ebp - 0x28], eax
mov eax, dword [edi]
mov dword [ebp - 0x2c], ecx
add ecx, 0xb
test eax, eax
mov dword [ebp - 0x24], ecx
je 0x411a27
push 0x14
call ebx
push eax
push 0x10
call ebx
push eax
lea eax, [ebp - 0x30]
push eax
jmp 0x411a3c
mov eax, dword [edi + 4]
test eax, eax
je 0x411a43
push 0x10
call ebx
push eax
push 0x14
call ebx
lea ecx, [ebp - 0x30]
push eax
push ecx
mov ecx, esi
call fcn.0047f4ed
mov edx, dword [esi + 8]
push edx
call dword [sym.imp.GDI32.dll_GetTextColor]
mov edx, dword [esi]
push 0x12
mov dword [ebp - 0x18], eax
mov dword [ebp + 8], edx
call ebx
push eax
mov eax, dword [ebp + 8]
mov ecx, esi
call dword [eax + 0x30]
push 1
mov ecx, esi
call fcn.0046ecf0
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], vtable.CFont.0
mov ecx, dword [esi + 8]
push 0x58
push ecx
mov dword [ebp - 4], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push 0x60
push 0x3c
call dword [sym.imp.KERNEL32.dll_MulDiv]
push 0
push str.Marlett
push eax
lea ecx, [ebp - 0x20]
call fcn.0047f582
mov edx, dword [esi]
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
call dword [edx + 0x28]
push 0x4bcac8
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
call fcn.0046b468
mov eax, dword [eax]
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 8]
add ecx, 2
mov edi, dword [eax - 8]
add edx, 2
mov dword [ebp + 8], edi
mov edi, dword [esi]
push dword [ebp + 8]
mov byte [ebp - 4], 1
push eax
push ecx
push edx
mov ecx, esi
call dword [edi + 0x5c]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0
call fcn.0046b3fa
mov eax, dword [ebp - 0x14]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x28]
push ebx
mov ecx, esi
call fcn.0046ecf0
mov eax, dword [ebp - 0x18]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x30]
mov dword [ebp - 0x20], vtable.CGdiObject.0
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 2
call fcn.0046f56b
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4123b0
Capabilities:
Terminate thread
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov edx, dword [esi + 0x4054]
mov eax, dword [esi + 0x4090]
mov ecx, dword [esi + 0x401c]
push edx
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [esi + 0x4034]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 0x4024]
mov edx, dword [esi + 0x4020]
lea ebx, [esi + 0x4080]
lea eax, [ebp - 4]
push ebx
push eax
mov eax, dword [esi + 4]
push ecx
push edx
push eax
mov dword [esi + 0x4088], edi
mov dword [esi + 0x408c], edi
mov dword [esi + 0x4028], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4124da
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x41249c
cmp eax, 0x3e5
je 0x41244d
push str.WriteFile__
mov ecx, esi
call fcn.0040ef50
jmp 0x4124da
push 0xffffffffffffffff
lea ecx, [ebp - 0xc]
push edi
push ecx
push 2
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x4124da
mov eax, dword [esi + 4]
lea edx, [ebp - 4]
push 1
push edx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x41247e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
mov eax, dword [esi + 0x4024]
cmp ecx, eax
je 0x4124da
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4124da
call fcn.00402c70
jmp 0x4124da
push edi
push edi
push str.Error__connection_failure_
call fcn.0047712c
mov edx, dword [esi + 0x402c]
mov dword [esi + 0x4050], edi
mov eax, dword [edx + 0x28]
cmp eax, edi
je 0x4124ca
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi + 0x404c], edi
push 1
push 0x64
mov dword [esi + 4], 0xffffffff
call fcn.0046bb99
lea eax, [esi + 0x4034]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0x4018]
mov dword [esi + 0x4028], 1
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4127a0
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateThread]
push edi
xor edi, edi
mov eax, dword [esi + 0x402c]
mov eax, dword [eax + 0x28]
cmp eax, edi
je 0x4127cb
push 0x64
push eax
call ebx
mov dword [esi + 0x402c], edi
mov dword [esi + 0x404c], edi
mov ecx, dword [esi + 0x4030]
mov eax, dword [ecx + 0x28]
cmp eax, edi
je 0x4127e9
push 0x64
push eax
call ebx
mov dword [esi + 0x4030], edi
mov dword [esi + 0x4050], edi
mov dword [esi + 4], 0xffffffff
call fcn.00402c70
mov edx, dword [esi + 4]
pop edi
pop esi
mov dword [eax + 0x4e8], edx
pop ebx
ret
Function at 0x4170c0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push esi
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x20]
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_HeapCreate]
test eax, eax
mov dword [0x4dceac], eax
jne 0x4170fc
push str.HeapCreate__Status_message_
call fcn.00418960
mov eax, dword [0x4dceac]
add esp, 4
push 8
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push str.Status_message_go_here:_r_n
mov ecx, esi
mov dword [0x4dcea0], eax
mov dword [0x4dcea8], eax
mov dword [0x4dcea4], 0
call fcn.00416e70
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x417a80
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push eax
mov ecx, esi
call fcn.004726b0
mov ebx, eax
mov eax, dword [esi]
test eax, eax
je 0x417ac9
lea ecx, [ebp - 0x20]
push 0x1e
push ecx
push ebx
mov byte [ebp - 0x20], 0
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [ebp - 0x20]
push edx
call fcn.004442b7
mov ecx, dword [ebp + 0x10]
add esp, 4
mov dword [ecx], eax
pop esi
mov dword [ecx + 4], edx
pop ebx
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 0x20]
push 0xa
push eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
push edx
call fcn.004444fe
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x20]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x20]
push ecx
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret