joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5961c8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x59624e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.004073ec
call sub.user32.dll_GetForegroundWindow
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x596238
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_GetWindowTextLengthW
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x10]
call fcn.00407768
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00407478
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_GetWindowTextW
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
call fcn.0041320c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x596255
lea eax, [ebp - 0x14]
call fcn.004073dc
ret

Function at 0x59625c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5962da
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x5962c4
mov eax, dword [ebp - 0x14]
push eax
call sub.user32.dll_GetWindowTextLengthW
inc eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
call fcn.00407768
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00407478
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.user32.dll_GetWindowTextW
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
call fcn.0041320c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5962e1
lea eax, [ebp - 0x1c]
call fcn.004073dc
ret

Function at 0x59ce08
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
call fcn.00407768
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00407478
push eax
call sub.kernel32.dll_GetComputerNameW
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00407478
mov edx, eax
mov eax, dword [ebp - 8]
call fcn.00407598
mov esp, ebp
pop ebp
ret

Function at 0x59cffc
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
jne 0x59d015
mov dword [ebp - 8], 1
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 0xc], eax
mov eax, dword [0x5b209c]
mov eax, dword [eax]
call fcn.004c7490
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 8]
jb 0x59d01d
mov esp, ebp
pop ebp
ret
Function at 0x59d198
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_IsIconic
test eax, eax
je 0x59d1bc
push 9
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_ShowWindow
call sub.user32.dll_GetForegroundWindow
cmp eax, dword [ebp - 8]
jne 0x59d1cf
mov byte [ebp - 9], 1
jmp 0x59d2e5
mov eax, dword [0x5b249c]
cmp dword [eax], 2
jne 0x59d1e3
mov eax, dword [0x5b1c84]
cmp dword [eax], 4
jg 0x59d217
mov eax, dword [0x5b249c]
cmp dword [eax], 1
jne 0x59d2c7
mov eax, dword [0x5b1c84]
cmp dword [eax], 4
jg 0x59d217
mov eax, dword [0x5b1c84]
cmp dword [eax], 4
jne 0x59d2c7
mov eax, dword [0x5b2194]
cmp dword [eax], 0
jle 0x59d2c7
mov byte [ebp - 9], 0
push 0
call sub.user32.dll_GetForegroundWindow
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov dword [ebp - 0x10], eax
push 0
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov dword [ebp - 0x14], eax
push 0xffffffffffffffff
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.user32.dll_AttachThreadInput
test eax, eax
je 0x59d279
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_BringWindowToTop
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_SetForegroundWindow
push 0
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.user32.dll_AttachThreadInput
call sub.user32.dll_GetForegroundWindow
cmp eax, dword [ebp - 8]
sete byte [ebp - 9]
cmp byte [ebp - 9], 0
jne 0x59d2d9
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push 0x2000
call sub.user32.dll_SystemParametersInfoW
push 2
push 0
push 0
push 0x2001
call sub.user32.dll_SystemParametersInfoW
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_BringWindowToTop
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_SetForegroundWindow
push 2
mov eax, dword [ebp - 0x18]
push eax
push 0
push 0x2001
call sub.user32.dll_SystemParametersInfoW
jmp 0x59d2d9
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_BringWindowToTop
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_SetForegroundWindow
call sub.user32.dll_GetForegroundWindow
cmp eax, dword [ebp - 8]
sete byte [ebp - 9]
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret
Function at 0x59f378
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
xor edx, edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x59f664
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
push eax
mov eax, dword [0x5b8b94]
push eax
call sub.user32.dll_GetWindowRect
xor eax, eax
push ebp
push 0x59f644
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x5b2064]
cmp dword [eax], 0
jne 0x59f3d3
mov ecx, dword [0x5b2064]
mov eax, dword [0x5b209c]
mov eax, dword [eax]
mov edx, dword [0x569408]
call fcn.004c75c4
mov eax, dword [0x5b209c]
mov eax, dword [eax]
call fcn.004c7490
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59f64e
mov eax, dword [0x5b8b94]
mov dword [ebp - 8], eax
mov dword [0x5b1884], 3
mov eax, dword [0x5b2064]
mov eax, dword [eax]
mov dl, 1
call fcn.004c3468
mov eax, dword [0x5b2064]
mov eax, dword [eax]
xor edx, edx
call fcn.004c347c
mov eax, dword [0x5b2064]
mov eax, dword [eax]
call fcn.004c2a44
mov eax, dword [0x5b2064]
mov eax, dword [eax]
mov edx, dword [ebp - 0x14]
call fcn.004c3634
mov eax, dword [0x5b2064]
mov eax, dword [eax]
mov edx, dword [ebp - 0x18]
call fcn.004c35f8
mov byte [0x5b8ccd], 0
mov byte [0x5b8ce0], 0
mov eax, dword [0x5b209c]
mov eax, dword [eax]
call fcn.004c7490
mov eax, dword [0x5b2460]
mov eax, dword [eax]
call fcn.004c4380
mov edx, eax
mov eax, dword [0x5b2064]
mov eax, dword [eax]
call fcn.0049622c
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 0x18]
mov eax, dword [0x5b2064]
mov eax, dword [eax]
call fcn.004961f8
push 9
mov eax, dword [0x5b8b94]
push eax
call sub.user32.dll_ShowWindow
push 0x13
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_SetWindowPos
xor eax, eax
push ebp
push 0x59f576
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x5b2064]
mov eax, dword [eax]
call fcn.0049fb00
push eax
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_SetParent
mov eax, dword [0x5b2064]
mov eax, dword [eax]
call fcn.0049fb00
push eax
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_SetParent
mov eax, dword [0x5b2064]
mov eax, dword [eax]
call fcn.0049fb00
push eax
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_SetParent
mov eax, dword [0x5b2064]
mov eax, dword [eax]
call fcn.0049fb00
push eax
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_SetParent
mov eax, dword [0x5b2064]
mov eax, dword [eax]
call fcn.0049fb00
push eax
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_SetParent
mov eax, dword [0x5b209c]
mov eax, dword [eax]
call fcn.004c7490
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59f57d
mov eax, dword [0x5b2064]
mov eax, dword [eax]
call fcn.0049fb00
push eax
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_SetParent
push 0x13
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov eax, dword [0x5b2064]
mov eax, dword [eax]
call fcn.0049fb00
push eax
call sub.user32.dll_SetWindowPos
ret
Function at 0x38174b
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, ecx
mov eax, dword [edi + 0x44]
xor ebx, ebx
cmp eax, ebx
je 0x3817a6
cmp eax, 0xffffffff
je 0x3817a6
cmp dword [ebp + 8], ebx
je 0x3817a6
push esi
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [edi + 0x44]
push ebx
mov esi, eax
lea eax, [ebp - 4]
push eax
add esi, esi
push esi
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x38f302
cmp esi, dword [ebp - 4]
jne 0x38f31d
pop esi
pop edi
mov eax, ebx
pop ebx
leave
ret 4
mov ebx, 0x80070057
jmp 0x38179e

Function at 0x38227c
Capabilities:
Query environment variable

Disassembly:
push 0x20
mov eax, 0x39621c
call fcn.00381350
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
push ebx
push 0x20019
push dword [0x39b458]
lea ecx, [ebp - 0x2c]
push 0x80000002
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
call fcn.00382097
test eax, eax
jne 0x3823c4
lea eax, [ebp - 0x20]
push eax
push dword [0x39b45c]
lea ecx, [ebp - 0x2c]
push ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], ebx
call fcn.003823dc
test eax, eax
jne 0x3823c4
mov eax, dword [ebp - 0x20]
xor ecx, ecx
push 2
add eax, eax
pop edx
mul edx
seto cl
mov byte [ebp - 4], 1
neg ecx
or ecx, eax
push ecx
call fcn.003813e0
mov esi, eax
pop ecx
mov dword [ebp - 0x1c], esi
cmp esi, ebx
je 0x3823c4
lea eax, [ebp - 0x20]
push eax
push dword [0x39b45c]
lea ecx, [ebp - 0x2c]
push esi
call fcn.003823dc
test eax, eax
jne 0x3823bb
push ebx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
call esi
mov edi, eax
cmp edi, ebx
je 0x3823bb
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.003813e0
pop ecx
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x3823bb
push edi
push eax
push dword [ebp - 0x1c]
call esi
mov esi, eax
cmp esi, ebx
je 0x3823b2
cmp dword [ebp + 8], ebx
je 0x38ea08
push dword [0x39b460]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + esi + 1]
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.003813e0
pop ecx
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x3823b2
push dword [ebp - 0x14]
push esi
push eax
call fcn.003821cb
push dword [0x39b460]
push edi
push dword [ebp - 0x18]
call fcn.00382436
push dword [ebp - 0x14]
call fcn.003813c0
pop ecx
push dword [ebp - 0x1c]
call fcn.003813c0
pop ecx
lea ecx, [ebp - 0x2c]
call fcn.00381f10
mov eax, dword [ebp - 0x18]
call fcn.00381390
ret 4
Function at 0x3823dc
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push edi
push esi
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 4], ebx
jbe 0x38242c
cmp dword [ebp - 4], 2
ja 0x38e965
mov ecx, dword [edi]
test cl, 1
jne 0x38242c
cmp esi, ebx
je 0x382425
shr ecx, 1
cmp word [esi + ecx*2 - 2], bx
jne 0x38242c
pop edi
pop esi
pop ebx
leave
ret 0xc
push 0xd
pop eax
jmp 0x382425

Function at 0x3824ed
Capabilities:
Delete file
Move file

Disassembly:
push 0x14
mov eax, 0x396b05
call fcn.00381350
mov esi, ecx
mov eax, dword [esi + 0x44]
xor edi, edi
mov ebx, 0x8007000e
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
cmp eax, edi
je 0x382519
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x44], edi
cmp dword [ebp + 8], edi
je 0x38265b
cmp dword [ebp + 0xc], edi
je 0x38265b
push 1
call fcn.0038227c
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0x38264a
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov dword [ebp - 4], edi
call esi
push dword [ebp + 8]
mov edi, eax
call esi
lea eax, [eax + edi + 1]
xor ecx, ecx
push 2
pop edx
mov dword [ebp - 0x20], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.003813e0
pop ecx
mov dword [ebp - 0x18], eax
test eax, eax
je 0x38259b
push dword [ebp - 0x1c]
inc edi
push edi
push eax
call fcn.003821cb
mov ebx, eax
test ebx, ebx
jl 0x38259b
push dword [ebp + 8]
push dword [ebp - 0x20]
push dword [ebp - 0x18]
call fcn.00382436
mov ebx, eax
test ebx, ebx
jl 0x38259b
xor ebx, ebx
inc ebx
or dword [ebp - 4], 0xffffffff
test ebx, ebx
jl 0x382632
push 2
pop ebx
push dword [ebp - 0x1c]
mov dword [ebp - 4], ebx
call esi
push dword [ebp + 0xc]
mov edi, eax
call esi
lea esi, [eax + edi + 1]
xor ecx, ecx
mov eax, esi
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.003813e0
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x382654
push dword [ebp - 0x1c]
inc edi
push edi
push eax
call fcn.003821cb
mov ebx, eax
test ebx, ebx
jl 0x382623
push dword [ebp + 0xc]
push esi
push dword [ebp - 0x14]
call fcn.00382436
mov ebx, eax
test ebx, ebx
jl 0x382623
xor ebx, ebx
inc ebx
test ebx, ebx
jl 0x382623
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x38f3a2
xor ebx, ebx
cmp dword [ebp - 0x14], 0
je 0x382632
push dword [ebp - 0x14]
call fcn.003813c0
pop ecx
cmp dword [ebp - 0x18], 0
je 0x382641
push dword [ebp - 0x18]
call fcn.003813c0
pop ecx
push dword [ebp - 0x1c]
call fcn.003813c0
pop ecx
mov eax, ebx
call fcn.00381390
ret 8
mov ebx, 0x8007000e
jmp 0x3825fe
mov ebx, 0x80070057
jmp 0x38264a
Function at 0x383a67
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x383ae4
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x383ac0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x383ad0
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 0xffffffff
pop esi
je 0x38e30e
mov eax, dword [ebp - 8]
leave
ret
Function at 0x384267
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
cmp dword [0x39b00c], esi
jne 0x3842be
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x382c6f
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x39b00c], eax
cmp eax, esi
je 0x38e4ec
push 0xffffffffffffffff
push dword [0x39b014]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [0x39b014]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
cmp dword [0x39b018], esi
jl 0x38e50a
pop esi
leave
ret

Function at 0x384441
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x384498
call fcn.00382712
xor eax, eax
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x384490
cmp ecx, 0xffffffff
je 0x384490
and dword [ebp - 4], eax
mov edx, 0x5a4d
cmp word [ecx], dx
jne 0x384489
mov edx, dword [ecx + 0x3c]
test edx, edx
jl 0x384489
cmp edx, 0x10000000
jae 0x384489
lea eax, [edx + ecx]
mov dword [ebp - 0x1c], eax
cmp dword [eax], 0x4550
jne 0x38e892
mov dword [ebp - 4], 0xfffffffe
call fcn.00382757
ret 4

Function at 0x38681f
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x39b004]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov esi, ecx
inc eax
cmp dword [esi + 0x2c], 0
jne 0x386933
push edi
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov edi, 0x105
push edi
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 0x420], eax
cmp eax, edi
ja 0x38ed16
lea eax, [ebp - 0x41c]
push eax
push edi
lea eax, [ebp - 0x210]
push eax
call fcn.003821cb
test eax, eax
jl 0x386932
mov ecx, dword [ebp - 0x420]
cmp word [ebp + ecx*2 - 0x210], 0x5c
je 0x3868c3
push 0x386994
push edi
lea eax, [ebp - 0x210]
push eax
call fcn.00382436
test eax, eax
jl 0x386932
push 0x386980
push edi
lea eax, [ebp - 0x210]
push eax
call fcn.00382436
test eax, eax
jl 0x386932
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 0x2c], eax
test eax, eax
je 0x38ed20
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x386970
push eax
call edi
push 0x38695c
push dword [esi + 0x2c]
mov dword [esi + 0x30], eax
call edi
push 0x386948
push dword [esi + 0x2c]
mov dword [esi + 0x34], eax
call edi
cmp dword [esi + 0x30], 0
mov dword [esi + 0x38], eax
je 0x386940
cmp dword [esi + 0x34], 0
je 0x386940
test eax, eax
je 0x386940
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.003820d4
leave
ret
mov eax, 0x8007007f
jmp 0x386932
Function at 0x3871f8
Capabilities:
Identify system language via api

Disassembly:
push 0x2c
mov eax, 0x39608c
call fcn.003839dd
lea ecx, [ebp - 0x34]
call fcn.00386c55
and dword [ebp - 4], 0
lea eax, [ebp - 0x34]
push eax
push 0
call fcn.0038758b
test eax, eax
jl 0x38722c
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.003872a7
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx esi, ax
mov eax, 0x409
mov edi, 0x387298
cmp ax, si
jne 0x38e4b4
and esi, 0x3ff
push esi
push edi
lea eax, [ebp - 0x30]
push 8
push eax
call fcn.00381451
add esp, 0x10
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0038758b
mov esi, eax
test esi, esi
jl 0x387280
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.003872a7
mov esi, eax
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x34]
lea ecx, [ebp - 0x34]
call fcn.0038760b
mov eax, esi
call fcn.00382b9f
ret

Function at 0x38791d
Capabilities:
Identify system language via api

Disassembly:
lea eax, [ebp - 0x30]
push eax
call esi
push 8
pop eax
push dword [ebp + 0x10]
mov word [ebp - 0x30], ax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x28], eax
cmp eax, ebx
je 0x38dc4f
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push 0x82
lea edx, [ebp - 0x30]
push edx
push 0x387900
push eax
call dword [ecx + 0x10]
mov esi, eax
lea eax, [ebp - 0x30]
push eax
call edi
cmp esi, ebx
jl 0x3879a8
push 1
lea ecx, [ebp - 0x20]
call fcn.003879e3
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x20]
push edx
push 0x3878ec
push eax
call dword [ecx + 0x10]
mov esi, eax
lea eax, [ebp - 0x20]
push eax
call edi
push eax
call fcn.003871e0
cmp esi, ebx
jl 0x3879a8
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
push 3
movzx eax, ax
pop ecx
mov word [ebp - 0x20], cx
mov dword [ebp - 0x18], eax
jmp 0x387992
push 0x24
mov eax, 0x395c85
call fcn.003826dd
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0x20]
push eax
call esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push eax
mov dword [ebp - 0x10], ebx
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x10]
mov dword [ebp + 8], eax
mov byte [ebp - 4], 1
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp dword [ebp + 0xc], ebx
je 0x387854
push 1
lea ecx, [ebp - 0x20]
call fcn.003879e3
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x20]
push edx
push 0x383984
push eax
call dword [ecx + 0x10]
cmp eax, ebx
jl 0x3879a6
push 3
pop eax
mov word [ebp - 0x20], ax
mov dword [ebp - 0x18], 0x409
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push 1
lea edx, [ebp - 0x20]
push edx
push 0x3879d0
push eax
call dword [ecx + 0x10]
mov esi, eax
mov byte [ebp - 4], bl
lea ecx, [ebp + 8]
call fcn.00387455
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x20]
push eax
call edi
push eax
call fcn.003871e0
mov eax, esi
call fcn.00381390
ret 0xc
Function at 0x387b05
Capabilities:
Identify system language via api

Disassembly:
push 0x50
mov eax, 0x395fc0
call fcn.003839dd
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
xor esi, esi
push esi
mov dword [ebp - 0x5c], ecx
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x54], esi
call fcn.00387c2b
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x58]
mov ebx, eax
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, si
jne 0x387b34
sub eax, ecx
sar eax, 1
mov edi, eax
je 0x387b63
movzx eax, word [ebx + esi*2]
push eax
call dword [sym.imp.msvcrt.dll_iswxdigit]
pop ecx
test eax, eax
je 0x387b5b
inc esi
cmp esi, edi
jb 0x387b46
cmp esi, edi
jb 0x387c0e
xor eax, eax
mov edx, ebx
test edi, edi
jbe 0x387c0e
cmp word [edx], 0x30
jne 0x387b7c
inc eax
inc edx
inc edx
cmp eax, edi
jb 0x387b6f
cmp eax, edi
jae 0x387c0e
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x387b89
sub eax, esi
sar eax, 1
cmp eax, 3
ja 0x387c0e
push 0x10
push 0
push edx
call dword [sym.imp.msvcrt.dll_wcstoul]
add esp, 0xc
movzx esi, ax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
cmp cx, si
jne 0x387c03
movzx eax, ax
movzx eax, ax
push eax
push 0x387c18
lea eax, [ebp - 0x50]
push 0x20
push eax
call fcn.00381451
mov ecx, dword [ebp - 0x5c]
add esp, 0x10
lea eax, [ebp - 0x50]
push eax
call fcn.00386c60
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x58]
lea ecx, [ebp - 0x58]
call fcn.0038760b
mov eax, dword [ebp - 0x54]
call fcn.00382b9f
ret 8
or esi, 0x400
movzx eax, si
jmp 0x387bc6
mov dword [ebp - 0x54], 0x80041001
jmp 0x387be9