joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43f1f0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x5e1da0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x9c
lea eax, [ebp - 0xa0]
push 0
push eax
mov esi, ecx
call fcn.00552060
add esp, 0xc
lea ecx, [ebp - 0xa0]
push ecx
mov dword [ebp - 0xa0], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x43f32e
cmp dword [ebp - 0x90], 2
jne 0x43f266
cmp dword [ebp - 0x9c], 5
jae 0x43f266
mov dword [esi + 0x9008cc], 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005520da
mov esp, ebp
pop ebp
ret
push 0
lea edx, [ebp - 0x224]
push edx
push 0
mov dword [ebp - 0x224], 0
call sub.DDRAW.dll_DirectDrawCreate
test eax, eax
js 0x43f24d
mov eax, dword [ebp - 0x224]
mov ecx, dword [eax]
push edi
lea edx, [ebp - 0x220]
push edx
push 0x5b8c70
push eax
mov eax, dword [ecx]
call eax
mov edi, eax
mov eax, dword [ebp - 0x224]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
test edi, edi
pop edi
js 0x43f24d
push 0x17c
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.00552060
mov eax, dword [ebp - 0x220]
add esp, 0xc
push 0
lea edx, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x17c
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x2c]
call eax
test eax, eax
jns 0x43f2fa
mov dword [esi + 0x9008cc], 1
jmp 0x43f31c
cmp dword [ebp - 0x1dc], 0x1000000
jae 0x43f312
mov dword [esi + 0x9008cc], 1
jmp 0x43f31c
mov dword [esi + 0x9008cc], 0
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x43f32e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005520da
mov esp, ebp
pop ebp
ret
Function at 0x43ff50
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push esi
lea eax, [ebx + 0x9006b8]
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 0x10]
lea ecx, [ebx + 0x6b8]
mov dword [eax], ecx
movzx edx, word [edi]
movzx eax, word [edi + 2]
imul eax, edx
lea eax, [eax + ebx + 0x6b8]
mov dword [ebx + 0x9006bc], eax
movzx edx, word [edi]
movzx eax, word [edi + 2]
imul eax, edx
mov esi, dword [ebp + 0xc]
lea eax, [eax + eax*4]
cdq
and edx, 3
add eax, edx
sar eax, 2
lea eax, [eax + ebx + 0x6b8]
mov dword [ebx + 0x9006c0], eax
movzx edx, word [edi]
cmp dword [esi + 4], edx
jne 0x440022
movzx eax, word [edi + 2]
cmp dword [esi + 8], eax
jne 0x440022
mov esi, dword [ebp + 8]
imul eax, edx
mov edx, dword [esi]
push eax
push edx
push ecx
call fcn.005520f0
movzx eax, word [edi + 2]
movzx ecx, word [edi]
imul eax, ecx
cdq
and edx, 3
add eax, edx
mov edx, dword [esi + 4]
sar eax, 2
push eax
mov eax, dword [ebx + 0x9006bc]
push edx
push eax
call fcn.005520f0
movzx eax, word [edi + 2]
movzx ecx, word [edi]
imul eax, ecx
cdq
and edx, 3
add eax, edx
mov edx, dword [esi + 8]
sar eax, 2
push eax
mov eax, dword [ebx + 0x9006c0]
push edx
push eax
call fcn.005520f0
mov eax, dword [ebp - 4]
add esp, 0x24
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x240000
call fcn.004575d3
movzx ecx, word [edi + 2]
movzx edx, word [edi]
add esp, 4
push eax
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push eax
mov eax, dword [esi + 0xc]
push ecx
push edx
push ecx
mov ecx, dword [esi + 0x18]
sub ecx, dword [esi + 0x10]
push edx
mov edx, dword [esi + 0x14]
push ecx
mov ecx, dword [esi + 0x10]
sub edx, eax
push edx
push ecx
push eax
mov ecx, ebx
call fcn.0043fdc0
mov ecx, dword [ebp + 0x10]
movzx eax, word [edi + 6]
movzx edx, word [edi + 4]
push ecx
mov ecx, dword [ebx + 0x9006bc]
push ecx
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 4]
push ecx
push eax
mov ecx, dword [esi + 0xc]
push edx
push eax
mov eax, dword [esi + 0x18]
sub eax, dword [esi + 0x10]
push edx
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, dword [esi + 0x14]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, dword [esi + 0x10]
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
push eax
mov ecx, ebx
call fcn.0043fdc0
mov edx, dword [ebp + 0x10]
movzx eax, word [edi + 6]
movzx ecx, word [edi + 4]
mov edi, dword [esi + 0xc]
push edx
mov edx, dword [ebx + 0x9006c0]
push edx
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
push edx
push eax
push ecx
push eax
push ecx
mov eax, dword [esi + 0x18]
sub eax, dword [esi + 0x10]
mov ecx, ebx
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, dword [esi + 0x14]
sub eax, edi
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, dword [esi + 0x10]
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, edi
cdq
sub eax, edx
sar eax, 1
push eax
call fcn.0043fdc0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x440116
push eax
call fcn.004575de
add esp, 4
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4489f0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x448a39
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x448a32
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 6
jne 0x448a32
lea edi, [eax - 5]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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 0x448a58
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x44d3d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov esi, dword [ebp + 8]
push edi
push 0
lea eax, [ebp + 8]
push eax
push 0x28
mov edi, ecx
mov ecx, dword [edi + 4]
push esi
push ecx
call ebx
test eax, eax
je 0x44d3fa
cmp dword [ebp + 8], 0
ja 0x44d403
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 4
cmp dword [esi + 0x20], 0xffff0000
jne 0x44d3fa
mov eax, dword [esi + 0x24]
mov ecx, dword [edi + 4]
push 0
mov dword [edi + 0x28], eax
lea edx, [ebp + 8]
push edx
add eax, 0xfffffff8
push eax
lea eax, [esi + 0x28]
push eax
push ecx
call ebx
test eax, eax
je 0x44d3fa
cmp dword [ebp + 8], 0
jbe 0x44d3fa
mov ecx, dword [esi + 0x24]
lea eax, [esi + 0x28]
lea ecx, [esi + ecx + 0x20]
cmp eax, ecx
jae 0x44d44f
mov edi, edi
cmp dword [eax], 0xfff40000
je 0x44d451
add eax, dword [eax + 4]
cmp eax, ecx
jb 0x44d440
xor eax, eax
mov edx, dword [eax - 0x18]
mov eax, dword [edi + 0x28]
mov dword [edi + 0x30], edx
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x44d4c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0x1e
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
push 0
jge 0x44d531
mov ecx, dword [ebx + 4]
lea eax, [ebp + 8]
push eax
push 2
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44d4ef
mov eax, dword [ebp + 8]
test eax, eax
jne 0x44d4f8
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8
jns 0x44d504
pop edi
pop esi
or eax, 0xffffffff
pop ebx
pop ebp
ret 8
movzx eax, word [edi]
test ax, ax
je 0x44d4ef
cmp eax, 2
jb 0x44d4fa
add eax, 0xfffffffe
movzx esi, ax
push esi
add edi, 2
push edi
mov ecx, ebx
call fcn.0044d3a0
cmp eax, esi
jb 0x44d4fa
pop edi
lea eax, [esi + 2]
pop esi
pop ebx
pop ebp
ret 8
mov eax, dword [ebx + 4]
lea edx, [ebp + 8]
push edx
push 4
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44d4ef
mov eax, dword [ebp + 8]
test eax, eax
je 0x44d4ef
js 0x44d4fa
mov eax, dword [edi]
test eax, eax
je 0x44d4ef
cmp eax, 4
jb 0x44d4fa
lea esi, [eax - 4]
push esi
add edi, 4
push edi
mov ecx, ebx
call fcn.0044d3a0
cmp eax, esi
jb 0x44d4fa
pop edi
lea eax, [esi + 4]
pop esi
pop ebx
pop ebp
ret 8
Function at 0x44d9c0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x18]
xor ebx, ebx
push edi
mov dword [ebp - 4], eax
test eax, eax
jle 0x44da03
cmp dword [esi + 0x18], 0
jle 0x44da7e
mov eax, dword [esi + 0x14]
mov ecx, dword [eax]
test ecx, ecx
je 0x44d9f1
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 1
call eax
push 1
push 0
lea ecx, [esi + 0x10]
call fcn.005448af
inc ebx
cmp ebx, dword [ebp - 4]
jl 0x44d9d5
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
je 0x44da27
push eax
call edi
mov ecx, dword [esi + 4]
push ecx
call ebx
mov dword [esi + 4], 0xffffffff
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x44da49
push eax
call edi
mov edx, dword [esi + 8]
push edx
call ebx
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [esi + 8], 0xffffffff
xor eax, eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
push eax
mov dword [esi + 0x4c], eax
lea ecx, [esi + 0x54]
push 0x58a320
mov dword [esi + 0x34], eax
call fcn.004014c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00458513
int3
Function at 0x4553e0
Capabilities:
Capture webcam image

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5e1da0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
mov edi, ecx
mov ecx, dword [edi + 0x94]
lea eax, [ebp - 0x14]
push eax
push ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [edi + 0x20]
lea edx, [ebp - 0x24]
push edx
push ebx
push 0x419
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, edi
call fcn.00464872
test al, 2
mov eax, dword [edi + 0x11c]
je 0x455489
mov ecx, dword [ebp - 8]
mov edi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x20]
mov dword [esi], eax
sub eax, dword [ebp - 0x14]
add eax, dword [ebp - 0xc]
mov dword [esi + 8], eax
mov eax, ecx
sub eax, dword [ebp - 0x18]
sub eax, edi
add eax, ebx
cdq
sub eax, edx
sar eax, 1
add eax, ebx
mov dword [esi + 4], eax
sub eax, edi
add eax, ecx
pop edi
mov dword [esi + 0xc], eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005520da
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x24]
mov dword [esi + 4], eax
sub eax, dword [ebp - 0x10]
add eax, dword [ebp - 8]
mov dword [esi + 0xc], eax
mov eax, ecx
sub eax, dword [ebp - 0x1c]
sub eax, edi
add eax, ebx
cdq
sub eax, edx
sar eax, 1
add eax, ebx
mov dword [esi], eax
sub eax, edi
add eax, ecx
mov ecx, dword [ebp - 4]
pop edi
mov dword [esi + 8], eax
pop esi
xor ecx, ebp
pop ebx
call fcn.005520da
mov esp, ebp
pop ebp
ret 4

Function at 0x4563e0
Capabilities:
Rebuild import table

Disassembly:
push esi
mov esi, ecx
call fcn.0045f280
mov dword [esi], vtable.CGradientStatic.0
call fcn.004587ad
test eax, eax
jne 0x456401
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
push edi
call eax
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
add eax, 0x10
mov dword [esi + 0x74], eax
push 2
mov dword [esi + 0x94], 0
mov dword [esi + 0x78], 0xa
call edi
push 0xf
mov dword [esi + 0x7c], eax
call edi
push 9
mov dword [esi + 0x80], eax
call edi
push str.msimg32.dll
mov dword [esi + 0x84], eax
mov dword [esi + 0x88], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi + 0x8c], eax
mov dword [esi + 0x90], 0
pop edi
test eax, eax
je 0x456489
push str.GradientFill
push eax
mov dword [esi + 0x90], 1
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x98], eax
mov eax, esi
pop esi
ret
Function at 0x459941
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x45997f
push 0x591b7c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x45998d
push str.MoveFileTransactedA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x45998d
push dword [esi]
push 2
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x45998f
cmp dword [esi + 4], 0
je 0x45998d
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_MoveFileA]
xor eax, eax
pop esi
pop ebp
ret 8

Function at 0x463dd6
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 0x463e1d
call fcn.0045b519
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x463e1d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x463e39
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004638db
mov esi, eax
test edi, edi
je 0x463e37
test ebx, ebx
je 0x463e37
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x464b66
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x580ff3
call fcn.0055600b
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x464b8b
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x464bdd
call fcn.004587ad
push eax
lea ecx, [ebp - 0x10]
call fcn.004013b0
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.00555e39
push eax
call fcn.00402300
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.004010d0
mov eax, esi
call fcn.005560e3
ret 8

Function at 0x464f26
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00464be5
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x464f70
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004586a7
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00404090
jmp 0x464f7b
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0047a71c
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x464f81
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.00464812
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x464fbe
call fcn.00464be5
mov dword [esi + 0xc], 1
jmp 0x464fc3
call fcn.00464be5
cmp dword [esi], 0
je 0x46500c
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x464fe4
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004586a7
jmp 0x464ff6
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.004013e0
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00404090
jmp 0x465030
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x465030
push dword [esi]
push dword [ebp + 8]
call fcn.0047a71c
pop esi
pop ebp
ret 0xc

Function at 0x465a96
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.0045b519
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 0x465acf
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.004656d8
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 0x465b2d
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 0x465b51
cmp dword [edi + 0x74], 0
jne 0x465b51
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.0045b519
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.00465aee
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
Function at 0x46df82
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x5e1da0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x11c], eax
mov esi, ecx
lea eax, [ebp - 0x120]
jne 0x46dfca
push 0x594bf8
push 4
push eax
call fcn.00556429
push eax
call fcn.00402300
add esp, 0x10
jmp 0x46dfe0
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x46e063
push edi
call fcn.005562ce
mov edi, dword [eax]
call fcn.005562ce
and dword [eax], 0
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.005540f0
add esp, 0x18
mov dword [ebp - 0x11c], eax
call fcn.005562ce
cmp dword [eax], 0
je 0x46e037
call fcn.005562ce
push dword [eax]
call fcn.00457aaa
pop ecx
jmp 0x46e03e
call fcn.005562ce
mov dword [eax], edi
cmp dword [ebp - 0x11c], 0xffffffff
pop edi
je 0x46e063
cmp dword [ebp - 0x11c], esi
jae 0x46e063
push 0
push 0
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x46e065
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005520da
leave
ret
Function at 0x46e072
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x5e1da0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x144], eax
mov eax, dword [ebp + 0xc]
push edi
push str.KERNEL32.DLL
mov dword [ebp - 0x13c], eax
xor esi, esi
call fcn.00459994
pop ecx
cmp eax, esi
je 0x46e15c
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x46e15c
xor eax, eax
push 0xc8
mov word [ebp - 0xd0], ax
lea eax, [ebp - 0xce]
push esi
push eax
mov dword [ebp - 0x140], esi
call fcn.00552060
add esp, 0xc
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x140]
push eax
push 0x34
mov dword [ebp - 0x138], 0x65
call edi
test eax, eax
je 0x46e15c
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x46e15c
cmp esi, 0x14
jge 0x46e15c
push 0x10
push 0
push edi
call fcn.00558709
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x46e14b
call fcn.005562ce
cmp dword [eax], 0x22
je 0x46e14b
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.00555e56
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x46e121
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
mov ebx, 0xfc00
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x134], eax
call edi
mov dword [ebp + esi*4 - 0x130], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x12c], eax
call edi
mov dword [ebp + esi*4 - 0x128], eax
add esi, 4
cmp dword [0x8273b0], 0
jne 0x46e1e7
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x46e210
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.0046df82
pop ecx
pop ecx
test eax, eax
jne 0x46e212
inc edi
cmp edi, esi
jl 0x46e1ed
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005520da
leave
ret 8

Function at 0x470c9e
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push esi
mov esi, ecx
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 1
mov ecx, esi
test al, 1
je 0x470cc2
mov eax, dword [esi]
push 0
call dword [eax + 0xe0]
test eax, eax
jne 0x470cd0
pop esi
ret
mov eax, dword [esi + 0x24]
mov edx, dword [esi]
push eax
call dword [edx + 0xe0]
jmp 0x470cbc
xor eax, eax
inc eax
pop esi
ret
Function at 0x478418
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x57772d
call fcn.0055600b
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00401100
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x47847a
call fcn.0045adb3
cmp eax, 1
jne 0x47847a
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.00412cc0
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00402660
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004010d0
mov dword [ebp + 8], reloc.DSOUND.dll_DirectSoundCreate
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004010d0
mov eax, esi
call fcn.005560e3
ret 0x10

Function at 0x4784a3
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x57772d
call fcn.0055600b
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00401100
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x478505
call fcn.0045adb3
cmp eax, 1
jne 0x478505
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.00412cc0
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00402660
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004010d0
mov dword [ebp + 8], reloc.DSOUND.dll_DirectSoundCreate
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004010d0
mov eax, esi
call fcn.005560e3
ret 0x14

Function at 0x47b3f9
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5e1da0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x47b42e
xor eax, eax
jmp 0x47b481
lea eax, [ebp - 0x210]
push eax
call fcn.00555e56
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x47b45f
push 0x596460
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.005591ee
add esp, 0xc
test eax, eax
jne 0x47b42a
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.005591ee
add esp, 0xc
test eax, eax
jne 0x47b42a
lea eax, [ebp - 0x210]
push eax
call fcn.0045f189
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005520da
leave
ret