joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b810
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5354a8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x588c64]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
mov byte [ebp - 0x11], 1
mov dword [ebp - 4], 0
call fcn.00412a4b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40b863
push 0x80004005
call fcn.00402980
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 1
mov ecx, dword [0x590eb4]
lea eax, [ecx - 0x10]
lea esi, [ebx - 0x10]
cmp eax, esi
je 0x40b8d2
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x40b8c2
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40b8c2
push eax
call fcn.004029b0
mov dword [ebp - 0x1c], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x40b8b7
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 0x1c]
add ecx, 0x10
mov dword [ebp - 0x18], ecx
jmp 0x40b8cf
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x18]
call fcn.004028d0
mov ebx, dword [ebp - 0x18]
mov eax, dword [edi]
test eax, eax
je 0x40b8e5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [edi], 0
mov dword [ebp - 0x1c], 0
test ebx, ebx
je 0x40b967
cmp word [ebx], 0
je 0x40b967
push 0
lea edx, [ebp - 0x1c]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push ebx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x40b91d
xor ecx, ecx
jmp 0x40b920
mov ecx, dword [ebp - 0x1c]
mov dword [edi + 4], eax
test ecx, ecx
je 0x40b96e
mov esi, dword [ebp + 0xc]
push esi
push edi
mov dword [edi], ecx
mov ebx, dword [0x590eb8]
push edi
call fcn.0040d640
mov ecx, dword [esi + 4]
mov dword [ebp + 0xc], ecx
mov ecx, dword [0x590ebc]
test ecx, ecx
je 0x40b987
mov eax, dword [edi]
test eax, eax
je 0x40b980
push 4
lea edx, [ebp + 0xc]
push edx
push 4
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [edi + 4], eax
jmp 0x40b987
mov dword [edi + 4], 0x57
push 0x57e448
lea eax, [ebp - 0x12]
push eax
mov byte [ebp - 0x12], 0
call fcn.00512466
mov dword [edi + 4], 0x57
mov al, byte [esi + 8]
mov byte [ebp - 0x1c], al
mov ecx, dword [ebp - 0x1c]
push ecx
mov ecx, dword [0x590ec0]
push edi
push edi
call fcn.0040d820
mov dl, byte [esi + 9]
mov ecx, dword [0x590ec4]
mov byte [ebp - 0x1c], dl
mov eax, dword [ebp - 0x1c]
push eax
push edi
push edi
call fcn.0040d820
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b9e7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40b9e7
mov eax, dword [edi]
test eax, eax
je 0x40b9fa
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [edi], 0
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40c660
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
mov dword [ebp - 4], esi
cmp ebx, esi
je 0x40c70a
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x40c70a
mov edx, dword [ebp + 0x10]
push edi
lea ecx, [ebp - 4]
push ecx
push esi
push edx
push esi
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x40c6fb
mov eax, dword [ebp - 4]
add eax, 2
push eax
call fcn.00411dec
mov esi, eax
add esp, 4
test esi, esi
je 0x40c6f6
mov ecx, dword [ebp - 4]
add ecx, 2
push ecx
push edi
push esi
call fcn.005126c0
add esp, 0xc
cmp dword [ebp - 4], edi
jbe 0x40c6fb
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 4]
push edx
push esi
push eax
push edi
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
je 0x40c6fb
push esi
call fcn.00411df7
mov edx, dword [ebp + 8]
add esp, 4
xor esi, esi
mov dword [edx], edi
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov edi, 0xe
mov edx, dword [ebp + 8]
mov dword [edx], edi
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 8]
mov dword [eax], 0x57
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40d4a0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
mov edi, eax
mov eax, dword [esi]
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
sub edx, 0x104
or ecx, edx
jge 0x40d4cc
push 0x104
mov ecx, esi
call fcn.00402800
mov eax, dword [edi]
mov ecx, dword [esi]
mov dword [ebp - 4], 0x104
test eax, eax
je 0x40d513
test ecx, ecx
je 0x40d513
lea edx, [ebp - 0xc]
push edx
push 0
push 0
push 0
lea edx, [ebp - 4]
push edx
push ecx
mov ecx, dword [ebx]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [edi + 4], eax
test eax, eax
jne 0x40d506
inc dword [ebx]
lea edi, [eax + 1]
jmp 0x40d51d
sub eax, 0x103
neg eax
sbb eax, eax
mov edi, eax
jmp 0x40d51d
mov dword [edi + 4], 0x57
or edi, 0xffffffff
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x40d534
push ecx
push eax
call fcn.00511473
add esp, 8
test eax, eax
js 0x40d54d
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x40d54d
mov dword [ecx - 0xc], eax
mov edx, dword [esi]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00402980
int3
Function at 0x40d640
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x534f98
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x588c64]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 0xd], 0
call fcn.004020e0
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
test ebx, ebx
je 0x40d6f7
cmp dword [esi - 4], 1
mov eax, dword [esi - 0xc]
lea edi, [eax + eax + 2]
jle 0x40d69e
push eax
lea ecx, [ebp - 0x14]
call fcn.00402730
mov esi, dword [ebp - 0x14]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov byte [ebp + 0x13], 0
test eax, eax
je 0x40d730
test esi, esi
je 0x40d730
push edi
push esi
push 1
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov cl, 1
test eax, eax
je 0x40d6ca
mov cl, byte [ebp + 0x13]
mov edx, dword [ebp + 8]
mov dword [edx + 4], eax
cmp cl, 1
jne 0x40d6d8
mov byte [ebp - 0xd], cl
mov eax, dword [esi - 8]
push eax
push esi
call fcn.00511473
add esp, 8
test eax, eax
js 0x40d73c
cmp eax, dword [esi - 8]
jg 0x40d73c
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d71a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0x57
jmp 0x40d6d8
push 0x80070057
call fcn.00402980
int3

Function at 0x40da60
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x534ca0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x588c64]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [esi + 4], ebx
je 0x40daa8
push 0x57e448
lea eax, [ebp - 0x11]
push eax
mov byte [ebp - 0x11], bl
call fcn.00512466
mov edi, dword [esi + 8]
mov ecx, 0x564f34
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40dad8
cmp dx, bx
je 0x40dad4
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40dad8
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x40dab2
xor eax, eax
jmp 0x40dadd
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
sete al
cmp al, bl
je 0x40dae9
push ebx
jmp 0x40daea
push edi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
cmp eax, ebx
jne 0x40db0a
push 0x57e448
lea ecx, [ebp - 0x12]
push ecx
mov byte [ebp - 0x12], bl
call fcn.00512466
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40db50
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
mov ecx, esi
call eax
push 0x57e448
lea ecx, [ebp - 0x13]
push ecx
mov byte [ebp - 0x13], bl
call fcn.00512466
mov byte [ebp - 0x14], 0
mov eax, 0x40db3b
ret
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40db70
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor bl, bl
cmp dword [esi + 4], 0
jne 0x40dbce
push edi
mov edi, dword [esi + 8]
mov ecx, 0x564f34
mov eax, edi
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40dbb6
test dx, dx
je 0x40dbb2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40dbb6
add eax, 4
add ecx, 4
test dx, dx
jne 0x40db90
xor eax, eax
jmp 0x40dbbb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40dbcd
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
pop edi
mov eax, dword [esi + 4]
test eax, eax
je 0x40dbfb
mov ecx, dword [ebp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40dbf3
cmp eax, 0x80
jne 0x40dbfb
pop esi
xor al, al
pop ebx
pop ebp
ret 4
pop esi
mov al, 1
pop ebx
pop ebp
ret 4
pop esi
mov al, bl
pop ebx
pop ebp
ret 4
Function at 0x40f640
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.SoftwareBrotherBrUtilities
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], 0x208
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x40f69e
mov edx, dword [ebp + 8]
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp - 4]
push edx
lea eax, [ebp - 0xc]
push eax
push esi
push str.BrLogAPI
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp - 4]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x40f700
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [esi + 4], 0
jne 0x40f7c2
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 4], eax
test eax, eax
je 0x40f7bf
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OpenA
push eax
call edi
mov ecx, dword [esi + 4]
push str.CloseA
push ecx
mov dword [esi + 8], eax
call edi
mov edx, dword [esi + 4]
push str.TraceWriteA
push edx
mov dword [esi + 0xc], eax
call edi
mov dword [esi + 0x10], eax
mov eax, dword [esi + 4]
push str.DumpWriteA
push eax
call edi
mov ecx, dword [esi + 4]
push str.OpenW
push ecx
mov dword [esi + 0x14], eax
call edi
mov edx, dword [esi + 4]
push str.CloseW
push edx
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 4]
push str.TraceWriteW
push eax
call edi
mov ecx, dword [esi + 4]
push str.DumpWriteW
push ecx
mov dword [esi + 0x20], eax
call edi
cmp dword [esi + 8], 0
mov dword [esi + 0x24], eax
pop edi
je 0x40f7bf
cmp dword [esi + 0xc], 0
je 0x40f7bf
cmp dword [esi + 0x10], 0
je 0x40f7bf
cmp dword [esi + 0x14], 0
je 0x40f7bf
cmp dword [esi + 0x18], 0
je 0x40f7bf
cmp dword [esi + 0x1c], 0
je 0x40f7bf
cmp dword [esi + 0x20], 0
je 0x40f7bf
test eax, eax
jne 0x40f7c2
xor eax, eax
ret
mov eax, 1
ret

Function at 0x40f860
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x588c64]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov ecx, dword [ebx + 4]
xor eax, eax
test ecx, ecx
je 0x40f91d
cmp dword [ecx + 4], eax
setne al
test eax, eax
jne 0x40f91d
mov ecx, 0x208
lea eax, [ebp - 0x20c]
lea esp, [esp]
mov byte [eax], 0
inc eax
dec ecx
jne 0x40f8a0
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0040f640
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
mov esi, eax
call dword [sym.imp.SHELL32.dll_DoEnvironmentSubstW]
test esi, esi
jne 0x40f8de
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40f90e
mov ecx, 0x208
lea eax, [ebp - 0x20c]
lea esp, [esp]
mov byte [eax], 0
inc eax
dec ecx
jne 0x40f8f0
push edi
push str.BrLogAPI.dll
mov eax, 0x104
lea edi, [ebp - 0x20c]
call fcn.0040e910
pop edi
mov esi, dword [ebx + 4]
lea eax, [ebp - 0x20c]
call fcn.0040f700
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00510aec
mov esp, ebp
pop ebp
ret
Function at 0x410430
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x534f98
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x588c64]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [ebx + 0x20]
push edi
mov byte [ebp - 0xd], 1
call fcn.00402a40
lea ecx, [esi + 4]
push ebx
call fcn.00402a40
push ecx
lea eax, [ebx + 0x24]
mov dword [ebp - 0x14], esp
mov ecx, esp
push eax
call fcn.004020e0
lea eax, [ebp - 0x14]
push eax
call fcn.00410610
lea ecx, [esi + 8]
push eax
mov dword [ebp - 4], 0
call fcn.00402a40
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4104bd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [edi]
mov eax, 0x564f34
mov cx, word [edi]
cmp cx, word [eax]
jne 0x4104ea
test cx, cx
je 0x4104e6
mov cx, word [edi + 2]
cmp cx, word [eax + 2]
jne 0x4104ea
add edi, 4
add eax, 4
test cx, cx
jne 0x4104c4
xor eax, eax
jmp 0x4104ef
sbb eax, eax
sbb eax, 0xffffffff
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test eax, eax
je 0x410544
mov eax, dword [ebx]
mov ecx, 0x564f34
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x410526
test dx, dx
je 0x410522
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x410526
add eax, 4
add ecx, 4
test dx, dx
jne 0x410500
xor eax, eax
jmp 0x41052b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x410544
lea eax, [ebx + 0x24]
push 0x564f34
push eax
call fcn.0040ddc0
add esp, 8
test al, al
je 0x41054f
push str.kps1bd
call esi
mov byte [ebp - 0xd], 0
cmp byte [ebx + 0x28], 1
jne 0x41059a
mov eax, dword [ebx + 0xc]
mov ecx, 0x564f34
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x410586
test dx, dx
je 0x410582
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x410586
add eax, 4
add ecx, 4
test dx, dx
jne 0x410560
xor eax, eax
jmp 0x41058b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x41059a
push 0x56695c
call esi
mov byte [ebp - 0xd], 0
cmp byte [ebx + 0x29], 1
jne 0x4105f1
mov eax, dword [ebx + 0x14]
mov ecx, 0x564f34
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4105ce
test dx, dx
je 0x4105ca
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4105ce
add eax, 4
add ecx, 4
test dx, dx
jne 0x4105a8
xor eax, eax
jmp 0x4105d3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4105f1
push 0x566960
call esi
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4137f7
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.0041df75
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 0x413830
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.00413434
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 0x41388e
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 0x4138b2
cmp dword [edi + 0x74], 0
jne 0x4138b2
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.0041df75
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 [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0041384f
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 0x41a2ee
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 0x41a335
call fcn.0041df75
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41a335
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41a351
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00419dee
mov esi, eax
test edi, edi
je 0x41a34f
test ebx, ebx
je 0x41a34f
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41ab2b
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5302c0
call fcn.0051235c
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x41ab50
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x41aba2
call fcn.00412a4b
push eax
lea ecx, [ebp - 0x10]
call fcn.00402250
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.00511eab
push eax
call fcn.00402330
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00402a20
mov eax, esi
call fcn.00512434
ret 8
Function at 0x41b988
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.0041b5d3
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x41b9d2
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0041294c
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00405860
jmp 0x41b9dd
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0042521d
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x41b9e3
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.0041a3fa
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x41ba20
call fcn.0041b5d3
mov dword [esi + 0xc], 1
jmp 0x41ba25
call fcn.0041b5d3
cmp dword [esi], 0
je 0x41ba6e
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x41ba46
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0041294c
jmp 0x41ba58
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00402860
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00405860
jmp 0x41ba92
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x41ba92
push dword [esi]
push dword [ebp + 8]
call fcn.0042521d
pop esi
pop ebp
ret 0xc

Function at 0x41c6e3
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x588c64]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x234], eax
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x41c728
push 0x53cb80
push 4
push eax
call fcn.00511e48
push eax
call fcn.00402330
add esp, 0x10
jmp 0x41c73e
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41c7be
push edi
call fcn.00512533
mov edi, dword [eax]
call fcn.00512533
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.005124d0
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.00512533
cmp dword [eax], 0
je 0x41c792
call fcn.00512533
push dword [eax]
call fcn.00412148
pop ecx
jmp 0x41c799
call fcn.00512533
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
pop edi
je 0x41c7be
cmp dword [ebp - 0x234], esi
jae 0x41c7be
push 0
push 0
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x41c7c0
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00510aec
leave
ret
Function at 0x41cc8b
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x588c64]
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.00415835
pop ecx
cmp eax, esi
je 0x41cd75
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x41cd75
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.005126c0
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 0x41cd75
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x41cd75
cmp esi, 0x14
jge 0x41cd75
push 0x10
push 0
push edi
call fcn.00514566
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x41cd64
call fcn.00512533
cmp dword [eax], 0x22
je 0x41cd64
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.00511e2d
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x41cd3a
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 [0x58c1f8], 0
jne 0x41ce00
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x41ce29
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.0041c6e3
pop ecx
pop ecx
test eax, eax
jne 0x41ce2b
inc edi
cmp edi, esi
jl 0x41ce06
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00510aec
leave
ret 8