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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x10016040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, ecx
cmp dword [edi + 0xe8], eax
jne 0x1000433e
cmp dword [edi + 0xec], ebx
je 0x10004429
and dword [ebp - 0x14], 0
lea ecx, [edi + 0x30]
and dword [ebp - 0x10], 0
mov dword [edi + 0xe8], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push esi
push eax
mov dword [edi + 0xec], ebx
mov dword [ebp - 8], ebx
call fcn.10009157
mov esi, dword [edi + 4]
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, esi
push esi
sete byte [ebp - 0x25]
and dword [ebp - 0x2c], 0
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x10004391
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [ebp - 0x2c], eax
mov edx, dword [edi + 0x9c]
mov ecx, dword [edi + 0xa4]
mov esi, dword [edi + 0x98]
sub ecx, edx
mov eax, dword [edi + 0xa0]
push 0x10
push ecx
sub eax, esi
push eax
push edx
push esi
xor esi, esi
push esi
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
push esi
push esi
push 0x491
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
pop esi
test eax, eax
je 0x100043db
mov ecx, edi
call fcn.10009157
cmp dword [ebp - 0x2c], 0
je 0x100043ec
push 1
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp byte [ebp - 0x25], 0
je 0x100043fb
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [edi + 0x24]
test ecx, ecx
je 0x10004429
mov eax, dword [edi + 0x98]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], eax
mov eax, dword [edi + 0xa4]
mov dword [ebp - 0x20], eax
mov eax, dword [edi + 0xa0]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ebx
mov eax, dword [ecx]
push edx
call dword [eax + 0x34]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop ebx
call fcn.10009a12
mov esp, ebp
pop ebp
ret 8

Function at 0x10008ab3
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
cmp eax, 0x1a
jl 0x10008b0b
mov eax, dword [edi + 8]
cmp eax, dword [edi]
jl 0x10008b0b
push 0
push dword [ebx + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
push 0x10
push eax
mov eax, dword [edi + 8]
sub eax, dword [edi]
push eax
push dword [edi + 4]
push dword [edi]
push 0
push dword [ebx + 0x18]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, ebx
call fcn.10009157
push 1
push dword [ebx + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop ebx
pop ebp
ret 4

Function at 0x10009075
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
push dword [ebp + 0xc]
push 0xd
push dword [ecx + 0x38]
call dword [sym.imp.USER32.dll_SendMessageA]
pop ebp
ret 8
Function at 0x10009157
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x10009166
pop dword [ebp - 0x18]
mov eax, 0xca4f40fe
add eax, 0x45b15068
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x8319211b
sub dword [ebp - 0x28], 0x34c6dbd0
mov dword [ebp - 0x24], 0x3d5b849a
add dword [ebp - 0x24], 0xf4d7c7ab
mov dword [ebp - 0x20], 0x737b8525
add dword [ebp - 0x20], 0xd8d0bf09
mov dword [ebp - 0x1c], 0xc08fb5ee
add dword [ebp - 0x1c], 0x3f704a12
lea eax, [ebp - 0x28]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x337911ea
sub dword [ebp - 0x28], 0xbf06a894
mov dword [ebp - 0x24], 0x76defc88
sub dword [ebp - 0x24], 0x35729b13
mov dword [ebp - 0x20], 0x19fefe1d
sub dword [ebp - 0x20], 0xb68f91b1
mov dword [ebp - 0x1c], 0xebadf403
add dword [ebp - 0x1c], 0x14520bfd
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0x39f5d18b
sub eax, 0x29f51127
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x3ac66
push 0
call eax
mov ecx, 0xacc154a1
sub ecx, 0xacc100d7
mov ebx, eax
mov esi, 0xfc42e686
add esi, 0x13bebd7a
add esi, dword [ebp - 0x18]
mov edx, 0x6331821e
add edx, 0xdd6dbda5
sub dword [ebp - 8], ebx
mov edi, dword [esi]
mov dword [ebp - 4], 0xbbb42c3e
sub edi, edx
xor dword [ebp - 0xc], 0xb78efb74
mov dword [ebx], edi
add dword [ebp - 0x14], eax
add ebx, 0xfb36b7da
add ebx, 0x4c9482a
add esi, 0xb02ffce8
sub esi, 0xb02ffce4
loop 0x10009283
add eax, 0x141fb
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xce4be1d8
add ecx, 0x41b41e28
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x401000
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5e6990]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
lea eax, [ebp - 0x10]
push edi
push eax
mov al, 0x40
mov ecx, 0x5e8a78
mov edi, esi
mov dword [ebp - 0x20], esi
call fcn.00401190
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x18]
mov dword [esi], ecx
push eax
mov al, 0x38
mov ecx, str.91__
mov dword [esi + 4], edx
call fcn.00401190
xor bl, bl
mov eax, esi
lea ecx, [ebp - 0x10]
add esp, 8
sub eax, ecx
mov byte [ebp - 0x19], bl
mov dword [ebp - 0x24], eax
jmp 0x401066
mov bl, byte [ebp - 0x19]
mov esi, dword [ebp - 0x20]
lea edx, [ebp - 0x10]
push edx
mov al, 0x30
mov ecx, 0x5e8cf8
lea edi, [esi + 4]
call fcn.00401190
add esp, 4
cmp byte [ebp + 0xc], 0
jne 0x40108b
mov esi, 0x4014c0
mov al, bl
jmp 0x401094
mov al, 0x10
sub al, bl
mov esi, 0x401510
movzx edi, al
xor bl, bl
cmp byte [edi + 0x5e8db0], bl
jbe 0x4010b4
lea eax, [ebp - 0x18]
push eax
call esi
inc bl
add esp, 4
cmp bl, byte [edi + 0x5e8db0]
jb 0x4010a1
lea ecx, [ebp - 0xa]
push ecx
mov al, 0x30
mov ecx, 0x5e8d80
lea edi, [ebp - 0x18]
call fcn.00401190
add esp, 4
lea eax, [ebp - 0x10]
mov ecx, 6
mov dl, byte [eax + 6]
xor byte [eax], dl
inc eax
dec ecx
jne 0x4010d2
lea eax, [ebp - 0xa]
lea edi, [ebp - 0x10]
call fcn.00401230
mov eax, edi
push eax
mov al, 0x20
mov ecx, 0x5e8d28
lea edi, [ebp - 0xa]
call fcn.00401190
add esp, 4
lea eax, [ebp - 0x10]
mov ecx, 4
mov edx, dword [ebp - 0x24]
mov dl, byte [edx + eax]
xor byte [eax], dl
inc eax
dec ecx
jne 0x401103
mov dl, byte [ebp - 0x19]
mov esi, dword [ebp - 0x10]
cmp dl, 0xf
jae 0x401140
mov eax, dword [ebp - 0x20]
movzx ebx, byte [eax + 4]
mov ecx, dword [ebp - 0x20]
add eax, 4
mov byte [ecx], bl
movzx ebx, byte [eax + 1]
mov byte [ecx + 1], bl
movzx ebx, byte [eax + 2]
mov byte [ecx + 2], bl
movzx ebx, byte [eax + 3]
mov byte [ecx + 3], bl
mov dword [eax], esi
inc dl
mov byte [ebp - 0x19], dl
cmp dl, 0x10
jb 0x401060
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x10]
push eax
mov al, 0x40
mov ecx, 0x5e8ab8
mov dword [edi], esi
call fcn.00401190
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
add esp, 4
mov dword [edi], ecx
mov ecx, dword [ebp - 4]
mov dword [edi + 4], edx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055a74e
mov esp, ebp
pop ebp
ret
Function at 0x4024b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4024cb
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402502
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x4024fe
jmp 0x4024f0
cmp esi, eax
jae 0x402502
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4024f0
cmp esi, eax
jb 0x402509
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x406330
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x586f22
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x5e6990]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x11c], esi
mov dword [ebp - 0x118], ebx
call fcn.0045c778
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x406387
push 0x80004005
call fcn.00402e90
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
push 0x103
lea ecx, [ebp - 0x113]
mov dword [ebp - 4], ebx
push ebx
push ecx
mov dword [ebp - 0x118], 1
mov byte [ebp - 0x114], bl
call fcn.0055e260
add esp, 0xc
lea edx, [ebp - 0x114]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x114]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4063d8
sub eax, edx
push eax
lea eax, [ebp - 0x114]
push eax
mov ecx, esi
call fcn.00402d70
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055a74e
mov esp, ebp
pop ebp
ret

Function at 0x407800
Capabilities:
Hash data using crc32b

Disassembly:
push ebx
mov ebx, eax
or eax, 0xffffffff
push esi
mov esi, ecx
test ebx, ebx
je 0x407842
push edi
mov edi, edi
mov edi, dword [esi]
dec ebx
mov ecx, SysReAllocStringLen
add esi, 4
mov edx, 0x20
test eax, eax
jns 0x40782d
add eax, eax
xor eax, 0x4c11db7
jmp 0x40782f
add eax, eax
test ecx, edi
je 0x407838
xor eax, 0x4c11db7
shr ecx, 1
dec edx
jne 0x407820
test ebx, ebx
jne 0x407810
pop edi
pop esi
pop ebx
ret

Function at 0x4084c0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x78
mov eax, dword [0x5e6990]
xor eax, esp
mov dword [esp + 0x74], eax
push esi
push edi
push 0x70
lea eax, [esp + 0xc]
push 0
push eax
mov esi, ecx
call fcn.0055e260
mov eax, dword [ebp + 8]
mov ecx, esi
add esp, 0xc
lea esi, [esp + 8]
mov dword [esp + 8], 0x6a09e667
mov dword [esp + 0xc], 0xbb67ae85
mov dword [esp + 0x10], 0x3c6ef372
mov dword [esp + 0x14], 0xa54ff53a
mov dword [esp + 0x18], 0x510e527f
mov dword [esp + 0x1c], 0x9b05688c
mov dword [esp + 0x20], 0x1f83d9ab
mov dword [esp + 0x24], 0x5be0cd19
call fcn.004421c0
mov edi, esi
mov eax, ebx
call fcn.00442220
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
xor ecx, esp
call fcn.0055a74e
mov esp, ebp
pop ebp
ret
Function at 0x409500
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x581e1b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5e6990]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.005758a0
push 4
mov dword [ebp - 4], 0
call fcn.0045c6d7
mov edi, eax
add esp, 4
test edi, edi
je 0x40957c
call fcn.0057521c
mov dword [edi], eax
call fcn.00574fdb
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00575305
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x409572
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0057532d
jmp 0x40957e
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 [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40f000
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xe4
mov eax, dword [0x5e6990]
xor eax, esp
mov dword [esp + 0xe0], eax
push esi
push 0x80
lea eax, [esp + 0x64]
push 0
push eax
call fcn.0055e260
mov ecx, dword [ebp + 8]
add esp, 0xc
cmp dword [ecx + 8], 0
je 0x40f114
mov eax, dword [0x5efc60]
lea edx, [esp + 4]
push edx
push eax
call dword [sym.imp.HID.DLL_HidD_GetPreparsedData]
test al, al
je 0x40f114
mov edx, dword [esp + 4]
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.HID.DLL_HidP_GetCaps]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.HID.DLL_HidD_FreePreparsedData]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, eax
xor eax, eax
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
movzx eax, word [esp + 0x28]
lea edx, [esp + 0xc]
push edx
mov edx, dword [0x5efc60]
push eax
lea ecx, [esp + 0x6c]
push ecx
push edx
mov dword [esp + 0x30], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0xa
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x40f108
cmp eax, 0x80
je 0x40f108
test eax, eax
jne 0x40f114
mov al, byte [esp + 8]
xor ecx, ecx
mov byte [edi], al
test al, al
je 0x40f0ee
lea esi, [esp + 0x61]
mov eax, ebx
sub esi, ebx
nop
mov dl, byte [esi + eax]
mov byte [eax], dl
movzx edx, byte [edi]
inc ecx
inc eax
cmp ecx, edx
jl 0x40f0e0
mov eax, 1
pop esi
mov ecx, dword [esp + 0xe0]
xor ecx, esp
call fcn.0055a74e
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x5efc60]
push eax
call dword [sym.imp.KERNEL32.dll_CancelIo]
mov ecx, dword [esp + 0xe4]
pop esi
xor ecx, esp
xor eax, eax
call fcn.0055a74e
mov esp, ebp
pop ebp
ret 4
Function at 0x40f130
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xe4
mov eax, dword [0x5e6990]
xor eax, esp
mov dword [esp + 0xe0], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0
push esi
jne 0x40f16b
xor eax, eax
pop esi
mov ecx, dword [esp + 0xe0]
xor ecx, esp
call fcn.0055a74e
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [0x5efc60]
lea ecx, [esp + 4]
push ecx
push edx
call dword [sym.imp.HID.DLL_HidD_GetPreparsedData]
test al, al
je 0x40f154
mov ecx, dword [esp + 4]
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.HID.DLL_HidP_GetCaps]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.HID.DLL_HidD_FreePreparsedData]
push 0x5b6d1b
push 1
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, eax
movzx eax, byte [ebp + 0x10]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov byte [esp + 0x60], 0
test eax, eax
jle 0x40f1e2
push eax
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [esp + 0x69]
push ecx
call fcn.00560e30
add esp, 0xc
movzx ecx, word [esp + 0x26]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0xc]
push eax
mov eax, dword [0x5efc60]
push ecx
lea edx, [esp + 0x6c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0xc8
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [esp + 0xe4]
pop esi
xor ecx, esp
mov eax, 1
call fcn.0055a74e
mov esp, ebp
pop ebp
ret 0xc
Function at 0x420e40
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x582058
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x5e6990]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 4], esi
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
mov eax, dword [ecx - 0xc]
cmp eax, esi
jne 0x420eaa
lea eax, [ecx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420ea3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x420ff4
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0045c711
mov edi, eax
mov eax, dword [ebp + 8]
add esp, 4
mov ebx, eax
cmp eax, esi
jne 0x420ed3
xor eax, eax
jmp 0x420efd
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [eax + 1]
cmp esi, 0x3fffffff
jle 0x420ee9
xor eax, eax
jmp 0x420efd
lea eax, [esi + esi]
call fcn.0055e0b0
mov eax, esp
push 3
push esi
push ebx
push eax
call fcn.004252d0
mov edx, edi
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x420f01
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
mov esi, eax
call fcn.0045c706
add esp, 4
cmp esi, 0xffffffff
jne 0x420f62
mov dword [ebp - 4], esi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420f5a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or eax, 0xffffffff
jmp 0x420ff4
lea ecx, [ebp - 0x14]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, dword [ebp + 0x10]
mov dword [edi], eax
add eax, 0x14
push eax
call fcn.0045c711
mov ebx, dword [ebp + 0xc]
add esp, 4
push 0
lea edx, [ebp - 0x18]
push edx
mov dword [ebx], eax
mov ecx, dword [edi]
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x420fc9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx]
push eax
call fcn.0045c706
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x420e97
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420fef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
lea esp, [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055a74e
mov esp, ebp
pop ebp
ret 0xc
Function at 0x425430
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x587d03
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1230
call fcn.00560350
mov eax, dword [0x5e6990]
xor eax, esp
mov dword [esp + 0x122c], eax
push ebx
push esi
mov eax, dword [0x5e6990]
xor eax, esp
push eax
lea eax, [esp + 0x1240]
mov dword fs:[0], eax
lea eax, [esp + 0x18]
push eax
mov esi, ecx
mov dword [esp + 0x1c], 8
mov dword [esp + 0x20], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
call fcn.0046f462
mov ecx, esi
call fcn.0046f0cd
xor ebx, ebx
push ebx
call fcn.0046fced
add esp, 4
push 0x5ba284
mov ecx, esi
call fcn.004701db
push str.Language.ini
lea ecx, [esp + 0x14]
call fcn.004026e0
mov dword [esp + 0x1248], ebx
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x425535
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], ebx
call fcn.00468f27
push ebx
mov byte [esp + 0x124c], 1
mov edx, dword [esp + 0x14]
push 0x8000
push edx
lea ecx, [esp + 0x2c]
call fcn.0046943c
push 4
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x28]
call fcn.00468c1c
lea ecx, [esp + 0x20]
call fcn.00468ec2
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadUILanguage]
lea ecx, [esp + 0x20]
mov byte [esp + 0x1248], bl
call fcn.00469095
lea edx, [esp + 0x34]
push edx
call fcn.00426010
lea eax, [esp + 0x34]
mov byte [esp + 0x1248], 2
mov ecx, eax
mov dword [esi + 0x20], eax
call fcn.0046621f
lea ecx, [esp + 0x34]
push ecx
mov byte [esp + 0x124c], bl
call fcn.004255c0
mov dword [esp + 0x1248], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x425591
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x1240]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x122c]
xor ecx, esp
call fcn.0055a74e
mov esp, ebp
pop ebp
ret
Function at 0x442e10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x5e6990]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push 0xff
xor ebx, ebx
lea edx, [ebp - 0x103]
push ebx
push edx
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x114], ecx
mov byte [ebp - 0x104], 0
call fcn.0055e260
add esp, 0xc
mov dword [ebp - 0x108], ebx
jmp 0x442e60
mov eax, dword [edi]
push 0
lea ecx, [ebp - 0x10c]
push ecx
push eax
mov eax, dword [ebp - 0x114]
lea edx, [ebp - 0x104]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
jne 0x442eaa
mov esi, dword [ebp - 0x10c]
test esi, esi
jle 0x442eaa
mov edx, dword [ebp - 0x110]
push esi
lea ecx, [ebp - 0x104]
push ecx
add edx, ebx
push edx
call fcn.00560e30
add esp, 0xc
add ebx, esi
cmp ebx, dword [edi]
je 0x442eca
cmp dword [ebp - 0x108], 3
jg 0x442ee1
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 0x108]
jmp 0x442e60
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055a74e
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0055a74e
mov esp, ebp
pop ebp
ret 4
Function at 0x4642c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x464307
call fcn.0046e2ee
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x464307
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x464323
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00463dc5
mov esi, eax
test edi, edi
je 0x464321
test ebx, ebx
je 0x464321
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x464ada
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x579751
call fcn.0055dc3c
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x464aff
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x464b51
call fcn.0045c778
push eax
lea ecx, [ebp - 0x10]
call fcn.00402eb0
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0055dd46
push eax
call fcn.00402380
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00402f10
mov eax, esi
call fcn.0055dd14
ret 8

Function at 0x46641e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0046e2ee
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x466457
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00466060
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x4664b5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x4664d9
cmp dword [edi + 0x74], 0
jne 0x4664d9
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.0046e2ee
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00466476
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8