joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404740
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
sub esp, 0x20
push esi
mov dword [esp + 4], 0
call fcn.0041a998
mov ecx, dword [eax + 4]
call fcn.0041401d
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push 0xf01ff
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x404821
push ebx
push ebp
lea edx, [esp + 0x10]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push edx
push esi
call edi
cmp dword [esp + 0x18], 4
je 0x40480f
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x404817
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x38], eax
lea eax, [esp + 0x14]
push eax
push esi
call edi
test eax, eax
je 0x404817
mov eax, dword [esp + 0x18]
cmp eax, 4
je 0x40480f
cmp eax, 2
jne 0x404817
call ebp
sub eax, dword [esp + 0x38]
cmp eax, 0x7530
jae 0x404817
mov eax, dword [esp + 0x2c]
cmp eax, 0x1388
jbe 0x4047f1
mov eax, 0x1388
jmp 0x4047fa
test eax, eax
jne 0x4047fe
mov eax, 0x3e8
mov dword [esp + 0x2c], eax
push eax
call ebx
lea ecx, [esp + 0x14]
push ecx
push esi
call edi
test eax, eax
jne 0x4047c4
jmp 0x404817
mov dword [esp + 0x10], 1
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop ebp
pop ebx
call fcn.0041a998
mov ecx, dword [eax + 4]
call fcn.00414032
mov eax, dword [esp + 4]
pop esi
add esp, 0x20
ret 8

Function at 0x404f10
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
mov ebx, ecx
mov ecx, dword [esp + 0x10]
push esi
lea eax, [esp + 0x14]
push edi
push eax
push ecx
mov dword [esp + 0x14], 0
call fcn.00406290
add esp, 8
test eax, eax
jne 0x404f4b
push eax
push 0xffffffffffffffff
mov ecx, ebx
call fcn.004033f0
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 8
mov ecx, dword [esp + 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0xc]
lea eax, [esp + 0x10]
push edx
push 0
push eax
push 0
push str.Default_DevMode
push ecx
call edi
test eax, eax
jne 0x404fee
mov eax, dword [esp + 0xc]
test eax, eax
je 0x404fee
push eax
call fcn.0041427c
mov ecx, dword [esp + 0x1c]
add esp, 4
lea edx, [esp + 0xc]
mov esi, eax
push edx
lea eax, [esp + 0x14]
push esi
push eax
push 0
push str.Default_DevMode
push ecx
call edi
test eax, eax
je 0x404fc9
push 0
push 0xffffffffffffffff
mov ecx, ebx
call fcn.004033f0
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.004142a5
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 8
ret 8
mov ecx, dword [esp + 0x1c]
mov ax, word [esi + 0x3a6]
push esi
mov word [ecx], ax
call fcn.004142a5
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 8
ret 8
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 8
ret 8
Function at 0x405340
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
lea eax, [esp + 4]
push esi
push eax
mov dword [esp + 0xc], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40546d
mov eax, dword [esp + 0x18]
dec eax
je 0x405454
dec eax
jne 0x40546d
mov eax, dword [esp + 0xc]
cmp eax, 4
jne 0x405396
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40546d
mov eax, 2
pop esi
add esp, 0x98
ret
cmp eax, 5
jne 0x4053f2
mov eax, dword [esp + 0x10]
test eax, eax
je 0x405447
cmp eax, 1
je 0x405447
cmp eax, 2
jne 0x40546d
push str.IsWow64Process
push str.kernel32.dll
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x405447
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
mov eax, dword [esp + 4]
jmp 0x405436
cmp eax, 6
jne 0x40546d
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40546d
push str.IsWow64Process
push str.kernel32.dll
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x405447
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
mov eax, dword [esp + 4]
test eax, eax
je 0x405447
mov eax, 4
pop esi
add esp, 0x98
ret
mov eax, 3
pop esi
add esp, 0x98
ret
mov eax, dword [esp + 0x14]
pop esi
and eax, 0xffff0000
cmp eax, 0x40a0000
sbb eax, eax
inc eax
add esp, 0x98
ret
or eax, 0xffffffff
pop esi
add esp, 0x98
ret

Function at 0x405780
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 4]
cmp byte [eax], 0x5c
jne 0x405795
cmp byte [eax + 1], 0x5c
jne 0x405795
mov eax, 4
ret
push 3
push eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
movsx ecx, byte [esp + 4]
push ecx
call fcn.00408117
add esp, 4
test eax, eax
je case.default.0x4057d9
cmp byte [esp + 5], 0x3a
jne case.default.0x4057d9
lea edx, [esp + 4]
mov byte [esp + 6], 0x5c
push edx
mov byte [esp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
add eax, 0xfffffffe
cmp eax, 4
ja case.default.0x4057d9
jmp dword [eax*4 + 0x405804]
lea eax, [esp + 4]
push eax
call fcn.00405b00
add esp, 4
ret
mov eax, 3
ret
mov eax, 5
ret
mov eax, 6
ret
xor eax, eax
ret

Function at 0x405b00
Capabilities:
Get disk size

Disassembly:
sub esp, 0x10
xor eax, eax
lea ecx, [esp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], eax
mov dword [esp + 0xc], eax
mov dword [esp], eax
lea eax, [esp]
lea edx, [esp + 4]
push eax
push ecx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x405b3c
add esp, 0x10
ret
mov edx, dword [esp]
mov eax, 0x163c00
imul edx, dword [esp + 4]
imul edx, dword [esp + 8]
and edx, 0xfffffc00
cmp eax, edx
sbb eax, eax
neg eax
inc eax
add esp, 0x10
ret
Function at 0x405c50
Capabilities:
Get file version info

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x318
lea ecx, [esp + 0x110]
push ebp
push esi
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x11c]
push str..exe
push edx
call ebp
lea eax, [esp + 0x14]
lea ecx, [esp + 0x11c]
push eax
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jne 0x405ca3
pop edi
pop esi
pop ebp
add esp, 0x318
ret
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
jne 0x405cbc
pop edi
pop esi
pop ebp
add esp, 0x318
ret
mov edx, dword [esp + 0x14]
push esi
push edi
lea eax, [esp + 0x124]
push edx
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x405ce7
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x318
ret
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
push ecx
push edx
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x405d13
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x318
ret
mov eax, dword [esp + 0xc]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
xor edx, edx
mov ecx, dword [eax]
mov dx, word [eax]
shr ecx, 0x10
push ecx
push edx
lea eax, [esp + 0x228]
push str._04X_04X
push eax
call edi
lea ecx, [esp + 0x230]
lea edx, [esp + 0x28]
push ecx
push str.StringFileInfo_sFileDescription
push edx
call edi
add esp, 0x1c
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x18]
push eax
push ecx
push edx
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x405d7b
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x318
ret
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x32c]
push eax
push ecx
call ebp
lea edx, [esp + 0x220]
lea eax, [esp + 0x18]
push edx
push str.StringFileInfo_sFileVersion
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
lea eax, [esp + 0x18]
push ecx
push edx
push eax
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x405dcd
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x318
ret
push ebx
mov ebx, dword [esp + 0x334]
push 0x423688
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 0x10]
push ecx
push ebx
call ebp
lea edx, [esp + 0x224]
lea eax, [esp + 0x1c]
push edx
push str.StringFileInfo_sLegalCopyright
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push ecx
push edx
push eax
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
pop ebx
jne 0x405e2d
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x318
ret
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x334]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x318
ret
Function at 0x405e60
Capabilities:
Delete directory

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call fcn.004054e0
add esp, 4
test eax, eax
jne 0x405e79
mov eax, 1
pop esi
ret
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop esi
ret

Function at 0x405e90
Capabilities:
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call fcn.00405650
add esp, 4
test eax, eax
jne 0x405ea9
mov eax, 1
pop esi
ret
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
ret

Function at 0x405ec0
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
sub esp, 0x21c
push esi
mov esi, dword [esp + 0x224]
push esi
call fcn.00405650
add esp, 4
test eax, eax
jne 0x405ee8
mov eax, 1
pop esi
add esp, 0x21c
ret
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
call fcn.004052f0
test eax, eax
jne 0x405f0a
mov eax, 1
pop esi
add esp, 0x21c
ret
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [esp + 0x12]
mov eax, 0x66666667
and ecx, 0xffff
imul ecx
sar edx, 2
mov ecx, edx
mov eax, dword [esp + 0xe]
shr ecx, 0x1f
add edx, ecx
mov ecx, dword [esp + 0xc]
push edx
mov edx, dword [esp + 0x14]
and edx, 0xffff
and eax, 0xffff
push edx
and ecx, 0xffff
push eax
push ecx
lea edx, [esp + 0x12c]
push str.._02d_02d_02d_02d
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea eax, [esp + 0x18]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x11c]
lea edx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x18]
push 0
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
call esi
test eax, eax
jne 0x405fa2
pop esi
add esp, 0x21c
ret
push 4
lea ecx, [esp + 0x1c]
push 0
push ecx
call esi
pop esi
add esp, 0x21c
ret
Function at 0x4060a0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41c0a6
push eax
mov dword fs:[0], esp
sub esp, 0x128
push ebx
push esi
mov esi, dword [esp + 0x144]
push edi
mov edi, dword [esp + 0x144]
push esi
push edi
call fcn.00406060
add esp, 8
test eax, eax
je 0x406264
lea eax, [esp + 0x10]
xor ebx, ebx
push eax
push 8
push ebx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
je 0x4060fb
xor eax, eax
jmp 0x406269
push 0xa
lea ecx, [esp + 0x18]
call fcn.00412f1d
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push ebx
push ebx
push ebx
lea ecx, [esp + 0x18]
push ebx
lea edx, [esp + 0x40]
push ecx
push edx
push ebx
push eax
mov dword [esp + 0x15c], ebx
xor esi, esi
mov dword [esp + 0x2c], 0x104
call edi
cmp eax, ebx
jne 0x406168
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x18]
call fcn.00413025
mov ecx, dword [esp + 0x10]
push ebx
push ebx
push ebx
lea edx, [esp + 0x18]
push ebx
lea eax, [esp + 0x40]
inc esi
push edx
push eax
push esi
push ecx
mov dword [esp + 0x2c], 0x104
call edi
cmp eax, ebx
je 0x406137
cmp dword [esp + 0x20], ebx
je 0x4061b9
mov esi, dword [esp + 0x18]
cmp esi, ebx
je 0x4061b9
mov eax, esi
mov esi, dword [esi]
add eax, 8
lea ecx, [esp + 0xc]
push eax
call fcn.00414b44
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push edx
push eax
mov byte [esp + 0x144], 1
call fcn.004060a0
add esp, 8
cmp eax, ebx
je 0x40620e
lea ecx, [esp + 0xc]
mov byte [esp + 0x13c], bl
call fcn.00414db1
cmp esi, ebx
jne 0x406176
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call esi
mov eax, dword [esp + 0x148]
mov ecx, dword [esp + 0x144]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp eax, ebx
je 0x406250
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x10]
mov edi, eax
push edx
call esi
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esp + 0x14]
mov dword [esp + 0x13c], 0xffffffff
call fcn.00412f91
xor eax, eax
jmp 0x406269
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x10]
mov esi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esp + 0xc]
mov byte [esp + 0x13c], bl
call fcn.00414db1
lea ecx, [esp + 0x14]
mov dword [esp + 0x13c], 0xffffffff
call fcn.00412f91
xor eax, eax
jmp 0x406269
lea ecx, [esp + 0x14]
mov dword [esp + 0x13c], 0xffffffff
call fcn.00412f91
mov eax, 1
mov ecx, dword [esp + 0x134]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x134
ret
Function at 0x406520
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0xc
lea ecx, [esp + 4]
mov byte [eax], 0
push esi
push edi
push ecx
push edx
call fcn.004063a0
add esp, 8
test eax, eax
je 0x406643
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 8]
lea ecx, [esp + 0x10]
push eax
push 0
push ecx
push 0
push str.PrnID
push edx
mov dword [esp + 0x20], 0
call esi
test eax, eax
jne 0x406638
mov eax, dword [esp + 8]
test eax, eax
je 0x406638
push eax
call fcn.0041427c
mov edx, dword [esp + 0x10]
add esp, 4
mov edi, eax
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x14]
push edi
push ecx
push 0
push str.PrnID
push edx
call esi
test eax, eax
je 0x4065d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
call fcn.004142a5
add esp, 4
xor eax, eax
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [esp + 8]
xor esi, esi
test eax, eax
jle 0x406619
push ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
xor ecx, ecx
lea edx, [esp + 0x20]
mov cl, byte [esi + edi]
push ecx
push str._02X
push edx
call ebx
mov ecx, dword [esp + 0x30]
add esp, 0xc
lea eax, [esp + 0x20]
push eax
push ecx
call ebp
mov eax, dword [esp + 0x10]
inc esi
cmp esi, eax
jl 0x4065ed
pop ebp
pop ebx
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.004142a5
add esp, 4
mov eax, 1
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
add esp, 0xc
ret
Function at 0x40ba65
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x424378
cmp edx, dword [eax]
je 0x40ba87
add eax, 8
inc ecx
cmp eax, 0x424408
jl 0x40ba78
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x424378]
jne 0x40bbb5
mov eax, dword [0x429818]
cmp eax, 1
je 0x40bb8f
test eax, eax
jne 0x40bab8
cmp dword [0x423d78], 1
je 0x40bb8f
cmp edx, 0xfc
je 0x40bbb5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40baef
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040be90
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040bc60
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40bb32
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040bc60
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41f260
push edi
call fcn.0040cf40
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040be90
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040bea0
lea eax, [ebp - 0xa0]
push 0x41f240
push eax
call fcn.0040bea0
push dword [esi + 0x42437c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040bea0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040d764
add esp, 0x2c
pop edi
jmp 0x40bbb5
lea eax, [ebp + 8]
lea esi, [esi + 0x42437c]
push 0
push eax
push dword [esi]
call fcn.0040bc60
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4121f0
Capabilities:
Get graphical window text

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

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

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4174bc
call fcn.0041a998
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4174bc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4174b3
xor eax, eax
jmp 0x4174c4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004174ca
pop edi
pop esi
pop ebx
ret 4

Function at 0x41b145
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x41b173
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41b191
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041b0ab
jmp 0x41b191
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41b191
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0041b0ab
test edi, edi
mov eax, edi
jne 0x41b17b
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x404340
Capabilities:
Identify system language via api

Disassembly:
push 0xffffffffffffffff
push 0x44b548
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x462600]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 8], esi
call fcn.0041232b
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x404382
push 0x80004005
call fcn.004014d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 8], eax
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
cmp ax, 0x804
jne 0x4043ae
push 0x12
push str.Chinese_Simplified
jmp 0x4043d1
cmp ax, 0x404
je 0x4043ca
cmp ax, 0xc04
je 0x4043ca
push str.English
lea ecx, [esp + 0xc]
call fcn.00401fb0
jmp 0x4043da
push 0x13
push str.Chinese_Traditional
lea ecx, [esp + 0x10]
call fcn.00401e10
mov esi, dword [esp + 8]
add esi, 0xfffffff0
push esi
call fcn.00401f20
add eax, 0x10
add esp, 4
mov dword [edi], eax
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404410
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret