joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415602
Capabilities:
Get common file path

Disassembly:
push 0x318
push 0x422d68
call fcn.00403e28
or dword [ebp - 0x1c], 0xffffffff
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.004149b4
mov dword [ebp - 0x1c], eax
or dword [ebp - 4], 0xffffffff
jmp 0x415635
cmp byte [0x629b1d], 0
je 0x4157f1
mov byte [ebp - 0x224], bl
cmp dword [0x62e924], 0
je 0x41569f
mov eax, dword [0x62fcec]
test eax, eax
je 0x41565f
push ebx
call eax
jmp 0x41568a
cmp dword [0x62e3c8], 0
je 0x415688
push 0x18
pop eax
call fcn.0040171b
mov dword [ebp - 0x18], esp
push esp
push 0x629cbc
call fcn.0040f0d0
push eax
call dword [0x62e3c8]
add esp, 0xc
mov eax, ebx
push 0x104
lea ecx, [ebp - 0x224]
push ecx
push eax
call dword [0x62e924]
jmp 0x4156c0
cmp dword [0x62e3c8], 0
je 0x4156be
push 0x1c
pop eax
call fcn.0040171b
mov dword [ebp - 0x18], esp
push esp
push 0x629cd4
jmp 0x4157e2
mov eax, ebx
test eax, eax
je 0x4157f1
mov byte [ebp - 0x328], bl
mov byte [ebp - 0x120], bl
lea eax, [ebp - 0x328]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x4157f1
cmp eax, 0xf2
ja 0x4157f1
lea eax, [ebp - 0x120]
push eax
push ebx
push 0x629cf0
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x4157f1
push 0x629cf4
lea eax, [ebp - 0x120]
push eax
call fcn.0040144d
pop ecx
pop ecx
mov eax, dword [0x62f868]
test eax, eax
je 0x415742
lea ecx, [ebp - 0x224]
push ecx
call eax
jmp 0x41576b
cmp dword [0x62e3c8], 0
je 0x41576b
push 0x14
pop eax
call fcn.0040171b
mov dword [ebp - 0x18], esp
push esp
push 0x629b44
call fcn.0040f0d0
push eax
call dword [0x62e3c8]
add esp, 0xc
mov eax, dword [0x62e7e0]
test eax, eax
je 0x415788
push 1
lea ecx, [ebp - 0x120]
push ecx
lea ecx, [ebp - 0x224]
push ecx
call eax
jmp 0x4157b1
cmp dword [0x62e3c8], 0
je 0x4157b6
push 0x14
pop eax
call fcn.0040171b
mov dword [ebp - 0x18], esp
push esp
push 0x629b64
call fcn.0040f0d0
push eax
call dword [0x62e3c8]
add esp, 0xc
mov eax, dword [0x62e7e0]
test eax, eax
je 0x4157c8
push 4
push ebx
lea ecx, [ebp - 0x120]
push ecx
call eax
jmp 0x4157f1
cmp dword [0x62e3c8], 0
je 0x4157f1
push 0x14
pop eax
call fcn.0040171b
mov dword [ebp - 0x18], esp
push esp
push 0x629b64
call fcn.0040f0d0
push eax
call dword [0x62e3c8]
add esp, 0xc
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x334]
call fcn.00403e17
ret

Function at 0x4158be
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
mov esi, ecx
call fcn.00403e63
push eax
call fcn.00401be9
pop ecx
pop ecx
push 0x10
pop edx
mov ecx, esi
call fcn.00415850
mov eax, dword [0x62e8f0]
test eax, eax
je 0x4158ef
push 0x415800
call eax
jmp 0x415915
cmp dword [0x62e3c8], 0
je 0x415915
push 0x24
pop eax
call fcn.0040171b
push esp
push 0x4219bc
call fcn.0040f0d0
push eax
call dword [0x62e3c8]
add esp, 0xc
mov ecx, dword [ebp + 8]
call fcn.00415602
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 8
Function at 0x416cf9
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41bfe7
push eax
mov dword fs:[0], esp
sub esp, 0x38
cmp dword [0x62fdc4], 0
push esi
je 0x416d98
mov esi, 0x62fdb4
push ecx
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.00418f2f
mov ecx, eax
call fcn.00419158
mov edx, eax
mov eax, dword [edx]
test eax, eax
je 0x416d49
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [edx + 8]
push dword [eax + ecx*4]
lea ecx, [esp + 0x24]
call fcn.00412274
and dword [esp + 0x44], 0
mov ecx, esi
call fcn.00418de4
cmp dword [esp + 0x34], 0x10
mov eax, dword [esp + 0x20]
jae 0x416d7a
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
or dword [esp + 0x44], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.004047bf
cmp dword [0x62fdc4], 0
jne 0x416d26
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x416da8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x41b2a3
call fcn.00403df8
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x14], 0x10
mov edi, edx
jb 0x416dc6
mov eax, dword [esi]
jmp 0x416dc8
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x416e76
push ecx
push ecx
mov ecx, esi
call fcn.0041842c
cmp eax, 0xffffffff
je 0x416e1b
push eax
push 0
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.00410dd8
and dword [ebp - 4], 0
mov edx, edi
mov ecx, eax
call fcn.00416da8
mov bl, al
neg bl
sbb bl, bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004047bf
inc bl
je 0x416e1b
xor al, al
jmp 0x416e82
mov ecx, dword [0x62ec30]
test ecx, ecx
je 0x416e38
cmp dword [esi + 0x14], 0x10
jb 0x416e2f
mov eax, dword [esi]
jmp 0x416e31
mov eax, esi
push 0
push eax
call ecx
jmp 0x416e62
cmp dword [0x62e3c8], 0
je 0x416e60
push 0x18
pop eax
call fcn.0040171b
push esp
push 0x421a80
call fcn.0040f0d0
push eax
call dword [0x62e3c8]
add esp, 0xc
jmp 0x416e17
xor eax, eax
test eax, eax
je 0x416e17
push esi
mov ecx, 0x62fdb4
call fcn.00418d61
mov byte [edi], 0
jmp 0x416e80
test eax, 0x410
je 0x416e17
mov byte [edi], 1
mov al, 1
lea esp, [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x417ae0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x41bfcb
call fcn.00403df8
mov eax, 0x1030
call fcn.00401720
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0x38], esi
mov dword [esp + 0x1048], ebx
lea eax, [esp + 0x14]
push eax
push 0x20019
push ebx
push 0x629e98
push 0x80000001
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 0xf
pop edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
mov byte [esi], bl
mov dword [esp + 0x1048], ebx
xor ebp, ebp
inc ebp
mov dword [esp + 0x1c], ebp
test eax, eax
jne 0x417bd6
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x20]
push eax
push ebx
push dword [esp + 0x1068]
mov dword [esp + 0x24], 0x1000
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x10]
mov byte [esp + ecx + 0x3c], bl
test eax, eax
jne 0x417bcc
mov eax, dword [esp + 0x18]
dec eax
cmp eax, 2
ja 0x417bcc
push ecx
lea eax, [esp + 0x40]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.00404934
mov dword [esp + 0x1048], ebp
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.00410d71
mov byte [esp + 0x1048], bl
lea ecx, [esp + 0x20]
call fcn.004047bf
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1040]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x41a2f5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
shr ecx, 2
push esi
shr edx, 2
lea esi, [eax + ecx*4]
mov eax, dword [ebp + 0x14]
test ecx, ecx
je 0x41a320
add eax, 0x5b00b610
xor eax, dword [0x629570]
dec ecx
jne 0x41a312
test edx, edx
je 0x41a337
xor dword [esi], eax
add eax, 0x5b00b610
xor eax, dword [0x629570]
lea esi, [esi + 4]
dec edx
jne 0x41a324
pop esi
pop ebp
ret
Function at 0x10003939
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, 0x7873074
call fcn.1001dc04
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x1184]
mov dword [ebp - 4], 0x28
call fcn.1000ca19
lea ecx, [esi + 0x1114]
mov byte [ebp - 4], 0x27
call fcn.1000ca19
lea ecx, [esi + 0x10a4]
mov byte [ebp - 4], 0x26
call fcn.1000ca19
cmp dword [esi + 0x109c], 0xffffffff
lea ecx, [esi + 0x109c]
mov byte [ebp - 4], 0x25
je 0x10003992
call fcn.10003bd5
lea ecx, [esi + 0x105c]
mov byte [ebp - 4], 0x24
call fcn.1000d0a9
lea ecx, [esi + 0x101c]
mov byte [ebp - 4], 0x23
call fcn.1000d0a9
lea ecx, [esi + 0xfac]
mov byte [ebp - 4], 0x22
call fcn.1000ca19
lea ecx, [esi + 0xf7c]
mov byte [ebp - 4], 0x21
call fcn.1000cf16
lea ecx, [esi + 0xf58]
mov byte [ebp - 4], 0x20
call fcn.1000cf16
lea ecx, [esi + 0xf34]
mov byte [ebp - 4], 0x1f
call fcn.1000cf16
lea ecx, [esi + 0xf10]
mov byte [ebp - 4], 0x1e
call fcn.1000cf16
lea ecx, [esi + 0xeec]
mov byte [ebp - 4], 0x1d
call fcn.1000cf16
lea ecx, [esi + 0xec8]
mov byte [ebp - 4], 0x1c
call fcn.1000cf16
lea ecx, [esi + 0xea4]
mov byte [ebp - 4], 0x1b
call fcn.1000cf16
lea ecx, [esi + 0xe80]
mov byte [ebp - 4], 0x1a
call fcn.1000cf16
lea ecx, [esi + 0xe5c]
mov byte [ebp - 4], 0x19
call fcn.1000cf16
lea ecx, [esi + 0xe34]
mov byte [ebp - 4], 0x18
call fcn.1000cf16
lea ecx, [esi + 0xe10]
mov byte [ebp - 4], 0x17
call fcn.1000cf16
lea ecx, [esi + 0xde4]
mov byte [ebp - 4], 0x16
call fcn.1000d080
lea ecx, [esi + 0xdc0]
mov byte [ebp - 4], 0x15
call fcn.1000cf16
lea ecx, [esi + 0xd9c]
mov byte [ebp - 4], 0x14
call fcn.1000cf16
lea ecx, [esi + 0xd78]
mov byte [ebp - 4], 0x13
call fcn.1000cf16
lea ecx, [esi + 0xd54]
mov byte [ebp - 4], 0x12
call fcn.1000cf16
lea ecx, [esi + 0xd30]
mov byte [ebp - 4], 0x11
call fcn.1000cf16
lea ecx, [esi + 0xd0c]
mov byte [ebp - 4], 0x10
call fcn.1000cf16
lea ecx, [esi + 0xce8]
mov byte [ebp - 4], 0xf
call fcn.1000cf16
lea ecx, [esi + 0xcc4]
mov byte [ebp - 4], 0xe
call fcn.1000cf16
lea ecx, [esi + 0xca0]
mov byte [ebp - 4], 0xd
call fcn.1000cf16
lea ecx, [esi + 0xc7c]
mov byte [ebp - 4], 0xc
call fcn.1000cf16
lea ecx, [esi + 0xc58]
mov byte [ebp - 4], 0xb
call fcn.1000cf16
lea ecx, [esi + 0xc34]
mov byte [ebp - 4], 0xa
call fcn.1000cf16
lea ecx, [esi + 0xc10]
mov byte [ebp - 4], 9
call fcn.1000cf16
lea ecx, [esi + 0xbe8]
mov byte [ebp - 4], 8
call fcn.1000cf16
lea ecx, [esi + 0xbc0]
mov byte [ebp - 4], 7
call fcn.1000cf16
lea ecx, [esi + 0xb9c]
mov byte [ebp - 4], 6
call fcn.1000cf16
lea ecx, [esi + 0xb2c]
mov byte [ebp - 4], 5
call fcn.1000ca19
lea ecx, [esi + 0xabc]
mov byte [ebp - 4], 4
call fcn.1000ca19
lea ecx, [esi + 0xa7c]
mov byte [ebp - 4], 3
call fcn.1000d0a9
lea ecx, [esi + 0x9e4]
mov byte [ebp - 4], 2
call fcn.1000ca19
lea ecx, [esi + 0x970]
mov byte [ebp - 4], 1
call fcn.1000ca19
and byte [ebp - 4], 0
lea ecx, [esi + 0x900]
call fcn.1000ca19
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.10003bed
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x1000629e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
lea eax, [ebp - 0x130]
mov dword [esi + 4], edi
mov dword [esi], edi
sub eax, ecx
mov ebx, 0x12c
mov dl, byte [ecx]
test dl, dl
je 0x100062d3
mov byte [eax + ecx], dl
inc edi
inc ecx
cmp edi, ebx
jb 0x100062c4
and byte [ebp + edi - 0x130], 0
lea eax, [ebp - 0x130]
push eax
call fcn.100060db
mov edi, eax
pop ecx
test edi, edi
je 0x10006384
mov edx, dword [ebp + 0xc]
cmp byte [edx], 0
je 0x10006338
mov byte [ebp + edi - 0x130], 0x2a
inc edi
cmp edi, ebx
mov eax, edi
jae 0x10006320
mov ecx, eax
sub ecx, edi
mov cl, byte [ecx + edx]
test cl, cl
je 0x10006320
mov byte [ebp + eax - 0x130], cl
inc eax
cmp eax, ebx
jb 0x10006309
and byte [ebp + eax - 0x130], 0
lea eax, [ebp + edi - 0x130]
push eax
call fcn.100060db
pop ecx
add edi, eax
mov eax, edi
push 8
cdq
pop ebx
mov ecx, ebx
idiv ecx
test edx, edx
je 0x10006354
and byte [ebp + edi - 0x130], 0
inc edi
mov eax, edi
cdq
jmp 0x1000633e
mov eax, edi
mov ecx, ebx
cdq
idiv ecx
test eax, eax
jle 0x10006384
lea edi, [ebp - 0x130]
mov dword [ebp + 0x10], eax
mov eax, dword [edi]
push dword [ebp + 0x14]
xor dword [esi], eax
mov eax, dword [edi + 4]
xor dword [esi + 4], eax
push esi
call fcn.1000638b
pop ecx
add edi, ebx
dec dword [ebp + 0x10]
pop ecx
jne 0x10006368
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10006407
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [eax + 4]
and dword [ebp + 8], 0
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov dword [ebp - 8], edi
mov edi, dword [eax]
mov dword [ebp - 4], edi
mov edi, dword [eax + 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], eax
mov dword [ebp + 0xc], 0x20
sub dword [ebp + 8], 0x61c88647
mov eax, edx
mov edi, edx
shl eax, 4
add eax, dword [ebp - 4]
shr edi, 5
add edi, dword [ebp - 8]
xor eax, edi
mov edi, dword [ebp + 8]
add edi, edx
xor eax, edi
add ecx, eax
mov eax, ecx
mov edi, ecx
shl eax, 4
add eax, dword [ebp - 0xc]
shr edi, 5
add edi, dword [ebp - 0x10]
xor eax, edi
mov edi, dword [ebp + 8]
add edi, ecx
xor eax, edi
add edx, eax
dec dword [ebp + 0xc]
jne 0x1000643c
mov dword [esi], ecx
mov dword [esi + 4], edx
pop edi
pop esi
leave
ret

Function at 0x100161f5
Capabilities:
Hash data with md5

Disassembly:
and dword [ecx + 0x14], 0
and dword [ecx + 0x10], 0
push edi
push 0x10
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
lea edi, [ecx + 0x18]
pop ecx
xor eax, eax
rep stosd dword es:[edi], eax
pop edi
ret
Function at 0x4063e8
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.004068a8
mov byte [esp], al
cmp byte [esp], 0
jne 0x406571
test edi, edi
je 0x406571
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4064b1
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x40648c
cmp edi, 0xffffffff
je 0x40644d
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40644d
mov byte [esp], 0
jmp 0x406571
cmp dword [esi], 1
jg 0x40648c
cmp dword [esi], 0
jne 0x40647e
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x40647e
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x406571
lea eax, [esp + 0xc]
call fcn.00406080
dec ebp
test ebp, ebp
jg 0x406432
cmp edi, 0xffffffff
je 0x4064b1
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4064af
mov byte [esp], 0
jmp 0x406571
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4063f6
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4064b1
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004065ec
mov edx, eax
mov ebx, dword [0x4248f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x406515
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x406513
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x406515
xor edi, edi
cmp byte [esp], 0
je 0x40653b
mov ebx, dword [esi]
test bl, 1
jne 0x406551
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40651b
mov byte [esp + 1], 1
jmp 0x406551
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40653b
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4064c8
cmp byte [esp], 0
je 0x406571
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 0x407448
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x424054], 0
je 0x4074af
cmp word [0x424344], 0xd7b2
jne 0x407471
cmp dword [0x42434c], 0
jbe 0x407471
mov eax, 0x424340
call dword [0x42435c]
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, 0x4074dc
call fcn.00407c3c
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x422026], 0
jne 0x4074cb
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40a158
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 0x40a2bf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004076cc
cmp si, word [0x4229f8]
jb 0x40a1f0
cmp si, word [0x422bf8]
ja 0x40a1f0
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40a1f0
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4229f8]
jae 0x40a1ca
mov edi, ebx
dec edi
jmp 0x40a1eb
cmp si, word [ebx*8 + 0x4229f8]
jbe 0x40a1da
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40a1eb
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4229fc]
call fcn.0040a078
jmp 0x40a1f0
cmp edi, dword [ebp - 8]
jae 0x40a1b4
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40a29f
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40a29f
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.00407d6c
push dword [ebp - 0x160]
push 0x40a2dc
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00407d6c
push dword [ebp - 0x164]
push 0x40a2ec
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407d6c
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00407f28
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a2c6
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040772c
pop eax
jmp eax
Function at 0x40a474
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 0x40a57a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x426c10
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x426c28]
jne 0x40a4c0
mov eax, esi
mov edx, 0x426c2a
mov ecx, 0x55
call fcn.00407d6c
push 0x426c10
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40a562
push 0x426c10
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.004076cc
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40a52f
cmp byte [0x426c0c], 0
je 0x40a4f4
mov edx, esi
mov eax, ebx
call fcn.0040a358
jmp 0x40a52f
mov edx, esi
mov eax, ebx
call fcn.0040a158
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40a52f
cmp dword [esi], 0
je 0x40a518
mov eax, esi
mov edx, 0x40a594
call fcn.00407e48
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040a158
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407e48
push 0x426c10
call sub.kernel32.dll_EnterCriticalSection
mov word [0x426c28], bx
mov eax, dword [esi]
call fcn.00407ce0
mov ecx, eax
mov eax, 0x426c2a
mov edx, 0xaa
call fcn.00409fd8
push 0x426c10
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a581
lea eax, [ebp - 4]
call fcn.004076cc
pop eax
jmp eax
Function at 0x40a7bc
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.004077c0
xor eax, eax
push ebp
push 0x40a9e4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40a802
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40a81c
mov eax, dword [ebp - 4]
call fcn.00407ce0
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.00409fd8
cmp word [ebp - 0x21e], 0
je 0x40a9c7
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40a9f4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a8eb
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40a9f4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a8eb
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40aa30
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a8eb
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40aa30
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a8eb
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40aa64
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a8eb
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40aa98
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40a9c7
xor eax, eax
push ebp
push 0x40a9c0
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.0040a5bc
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 0x40a94e
mov eax, dword [ebp - 0x14]
call fcn.00404338
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.00407d30
jmp 0x40a999
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x40aad8
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40a999
mov eax, dword [ebp - 0x14]
call fcn.00404338
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x40aad8
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.00407d30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a9c7
cmp dword [ebp - 0xc], 0
je 0x40a9b4
mov eax, dword [ebp - 0xc]
call fcn.00404354
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 0x40a9eb
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040772c
pop eax
jmp eax