joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40414c
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x404304
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4041ad
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x404320
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40421a
xor eax, eax
push ebp
push 0x404213
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4041fc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404340
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40421a
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4042fb
cmp byte [ebp - 0xd], 0
jne 0x40425c
cmp byte [ebp - 0x12], 0
je 0x4042fb
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404275
dec ebx
cmp byte [ebx], 0x2e
je 0x404284
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404274
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4042fb
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4042b1
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4042fb
cmp byte [ebp - 0xd], 0
je 0x4042fb
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4042fb
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x406af0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x406b29
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004032ec
jmp 0x406b32
mov eax, ebx
mov edx, esi
call fcn.004032a0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x406b3c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x406b5d
mov al, byte [esp]
jmp 0x406b5f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40bc64
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40bd2b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
xor eax, eax
push ebp
push 0x40bcad
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_MapVirtualKeyA
mov dword [ebp - 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40bcb7
cmp dword [ebp - 0xc], 0
je 0x40bcce
cmp dword [ebp - 0xc], 0xff
jge 0x40bcce
mov al, byte [ebp - 0xc]
mov byte [ebp - 5], al
jmp 0x40bd15
cmp dword [ebp - 4], 0x30
jl 0x40bcda
cmp dword [ebp - 4], 0x39
jle 0x40bce6
cmp dword [ebp - 4], 0x41
jl 0x40bcee
cmp dword [ebp - 4], 0x5a
jg 0x40bcee
mov al, byte [ebp - 4]
mov byte [ebp - 5], al
jmp 0x40bd15
cmp dword [ebp - 4], 0x60
jl 0x40bd12
cmp dword [ebp - 4], 0x69
jg 0x40bd12
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
sub eax, 0x60
call fcn.004061e0
mov eax, dword [ebp - 0x10]
mov al, byte [eax]
mov byte [ebp - 5], al
jmp 0x40bd15
mov eax, dword [ebp - 4]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bd32
lea eax, [ebp - 0x10]
call fcn.00403208
ret
Function at 0x40bd3c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40bd6a
push dword fs:[eax]
mov dword fs:[eax], esp
shr edx, 0x1f
test dl, 1
sete byte [ebp - 6]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40bd74
xor eax, eax
push ebp
push 0x40bd9d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040bc64
mov edx, dword [0x40e630]
mov byte [edx + 0xb], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40bda7
mov eax, dword [0x40e630]
mov dword [ebp - 0xc], eax
cmp byte [ebp - 6], 0
je 0x40be6a
xor eax, eax
push ebp
push 0x40bde4
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x14
call sub.user32.dll_GetKeyState
and ax, 0xff
cmp ax, 1
sete byte [ebp - 5]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40bdee
mov eax, dword [ebp - 0xc]
mov al, byte [eax + 0xa]
xor al, byte [ebp - 5]
je 0x40be09
push 1
mov eax, dword [ebp - 0xc]
add eax, 0xb
push eax
call sub.user32.dll_CharUpperBuffA
jmp 0x40be17
push 1
mov eax, dword [ebp - 0xc]
add eax, 0xb
push eax
call sub.user32.dll_CharLowerBuffA
xor eax, eax
push ebp
push 0x40be40
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov dl, byte [eax + 0xa]
mov eax, dword [ebp - 0xc]
add eax, 0xb
call fcn.0040bbc8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40be4a
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 0xb]
push eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 8]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
push eax
call sub.user32.dll_PostMessageA
cmp dword [ebp - 4], 0x10
jne 0x40be79
mov eax, dword [ebp - 0xc]
mov dl, byte [ebp - 6]
mov byte [eax + 0xa], dl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40bf7c
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov eax, dword [0x40e630]
cmp dword [eax], 0
jne 0x40c02e
xor eax, eax
push ebp
push 0x40bfc2
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [0x40d394]
mov eax, dword [eax]
push eax
push sym.KeyHook.dll_KeyboardProc
push 2
call sub.user32.dll_SetWindowsHookExA
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40bfcc
xor eax, eax
push ebp
push 0x40bfee
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x40e630]
mov edx, dword [ebp - 4]
mov dword [eax], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40bff8
xor eax, eax
push ebp
push 0x40c01b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x40e630]
mov edx, dword [ebp + 8]
mov dword [eax + 4], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40c025
mov eax, dword [0x40e630]
mov byte [eax + 0xa], 0
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x4032b1
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x48]
call edx
mov ebp, dword [esp + 0x14]
cmp ebp, 1
je 0x4032e4
cmp ebp, 4
je 0x4032e4
cmp ebp, 8
je 0x4032e4
cmp ebp, 0x10
je 0x4032e4
cmp ebp, 0x18
je 0x4032e4
cmp ebp, 0x20
je 0x4032e4
pop esi
xor al, al
pop ebp
ret 0xc
push ebx
push edi
mov edi, dword [esp + 0x14]
imul edi, ebp
shr edi, 3
mov eax, edi
and eax, 3
je 0x403300
mov ecx, 4
sub ecx, eax
add edi, ecx
xor ebx, ebx
cmp ebp, 8
ja 0x403315
mov edx, 1
mov ecx, ebp
shl edx, cl
mov dword [esi + 0x38], edx
jmp 0x403318
mov dword [esi + 0x38], ebx
mov eax, dword [esi + 0x38]
lea ecx, [eax*4 + 0x28]
push ecx
call fcn.0041d51d
mov dword [esi + 8], eax
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
mov edx, dword [esi + 8]
mov ecx, dword [esp + 0x18]
mov dword [edx], 0x28
mov eax, dword [esi + 8]
mov dword [eax + 4], ecx
mov edx, dword [esi + 8]
mov eax, dword [esp + 0x1c]
mov dword [edx + 8], eax
imul edi, eax
mov ecx, dword [esi + 8]
mov word [ecx + 0xe], bp
mov edx, dword [esi + 8]
mov ecx, 1
mov word [edx + 0xc], cx
mov edx, dword [esi + 8]
mov dword [edx + 0x10], ebx
mov eax, dword [esi + 8]
mov dword [eax + 0x14], edi
mov ecx, dword [esi + 8]
mov edx, dword [ecx + 0x14]
push edx
call fcn.0041d51d
add esp, 8
mov dword [esi + 0xc], eax
cmp ebp, 8
ja 0x4033ef
mov ecx, ebp
mov eax, 1
shl eax, cl
xor ecx, ecx
mov dword [esi + 0x38], eax
cmp eax, ebx
jbe 0x4033ef
mov edi, dword [esi + 0x38]
xor edx, edx
dec edi
mov eax, 0xff
div edi
mov edx, dword [esi + 8]
imul cl
mov byte [edx + ecx*4 + 0x28], al
mov eax, dword [esi + 8]
movzx edx, byte [eax + ecx*4 + 0x28]
mov byte [eax + ecx*4 + 0x29], dl
mov eax, dword [esi + 8]
movzx edx, byte [eax + ecx*4 + 0x29]
lea eax, [eax + ecx*4]
mov byte [eax + 0x2a], dl
mov eax, dword [esi + 8]
mov byte [eax + ecx*4 + 0x2b], bl
inc ecx
cmp ecx, dword [esi + 0x38]
jb 0x4033b2
lea edi, [esi + 0x10]
mov esi, dword [esi + 8]
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
pop edi
pop ebx
pop esi
mov al, 1
pop ebp
ret 0xc
Function at 0x4040f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x4a07e3
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
push ebp
push esi
push edi
mov eax, dword [0x4de6d0]
xor eax, esp
push eax
lea eax, [esp + 0x9c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xac]
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 0xa
push 0xa0
push 0
call esi
test eax, eax
jne 0x40413c
xor edi, edi
jmp 0x404147
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push 0xa
push 0xa0
push 0
call esi
test eax, eax
jne 0x40415a
xor esi, esi
jmp 0x404165
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
lea eax, [esp + 0x50]
push eax
call fcn.004068d0
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x50], vtable.ysl::storage::memory_streambuf.0
mov dword [esp + 0x8c], esi
mov dword [esp + 0x90], edi
mov dword [ecx], esi
mov edx, dword [esp + 0x74]
mov dword [edx], esi
mov ecx, dword [esp + 0x84]
lea eax, [esi + edi]
sub eax, esi
mov dword [ecx], eax
mov edx, dword [esp + 0x60]
mov dword [edx], esi
mov ecx, dword [esp + 0x70]
mov dword [ecx], esi
mov edx, dword [esp + 0x80]
mov dword [edx], eax
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0xac], 0
call fcn.00406700
mov byte [esp + 0xa4], 1
mov edx, dword [ebp + 0x74]
mov edx, dword [edx + 0x40]
lea esi, [ebp + 0x74]
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
lea edi, [ebp + 0xb0]
mov ebp, dword [edi]
push 0x20
mov ecx, esi
add ebp, 0x3c
call edx
push eax
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
push eax
mov eax, dword [ebp]
mov ecx, edi
call eax
mov edx, dword [edi]
mov eax, dword [edx + 0x34]
push esi
mov ecx, edi
call eax
mov byte [esp + 0xa4], 0
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 4]
lea eax, [esp + 0x1c]
mov dword [esp + edx + 0x14], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
push eax
mov dword [esp + 0x20], vtable.std::ios_base.0
call fcn.0045510e
mov dword [esp + 0xa8], 0xffffffff
add esp, 4
lea ecx, [esp + 0x50]
mov dword [esp + 0x50], vtable.ysl::storage::memory_streambuf.0
call fcn.004069d0
mov ecx, dword [esp + 0x9c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x98
ret 4
Function at 0x4047e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x4a0877
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4de6d0]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [esp + 0xb0]
mov eax, dword [esp + 0xb4]
push 0x30
push eax
push 0x84
mov ecx, ebx
call fcn.004285f7
push 0x4011e0
push 0x4011a0
push 0x18
push 8
lea ecx, [ebx + 0x88]
xor ebp, ebp
mov dword [esp + 0xb8], ebp
push ecx
mov dword [ebx], vtable.ButtonPage.0
call fcn.0043c3f7
lea edx, [ebx + 0x15c]
push edx
mov byte [esp + 0xac], 1
call fcn.00406cf0
push fcn.004012a0
push 0x401240
push 0x18
push 0x74
lea eax, [ebx + 0x174]
push eax
mov byte [esp + 0xbc], 2
call fcn.0043c3f7
lea esi, [ebx + 0xc54]
mov byte [esp + 0xa8], 3
call fcn.00404050
mov byte [esp + 0xa8], 4
mov eax, edi
mov dword [ebx + 0x148], edi
mov dword [ebx + 0xd40], ebp
call fcn.0041bc60
cmp byte [0xf40c64], 0
mov ecx, dword [eax]
mov dword [ebx + 0x14c], ecx
mov edx, dword [eax + 4]
mov dword [ebx + 0x150], edx
mov ecx, dword [eax + 8]
mov dword [ebx + 0x154], ecx
mov edx, dword [eax + 0xc]
mov dword [ebx + 0x158], edx
jne 0x404a0a
mov dword [esp + 0x18], 0xf40ff4
mov edi, 0x4fc520
movzx eax, word [edi]
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 0xa
push eax
push 0
call esi
test eax, eax
jne 0x40490e
xor ebp, ebp
jmp 0x404919
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
movzx eax, word [edi]
push 0xa
push eax
push 0
call esi
test eax, eax
jne 0x40492b
xor esi, esi
jmp 0x404936
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
lea eax, [esp + 0x1c]
push eax
call fcn.004068d0
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x1c], vtable.ysl::storage::memory_streambuf.0
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], ebp
mov dword [ecx], esi
mov edx, dword [esp + 0x40]
mov dword [edx], esi
mov ecx, dword [esp + 0x50]
lea eax, [esi + ebp]
sub eax, esi
mov dword [ecx], eax
mov edx, dword [esp + 0x2c]
mov dword [edx], esi
mov ecx, dword [esp + 0x3c]
mov dword [ecx], esi
mov edx, dword [esp + 0x4c]
mov dword [edx], eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x68]
push ecx
mov byte [esp + 0xb0], 5
call fcn.00406700
mov esi, dword [esp + 0x18]
lea edx, [esp + 0x64]
push edx
mov ecx, esi
mov byte [esp + 0xac], 6
call fcn.00403b90
mov byte [esp + 0xa8], 5
mov eax, dword [esp + 0x64]
mov ecx, dword [eax + 4]
lea edx, [esp + 0x6c]
mov dword [esp + ecx + 0x64], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
push edx
mov dword [esp + 0x70], vtable.std::ios_base.0
call fcn.0045510e
mov byte [esp + 0xac], 4
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], vtable.ysl::storage::memory_streambuf.0
call fcn.004069d0
add edi, 0xc
add esi, 0x3c
cmp edi, 0x4fc640
mov dword [esp + 0x18], esi
jl 0x4048f6
mov byte [0xf40c64], 1
mov ecx, ebx
call fcn.00426ff0
add eax, 4
and dword [eax], 0xffffffdf
mov eax, ebx
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret 8
Function at 0x4068d0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x49f40b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4de6d0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004555b8
push 4
mov dword [esp + 0x20], 0
call fcn.0041d4e3
mov edi, eax
add esp, 4
test edi, edi
je 0x40694e
call fcn.004553b9
mov dword [edi], eax
call fcn.004551e7
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.00455509
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x406943
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.00455531
jmp 0x406950
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x40c360
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a04db
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x4de6d0]
xor eax, esp
mov dword [esp + 0x244], eax
push ebx
push esi
mov eax, dword [0x4de6d0]
xor eax, esp
push eax
lea eax, [esp + 0x258]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0x100
lea ecx, [esp + 0x50]
push ecx
push eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x40c4ae
xor edx, edx
lea eax, [esp + 0x4c]
mov word [esp + 0x34], dx
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c3e0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x50]
lea esi, [esp + 0x34]
call fcn.00407730
mov ebx, 8
mov eax, esi
mov dword [esp + 0x260], 0
call fcn.0040d390
cmp eax, 0xffffffff
je 0x40c49b
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x48], ebx
jae 0x40c42b
lea eax, [esp + 0x34]
add eax, 0x10
call fcn.0040e040
mov ecx, dword [0xf415d4]
mov esi, eax
mov eax, dword [0xf415d8]
push 0
add esi, 0x3980000
push eax
mov edx, esi
push ecx
shr edx, 0x10
push edx
call fcn.00402920
test eax, eax
je 0x40c461
push esi
call fcn.004028b0
jmp 0x40c463
xor eax, eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, eax
call fcn.00402d80
cmp dword [eax + 0x18], ebx
jb 0x40c479
mov eax, dword [eax + 4]
jmp 0x40c47c
add eax, 4
mov edx, dword [esp + 0x10]
push eax
push edx
call dword [sym.imp.USER32.dll_SetWindowTextW]
cmp dword [esp + 0x2c], ebx
jb 0x40c49b
mov eax, dword [esp + 0x18]
push eax
call fcn.0041d512
add esp, 4
cmp dword [esp + 0x48], ebx
jb 0x40c4ae
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0041d512
add esp, 4
mov ecx, dword [esp + 0x258]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.0043ba5f
mov esp, ebp
pop ebp
ret
Function at 0x40fe70
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x49f40b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4de6d0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.004555b8
push 4
mov dword [esp + 0x20], 0
call fcn.0041d4e3
mov edi, eax
add esp, 4
test edi, edi
je 0x40feee
call fcn.004553b9
mov dword [edi], eax
call fcn.004551e7
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.00455509
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40fee3
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.00455531
jmp 0x40fef0
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x4134f0
Capabilities:
Create thread
Resume thread

Disassembly:
sub esp, 0x58
mov eax, dword [0x4de6d0]
xor eax, esp
mov dword [esp + 0x50], eax
cmp dword [0xf40c7c], 0
push esi
je 0x41364a
push 0x19054
call fcn.0041d4e3
add esp, 4
test eax, eax
je 0x413528
mov esi, eax
call fcn.00413150
mov esi, eax
jmp 0x41352a
xor esi, esi
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov eax, 0xfffe
mov word [esp + 8], ax
mov ax, word [esi + 0x20]
mov word [esp + 0xa], ax
movzx eax, ax
shl eax, 4
cdq
and edx, 7
add eax, edx
sar eax, 3
mov ecx, 0x10
mov word [esp + 0x16], cx
movzx ecx, ax
mov edx, ecx
imul ecx, ecx, 0xc80
imul edx, edx, 0xbb80
mov word [esp + 0x14], ax
mov dword [esp + 0x10], edx
mov eax, 0x16
mov word [esp + 0x18], ax
mov eax, dword [0x4c646c]
mov dword [esp + 0x20], eax
mov eax, dword [0x4c6474]
mov edx, 0x10
mov word [esp + 0x1a], dx
mov edx, dword [0x4c6470]
mov dword [esp + 0x24], edx
mov edx, dword [0x4c6478]
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
push 0
lea edx, [esi + 0x10]
push edx
lea eax, [esp + 0x10]
mov dword [esp + 0x48], eax
mov eax, dword [0xf40c74]
lea edx, [esp + 0x38]
mov dword [esp + 0x14], 0xbb80
mov dword [esp + 0x24], 0x3f
mov dword [esp + 0x38], 0x24
mov dword [esp + 0x3c], 0x58020
mov dword [esp + 0x40], ecx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jge 0x41365c
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
xor eax, eax
pop esi
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0043ba5f
add esp, 0x58
ret
lea ecx, [esi + 0x19024]
push ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
push 0
push 0
push 0
mov dword [esi + 0x1903c], 1
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x19040], eax
test eax, eax
je 0x413642
push 0x21
push 0
push eax
push 0
push 0x10
call dword [sym.imp.WINMM.dll_timeSetEvent]
lea ecx, [esi + 0x19048]
push ecx
push 4
push esi
push 0x413850
push 0
push 0
mov dword [esi + 0x1904c], eax
call fcn.0043c9fe
add esp, 0x18
mov dword [esi + 0x19044], eax
test eax, eax
je 0x413642
push 0xf
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ecx, dword [esi + 0x19044]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esp + 0x54]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0043ba5f
add esp, 0x58
ret