joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415b41
Capabilities:
Terminate process

Disassembly:
push ebx
push ecx
push esi
push edi
mov esi, dword [ebp - 0x88]
mov edi, dword [ebp + esi - 0x68]
call fcn.00412d51
je 0x415b86
mov esi, dword [ebp + esi - 0x6c]
call fcn.00412d3e
je 0x415b86
test eax, eax
je 0x415b86
jns 0x415b6a
add eax, edx
inc eax
dec eax
sub edx, eax
jbe 0x415b86
add edi, eax
push ecx
call fcn.004164e9
pop ecx
jb 0x415b86
mov esi, edi
sub edx, ecx
add esi, ecx
mov ecx, edx
jecxz 0x415b86
jmp 0x415bc4
xor edx, edx
jmp 0x415bd8
call fcn.00412ce2
jb 0x415bf1
cld
push ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ecx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004185ba
call fcn.00413516
mov edi, dword [ebp - 0x88]
mov dword [ebp + edi - 0x6c], edx
pop edi
pop esi
pop ecx
pop ebx
ret
call fcn.004185ba
mov edx, eax
pop edi
pop esi
pop ecx
pop ebx
jmp fcn.0040dcc4

Function at 0x415c01
Capabilities:
Terminate process

Disassembly:
push eax
push ecx
push esi
push edi
mov esi, dword [ebp - 0x88]
mov esi, dword [ebp + esi - 0x6c]
call fcn.00412d3e
je 0x415c48
mov al, 0x20
cmp byte [esi], al
je 0x415c22
jmp 0x415c48
cmp byte [esi], al
jne 0x415c25
inc esi
loop 0x415c1e
call fcn.00412ce2
jb 0x415c4d
cld
push ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ecx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00413516
mov esi, dword [ebp - 0x88]
mov dword [ebp + esi - 0x6c], edx
pop edi
pop esi
pop ecx
pop eax
ret
mov edx, eax
pop edi
pop esi
pop ecx
pop eax
jmp fcn.0040dcc4

Function at 0x415c58
Capabilities:
Terminate process

Disassembly:
push eax
push ecx
push esi
push edi
mov esi, dword [ebp - 0x88]
mov esi, dword [ebp + esi - 0x6c]
call fcn.00412d3e
je 0x415c48
lea edi, [esi - 1]
add edi, ecx
mov al, 0x20
cmp byte [edi], al
je 0x415c7e
jmp 0x415c48
cmp byte [edi], al
jne 0x415c25
dec edi
loop 0x415c7a
jmp 0x415c25
Function at 0x415fbe
Capabilities:
Terminate process

Disassembly:
push esi
push edi
mov esi, dword [ebp - 0x88]
mov edi, dword [ebp + esi - 0x68]
call fcn.00412d51
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x5c], edx
push dword [ebp + esi - 0x6c]
mov esi, dword [ebp + esi - 0x64]
call fcn.00412d3e
pop edi
call fcn.00412d51
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x64], edx
jecxz 0x415ff2
jne 0x416045
mov esi, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x64]
call fcn.00412ce2
jb 0x41602a
cld
push ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ecx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004185ba
call fcn.004185ba
call fcn.00413516
mov edi, dword [ebp - 0x88]
mov dword [ebp + edi - 0x6c], edx
pop edi
pop esi
ret
mov al, 5
pop edi
pop esi
call fcn.004185ba
call fcn.004185ba
call fcn.004185ba
call fcn.00418074
jmp fcn.0040dccf
mov ebx, edi
mov dword [ebp - 0x54], ecx
sub edx, ecx
jb 0x415ff2
add ebx, edx
inc ebx
mov edx, esi
mov dword [ebp - 0x58], 0
cld
call fcn.00416101
jb 0x41606e
inc dword [ebp - 0x58]
add edi, dword [ebp - 0x54]
mov esi, edx
cmp edi, ebx
jb 0x41605b
mov ecx, dword [ebp - 0x58]
test ecx, ecx
je 0x415ff2
mov esi, edx
mov eax, dword [ebp - 0x5c]
sub eax, dword [ebp - 0x54]
imul ecx
jno 0x416087
jmp 0x416028
mov ecx, dword [ebp - 0x64]
add ecx, eax
js 0x416085
mov eax, dword [ebp - 0x6c]
add dword [ebp - 0x64], eax
call fcn.00412ce2
jb 0x41602a
mov dword [ebp - 0x68], edi
push edx
mov edi, dword [ebp - 0x6c]
mov edx, esi
call fcn.00416101
jb 0x4160e4
mov esi, dword [ebp - 0x6c]
mov ecx, edi
sub ecx, esi
mov edi, dword [ebp - 0x68]
push ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ecx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push esi
mov esi, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x5c]
push ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ecx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
mov dword [ebp - 0x68], edi
mov edi, dword [ebp - 0x54]
add edi, esi
mov dword [ebp - 0x6c], edi
mov esi, edx
jmp 0x4160a4
mov ecx, dword [ebp - 0x64]
mov esi, dword [ebp - 0x6c]
sub ecx, esi
mov edi, dword [ebp - 0x68]
push ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ecx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edx
jmp 0x41600c

Function at 0x4161dc
Capabilities:
Terminate process

Disassembly:
push ecx
mov ecx, 0xf
mov edx, 0x80000000
call fcn.00416206
pop ecx
jb 0x416201
ret
jmp fcn.0040dcc4
Function at 0x416263
Capabilities:
Terminate process

Disassembly:
push esi
push edi
sub esp, 0x254
lea edx, [esp + 0x140]
call fcn.00417652
or eax, eax
je 0x416310
mov esi, edx
mov ebx, edx
add esi, eax
mov al, byte [esi - 1]
cmp al, 0x3a
je 0x416290
cmp al, 0x5c
jne 0x41629e
mov word [esi], 0x2e2a
mov word [esi + 2], 0x2a
add esi, 4
lea eax, [esp]
push eax
push ebx
mov edx, dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
call fcn.004185d3
jb 0x416329
mov dword [ebp - 0x6c], eax
mov edi, esi
cmp ebx, edi
je 0x4162c7
mov al, byte [edi - 1]
cmp al, 0x3a
je 0x4162c7
cmp al, 0x5c
je 0x4162c7
dec edi
jmp 0x4162b5
test dword [esp], 0x1e
jne 0x4162e9
lea esi, [esp + 0x2c]
push edi
call fcn.0040dc44
pop edi
push ebx
mov edx, dword [sym.imp.KERNEL32.DLL_DeleteFileA]
call fcn.004185d3
jb 0x416319
lea eax, [esp]
push eax
push dword [ebp - 0x6c]
mov edx, dword [sym.imp.KERNEL32.DLL_FindNextFileA]
call fcn.004185d3
jae 0x4162c7
cmp dl, 0x35
jne 0x416319
push dword [ebp - 0x6c]
mov edx, dword [sym.imp.KERNEL32.DLL_FindClose]
call fcn.004185d3
add esp, 0x254
pop edi
pop esi
ret
push edx
push dword [ebp - 0x6c]
mov edx, dword [sym.imp.KERNEL32.DLL_FindClose]
call fcn.004185d3
pop edx
add esp, 0x254
mov al, dl
pop edi
pop esi
jmp fcn.0040dccf

Function at 0x416888
Capabilities:
Terminate process

Disassembly:
push ebx
push ecx
push esi
push edi
mov ebx, eax
mov esi, dword [ebp - 0x88]
mov edi, dword [ebp + esi - 0x68]
call fcn.00412d51
mov esi, dword [ebp + esi - 0x6c]
call fcn.00412d3e
jecxz 0x4168c3
test ebx, ebx
jns 0x4168bc
push edx
push edi
push ebx
call fcn.004164c0
pop ebx
add ebx, eax
add ebx, 2
pop edi
pop edx
call fcn.004169c0
jmp 0x416919
test ebx, ebx
jns 0x4168d7
push ecx
push edi
push ebx
call fcn.0041685e
pop eax
add ebx, eax
add ebx, 2
pop edi
pop ecx
call fcn.00416960
jmp 0x416919
call fcn.00412ce2
jb 0x416950
cld
push ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ecx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004185ba
call fcn.00413516
mov edi, dword [ebp - 0x88]
mov dword [ebp + edi - 0x6c], edx
pop edi
pop esi
pop ecx
pop ebx
ret
call fcn.004185ba
mov edx, eax
pop edi
pop esi
pop ecx
pop ebx
jmp fcn.0040dcc4
Function at 0x416cd3
Capabilities:
Terminate process

Disassembly:
push esi
push edi
mov eax, dword [ebx]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebx + 8]
mov dword [ebp - 0x68], eax
mov esi, dword [ebp - 0x88]
mov edi, dword [ebp + esi - 0x68]
call fcn.00412d51
mov esi, dword [ebp + esi - 0x6c]
call fcn.00412d3e
jecxz 0x416d1d
push ebx
push ecx
push esi
push edi
call fcn.004164e9
pop eax
pop esi
pop ecx
pop ebx
add edi, ecx
sub edx, ecx
jae 0x416d0f
xor edx, edx
push edx
push edi
push ecx
push esi
sub edi, ecx
mov ecx, edi
sub ecx, eax
mov esi, eax
jmp 0x416d27
call fcn.004167a7
push edx
push edi
push 0
push esi
mov edx, dword [ebx + 0x14]
mov edi, dword [ebp - 0x6c]
add dword [ebp - 0x6c], edx
mov al, byte [ebx + 6]
cmp al, 0x2c
je 0x416d55
cmp al, 0x2e
je 0x416d7d
ja 0x416d86
dec edx
cmp ecx, edx
jb 0x416d44
mov ecx, edx
cld
push ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ecx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [edi], cl
jmp 0x416d8d
cmp ecx, edx
jb 0x416d5b
mov ecx, edx
sub edx, ecx
cld
push ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ecx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
mov eax, 0x20202020
shr ecx, 1
rep stosw word es:[edi], ax
adc cl, 0
rep stosb byte es:[edi], al
jmp 0x416d8d
call fcn.00416c31
jae 0x416d8d
jmp 0x416da7
call fcn.00416c51
jb 0x416da7
pop esi
pop ecx
pop edi
pop edx
dec dword [ebp - 0x68]
jne 0x416cf8
call fcn.004185ba
call fcn.004185ba
pop edi
pop esi
ret
pop esi
pop ecx
pop edi
pop edx
call fcn.004185ba
call fcn.004185ba
pop edi
pop esi
jmp fcn.0040dccf

Function at 0x4173d3
Capabilities:
Terminate process

Disassembly:
push esi
push edi
mov esi, dword [ebp - 0x88]
mov esi, dword [ebp + esi - 0x6c]
add dword [ebp - 0x88], 4
test esi, 1
je 0x4173f3
and esi, 0xfffffffe
jne 0x4173fd
xchg dword [ebx], esi
call fcn.00412d16
pop edi
pop esi
ret
call fcn.00412d3e
mov edi, dword [ebx]
or edi, edi
je 0x41740d
cmp ecx, dword [edi - 4]
je 0x41742d
call fcn.00412ce2
jb 0x41743d
cld
push ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ecx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xchg dword [ebx], edx
mov esi, edx
call fcn.00412d16
pop edi
pop esi
ret
cld
push ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ecx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
ret
xchg dword [ebx], edx
mov esi, edx
call fcn.00412d16
pop edi
pop esi
jmp fcn.0040dccf

Function at 0x41744d
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [ebp - 0x88]
mov eax, dword [ebp + esi - 0x6c]
add dword [ebp - 0x88], 4
pop esi
test eax, 1
jne 0x41746a
mov dword [ebx], eax
ret
push esi
push edi
mov esi, eax
call fcn.00412d3e
call fcn.00412ce2
jb 0x41748c
cld
push ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ecx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx], edx
pop edi
pop esi
ret
mov dword [ebx], edx
pop edi
pop esi
jmp fcn.0040dccf
Function at 0x417495
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [ebp - 0x88]
mov eax, dword [ebp + esi - 0x6c]
add dword [ebp - 0x88], 4
pop esi
test eax, 1
jne 0x4174b5
mov dword [ebx], eax
pop edx
push eax
push edx
ret
push esi
push edi
mov esi, eax
call fcn.00412d3e
call fcn.00412ce2
jb 0x4174da
cld
push ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ecx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov dword [ebx], edx
pop eax
push edx
push eax
ret
pop edi
pop esi
mov dword [ebx], edx
pop ebx
push edx
push ebx
jmp fcn.0040dccf

Function at 0x417697
Capabilities:
Terminate process

Disassembly:
push ebx
push ecx
push esi
push edi
mov edi, dword [ebp - 0x88]
mov esi, dword [ebp + edi - 0x6c]
call fcn.00412d3e
mov ebx, ecx
push esi
mov esi, dword [ebp + edi - 0x68]
call fcn.00412d3e
jecxz 0x41770d
test ebx, ebx
je 0x417715
add ebx, ecx
xchg ecx, ebx
call fcn.00412ce2
jb 0x417722
xchg ecx, ebx
sub ebx, ecx
cld
push ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ecx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
mov ecx, ebx
push ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ecx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x88]
mov esi, edx
xchg dword [ebp + edi - 0x68], esi
call fcn.00412d16
mov esi, dword [ebp + edi - 0x6c]
call fcn.00412d16
add dword [ebp - 0x88], 4
pop edi
pop esi
pop ecx
pop ebx
ret
mov esi, dword [ebp + edi - 0x6c]
mov dword [ebp + edi - 0x68], esi
add dword [ebp - 0x88], 4
pop esi
pop edi
pop esi
pop ecx
pop ebx
ret
pop esi
pop edi
pop esi
pop ecx
pop ebx
jmp fcn.0040dccf

Function at 0x41779d
Capabilities:
Terminate process

Disassembly:
mov edx, eax
call fcn.0040dd97
jb 0x4177aa
mov eax, dword [eax + edx]
ret
jmp fcn.0040dccf

Function at 0x417eaa
Capabilities:
Terminate process

Disassembly:
push eax
push edx
push esi
mov ebx, dword [ebp - 0x84]
sub ebx, 0xa
mov esi, dword [ebx]
sub ebx, 4
shr esi, 1
jb 0x417ed7
je 0x417ed3
shr esi, 1
jae 0x417ef8
shl esi, 2
mov esi, dword [ebp + esi]
call fcn.00412d16
jmp 0x417eb6
pop esi
pop edx
pop eax
ret
shr esi, 1
jb 0x417f09
push ebx
shl esi, 2
lea ebx, [ebp + esi]
mov eax, 1
call fcn.0040e578
pop ebx
jae 0x417eb6
pop esi
pop edx
pop eax
jmp fcn.0040dccf
shl esi, 2
mov ecx, dword [ebp + esi]
jecxz 0x417eb6
push ecx
mov ecx, dword [ecx]
call dword [ecx + 8]
jmp 0x417eb6
lea ecx, [ebp + esi*4]
push ecx
call dword [sym.imp.OLEAUT32.DLL_VariantClear]
jmp 0x417eb6
Function at 0x404c48
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00407a00
test esi, esi
jne 0x404c7e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00407b4c
jmp 0x404c9c
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404b28
mov edi, eax
test esi, esi
je 0x404c9c
cmp dword [ebx], 0
je 0x404c9c
dec esi
jmp 0x404c85
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00406bec
mov byte [esp], al
cmp byte [esp], 0
jne 0x4068b5
test edi, edi
je 0x4068b5
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4067f5
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x4067d0
cmp edi, 0xffffffff
je 0x406791
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x406791
mov byte [esp], 0
jmp 0x4068b5
cmp dword [esi], 1
jg 0x4067d0
cmp dword [esi], 0
jne 0x4067c2
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x4067c2
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4068b5
lea eax, [esp + 0xc]
call fcn.004063e0
dec ebp
test ebp, ebp
jg 0x406776
cmp edi, 0xffffffff
je 0x4067f5
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4067f3
mov byte [esp], 0
jmp 0x4068b5
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40673a
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4067f5
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00406930
mov edx, eax
mov ebx, dword [0x4248f4]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x406859
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x406857
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x406859
xor edi, edi
cmp byte [esp], 0
je 0x40687f
mov ebx, dword [esi]
test bl, 1
jne 0x406895
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40685f
mov byte [esp + 1], 1
jmp 0x406895
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40687f
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x40680c
cmp byte [esp], 0
je 0x4068b5
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40777c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x424054], 0
je 0x4077e3
cmp word [0x424340], 0xd7b2
jne 0x4077a5
cmp dword [0x424348], 0
jbe 0x4077a5
mov eax, 0x42433c
call dword [0x424358]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x407810
call fcn.00407f78
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x422026], 0
jne 0x4077ff
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40a494
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40a5fb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00407a00
cmp si, word [0x4229f8]
jb 0x40a52c
cmp si, word [0x422bf8]
ja 0x40a52c
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40a52c
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4229f8]
jae 0x40a506
mov edi, ebx
dec edi
jmp 0x40a527
cmp si, word [ebx*8 + 0x4229f8]
jbe 0x40a516
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40a527
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4229fc]
call fcn.0040a3b0
jmp 0x40a52c
cmp edi, dword [ebp - 8]
jae 0x40a4f0
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40a5db
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40a5db
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004080a4
push dword [ebp - 0x160]
push 0x40a618
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.004080a4
push dword [ebp - 0x164]
push 0x40a628
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004080a4
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040825c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a602
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00407a60
pop eax
jmp eax
Function at 0x40a7b0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40a8b6
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x426c10
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x426c28]
jne 0x40a7fc
mov eax, esi
mov edx, 0x426c2a
mov ecx, 0x55
call fcn.004080a4
push 0x426c10
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40a89e
push 0x426c10
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00407a00
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40a86b
cmp byte [0x426c0c], 0
je 0x40a830
mov edx, esi
mov eax, ebx
call fcn.0040a694
jmp 0x40a86b
mov edx, esi
mov eax, ebx
call fcn.0040a494
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40a86b
cmp dword [esi], 0
je 0x40a854
mov eax, esi
mov edx, 0x40a8d0
call fcn.0040817c
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040a494
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040817c
push 0x426c10
call sub.kernel32.dll_EnterCriticalSection
mov word [0x426c28], bx
mov eax, dword [esi]
call fcn.00408018
mov ecx, eax
mov eax, 0x426c2a
mov edx, 0xaa
call fcn.0040a310
push 0x426c10
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a8bd
lea eax, [ebp - 4]
call fcn.00407a00
pop eax
jmp eax
Function at 0x40aaf8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407af4
xor eax, eax
push ebp
push 0x40ad20
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40ab3e
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40ab58
mov eax, dword [ebp - 4]
call fcn.00408018
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.0040a310
cmp word [ebp - 0x21e], 0
je 0x40ad03
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40ad30
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ac27
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40ad30
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ac27
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40ad6c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ac27
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40ad6c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ac27
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40ada0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ac27
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40add4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40ad03
xor eax, eax
push ebp
push 0x40acfc
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.0040a8f8
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40ac8a
mov eax, dword [ebp - 0x14]
call fcn.004044f8
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.00408068
jmp 0x40acd5
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x40ae14
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40acd5
mov eax, dword [ebp - 0x14]
call fcn.004044f8
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x40ae14
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.00408068
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ad03
cmp dword [ebp - 0xc], 0
je 0x40acf0
mov eax, dword [ebp - 0xc]
call fcn.00404514
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ad27
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407a60
pop eax
jmp eax