joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10a8de7
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
push edi
push 3
xor ebx, ebx
pop eax
mov dword [ecx], ebx
lea ecx, [ebp - 4]
push ecx
push ebx
push eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ebx
call esi
test eax, eax
jne 0x10a8e48
mov edi, 0x80070002
call fcn.0108edc3
mov dword [ebp - 8], eax
cmp eax, edi
jne 0x10a8e6b
cmp dword [ebp - 0xc], 3
jne 0x10a8e72
push edi
push 0x9f401c9
call fcn.010893e6
lea eax, [ebp - 4]
push eax
push ebx
push ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
call esi
test eax, eax
je 0x10a8e19
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add eax, eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, ebx
jne 0x10a8e7f
mov eax, 0x8007000e
push eax
push 0xa0701c9
jmp 0x10a8e98
cmp eax, 0x800700ea
je 0x10a8e4b
push eax
push 0x9fa01c9
call fcn.010893e6
jmp 0x10a8eb7
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp - 0xc]
call esi
test eax, eax
jne 0x10a8ea2
call fcn.0108edc3
push eax
push 0xa0d01c9
mov dword [ebp - 8], eax
call fcn.010893e6
jmp 0x10a8eac
mov eax, dword [ebp + 8]
mov dword [eax], edi
xor edi, edi
mov dword [ebp - 8], ebx
cmp edi, ebx
je 0x10a8eb7
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x10a914e
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
test eax, eax
jne 0x10a9168
mov eax, 0x1002030
push 0x20
pop edx
push 0x22
pop ecx
cmp cx, word [eax]
jne 0x10a9178
push ecx
pop edx
add eax, 2
push ebx
push esi
push edi
jmp 0x10a918c
cmp dx, cx
je 0x10a9198
push 0x5c
inc eax
pop esi
inc eax
cmp si, cx
jne 0x10a918e
mov ebx, eax
movzx ecx, word [eax]
xor esi, esi
cmp si, cx
jne 0x10a917d
sub eax, ebx
shr eax, 1
lea esi, [eax + eax]
lea eax, [esi + 2]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x10a91c5
mov eax, 0x8007000e
push eax
push 0xa4401c9
mov esi, eax
call fcn.010893e6
jmp 0x10a91dd
push esi
push ebx
push edi
call sub.msvcrt.dll_memcpy
xor eax, eax
mov word [esi + edi], ax
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [eax], edi
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x10aa605
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x14]
push ebx
push esi
xor esi, esi
mov dword [eax], esi
mov eax, dword [ebp + 0x18]
push edi
mov dword [ebp - 4], esi
cmp eax, esi
je 0x10aa623
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
cmp eax, esi
je 0x10aa62c
mov dword [eax], esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push esi
jmp 0x10aa682
mov eax, dword [ebp - 0xc]
test esi, esi
jne 0x10aa6a2
cmp dword [ebp - 8], 7
je 0x10aa651
cmp dword [ebp - 8], 1
jne 0x10aa663
mov dword [ebp - 4], 4
test al, 1
je 0x10aa663
mov dword [ebp - 4], 5
mov ecx, dword [ebp - 4]
add eax, ecx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x10aa6d3
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call ebx
mov edi, eax
test edi, edi
je 0x10aa63e
push 2
push edi
push 0x1f501b5
push dword [ebp + 0xc]
call fcn.0108933a
jmp 0x10aa6e3
push dword [ebp - 4]
add eax, esi
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 0x10]
add esp, 0xc
test eax, eax
je 0x10aa6be
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x10aa6ca
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
xor edi, edi
jmp 0x10aa6e3
mov edi, 0x8007000e
push edi
push 0x20c01b5
call fcn.010893e6
push edi
call fcn.0108ed8e
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x10ab1e7
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
xor edi, edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
cmp dword [ebp + 0x18], edi
jne 0x10ab21f
lea eax, [ebp - 4]
push eax
push 1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.010ab03b
mov esi, eax
cmp esi, edi
je 0x10ab224
push esi
push 0x8b01b5
jmp 0x10ab268
mov eax, dword [ebp + 8]
jmp 0x10ab227
mov eax, dword [ebp - 4]
lea ecx, [ebp - 8]
push ecx
push 0xf003f
push edi
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, edi
je 0x10ab24b
push esi
push 0x9801b5
jmp 0x10ab268
push dword [ebp + 0x14]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
cmp esi, 2
je 0x10ab26f
cmp esi, edi
je 0x10ab26f
push esi
push 0x9d01b5
call fcn.010893e6
jmp 0x10ab271
xor esi, esi
cmp dword [ebp - 4], edi
je 0x10ab27f
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 8], edi
je 0x10ab28d
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.0108ed8e
pop edi
pop esi
leave
ret 0x14
Function at 0x10ab2bf
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push esi
push edi
mov edi, dword [ebp + 0x28]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x2c], ebx
jne 0x10ab303
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.010ab03b
mov esi, eax
cmp esi, ebx
je 0x10ab303
push esi
push 0x17401b5
jmp 0x10ab3bc
cmp dword [ebp + 8], ebx
je 0x10ab333
lea eax, [ebp - 4]
push eax
push 0x80000002
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
mov esi, eax
cmp esi, ebx
je 0x10ab33a
push esi
push 0x17a01b5
push dword [ebp + 8]
call fcn.01089421
jmp 0x10ab3c5
mov dword [ebp - 4], 0x80000002
mov eax, dword [ebp + 0xc]
cmp dword [ebp + 0x2c], ebx
jne 0x10ab345
mov eax, dword [ebp - 8]
lea ecx, [ebp + 0x28]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
cmp esi, ebx
je 0x10ab36e
push esi
push 0x18901b5
jmp 0x10ab3bc
cmp dword [ebp + 0x1c], ebx
je 0x10ab3c3
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x20]
cmp eax, ebx
je 0x10ab381
cmp edi, ebx
jne 0x10ab3a0
cmp ecx, ebx
jbe 0x10ab3a0
cmp ecx, 2
jbe 0x10ab398
cmp ecx, 7
jne 0x10ab3a0
mov eax, 0x101b534
push 4
jmp 0x10ab39f
mov eax, 0x1002030
push 2
pop edi
push edi
push eax
push ecx
push ebx
push dword [ebp + 0x1c]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
cmp esi, ebx
je 0x10ab3c3
push esi
push 0x1a301b5
call fcn.010893e6
jmp 0x10ab3c5
xor esi, esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], ebx
je 0x10ab3de
cmp dword [ebp - 4], 0x80000002
je 0x10ab3de
push dword [ebp - 4]
call edi
cmp dword [ebp - 8], ebx
je 0x10ab3ec
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0xc], ebx
je 0x10ab3f6
push dword [ebp - 0xc]
call edi
push esi
call fcn.0108ed8e
pop edi
pop esi
pop ebx
leave
ret 0x28
Function at 0x10acd65
Capabilities:
Get common file path
Get startup folder

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x10cd598]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
xor ecx, ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
cmp ebx, ecx
je 0x10acda0
mov dword [ebx], ecx
cmp eax, ecx
je 0x10acda6
mov dword [eax], ecx
cmp edi, ecx
je 0x10ace85
xor eax, eax
cmp ax, word [edi]
je 0x10ace85
push edi
call fcn.010538bf
test al, al
je 0x10ace85
lea eax, [ebp - 0x218]
push eax
push edi
call fcn.0108a1a4
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x10acde7
push esi
push 0x3701ce
jmp 0x10ace68
lea eax, [ebp - 0x210]
push eax
xor eax, eax
cmp byte [ebp + 0xc], al
push edi
sete al
push edi
dec eax
and eax, 7
add eax, 0x1c
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
cmp esi, edi
je 0x10ace15
push esi
push 0x4101ce
jmp 0x10ace68
lea eax, [ebp - 0x214]
push eax
push edi
push 0x1020128
lea eax, [ebp - 0x210]
push eax
call fcn.0108ae0f
mov esi, eax
cmp esi, edi
je 0x10ace3c
push esi
push 0x4801ce
jmp 0x10ace68
cmp dword [ebp - 0x21c], edi
je 0x10ace6f
push dword [ebp - 0x21c]
push edi
push dword [ebp - 0x218]
push dword [ebp - 0x214]
call fcn.0108ae0f
mov esi, eax
cmp esi, edi
je 0x10ace6f
push esi
push 0x4f01ce
call fcn.010893e6
jmp 0x10ace9a
cmp ebx, edi
je 0x10ace81
mov eax, dword [ebp - 0x214]
mov dword [ebx], eax
mov dword [ebp - 0x214], edi
xor esi, esi
jmp 0x10ace9a
mov eax, 0x80070057
push eax
push 0x3101ce
push edi
mov esi, eax
call fcn.01089421
xor edi, edi
cmp dword [ebp - 0x218], edi
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
je 0x10aceb0
push dword [ebp - 0x218]
call edi
cmp dword [ebp - 0x214], 0
je 0x10acec1
push dword [ebp - 0x214]
call edi
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01074bd5
leave
ret 0x10
Function at 0x10b0890
Capabilities:
Get user security identifier

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
lea eax, [ebp - 0x14]
push eax
xor ebx, ebx
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x10b08e4
call fcn.0108edc3
push eax
push 0x19a01c0
mov dword [ebp - 4], eax
call fcn.010893e6
jmp 0x10b097b
mov eax, dword [ebp - 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
add eax, eax
push eax
push ebx
call esi
mov dword [ebp - 0x10], eax
cmp eax, ebx
jne 0x10b0910
mov eax, 0x8007000e
push eax
push 0x1a301c0
mov dword [ebp - 4], eax
call fcn.010893e6
jmp 0x10b096c
push dword [ebp - 0xc]
push ebx
call esi
mov esi, eax
cmp esi, ebx
jne 0x10b0929
mov eax, 0x8007000e
push eax
push 0x1ac01c0
jmp 0x10b0950
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
test eax, eax
jne 0x10b095a
call fcn.0108edc3
push eax
push 0x1b901c0
mov dword [ebp - 4], eax
call fcn.010893e6
jmp 0x10b0961
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
xor esi, esi
cmp esi, ebx
je 0x10b096c
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
cmp dword [ebp - 0x10], ebx
je 0x10b097b
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret 0xc

Function at 0x10b550a
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push dword [ebp + 8]
xor ebx, ebx
push ebx
push 0x1000
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x10b55cc
push edi
lea ecx, [ebp - 4]
push ecx
push 0xa
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x10b55b8
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp + 8]
push eax
push ebx
push ebx
push 1
push dword [ebp - 4]
mov dword [ebp + 8], ebx
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10b55b7
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x10b558a
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10b55b7
lea ecx, [ebp + 8]
push ecx
push dword [ebp + 8]
push eax
push 1
push dword [ebp - 4]
call esi
test eax, eax
je 0x10b55b7
mov eax, dword [ebp - 8]
push dword [eax]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x10b55b7
push dword [ebp - 4]
call edi
mov dword [ebp - 4], ebx
pop esi
push dword [ebp - 0xc]
call edi
pop edi
cmp dword [ebp - 8], ebx
je 0x10b55cc
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 4]
pop ebx
leave
ret 8
Function at 0x10b5ec0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [esi + 0x24]
mov dword [ebp - 0xc], edi
jmp 0x10b5ed5
mov edi, dword [ebp - 0xc]
mov ecx, dword [esi + 0x64]
mov eax, dword [esi + 0x34]
mov edx, dword [esi + 0x6c]
sub eax, ecx
sub eax, edx
mov dword [ebp - 8], eax
jne 0x10b5ef4
test ecx, ecx
jne 0x10b5f02
test edx, edx
jne 0x10b5f02
mov dword [ebp - 8], edi
jmp 0x10b5f6c
cmp eax, 0xffffffff
jne 0x10b5f02
mov dword [ebp - 8], 0xfffffffe
jmp 0x10b5f6c
mov eax, dword [esi + 0x24]
lea eax, [edi + eax - 0x106]
cmp ecx, eax
jb 0x10b5f6c
mov eax, dword [esi + 0x30]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call sub.msvcrt.dll_memcpy
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x3c]
sub dword [esi + 0x68], edi
sub dword [esi + 0x64], edi
add esp, 0xc
sub dword [esi + 0x54], edi
lea eax, [eax + ecx*2]
dec eax
dec eax
movzx edx, word [eax]
mov ebx, edx
sub ebx, edi
cmp edx, edi
sbb edx, edx
not edx
and edx, ebx
dec ecx
mov word [eax], dx
jne 0x10b5f33
mov eax, dword [esi + 0x38]
mov edx, edi
lea eax, [eax + edi*2]
dec eax
dec eax
movzx ecx, word [eax]
mov ebx, ecx
sub ebx, edi
cmp ecx, edi
sbb ecx, ecx
not ecx
and ecx, ebx
dec edx
mov word [eax], cx
jne 0x10b5f52
add dword [ebp - 8], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x10b600f
mov ebx, dword [esi + 0x6c]
add ebx, dword [esi + 0x64]
mov eax, dword [edi + 4]
mov ecx, dword [ebp - 8]
add ebx, dword [esi + 0x30]
mov dword [ebp - 4], eax
cmp eax, ecx
jbe 0x10b5f91
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
jne 0x10b5f9b
xor eax, eax
jmp 0x10b5fd0
sub eax, dword [ebp - 4]
mov dword [edi + 4], eax
mov eax, dword [edi + 0x1c]
cmp dword [eax + 0x18], 0
jne 0x10b5fba
push dword [ebp - 4]
push dword [edi]
push dword [edi + 0x30]
call fcn.010b7000
mov dword [edi + 0x30], eax
push dword [ebp - 4]
push dword [edi]
push ebx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 4]
add dword [edi], eax
add esp, 0xc
add dword [edi + 8], eax
add dword [esi + 0x6c], eax
mov edi, dword [esi + 0x6c]
cmp edi, 3
jb 0x10b5ffb
mov eax, dword [esi + 0x64]
mov ecx, dword [esi + 0x30]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [esi + 0x50]
mov dword [esi + 0x40], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x4c]
mov dword [esi + 0x40], eax
cmp edi, 0x106
jae 0x10b600f
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x10b5ed2
pop edi
pop ebx
leave
ret
Function at 0x10bbf24
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x10cd598]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
cmp dword [0x10d0df0], edi
jne 0x10bc040
push esi
mov esi, 0x11c
push esi
lea eax, [ebp - 0x120]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
test eax, eax
jne 0x10bbf8b
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x114
call esi
mov eax, dword [ebp - 0x110]
dec eax
mov dword [0x10d0df0], edi
pop esi
je 0x10bc013
dec eax
jne 0x10bc040
cmp dword [ebp - 0x11c], 5
jne 0x10bc000
mov eax, dword [ebp - 0x118]
sub eax, edi
je 0x10bbff4
dec eax
je 0x10bbfe1
dec eax
je 0x10bbfc7
mov dword [0x10d0df0], 0x14
jmp 0x10bc040
cmp word [ebp - 0xc], 1
jb 0x10bbfd8
mov dword [0x10d0df0], 0x10
or dword [0x10d0df0], 4
jmp 0x10bc040
cmp word [ebp - 0xc], 2
jb 0x10bbfd8
mov dword [0x10d0df0], 8
jmp 0x10bbfd8
mov dword [0x10d0df0], 4
jmp 0x10bc040
cmp dword [ebp - 0x11c], 4
ja 0x10bc052
mov dword [0x10d0df0], 2
cmp dword [ebp - 0x11c], 4
jne 0x10bc040
cmp dword [ebp - 0x118], edi
je 0x10bc036
cmp dword [ebp - 0x118], 0xa
je 0x10bc036
cmp dword [ebp - 0x118], 0x5a
jne 0x10bc040
mov dword [0x10d0df0], 1
mov ecx, dword [ebp - 4]
mov eax, dword [0x10d0df0]
xor ecx, ebp
pop edi
call fcn.01074bd5
leave
ret
mov dword [0x10d0df0], 0x20
jmp 0x10bc040

Function at 0x10bc063
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x10cd598]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x20
lea eax, [ebp - 0x44]
push eax
push 8
push 0x404
mov esi, 0xc04
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10bc0b7
push 3
lea eax, [ebp - 0x44]
push 0x1026ce8
push eax
call sub.msvcrt.dll_wcsncmp
add esp, 0xc
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xfffff800
add esi, 0xc04
mov ecx, dword [ebp - 4]
mov ax, si
xor ecx, ebp
pop esi
call fcn.01074bd5
leave
ret

Function at 0x10bc0cc
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10cd598]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
cmp ax, word [0x10d0df4]
jne 0x10bc167
push esi
lea eax, [ebp - 0x10]
push eax
push 1
xor esi, esi
push esi
push 0x1026c18
push 0x80000002
mov dword [ebp - 0x14], 6
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10bc166
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push 0x1026cd0
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
pop edi
jne 0x10bc166
push 3
push dword [esi*8 + 0x1026a68]
lea eax, [ebp - 0xc]
push eax
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
test eax, eax
je 0x10bc158
inc esi
cmp esi, 0x1c
jb 0x10bc137
jmp 0x10bc166
mov ax, word [esi*8 + 0x1026a6c]
mov word [0x10d0df4], ax
pop esi
mov ecx, dword [ebp - 4]
mov ax, word [0x10d0df4]
xor ecx, ebp
call fcn.01074bd5
leave
ret
Function at 0x21fbfb0
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x21fc17d
pushal
mov esi, section.UPX1
lea edi, [esi - 0x12000]
push edi
or ebp, 0xffffffff
jmp 0x21fbfda
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x21fbfe1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x21fbfd0
mov eax, 1
add ebx, ebx
jne 0x21fbff3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x21fbfe8
jne 0x21fc004
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x21fbfe8
xor ecx, ecx
sub eax, 3
jb 0x21fc018
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x21fc08a
mov ebp, eax
add ebx, ebx
jne 0x21fc023
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x21fc030
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x21fc054
inc ecx
add ebx, ebx
jne 0x21fc040
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x21fc035
jne 0x21fc051
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x21fc035
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x21fc074
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x21fc065
jmp 0x21fbfd6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x21fc074
add edi, ecx
jmp 0x21fbfd6
pop esi
mov edi, esi
mov ecx, 0x2ea
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x21fc092
cmp byte [edi], 0x1b
jne 0x21fc092
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 0x21fc097
lea edi, [esi + 0x18000]
mov eax, dword [edi]
or eax, eax
je 0x21fc10f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1c55c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1c674]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x21fc0c4
mov ecx, edi
jns 0x21fc0f3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1c678]
or eax, eax
je 0x21fc109
mov dword [ebx], eax
add ebx, 4
jmp 0x21fc0e1
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x21fc140
cmp al, 0xef
ja 0x21fc133
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x21fc115
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x21fc122
mov ebp, dword [esi + 0x1c67c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
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 0x21fc174
sub esp, 0xffffff80
jmp 0x21ef4e0
Function at 0x402b6c
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x402fc4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x45a024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40305c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40303c
xor eax, eax
push ebp
push 0x403035
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403078
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40303c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x45a024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x45a024], ax
mov esp, ebp
pop ebp
ret

Function at 0x403d08
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45c048], 0
je 0x403d69
cmp word [0x45c21c], 0xd7b2
jne 0x403d31
cmp dword [0x45c224], 0
jbe 0x403d31
mov eax, 0x45c218
call dword [0x45c234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45a070
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403d90
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45a034], 0
jne 0x403d85
push 0
push 0x45a068
push 0x45a070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret