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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x10129840]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1010b704
cmp byte [ebx], 0xa
jne 0x1010b704
or byte [edi + eax + 0x28], 4
jmp 0x1010b709
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x1010b808
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1010b7eb
inc eax
cmp dl, 0xd
je 0x1010b735
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1010b75b
cmp eax, ecx
jae 0x1010b769
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x1010b71d
jmp 0x1010b808
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1010b7e6
cmp dword [ebp - 0x10], 0
je 0x1010b7e6
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10129840]
test byte [eax + edi + 0x28], 0x48
je 0x1010b7c0
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1010b7ab
mov byte [esi], dl
jmp 0x1010b7bc
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10129840]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1010b808
cmp byte [ebp - 1], 0xa
jne 0x1010b7cf
cmp esi, ebx
jne 0x1010b7cf
mov byte [esi], 0xa
jmp 0x1010b807
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1010af71
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1010b808
mov byte [esi], 0xd
jmp 0x1010b807
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10129840]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1010b805
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1010b808
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1010b811
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x10129840]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1010b857
cmp word [ebx], dx
jne 0x1010b857
or byte [eax + edi + 0x28], 4
jmp 0x1010b85c
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x1010b9bf
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x1010b99f
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1010b89d
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1010b8d3
cmp eax, edx
jae 0x1010b8e1
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x1010b878
jmp 0x1010b9bf
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1010b99a
cmp dword [ebp - 0x18], 0
je 0x1010b99a
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10129840]
test byte [eax + edi + 0x28], 0x48
je 0x1010b970
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x1010b934
mov word [esi], cx
jmp 0x1010b96b
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10129840]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x10129840]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10129840]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1010b9bf
pop eax
cmp word [ebp - 4], ax
jne 0x1010b980
cmp esi, ebx
jne 0x1010b980
mov word [esi], ax
jmp 0x1010b9bc
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1010af71
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1010b9bf
push 0xd
pop eax
jmp 0x1010b97b
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10129840]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1010b9b9
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1010b9bf
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1010ccae
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1011eaa0
push 0x1011ea98
push str.FlsAlloc
push 0x1f
call fcn.1010cb2d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1010cce2
push dword [ebp + 8]
mov ecx, esi
call dword [0x1011c1ec]
call esi
jmp 0x1010cce8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1010cd2c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1011eab0
push 0x1011eaa8
push str.FlsGetValue
push 0x21
call fcn.1010cb2d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1010cd63
push dword [ebp + 8]
mov ecx, esi
call dword [0x1011c1ec]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1010cd6b
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1011eab8
push 0x1011eab0
push str.FlsSetValue
push 0x22
call fcn.1010cb2d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1010cda5
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1011c1ec]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10110de5
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10110e82
push ebx
push esi
call fcn.10110dae
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1010e91d
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10110e2f
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10110e81
push edi
push eax
call fcn.1010d579
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10110e4f
call fcn.1010c9c0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10110e80
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1010e91d
add esp, 0x20
test eax, eax
jne 0x10110e6e
push edi
call fcn.1010c9c0
jmp 0x10110e76
push ebx
call fcn.1010c9c0
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10110e85
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10110e96
pop esi
ret
push ebx
push edi
push esi
call fcn.10110dae
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1010d579
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10110ebe
push ebx
push esi
push edi
call fcn.10102d40
add esp, 0xc
push 0
call fcn.1010c9c0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1011128e
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10110ed3
Function at 0x10116331
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]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.101162ad
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x101164a0
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x101164a0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10116455
jg 0x1011638d
test eax, eax
je 0x1011644b
push 1
push 0x1000
call fcn.1010c963
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x101163b0
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10116442
push 0x8000
push ebx
call fcn.101161de
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x101163d9
jg 0x101163d4
cmp ecx, 0x1000
jb 0x101163d9
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1011367c
add esp, 0x10
cmp eax, 0xffffffff
je 0x1011641e
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 0x101163d4
jl 0x10116405
test ecx, ecx
jne 0x101163c6
push dword [ebp - 0xc]
push ebx
call fcn.101161de
push esi
call fcn.1010c9c0
add esp, 0xc
xor ebx, ebx
jmp 0x101164ae
cmp byte [edi + 0x24], 0
je 0x10116435
cmp dword [edi + 0x20], 5
jne 0x10116435
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10116440
mov ebx, dword [edi + 0x18]
jmp 0x10116442
xor ebx, ebx
push esi
call fcn.1010c9c0
pop ecx
jmp 0x101164ae
test ecx, ecx
jg 0x10116417
jl 0x10116455
test eax, eax
jae 0x10116417
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1010af71
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10116475
cmp byte [edi + 0x1c], 0
je 0x10116417
jmp 0x101164a6
push ebx
call fcn.101117e2
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10116417
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x101164ae
cmp byte [edi + 0x1c], 0
je 0x101164ab
mov ebx, dword [edi + 0x18]
jmp 0x101164ae
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1010af71
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10119010
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1011903d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1011903d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4070a8
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x408670
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.00408afc
mov byte [esp], al
cmp byte [esp], 0
jne 0x4087f9
test edi, edi
je 0x4087f9
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408739
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408714
cmp edi, 0xffffffff
je 0x4086d5
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4086d5
mov byte [esp], 0
jmp 0x4087f9
cmp dword [esi], 1
jg 0x408714
cmp dword [esi], 0
jne 0x408706
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x408706
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4087f9
lea eax, [esp + 0xc]
call fcn.0040832c
dec ebp
test ebp, ebp
jg 0x4086ba
cmp edi, 0xffffffff
je 0x408739
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408737
mov byte [esp], 0
jmp 0x4087f9
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40867e
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408739
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408868
mov edx, eax
mov ebx, dword [0x4db8f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x40879d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x40879b
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x40879d
xor edi, edi
cmp byte [esp], 0
je 0x4087c3
mov ebx, dword [esi]
test bl, 1
jne 0x4087d9
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4087a3
mov byte [esp + 1], 1
jmp 0x4087d9
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4087c3
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408750
cmp byte [esp], 0
je 0x4087f9
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 0x40943c
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov ebx, 0x4ddb98
cmp dword [ebp + 0xc], 2
jl 0x409450
mov ebx, 0x4ddbc8
mov esi, ebx
lea edi, [ebp - 0x40]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
pop dword [ebx + 0x20]
pop dword [ebx + 0x1c]
pop dword [ebx + 0x18]
mov dword [ebx + 0x14], ebp
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], edx
lea ecx, [ebp - 0x40]
mov dword [ebx], ecx
call sub.kernel32.dll_GetCurrentThreadId
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 8]
xor ecx, ecx
cmp dword [ebp + 0xc], 0
jne 0x409488
mov ecx, dword [eax]
mov dword [ebx + 0xc], ecx
mov eax, 0x4050cc
mov dword [0x4db01c], eax
mov eax, 0x4050d4
mov dword [0x4db020], eax
mov eax, ebx
call fcn.00409320
mov eax, dword [ebp + 0xc]
inc eax
mov byte [ebx + 0x28], al
dec eax
pop ecx
mov edx, dword [ecx]
mov dword [ebx + 0x24], edx
je 0x4094bd
cmp al, 3
jge 0x4094bd
call dword [ecx + eax*4]
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x4094ce
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp al, 3
jl 0x4094d9
call dword [ecx + eax*4]
cmp dword [0x4db040], 0
jne 0x4094ef
mov byte [0x4db048], 1
fnstcw word [0x4d7028]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.00409788
call fcn.004093d0
ret 4

Function at 0x4096f0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4db058], 0
je 0x409757
cmp word [0x4db344], 0xd7b2
jne 0x409719
cmp dword [0x4db34c], 0
jbe 0x409719
mov eax, 0x4db340
call dword [0x4db35c]
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, 0x409784
call fcn.0040a254
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4d7032], 0
jne 0x409773
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x409918
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x4d7034], 0
je 0x409943
mov edx, edi
mov eax, esi
call dword [0x4d7034]
mov ebx, eax
jmp 0x409954
mov eax, 8
call fcn.00406e04
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4db059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x4098e0
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x409984
mov eax, ebx
call fcn.00406e20
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40c474
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 0x40c5d9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409a58
cmp si, word [0x4d7a00]
jb 0x40c50c
cmp si, word [0x4d7c00]
ja 0x40c50c
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40c50c
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4d7a00]
jae 0x40c4e6
mov edi, ebx
dec edi
jmp 0x40c507
cmp si, word [ebx*8 + 0x4d7a00]
jbe 0x40c4f6
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40c507
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4d7a04]
call fcn.0040c394
jmp 0x40c50c
cmp edi, dword [ebp - 8]
jae 0x40c4d0
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40c5bb
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c5bb
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.0040a610
push dword [ebp - 0x160]
push 0x40c5f4
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a610
push dword [ebp - 0x164]
push 0x40c604
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a610
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040a848
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c5e0
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409ab8
ret
Function at 0x40c78c
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 0x40c890
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4ddc10
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4ddc28]
jne 0x40c7d8
mov eax, esi
mov edx, 0x4ddc2a
mov ecx, 0x55
call fcn.0040a610
push 0x4ddc10
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40c87a
push 0x4ddc10
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00409a58
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c847
cmp byte [0x4ddc0c], 0
je 0x40c80c
mov edx, esi
mov eax, ebx
call fcn.0040c670
jmp 0x40c847
mov edx, esi
mov eax, ebx
call fcn.0040c474
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40c847
cmp dword [esi], 0
je 0x40c830
mov eax, esi
mov edx, 0x40c8a8
call fcn.0040a768
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040c474
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a768
push 0x4ddc10
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4ddc28], bx
mov eax, dword [esi]
call fcn.0040a56c
mov ecx, eax
mov eax, 0x4ddc2a
mov edx, 0xaa
call fcn.0040c2f4
push 0x4ddc10
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c897
lea eax, [ebp - 4]
call fcn.00409a58
ret
Function at 0x40cac0
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.00409b3c
xor eax, eax
push ebp
push 0x40cce5
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40cb00
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40cb1a
mov eax, dword [ebp - 4]
call fcn.0040a56c
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040c2f4
cmp word [ebp - 0x21a], 0
je 0x40cccf
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40ccf4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cbe9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40ccf4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cbe9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cd30
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cbe9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cd30
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cbe9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cd64
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cbe9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cd98
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40cccf
xor eax, eax
push ebp
push 0x40ccc8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040c8d0
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 0x40cc58
mov eax, dword [ebp - 0x10]
call fcn.00406e04
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.0040a5d4
jmp 0x40cca3
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40cdd8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40cca3
mov eax, dword [ebp - 0x10]
call fcn.00406e04
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40cdd8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040a5d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cccf
cmp dword [ebp - 8], 0
je 0x40ccbe
mov eax, dword [ebp - 8]
call fcn.00406e20
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 0x40ccec
lea eax, [ebp - 4]
call fcn.00409a58
ret
Function at 0x40cfd4
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00409b3c
xor eax, eax
push ebp
push 0x40d094
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040a610
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a7c0
mov eax, dword [ebx]
call fcn.0040ce9c
test al, al
jne 0x40d071
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040a610
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a7c0
mov eax, dword [ebx]
call fcn.0040ce9c
test al, al
jne 0x40d071
mov eax, ebx
call fcn.00409a58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d09b
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00409ab8
lea eax, [ebp - 4]
call fcn.00409a58
ret

Function at 0x40ecec
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