joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416270
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xe000]
push edi
or ebp, 0xffffffff
jmp 0x416292
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x416299
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x416288
mov eax, 1
add ebx, ebx
jne 0x4162ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4162a0
jne 0x4162bc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4162a0
xor ecx, ecx
sub eax, 3
jb 0x4162d0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x416342
mov ebp, eax
add ebx, ebx
jne 0x4162db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4162e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41630c
inc ecx
add ebx, ebx
jne 0x4162f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4162ed
jne 0x416309
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4162ed
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41632c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41631d
jmp 0x41628e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41632c
add edi, ecx
jmp 0x41628e
pop esi
mov edi, esi
mov ecx, 0x113
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41634a
cmp byte [edi], 3
jne 0x41634a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41634f
lea edi, [esi + 0x14000]
mov eax, dword [edi]
or eax, eax
je 0x4163be
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1a9bc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1aa28]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41637c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1aa30]
or eax, eax
je 0x4163b8
mov dword [ebx], eax
add ebx, 4
jmp 0x416399
call dword [esi + 0x1aa2c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4163ef
cmp al, 0xef
ja 0x4163e2
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4163c4
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4163d1
mov ebp, dword [esi + 0x1aa34]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x416423
sub esp, 0xffffff80
jmp 0x403ab8
Function at 0x401c57
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x401c66
pop dword [ebp - 0x48]
mov eax, 0x49c8748c
add eax, 0xb677a7da
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0xa47c7487
add dword [ebp - 0x58], 0xa9d5d0c4
mov dword [ebp - 0x54], 0x33aae1c7
add dword [ebp - 0x54], 0xfe886a7e
mov dword [ebp - 0x50], 0xe3bfcf98
add dword [ebp - 0x50], 0x688c7496
mov dword [ebp - 0x4c], 0xa22e8b5d
add dword [ebp - 0x4c], 0x5dd174a3
lea eax, [ebp - 0x58]
push eax
mov eax, 0x422efd2
add eax, 0xfc1d4082
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0x482de9f1
add dword [ebp - 0x58], 0x2c447f65
mov dword [ebp - 0x54], 0x78f78e83
sub dword [ebp - 0x54], 0x378b2d0e
mov dword [ebp - 0x50], 0x28c6c5b3
add dword [ebp - 0x50], 0x3aa8a6b9
mov dword [ebp - 0x4c], 0x246bfd9c
add dword [ebp - 0x4c], 0xdb940264
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, 0xfe506861
sub eax, 0xfe103835
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x37b2e
push 0
call eax
mov ecx, 0xf63bbca5
sub ecx, 0xf63b6fc6
mov esi, eax
mov edx, 0xa15dd137
add edx, 0x5ee29ec9
add edx, dword [ebp - 0x48]
mov edi, 0x57eac6ea
sub edi, 0x6ba1e668
mov ebx, dword [edx]
add dword [ebp - 0x1c], ecx
sub ebx, edi
add dword [ebp - 4], 0x4d729cf2
mov dword [esi], ebx
xor dword [ebp - 0x30], 0xc55bdaca
add esi, 0xc1ea5754
sub esi, 0xc1ea5750
add edx, 0x9c64851d
sub edx, 0x9c648519
loop 0x401d88
add eax, 0x1264f
xor ebx, ebx
add ebx, eax
add eax, 0xcb3b69bf
add eax, 0x34c49646
mov ecx, 0x400000
add ecx, dword [ebp - 0x48]
call ebx
leave
ret

Function at 0x401fb2
Capabilities:
Delete file
Move file

Disassembly:
mov ecx, 0x404f28
jmp fcn.0040170c

Function at 0x401ff6
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push esi
mov esi, 0x404f28
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402013
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
je 0x402018
push 1
pop eax
pop esi
ret
call fcn.00401fb2
pop esi
ret
Function at 0x10013a24
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x10013a33
pop dword [ebp - 0x18]
mov eax, 0xf1b80eeb
add eax, 0x1e492b48
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x63d82c68
add dword [ebp - 0x28], 0xea7a18e3
mov dword [ebp - 0x24], 0xbb9329
sub dword [ebp - 0x24], 0xce8846e4
mov dword [ebp - 0x20], 0x47ebae11
sub dword [ebp - 0x20], 0xfb9f69e3
mov dword [ebp - 0x1c], 0x4e5ea941
sub dword [ebp - 0x1c], 0x4e5ea941
lea eax, [ebp - 0x28]
push eax
mov eax, 0xb09061c5
add eax, 0x5f715ebb
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x7579ef74
add dword [ebp - 0x28], 0xfef879e2
mov dword [ebp - 0x24], 0x5328607a
add dword [ebp - 0x24], 0xee4400fb
mov dword [ebp - 0x20], 0x930c79cd
sub dword [ebp - 0x20], 0x2f9d0d61
mov dword [ebp - 0x1c], 0xa0d44f0a
sub dword [ebp - 0x1c], 0xa0d44f0a
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0xa41a57c7
add eax, 0x6be76839
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x39c61
push 0
call eax
mov ecx, 0xdfd7d1e1
add ecx, 0x20287f92
mov ebx, eax
mov edx, 0xecb750ac
sub edx, 0xdcb4e8ac
add edx, dword [ebp - 0x18]
mov edi, 0x284ccbda
add edi, 0x9a72ab8d
sub dword [ebp - 0x14], 0x644932f1
mov esi, dword [edx]
xor dword [ebp - 0x14], 0x516f092d
sub esi, edi
mov dword [ebx], esi
xor dword [ebp - 8], 0x3e249e9b
add ebx, 0x80dc5a7d
sub ebx, 0x80dc5a79
add edx, 0x4ae5c7a2
add edx, 0xb51a3862
loop 0x10013b55
add eax, 0xa6324111
sub eax, 0xa6310872
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x10dbe615
add ecx, 0xff2419eb
invalid
invalid
Function at 0x40114f
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x10], eax
jae 0x40129c
mov dword [ebp - 0x18], 0x2476f11
mov eax, dword [ebp - 8]
add eax, 1
and eax, 0xff
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], 0x2d15b68
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x4011bb
cmp dword [ebp - 0x1c], 0x3128f33
je 0x4011b2
mov dword [ebp - 0x1c], 0x26cbe8f
jmp 0x4011b9
mov dword [ebp - 0x1c], 0x15358e7
jmp 0x4011c2
mov dword [ebp - 0x1c], 0x392189c
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
movzx ecx, byte [ecx + edx]
add eax, ecx
and eax, 0xff
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x20], 0x2282184
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp + 8]
add eax, dword [ebp - 8]
push eax
call fcn.00401000
add esp, 8
mov dword [ebp - 0x24], 0x1fb466b
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x40121f
cmp dword [ebp - 0x24], 0x4fa7276
je 0x401216
mov dword [ebp - 0x24], 0x2a8e246
jmp 0x40121d
mov dword [ebp - 0x24], 0x30dc77e
jmp 0x401226
mov dword [ebp - 0x24], 0x341a2a4
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
movzx ecx, byte [ecx + edx]
mov edx, dword [ebp + 8]
mov ebx, dword [ebp - 0xc]
movzx edx, byte [edx + ebx]
add ecx, edx
and ecx, 0xff
movsx eax, byte [eax + ecx]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], 0x575c3b3
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x5e1117b
je 0x401264
jmp 0x40126d
mov dword [ebp - 0x2c], 0x3612d1c
jmp 0x401276
mov dword [ebp - 0x2c], 0xe4d56
jmp 0x401276
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
movsx ecx, byte [ecx + edx]
xor eax, ecx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x10]
mov byte [ecx + edx], al
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
inc dword [ebp - 0x10]
jmp 0x401171
mov dword [ebp - 0x10], 0x305924d
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x2a79ffa
je 0x4012b4
jmp 0x4012bd
mov dword [ebp - 0x10], 0x27a081d
jmp 0x4012bd
mov eax, 0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x432002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x708f4ba8
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43204e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
mov ecx, 0x7c14655f
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x432084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43206c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x4070d0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffbe4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x407112
movzx eax, bl
add ax, 0x41
dec eax
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0
lea eax, [esp + 0x212]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
push esp
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [esp + 8]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x407132
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.0040aee0
add esp, 0x41c
pop esi
pop ebx
ret

Function at 0x407388
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.00409fc0
test esi, esi
jne 0x4073be
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.0040a148
jmp 0x4073dc
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040726c
mov edi, eax
test esi, esi
je 0x4073dc
cmp dword [ebx], 0
je 0x4073dc
dec esi
jmp 0x4073c5
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

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

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

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x8f7008], 0x8088405
inc edx
mov dword [ebx + 0x8f7008], edx
fld qword [ebx + 0x8f7798]
push 0
push edx
fild qword [esp]
add esp, 8
fmulp st(1)
pop ebx
ret
Function at 0x408c1c
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.004090a8
mov byte [esp], al
cmp byte [esp], 0
jne 0x408da5
test edi, edi
je 0x408da5
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408ce5
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408cc0
cmp edi, 0xffffffff
je 0x408c81
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408c81
mov byte [esp], 0
jmp 0x408da5
cmp dword [esi], 1
jg 0x408cc0
cmp dword [esi], 0
jne 0x408cb2
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x408cb2
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408da5
lea eax, [esp + 0xc]
call fcn.004088d8
dec ebp
test ebp, ebp
jg 0x408c66
cmp edi, 0xffffffff
je 0x408ce5
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408ce3
mov byte [esp], 0
jmp 0x408da5
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408c2a
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408ce5
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408e14
mov edx, eax
mov ebx, dword [0x90f8fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408d49
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408d47
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408d49
xor edi, edi
cmp byte [esp], 0
je 0x408d6f
mov ebx, dword [esi]
test bl, 1
jne 0x408d85
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408d4f
mov byte [esp + 1], 1
jmp 0x408d85
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408d6f
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408cfc
cmp byte [esp], 0
je 0x408da5
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 0x409c1c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x90f05c], 0
je 0x409c83
cmp word [0x90f348], 0xd7b2
jne 0x409c45
cmp dword [0x90f350], 0
jbe 0x409c45
mov eax, 0x90f344
call dword [0x90f360]
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, 0x409cb0
call fcn.0040aa00
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x8f7034], 0
jne 0x409c9f
push 0
push 0x8f79d3
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA_1
pop edx
ret
Function at 0x409e80
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 [0x8f7038], 0
je 0x409eab
mov edx, edi
mov eax, esi
call dword [0x8f7038]
mov ebx, eax
jmp 0x409ebc
mov eax, 8
call fcn.00406ef8
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x90f05d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409e48
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 0x409eec
mov eax, ebx
call fcn.00406f14
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40d200
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 0x40d365
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409fc0
cmp si, word [0x8f7a10]
jb 0x40d298
cmp si, word [0x8f7c10]
ja 0x40d298
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40d298
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x8f7a10]
jae 0x40d272
mov edi, ebx
dec edi
jmp 0x40d293
cmp si, word [ebx*8 + 0x8f7a10]
jbe 0x40d282
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40d293
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x8f7a14]
call fcn.0040d120
jmp 0x40d298
cmp edi, dword [ebp - 8]
jae 0x40d25c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40d347
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40d347
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.0040aee0
push dword [ebp - 0x160]
push 0x40d380
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040aee0
push dword [ebp - 0x164]
push 0x40d390
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040aee0
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040b118
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d36c
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040a020
ret
Function at 0x40d518
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 0x40d61c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x911c14
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x911c2c]
jne 0x40d564
mov eax, esi
mov edx, 0x911c2e
mov ecx, 0x55
call fcn.0040aee0
push 0x911c14
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40d606
push 0x911c14
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00409fc0
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40d5d3
cmp byte [0x911c10], 0
je 0x40d598
mov edx, esi
mov eax, ebx
call fcn.0040d3fc
jmp 0x40d5d3
mov edx, esi
mov eax, ebx
call fcn.0040d200
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40d5d3
cmp dword [esi], 0
je 0x40d5bc
mov eax, esi
mov edx, 0x40d634
call fcn.0040b038
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040d200
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040b038
push 0x911c14
call sub.kernel32.dll_EnterCriticalSection
mov word [0x911c2c], bx
mov eax, dword [esi]
call fcn.0040ae24
mov ecx, eax
mov eax, 0x911c2e
mov edx, 0xaa
call fcn.0040d080
push 0x911c14
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d623
lea eax, [ebp - 4]
call fcn.00409fc0
ret
Function at 0x40d84c
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.0040a0a4
xor eax, eax
push ebp
push 0x40da71
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40d88c
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40d8a6
mov eax, dword [ebp - 4]
call fcn.0040ae24
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040d080
cmp word [ebp - 0x21a], 0
je 0x40da5b
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40da80
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d975
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40da80
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d975
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40dabc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d975
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40dabc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d975
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40daf0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d975
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40db24
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40da5b
xor eax, eax
push ebp
push 0x40da54
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040d65c
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 0x40d9e4
mov eax, dword [ebp - 0x10]
call fcn.00406ef8
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.0040ae8c
jmp 0x40da2f
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40db64
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40da2f
mov eax, dword [ebp - 0x10]
call fcn.00406ef8
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40db64
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040ae8c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40da5b
cmp dword [ebp - 8], 0
je 0x40da4a
mov eax, dword [ebp - 8]
call fcn.00406f14
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 0x40da78
lea eax, [ebp - 4]
call fcn.00409fc0
ret
Function at 0x40dd60
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.0040a0a4
xor eax, eax
push ebp
push 0x40de20
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.0040aee0
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040b090
mov eax, dword [ebx]
call fcn.0040dc28
test al, al
jne 0x40ddfd
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040aee0
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040b090
mov eax, dword [ebx]
call fcn.0040dc28
test al, al
jne 0x40ddfd
mov eax, ebx
call fcn.00409fc0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40de27
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040a020
lea eax, [ebp - 4]
call fcn.00409fc0
ret

Function at 0x40fbd0
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
Function at 0x424714
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x424842
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x218]
push eax
push 0x104
call sub.kernel32.dll_GetLogicalDriveStringsW
mov esi, eax
test esi, esi
jle 0x42481c
lea ebx, [ebp - 0x218]
lea eax, [ebx + 4]
mov word [eax], 0
push 0x104
lea eax, [ebp - 0x424]
push eax
push ebx
call sub.kernel32.dll_QueryDosDeviceW
mov esi, eax
test esi, esi
jle 0x424805
lea eax, [ebp - 4]
lea edx, [ebp - 0x424]
mov ecx, 0x106
call fcn.0040aee0
mov ecx, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040b410
test eax, eax
jle 0x424805
mov eax, dword [ebp - 4]
test eax, eax
je 0x4247b9
sub eax, 4
mov eax, dword [eax]
mov esi, eax
mov edi, dword [ebp - 8]
test edi, edi
je 0x4247c7
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x428]
push eax
mov ecx, edi
sub ecx, esi
lea edx, [esi + 1]
mov eax, dword [ebp - 8]
call fcn.0040b200
mov eax, dword [ebp - 0x428]
push eax
lea eax, [ebp - 0x42c]
mov edx, ebx
call fcn.0040ae8c
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0xc]
pop ecx
call fcn.0040b090
jmp 0x42481c
add ebx, 2
cmp word [ebx], 0
jne 0x424802
add ebx, 4
test ebx, ebx
je 0x424816
cmp word [ebx], 0
jne 0x424766
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x424849
lea eax, [ebp - 0x42c]
mov edx, 2
call fcn.0040a020
lea eax, [ebp - 4]
call fcn.00409fc0
ret