joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c8a9
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 + 0x435ad0]
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 0x41c8e9
cmp byte [ebx], 0xa
jne 0x41c8e9
or byte [edi + eax + 0x28], 4
jmp 0x41c8ee
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 0x41c9ed
mov dl, byte [eax]
cmp dl, 0x1a
je 0x41c9d0
inc eax
cmp dl, 0xd
je 0x41c91a
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x41c940
cmp eax, ecx
jae 0x41c94e
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 0x41c902
jmp 0x41c9ed
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 0x41c9cb
cmp dword [ebp - 0x10], 0
je 0x41c9cb
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x435ad0]
test byte [eax + edi + 0x28], 0x48
je 0x41c9a5
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41c990
mov byte [esi], dl
jmp 0x41c9a1
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x435ad0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41c9ed
cmp byte [ebp - 1], 0xa
jne 0x41c9b4
cmp esi, ebx
jne 0x41c9b4
mov byte [esi], 0xa
jmp 0x41c9ec
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041d42f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41c9ed
mov byte [esi], 0xd
jmp 0x41c9ec
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x435ad0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41c9ea
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41c9ed
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41c9f6
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 + 0x435ad0]
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 0x41ca3c
cmp word [ebx], dx
jne 0x41ca3c
or byte [eax + edi + 0x28], 4
jmp 0x41ca41
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 0x41cba4
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 0x41cb84
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x41ca82
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41cab8
cmp eax, edx
jae 0x41cac6
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 0x41ca5d
jmp 0x41cba4
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 0x41cb7f
cmp dword [ebp - 0x18], 0
je 0x41cb7f
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x435ad0]
test byte [eax + edi + 0x28], 0x48
je 0x41cb55
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 0x41cb19
mov word [esi], cx
jmp 0x41cb50
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x435ad0]
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 + 0x435ad0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x435ad0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x41cba4
pop eax
cmp word [ebp - 4], ax
jne 0x41cb65
cmp esi, ebx
jne 0x41cb65
mov word [esi], ax
jmp 0x41cba1
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041d42f
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x41cba4
push 0xd
pop eax
jmp 0x41cb60
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x435ad0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x41cb9e
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x41cba4
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 0x41fcc1
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 0x41fd5e
push ebx
push esi
call fcn.0041fc8a
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.0041ea5f
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41fd0b
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41fd5d
push edi
push eax
call fcn.00419cff
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41fd2b
call fcn.0041991b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41fd5c
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041ea5f
add esp, 0x20
test eax, eax
jne 0x41fd4a
push edi
call fcn.0041991b
jmp 0x41fd52
push ebx
call fcn.0041991b
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 0x4223c3
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004187bc
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x422432
cmp esi, dword [ebp - 4]
je 0x42242d
cmp dword [ebp + 0xc], 0
je 0x42242d
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x42240a
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00421f15
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x422434
xor eax, eax
inc eax
jmp 0x422434
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x422499
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x434080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.004187bc
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004187bc
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x422510
cmp word [ecx], dx
je 0x422510
mov eax, dword [0x42d68c]
push edi
dec eax
push eax
push 0x42d578
call fcn.00422438
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x422583
cmp word [eax], dx
je 0x422583
mov eax, dword [edi]
test eax, eax
je 0x422534
cmp word [eax], dx
je 0x422534
lea eax, [ebp - 0x10]
push eax
call fcn.00421e1b
jmp 0x42253d
lea eax, [ebp - 0x10]
push eax
call fcn.00421eb6
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4225ad
mov eax, dword [0x42d574]
push dword [ebp - 0x14]
dec eax
push eax
push 0x42d268
call fcn.00422438
add esp, 0xc
test al, al
je 0x4225ad
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x422578
cmp word [eax], di
je 0x422578
lea eax, [ebp - 0x10]
push eax
call fcn.00421e1b
pop ecx
jmp 0x4225af
lea eax, [ebp - 0x10]
push eax
call fcn.00421eb6
jmp 0x422575
mov eax, dword [edi]
test eax, eax
je 0x42259a
cmp word [eax], dx
je 0x42259a
lea eax, [ebp - 0x10]
push eax
call fcn.00421dd0
pop ecx
jmp 0x4225ad
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x422678
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004222bd
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x422678
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x422678
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x422678
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x422605
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0041b4b0
test ebx, ebx
je 0x422673
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0041b4b0
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x422678
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x422678
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004262e4
add esp, 0x10
xor eax, eax
inc eax
jmp 0x42267a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b61d
leave
ret
Function at 0x426a25
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.004269a1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x426b94
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x426b94
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x426b49
jg 0x426a81
test eax, eax
je 0x426b3f
push 1
push 0x1000
call fcn.00418c99
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x426aa4
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x426b36
push 0x8000
push ebx
call fcn.0041685f
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x426acd
jg 0x426ac8
cmp ecx, 0x1000
jb 0x426acd
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004196ff
add esp, 0x10
cmp eax, 0xffffffff
je 0x426b12
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 0x426ac8
jl 0x426af9
test ecx, ecx
jne 0x426aba
push dword [ebp - 0xc]
push ebx
call fcn.0041685f
push esi
call fcn.0041991b
add esp, 0xc
xor ebx, ebx
jmp 0x426ba2
cmp byte [edi + 0x24], 0
je 0x426b29
cmp dword [edi + 0x20], 5
jne 0x426b29
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x426b34
mov ebx, dword [edi + 0x18]
jmp 0x426b36
xor ebx, ebx
push esi
call fcn.0041991b
pop ecx
jmp 0x426ba2
test ecx, ecx
jg 0x426b0b
jl 0x426b49
test eax, eax
jae 0x426b0b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041d42f
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x426b69
cmp byte [edi + 0x1c], 0
je 0x426b0b
jmp 0x426b9a
push ebx
call fcn.00420394
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x426b0b
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 0x426ba2
cmp byte [edi + 0x1c], 0
je 0x426b9f
mov ebx, dword [edi + 0x18]
jmp 0x426ba2
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0041d42f
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x427c20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x427c4d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x427c4d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x408b9c
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.0040905c
mov byte [esp], al
cmp byte [esp], 0
jne 0x408d25
test edi, edi
je 0x408d25
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408c65
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408c40
cmp edi, 0xffffffff
je 0x408c01
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408c01
mov byte [esp], 0
jmp 0x408d25
cmp dword [esi], 1
jg 0x408c40
cmp dword [esi], 0
jne 0x408c32
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x408c32
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408d25
lea eax, [esp + 0xc]
call fcn.00408834
dec ebp
test ebp, ebp
jg 0x408be6
cmp edi, 0xffffffff
je 0x408c65
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408c63
mov byte [esp], 0
jmp 0x408d25
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408baa
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408c65
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408da0
mov edx, eax
mov ebx, dword [0x4db8fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408cc9
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408cc7
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408cc9
xor edi, edi
cmp byte [esp], 0
je 0x408cef
mov ebx, dword [esi]
test bl, 1
jne 0x408d05
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408ccf
mov byte [esp + 1], 1
jmp 0x408d05
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408cef
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408c7c
cmp byte [esp], 0
je 0x408d25
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 0x409bfc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4db058], 0
je 0x409c63
cmp word [0x4db348], 0xd7b2
jne 0x409c25
cmp dword [0x4db350], 0
jbe 0x409c25
mov eax, 0x4db344
call dword [0x4db360]
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, 0x409c90
call fcn.0040a778
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4d7032], 0
jne 0x409c7f
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x409e24
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 0x409e4f
mov edx, edi
mov eax, esi
call dword [0x4d7034]
mov ebx, eax
jmp 0x409e60
mov eax, 8
call fcn.00406dd0
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, 0x409dec
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 0x409e90
mov eax, ebx
call fcn.00406dec
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40d9a0
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 0x40db07
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409f64
cmp si, word [0x4d7a08]
jb 0x40da38
cmp si, word [0x4d7c08]
ja 0x40da38
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40da38
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4d7a08]
jae 0x40da12
mov edi, ebx
dec edi
jmp 0x40da33
cmp si, word [ebx*8 + 0x4d7a08]
jbe 0x40da22
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40da33
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4d7a0c]
call fcn.0040d8c0
jmp 0x40da38
cmp edi, dword [ebp - 8]
jae 0x40d9fc
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40dae7
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40dae7
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.0040aa64
push dword [ebp - 0x160]
push 0x40db24
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040aa64
push dword [ebp - 0x164]
push 0x40db34
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040aa64
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040aca0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40db0e
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409fc4
pop eax
jmp eax
Function at 0x40dcbc
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 0x40ddc2
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4ddc14
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4ddc2c]
jne 0x40dd08
mov eax, esi
mov edx, 0x4ddc2e
mov ecx, 0x55
call fcn.0040aa64
push 0x4ddc14
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40ddaa
push 0x4ddc14
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00409f64
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40dd77
cmp byte [0x4ddc10], 0
je 0x40dd3c
mov edx, esi
mov eax, ebx
call fcn.0040dba0
jmp 0x40dd77
mov edx, esi
mov eax, ebx
call fcn.0040d9a0
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40dd77
cmp dword [esi], 0
je 0x40dd60
mov eax, esi
mov edx, 0x40dddc
call fcn.0040abc0
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040d9a0
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040abc0
push 0x4ddc14
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4ddc2c], bx
mov eax, dword [esi]
call fcn.0040a9c8
mov ecx, eax
mov eax, 0x4ddc2e
mov edx, 0xaa
call fcn.0040d820
push 0x4ddc14
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ddc9
lea eax, [ebp - 4]
call fcn.00409f64
pop eax
jmp eax
Function at 0x40e004
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.0040a058
xor eax, eax
push ebp
push 0x40e22c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40e04a
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40e064
mov eax, dword [ebp - 4]
call fcn.0040a9c8
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.0040d820
cmp word [ebp - 0x21e], 0
je 0x40e20f
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e23c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e133
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e23c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e133
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e278
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e133
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e278
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e133
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e2ac
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e133
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e2e0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40e20f
xor eax, eax
push ebp
push 0x40e208
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.0040de04
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 0x40e196
mov eax, dword [ebp - 0x14]
call fcn.00406dd0
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.0040aa28
jmp 0x40e1e1
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x40e320
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40e1e1
mov eax, dword [ebp - 0x14]
call fcn.00406dd0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x40e320
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040aa28
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e20f
cmp dword [ebp - 0xc], 0
je 0x40e1fc
mov eax, dword [ebp - 0xc]
call fcn.00406dec
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 0x40e233
lea eax, [ebp - 8]
mov edx, 2
call fcn.00409fc4
pop eax
jmp eax
Function at 0x40e53c
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.0040a058
xor eax, eax
push ebp
push 0x40e5fe
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.0040aa64
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040ac18
mov eax, dword [ebx]
call fcn.0040e3e8
test al, al
jne 0x40e5d9
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040aa64
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040ac18
mov eax, dword [ebx]
call fcn.0040e3e8
test al, al
jne 0x40e5d9
mov eax, ebx
call fcn.00409f64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e605
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00409fc4
lea eax, [ebp - 4]
call fcn.00409f64
pop eax
jmp eax

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