joyce8/EMBER2024-capa huggingface dataset:
Function at 0x501c04
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x522e8b
call fcn.0042e260
sub esp, 0x18
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x58]
mov ebx, dword [esi + 0x5c]
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], eax
call fcn.00517ba7
cmp dword [esi + 0x54], 0
mov edi, dword [eax + 0xc]
je 0x501c52
call fcn.00517ba7
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x54]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x501c63
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x501c6f
or eax, 0xffffffff
jmp 0x501d72
mov ecx, esi
call fcn.00501746
mov dword [ebp - 0x14], eax
call fcn.004fdbd4
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x14], 0
je 0x501cb2
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x501cb2
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x501cb2
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
and dword [ebp - 4], 0
push esi
call fcn.004ff47f
push dword [ebp - 0x14]
call fcn.004fdb2c
push edi
push eax
push ebx
mov ecx, esi
call fcn.005019f7
xor ebx, ebx
cmp eax, ebx
je 0x501d26
test byte [esi + 0x38], 0x10
je 0x501cf4
push 4
pop edi
mov ecx, esi
call fcn.00500149
test ah, 1
je 0x501cec
push 5
pop edi
push edi
mov ecx, esi
call fcn.004fd5d0
cmp dword [esi + 0x1c], ebx
je 0x501d26
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.005003fc
jmp 0x501d26
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], ebx
je 0x501d3a
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], ebx
je 0x501d53
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x501d53
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.00501780
cmp dword [esi + 0x54], ebx
je 0x501d6f
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x40]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x501dac
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.00517ba7
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x501de3
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.005019f7
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 0x501e3b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x54], ebx
jne 0x501e5b
cmp dword [edi + 0x50], 0
jne 0x501e5b
movzx eax, bx
mov dword [edi + 0x50], eax
call fcn.00517ba7
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00501e02
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x5024d7
Capabilities:
Get disk information

Disassembly:
mov eax, 0x522eed
call fcn.0042e260
sub esp, 0x264
mov eax, dword [0x57dcc0]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor eax, ebp
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x268]
push eax
push edi
mov esi, 0x104
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x50251e
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
jmp 0x502522
cmp eax, esi
jb 0x502529
xor eax, eax
jmp 0x502611
call fcn.005011a5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x264], eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x264]
push eax
push edi
call fcn.00502495
push dword [ebp - 0x264]
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
jne 0x5025fe
push eax
push eax
lea ecx, [ebp - 0x26c]
push ecx
lea ecx, [ebp - 0x270]
push ecx
push eax
push eax
push eax
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x50258a
xor esi, esi
jmp 0x502601
test byte [ebp - 0x26c], 2
jne 0x50259a
push edi
call dword [sym.imp.USER32.dll_CharUpperW]
test byte [ebp - 0x26c], 4
jne 0x5025fe
lea eax, [ebp - 0x260]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x5025fe
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x268], 0
je 0x502586
cmp dword [ebp - 0x268], edi
jbe 0x502586
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x268]
sub ecx, edi
sar ecx, 1
add ecx, eax
cmp ecx, esi
jge 0x502586
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor esi, esi
inc esi
mov ecx, dword [ebp - 0x264]
add ecx, 0xfffffff0
call fcn.004030b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042b98a
leave
ret 8
Function at 0x5029d2
Capabilities:
Get file system object information

Disassembly:
push ebp
lea ebp, [esp - 0x244]
sub esp, 0x2c4
mov eax, dword [0x57dcc0]
push ebx
mov ebx, dword [ebp + 0x24c]
xor eax, ebp
mov dword [ebp + 0x240], eax
mov eax, dword [ebp + 0x250]
push esi
push edi
mov edi, dword [ebp + 0x254]
mov dword [ebp - 0x80], eax
call dword [0x57c324]
xor esi, esi
cmp ebx, esi
mov dword [ebp - 0x78], esi
mov word [edi], si
je 0x502adc
push 0x800
push 0x2b4
lea eax, [ebp - 0x74]
push eax
push esi
push dword [ebp - 0x80]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x502adc
test byte [ebp - 0x6a], 1
je 0x502adc
lea eax, [ebp - 0x78]
push eax
push 0x53de10
push esi
push 0x53de20
lea ecx, [ebp - 0x80]
call fcn.00502976
test eax, eax
jl 0x502adc
mov eax, dword [ebp - 0x78]
cmp eax, esi
je 0x502adc
lea edx, [ebp - 0x7c]
push edx
push 0x549420
mov dword [ebp - 0x7c], esi
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jl 0x502acf
mov eax, dword [ebp - 0x7c]
cmp eax, esi
je 0x502acf
mov ecx, dword [eax]
push esi
push dword [ebp - 0x80]
push eax
call dword [ecx + 0x14]
test eax, eax
jl 0x502ac2
mov ebx, dword [ebx + 0x1c]
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
push 2
push ebx
push eax
call dword [ecx + 0x4c]
test eax, eax
jl 0x502ac2
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
push esi
push esi
push dword [ebp + 0x258]
push edi
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
inc esi
jmp 0x502acf
mov eax, dword [ebp - 0x7c]
cmp eax, esi
je 0x502acf
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
jmp 0x502ade
xor eax, eax
mov ecx, dword [ebp + 0x240]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042b98a
add ebp, 0x244
leave
ret 0x10
Function at 0x50480d
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x22c
xor ebx, ebx
push ebx
push esi
mov edi, ecx
call fcn.0042bfe0
add esp, 0xc
push 0x104
push dword [edi + 0xc]
lea eax, [esi + 0x22]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov eax, dword [edi + 4]
cmp eax, dword [0x53de0c]
je 0x50495b
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x50487d
push ebx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ebx
jne 0x504884
cmp ebx, ebx
jne 0x504884
xor eax, eax
jmp 0x50495e
mov edi, dword [edi + 0xc]
cmp dword [edi - 0xc], ebx
jne 0x504891
mov byte [esi + 0x20], bl
jmp 0x5048a5
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
sete cl
dec cl
and ecx, eax
mov byte [esi + 0x20], cl
lea eax, [ebp - 8]
push eax
call fcn.00423d7c
test eax, eax
je 0x5048cc
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040ed30
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
jmp 0x5048d1
mov dword [esi], ebx
mov dword [esi + 4], ebx
lea eax, [ebp - 0x10]
push eax
call fcn.00423d7c
test eax, eax
je 0x5048f9
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040ed30
mov ecx, dword [eax]
mov dword [esi + 0x10], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0x14], eax
jmp 0x504903
xor eax, eax
xor ecx, ecx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
lea eax, [ebp - 0x18]
push eax
call fcn.00423d7c
test eax, eax
je 0x50492b
push 0xffffffffffffffff
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040ed30
mov ecx, dword [eax]
mov dword [esi + 8], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0xc], eax
jmp 0x504935
xor eax, eax
xor ecx, ecx
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x504947
mov eax, dword [esi + 8]
mov dword [esi], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x50495b
mov eax, dword [esi + 8]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x14], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x509ad0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x57dcc0]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor eax, ebp
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov eax, 0x100
cmp ebx, eax
ja 0x509b23
push eax
lea eax, [ebp - 0x204]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, ebx
jne 0x509b23
push edi
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x509b2b
push edi
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042b98a
leave
ret 8
Function at 0x50ac73
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 0x10], eax
je 0x50adf7
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 8], ebx
je 0x50adf6
push esi
push edi
mov edi, dword [ebx]
add edi, 0x40
push edi
call fcn.0042c9d3
mov esi, eax
test esi, esi
pop ecx
je 0x50adf4
push edi
push ebx
push esi
call fcn.0042c0a0
mov edi, dword [esi]
add esp, 0xc
add edi, esi
and dword [ebp + 0xc], 0
mov ecx, dword [ebp + 0xc]
mov ecx, dword [edi + ecx*4]
xor eax, eax
cmp ecx, dword [eax*8 + 0x53ea08]
je 0x50ace9
inc eax
cmp eax, 4
jb 0x50acd8
jmp 0x50ad4b
cmp dword [ebp + 0x10], 0
je 0x50ad05
cmp dword [eax*8 + 0x53ea0c], 0x12
je 0x50ad4b
mov eax, dword [ebp + 0xc]
mov dword [edi + eax*4], 0xffffff
jmp 0x50ad4b
lea ebx, [eax*8 + 0x53ea0c]
push dword [ebx]
mov dword [ebp - 4], ebx
call dword [sym.imp.USER32.dll_GetSysColor]
push dword [ebx]
movzx eax, ah
mov dword [ebp + 8], eax
call dword [sym.imp.USER32.dll_GetSysColor]
mov ecx, dword [ebp + 8]
mov ch, al
mov eax, ebx
push dword [eax]
shl ecx, 8
mov dword [ebp + 8], ecx
call dword [sym.imp.USER32.dll_GetSysColor]
mov ecx, dword [ebp + 8]
shr eax, 0x10
movzx eax, al
or ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [edi + eax*4], ecx
inc dword [ebp + 0xc]
cmp dword [ebp + 0xc], 0x10
jl 0x50acd0
mov edi, dword [esi + 4]
mov ebx, dword [esi + 8]
push 0
mov dword [ebp + 8], edi
mov dword [ebp + 0xc], ebx
call dword [sym.imp.USER32.dll_GetDC]
push ebx
push edi
push eax
mov dword [ebp + 0x10], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
test eax, eax
mov dword [ebp - 4], eax
je 0x50add6
push dword [ebp + 0x10]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [ebp - 4]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
mov edi, eax
push edi
call ebx
mov cl, byte [esi + 0xe]
push 0xcc0020
xor edx, edx
inc edx
shl edx, cl
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xc], eax
xor eax, eax
push eax
push esi
lea ecx, [ecx + edx*4 + 0x28]
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
push eax
push edi
call dword [sym.imp.GDI32.dll_StretchDIBits]
push dword [ebp - 0xc]
push edi
call ebx
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp + 0x10]
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push esi
call fcn.0042c81d
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x50fe7a
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov esi, ecx
call fcn.004fc1a4
test eax, eax
jne 0x51006a
mov edi, dword [edi + 4]
push ebx
mov ecx, esi
call fcn.00421844
test byte [esi + 0x7c], 0x20
mov dword [ebp - 0x10], eax
mov ebx, 0x201
jne 0x50febe
cmp edi, ebx
je 0x50febe
cmp edi, 0x202
jne 0x510017
cmp edi, 0x200
jb 0x50fece
cmp edi, 0x209
jbe 0x50fee6
cmp edi, 0xa0
jb 0x510017
cmp edi, 0xa9
ja 0x510017
call fcn.00517bcd
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0x1c]
mov dword [ebp - 0x18], ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
push 0x30
lea eax, [ebp - 0x48]
push 0
push eax
call fcn.0042bfe0
mov eax, dword [esi]
add esp, 0xc
lea ecx, [ebp - 0x48]
push ecx
push dword [ebp - 0x14]
mov ecx, esi
push dword [ebp - 0x18]
mov dword [ebp - 0x48], 0x28
call dword [eax + 0x6c]
cmp dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 4], eax
je 0x50ff44
push dword [ebp - 0x24]
call fcn.0042c81d
pop ecx
cmp edi, ebx
jne 0x50ff57
test byte [ebp - 0x41], 0x80
je 0x50ff57
mov dword [ebp - 8], 1
jmp 0x50ff75
and dword [ebp - 8], 0
cmp edi, ebx
je 0x50ff75
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x50ff75
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x78]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x50ffe1
cmp dword [ebp - 8], 0
jne 0x50ffe1
cmp edi, 0x202
jne 0x50ffa1
mov eax, dword [esi]
push 0xffffffffffffffff
mov ecx, esi
call dword [eax + 0x160]
push 0xc8
push 0xe001
jmp 0x50ffc9
test byte [esi + 0x78], 8
jne 0x50ffd2
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x50ffd2
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
cmp eax, dword [ecx + 0x78]
je 0x51000e
push 0x12c
push 0xe000
mov ecx, esi
call fcn.0050f52b
jmp 0x51000e
push dword [ebp - 4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x160]
jmp 0x51000e
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x50fff4
cmp dword [ebp - 8], 0
je 0x51000e
mov eax, dword [esi]
push 0xffffffffffffffff
mov ecx, esi
call dword [eax + 0x160]
push 0xe001
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x78], eax
mov ecx, esi
call fcn.004fe519
test eax, eax
pop ebx
je 0x510029
cmp dword [eax + 0x64], 0
jne 0x51006f
cmp dword [ebp - 0x10], 0
je 0x510051
mov edi, dword [ebp - 0x10]
push dword [ebp + 8]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x100]
test eax, eax
jne 0x51006a
mov ecx, edi
call fcn.004fe4da
test eax, eax
mov dword [ebp - 0x10], eax
jne 0x51002f
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x51006f
push dword [ebp + 8]
mov ecx, esi
call fcn.004fcc5b
jmp 0x510071
xor eax, eax
inc eax
jmp 0x510071
xor eax, eax
pop edi
pop esi
leave
ret 4
Function at 0x51021d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x57dcc0]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor eax, ebp
mov esi, ecx
cmp dword [esi + 0x50], 0
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
je 0x51026e
push edi
call fcn.0051a176
mov esi, eax
test esi, esi
je 0x510292
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
jmp 0x510292
push dword [ebp + 0x10]
lea eax, [ebp - 0x24]
push 0x53dde0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push dword [esi + 0x64]
lea eax, [ebp - 0x24]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042b98a
leave
ret 0xc

Function at 0x518208
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 4], ecx
call fcn.00517ba7
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x518248
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 8], eax
je 0x518248
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x51824c
xor eax, eax
jmp 0x5182c9
movzx eax, word [esi + 6]
push ebx
shl eax, 2
push edi
push eax
call fcn.00500fa3
mov edi, eax
xor eax, eax
cmp word [esi + 6], ax
pop ecx
jbe 0x51827a
lea ecx, [esi + 8]
movzx edx, word [ecx]
mov dword [edi + eax*4], edx
movzx edx, word [esi + 6]
inc eax
inc ecx
inc ecx
cmp eax, edx
jl 0x518269
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 4]
push eax
push edi
call fcn.00517e45
push edi
mov ebx, eax
call fcn.00500fd3
test ebx, ebx
pop ecx
je 0x5182bc
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
lea esi, [ecx + 7]
mov ecx, dword [ebp - 4]
push eax
lea edx, [eax + 7]
push esi
push edx
call fcn.0051808e
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.00518115
mov ebx, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, ebx
pop ebx
pop esi
leave
ret 4

Function at 0x5186e2
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x57dcc0]
xor eax, ebp
cmp dword [ebp + 8], 0x800
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x518712
push 0x53fc88
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x518724
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x518756
lea eax, [ebp - 0xc]
push eax
push esi
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.0042f03e
add esp, 0x10
cmp eax, 0xffffffff
je 0x518756
cmp eax, esi
jae 0x518756
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x518758
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042b98a
leave
ret
Function at 0x51877b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x57dcc0]
push ebx
push esi
xor eax, ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push 0x53fd34
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x28], ebx
xor esi, esi
call edi
push str.GetUserDefaultUILanguage
push eax
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x518825
call eax
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ebx, 0x3ff
mov edi, 0xfc00
mov dword [ebp - 0x28], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ecx, cx
and eax, edi
or eax, ecx
push eax
mov dword [ebp - 0x2c], ecx
call esi
push dword [ebp - 0x2c]
mov dword [ebp - 0x48], eax
call esi
push str.GetSystemDefaultUILanguage
push dword [ebp - 0x30]
mov dword [ebp - 0x44], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
mov dword [ebp - 0x28], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ebx, cx
and eax, edi
or eax, ebx
push eax
call esi
push ebx
mov dword [ebp - 0x40], eax
call esi
mov dword [ebp - 0x3c], eax
push 4
xor ebx, ebx
jmp 0x518927
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x5188d5
lea eax, [ebp - 0x2c]
push eax
push 0x20019
push ebx
push str.Control_PanelDesktopResourceLocale
push SysReAllocString
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x518928
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
push ebx
push ebx
push dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0x20
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x5188ca
cmp dword [ebp - 0x34], 1
jne 0x5188ca
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x24]
push 0x53fca4
push eax
call fcn.0042edf2
add esp, 0xc
cmp eax, 1
jne 0x5188ca
mov eax, dword [ebp - 0x50]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [ebp - 0x28], eax
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x48], eax
call esi
push 2
mov dword [ebp - 0x44], eax
pop esi
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x518928
push str.ntdll.dll
call edi
cmp eax, ebx
je 0x518928
lea ecx, [ebp - 0x28]
push ecx
push 0x518765
push 1
push 0x10
push eax
mov dword [ebp - 0x28], ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesW]
cmp word [ebp - 0x28], bx
je 0x518928
movzx eax, word [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x48], eax
call esi
mov dword [ebp - 0x44], eax
push 2
pop esi
mov dword [ebp + esi*4 - 0x48], 0x800
inc esi
xor edi, edi
cmp esi, ebx
jle 0x51894d
push dword [ebp + edi*4 - 0x48]
mov ecx, dword [ebp - 0x4c]
call fcn.005186e2
cmp eax, ebx
pop ecx
jne 0x51894f
inc edi
cmp edi, esi
jl 0x518937
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042b98a
leave
ret 4