joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001420
Capabilities:
Check os version
Create new key via cryptacquirecontext
Import public key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push esi
push edi
mov edi, ecx
lea eax, [ebp - 0x11c]
push eax
mov dword [ebp - 8], edi
mov dword [edi], 0x100086ac
mov byte [edi + 0x1c], 0
mov byte [edi + 0x10], 0
mov dword [edi + 8], 0
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x118], 5
jne 0x10001473
cmp dword [ebp - 0x114], 1
jne 0x10001473
push 0xf0000000
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider__Prototype_
jmp 0x1000147f
push 0xf0000000
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
push 0
lea ebx, [edi + 0x20]
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
lea eax, [edi + 0xc]
push eax
push 0x8000001
push 1
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_CryptGenKey]
mov esi, dword [sym.imp.CRYPT32.dll_CryptExportPublicKeyInfo]
lea eax, [ebp - 4]
push eax
push 0
push 1
push 1
push dword [ebx]
call esi
push dword [ebp - 4]
call sub.MSVCRT.dll_malloc
add esp, 4
mov ebx, eax
lea eax, [ebp - 4]
push eax
push ebx
push 1
push 1
push dword [edi + 0x20]
call esi
mov esi, dword [sym.imp.CRYPT32.dll_CryptEncodeObject]
add edi, 0x18
push edi
push 0
push ebx
push 8
push 1
call esi
push dword [edi]
call sub.MSVCRT.dll_malloc
mov ecx, dword [ebp - 8]
add esp, 4
mov dword [ecx + 0x14], eax
push edi
push eax
push ebx
push 8
push 1
call esi
push ebx
call sub.MSVCRT.dll_free
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, dword [sym.imp.CRYPT32.dll_CryptDecodeObject]
add esp, 4
lea eax, [ebp - 4]
push eax
push 0
push 0
push ebx
push edi
push 8
push 0x10001
call esi
push dword [ebp - 4]
call sub.MSVCRT.dll_malloc
add esp, 4
lea ecx, [ebp - 4]
push ecx
push eax
push 0
push ebx
push edi
push 8
push 0x10001
mov dword [ebp + 0xc], eax
call esi
mov ebx, dword [ebp - 8]
mov esi, dword [ebp + 0xc]
lea eax, [ebx + 4]
push eax
push esi
push 0x10001
push dword [ebx + 0x20]
call dword [sym.imp.CRYPT32.dll_CryptImportPublicKeyInfo]
push esi
call sub.MSVCRT.dll_free
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10001de0
Capabilities:
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
mov ebx, dword [ebp + 8]
push esi
xor eax, eax
push edi
mov dword [ebp - 4], ecx
push ebx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], 0x100086d0
mov dword [ebp - 0x2c], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 0x24], eax
mov word [ebp - 0x20], ax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
call fcn.10001310
mov edi, dword [ebp - 0x1c]
mov esi, eax
test esi, esi
jne 0x10001f46
movzx eax, word [ebp - 0x28]
add eax, 0xc
push eax
mov dword [ebp - 0x14], eax
call sub.MSVCRT.dll_malloc
mov esi, eax
mov eax, dword [0x1000bf50]
mov dword [esi], 0x201
mov dword [esi + 4], 0x6610
mov dword [ebp + 8], esi
add esp, 4
add esi, 8
mov dword [ebp - 0x10], 4
test eax, eax
jne 0x10001e7c
push 0x18
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x10001e75
mov ecx, eax
call fcn.100028d0
jmp 0x10001e77
xor eax, eax
mov dword [0x1000bf50], eax
mov eax, dword [eax + 0x14]
push 0
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 4]
push esi
push 7
push dword [ecx + 0xc]
call eax
movzx eax, word [ebp - 0x28]
push eax
push dword [ebp - 0x2c]
lea eax, [esi + 4]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push 0x40
push dword [eax + 0xc]
push dword [ebp - 0x14]
push dword [ebp + 8]
push dword [eax + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
push dword [ebp + 8]
mov esi, eax
call sub.MSVCRT.dll_free
add esp, 4
test esi, esi
jne 0x10001eda
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10001f46
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0
push 1
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
test esi, esi
jne 0x10001f0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10001f46
mov esi, dword [ebp - 0xc]
push esi
call sub.MSVCRT.dll_malloc
add esp, 4
mov dword [ebp + 8], eax
test edi, edi
je 0x10001f2b
push esi
push edi
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x10001f3b
push eax
call sub.MSVCRT.dll_free
add esp, 4
mov eax, dword [ebp + 8]
mov dword [ebx + 0x14], esi
mov dword [ebx + 0x10], eax
xor esi, esi
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x10001f56
push eax
call sub.MSVCRT.dll_free
add esp, 4
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x10001f66
push eax
call sub.MSVCRT.dll_free
add esp, 4
test edi, edi
je 0x10001f73
push edi
call sub.MSVCRT.dll_free
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10001f80
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], 0
cmp byte [edi + 0x10], 0
je 0x10001fa9
push dword [edi + 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov byte [edi + 0x10], 0
mov byte [edi + 0x1c], 0
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x8004
push dword [edi + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov ebx, dword [ebp + 8]
push 0
movzx eax, word [ebx + 8]
push eax
push dword [ebx + 4]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov ecx, dword [0x1000bf50]
test ecx, ecx
jne 0x10002000
push 0x18
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x10001ff8
mov ecx, eax
call fcn.100028d0
mov ecx, eax
jmp 0x10001ffa
xor ecx, ecx
mov dword [0x1000bf50], ecx
movzx eax, word [ebx + 0x10]
push 0
push 0
push dword [edi + 4]
push eax
push dword [ebx + 0xc]
mov eax, dword [ecx + 0xc]
push dword [ebp - 4]
call eax
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test esi, esi
jne 0x10002034
pop edi
pop esi
mov eax, 0x80090006
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [sym.imp.CRYPT32.dll_CryptDecodeObject]
lea eax, [ebp - 8]
push eax
movzx eax, word [ebx + 8]
push 0
push 0
push eax
push dword [ebx + 4]
push 8
push 0x10001
call esi
test eax, eax
je 0x10002026
push dword [ebp - 8]
call sub.MSVCRT.dll_malloc
add esp, 4
lea ecx, [ebp - 8]
push ecx
movzx ecx, word [ebx + 8]
push eax
push 0
push ecx
push dword [ebx + 4]
mov dword [ebp + 8], eax
push 8
push 0x10001
call esi
test eax, eax
je 0x10002026
lea eax, [edi + 8]
push eax
push dword [ebp + 8]
push 0x10001
push dword [edi + 0x20]
call dword [sym.imp.CRYPT32.dll_CryptImportPublicKeyInfo]
test eax, eax
je 0x10002026
mov byte [edi + 0x10], 1
mov byte [edi + 0x1c], 1
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10002360
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp + 8]
push eax
push 0
push 0x80000001
push dword [edi + 0x14]
push dword [edi + 0x10]
call esi
push dword [ebp + 8]
call sub.MSVCRT.dll_malloc
add esp, 4
mov ebx, eax
lea eax, [ebp + 8]
push eax
push ebx
push 0x80000001
push dword [edi + 0x14]
push dword [edi + 0x10]
call esi
mov esi, dword [ebp + 8]
push esi
call sub.MSVCRT.dll_malloc
add esp, 4
mov dword [ebp - 4], eax
test ebx, ebx
je 0x100023c0
push esi
push ebx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, dword [edi + 0x10]
test eax, eax
je 0x100023d0
push eax
call sub.MSVCRT.dll_free
add esp, 4
mov eax, dword [ebp - 4]
push ebx
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], esi
call sub.MSVCRT.dll_free
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100023f0
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
push esi
mov esi, dword [ebp + 8]
push 0
push 0
lea eax, [ebp + 8]
push eax
push 0
push 6
push dword [esi + 0x14]
push dword [esi + 0x10]
call ebx
test eax, eax
jne 0x10002424
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
push dword [ebp + 8]
call sub.MSVCRT.dll_malloc
add esp, 4
mov edi, eax
push 0
push 0
lea eax, [ebp + 8]
push eax
push edi
push 6
push dword [esi + 0x14]
push dword [esi + 0x10]
call ebx
test eax, eax
jne 0x10002457
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ebp + 8]
push ebx
call sub.MSVCRT.dll_malloc
add esp, 4
mov dword [ebp - 4], eax
test edi, edi
je 0x10002475
push ebx
push edi
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, dword [esi + 0x10]
test eax, eax
je 0x10002485
push eax
call sub.MSVCRT.dll_free
add esp, 4
mov eax, dword [ebp - 4]
push edi
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ebx
call sub.MSVCRT.dll_free
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10002a40
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov eax, ecx
push esi
push edi
mov dword [ebp - 8], eax
mov dword [eax], vtable.Kernel32Import.0
cld
xor edx, edx
mov edx, dword fs:[0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
push 0x18
pop ecx
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x10002a75
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x10002a6c
cmp edi, 0x6a4abc5b
mov ebx, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x10002a64
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edx, 0xb72217f
mov dword [esi + 4], ecx
call fcn.10002ae0
mov dword [esi + 8], eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10002ae0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
mov ebx, ecx
push esi
mov eax, dword [ebx + 0x3c]
xor esi, esi
mov eax, dword [eax + ebx + 0x78]
add eax, ebx
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp dword [eax + 0x18], esi
jbe 0x10002b86
mov edi, dword [eax + 0x20]
add edi, ebx
lea ebx, [ebx]
push 0x3f
lea eax, [ebp - 0x47]
push 0
push eax
mov byte [ebp - 0x48], 0
call sub.MSVCRT.dll_memset
mov eax, dword [edi]
lea ecx, [ebp - 0x48]
mov edx, ecx
add esp, 0xc
sub eax, edx
lea edx, [eax + ebx]
mov al, byte [edx + ecx]
mov byte [ecx], al
inc ecx
test al, al
jne 0x10002b30
mov al, byte [ebp - 0x48]
test al, al
je 0x10002b5b
lea ecx, [ebp - 0x48]
mov al, byte [ecx]
cmp al, 0x41
jl 0x10002b52
cmp al, 0x5a
jg 0x10002b52
add al, 0x20
mov byte [ecx], al
inc ecx
cmp byte [ecx], 0
jne 0x10002b44
mov al, byte [ebp - 0x48]
xor edx, edx
test al, al
je 0x10002b69
inc edx
cmp byte [ebp + edx - 0x48], 0
jne 0x10002b61
push ecx
lea ecx, [ebp - 0x48]
call fcn.10002bb0
add esp, 4
cmp eax, dword [ebp - 8]
je 0x10002b8f
mov eax, dword [ebp - 4]
inc esi
add edi, 4
cmp esi, dword [eax + 0x18]
jb 0x10002b10
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
pop edi
mov eax, dword [edx + 0x24]
lea eax, [eax + esi*2]
pop esi
movzx ecx, word [eax + ebx]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + ebx]
add eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10002bb0
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, ecx
lea esi, [edx + 0x6ff6]
cmp edx, 4
jb 0x10002bf7
push ebx
mov ebx, edx
shr ebx, 2
jmp 0x10002bd0
mov eax, dword [edi]
imul esi, esi, 0x5bd1e995
imul eax, eax, 0x5bd1e995
mov ecx, eax
shr ecx, 0x18
xor ecx, eax
imul ecx, ecx, 0x5bd1e995
xor esi, ecx
sub edx, 4
add edi, 4
dec ebx
jne 0x10002bd0
pop ebx
dec edx
je 0x10002c12
dec edx
je 0x10002c09
dec edx
jne 0x10002c1d
movzx eax, byte [edi + 2]
shl eax, 0x10
xor esi, eax
movzx eax, byte [edi + 1]
shl eax, 8
xor esi, eax
movzx eax, byte [edi]
xor esi, eax
imul esi, esi, 0x5bd1e995
mov ecx, esi
shr ecx, 0xd
xor ecx, esi
imul ecx, ecx, 0x5bd1e995
mov eax, ecx
shr eax, 0xf
pop edi
xor eax, ecx
pop esi
ret

Function at 0x10003520
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
add esi, edx
push edi
mov edi, ecx
cmp edx, 4
jb 0x10003567
push ebx
mov ebx, edx
shr ebx, 2
jmp 0x10003540
mov eax, dword [edi]
imul esi, esi, 0x5bd1e995
imul eax, eax, 0x5bd1e995
mov ecx, eax
shr ecx, 0x18
xor ecx, eax
imul ecx, ecx, 0x5bd1e995
xor esi, ecx
sub edx, 4
add edi, 4
dec ebx
jne 0x10003540
pop ebx
dec edx
je 0x10003582
dec edx
je 0x10003579
dec edx
jne 0x1000358d
movzx eax, byte [edi + 2]
shl eax, 0x10
xor esi, eax
movzx eax, byte [edi + 1]
shl eax, 8
xor esi, eax
movzx eax, byte [edi]
xor esi, eax
imul esi, esi, 0x5bd1e995
mov ecx, esi
shr ecx, 0xd
xor ecx, esi
imul ecx, ecx, 0x5bd1e995
mov eax, ecx
shr eax, 0xf
pop edi
xor eax, ecx
pop esi
pop ebp
ret 4
Function at 0x100038b0
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
cld
xor edx, edx
mov edx, dword fs:[0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
push 0x18
pop ecx
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x100038d8
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x100038cf
cmp edi, 0x6a4abc5b
mov ebx, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x100038c7
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
mov dword [0x1000ab38], eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10003900
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
mov ebx, dword [ebp + 8]
push esi
mov eax, dword [ebx + 0x3c]
push edi
mov edi, dword [eax + ebx + 0x78]
add edi, ebx
xor esi, esi
mov dword [ebp - 4], ecx
cmp dword [edi + 0x18], esi
jbe 0x10003971
nop
push 0x3f
lea eax, [ebp - 0x43]
push 0
push eax
mov byte [ebp - 0x44], 0
call sub.MSVCRT.dll_memset
mov eax, dword [edi + 0x20]
lea ecx, [ebx + esi*4]
add esp, 0xc
mov edx, dword [ecx + eax]
add edx, ebx
lea ecx, [ebp - 0x44]
call fcn.100046e0
lea ecx, [ebp - 0x44]
call fcn.10004600
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x44]
push dword [eax]
call fcn.10004730
mov edx, eax
lea ecx, [ebp - 0x44]
call fcn.10003520
cmp eax, dword [ebp + 0xc]
je 0x1000397c
inc esi
cmp esi, dword [edi + 0x18]
jb 0x10003920
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [edi + 0x24]
lea eax, [eax + esi*2]
movzx ecx, word [eax + ebx]
mov eax, dword [edi + 0x1c]
pop edi
lea eax, [eax + ecx*4]
pop esi
mov eax, dword [eax + ebx]
add eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10005c20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, ecx
mov ecx, 0x5a4d
mov dword [ebp - 4], eax
cmp word [eax], cx
je 0x10005c3b
xor eax, eax
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [eax + 0x3c]
add ebx, eax
cmp dword [ebx], 0x4550
je 0x10005c50
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 4
push 0x2000
push dword [ebx + 0x50]
push dword [ebx + 0x34]
call dword [0x1000aa60]
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
jne 0x10005c8d
push 4
push 0x2000
push dword [ebx + 0x50]
push eax
call dword [0x1000aa60]
mov esi, eax
mov dword [ebp - 8], eax
test esi, esi
jne 0x10005c8d
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push 0x14
push 0
call dword [0x1000aad8]
push eax
call dword [0x1000a9b4]
mov edi, eax
push 0x1000
push 0
mov dword [edi + 4], esi
mov dword [edi + 0xc], 0
call dword [0x1000aad8]
push eax
call dword [0x1000a9b4]
mov dword [edi + 8], eax
push 4
push 0x1000
mov dword [edi + 0x10], 0
push dword [ebx + 0x50]
push esi
call dword [0x1000aa60]
push 4
push 0x1000
push dword [ebx + 0x54]
push esi
call dword [0x1000aa60]
mov ecx, dword [ebx + 0x54]
mov esi, eax
mov eax, dword [ebp - 4]
mov edx, eax
add ecx, dword [eax + 0x3c]
push ecx
mov ecx, esi
call fcn.10004350
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
add eax, esi
mov esi, dword [ebp - 8]
mov dword [edi], eax
push edi
mov edx, ebx
mov dword [eax + 0x34], esi
call fcn.10005980
mov edx, esi
sub edx, dword [ebx + 0x34]
je 0x10005d29
mov ecx, edi
call fcn.10005d80
mov ecx, edi
call fcn.10005850
test eax, eax
je 0x10005d63
mov ecx, edi
call fcn.10005a30
mov eax, dword [edi]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x10005d5a
add eax, esi
je 0x10005d63
push 0
push 1
push esi
call eax
test eax, eax
je 0x10005d63
mov dword [edi + 0x10], 1
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.10005b00
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xa12dc0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0xa12dfd
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0xa12e1d
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00a15030
add esp, 0x210
pop esi
pop ebx
ret

Function at 0xa13098
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0xa130f1
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00a12f34
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00a12f34
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0xa130db
inc ebx
jmp 0xa130c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xa130f8
lea eax, [ebp - 8]
call fcn.00a14db0
ret

Function at 0xa13100
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00a14db0
test esi, esi
jne 0xa13137
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00a14ea0
jmp 0xa13158
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00a12f34
mov dword [esp], eax
test esi, esi
je 0xa13158
cmp dword [ebx], 0
je 0xa13158
dec esi
jmp 0xa1313f
add esp, 0x10c
pop esi
pop ebx
ret

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

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

Function at 0xa13db0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0xb60024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0xa13e48
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0xa13e28
xor eax, eax
push ebp
push 0xa13e21
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 0xa13e64
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 0xa13e28
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0xb60024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0xb60024], ax
mov esp, ebp
pop ebp
ret
Function at 0xa14ba8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0xb7604c], 0
je 0xa14c09
cmp word [0xb76220], 0xd7b2
jne 0xa14bd1
cmp dword [0xb76228], 0
jbe 0xa14bd1
mov eax, 0xb7621c
call dword [0xb76238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0xb60074
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 0xa14c30
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0xb60034], 0
jne 0xa14c25
push 0
push 0xb6006c
push 0xb60074
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0xa14d64
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00a12b88
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0xb7604d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0xa14d2c
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0xa17108
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0xa1716e
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00a15030
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00a137a0
mov ebx, eax
cmp dword [ebp - 4], 0
je 0xa17158
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xa17175
lea eax, [ebp - 0x10]
call fcn.00a14db0
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00a15280
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0xa1a271
test al, 0x10
jne 0xa1a275
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0xa1a420
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00a15280
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0xa1a442
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0xa1d498
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0xa1d4d1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00a14ea0
jmp 0xa1d4da
mov eax, ebx
mov edx, esi
call fcn.00a14e04
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0xa1d4e4
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0xa1d505
mov al, byte [esp]
jmp 0xa1d507
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret