joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002870
Capabilities:
Create new key via cryptacquirecontext
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
cmp dword [ebp + 8], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
je 0x100029b7
test ebx, ebx
je 0x100029b7
xor eax, eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push eax
push 1
push eax
mov dword [ebp - 0x20], eax
push eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x20], 0x8004
call esi
test eax, eax
jne 0x100028f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x100029b3
push 8
push 1
push 0
push 0
lea ecx, [ebp - 8]
push ecx
call esi
mov esi, eax
test esi, esi
je 0x10002980
mov eax, dword [ebx + 8]
lea edx, [ebp - 0xc]
push edx
push 0x100
push 0
add eax, 0x10
push eax
mov eax, dword [ebp - 8]
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
mov esi, eax
test esi, esi
je 0x10002980
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
lea ecx, [ebp - 4]
push ecx
push 0
push edx
push 0x8009
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov esi, eax
test esi, esi
je 0x10002980
mov edx, dword [ebp - 4]
push 0
lea ecx, [ebp - 0x20]
push ecx
push 5
push edx
call dword [sym.imp.ADVAPI32.dll_CryptSetHashParam]
mov esi, eax
test esi, esi
je 0x10002980
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov esi, eax
test esi, esi
je 0x10002980
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
push 0
push eax
push ecx
push 2
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov esi, eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x1000298e
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov eax, dword [ebp - 4]
test eax, eax
je 0x1000299c
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 8]
test eax, eax
je 0x100029ac
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
xor esi, esi
jmp 0x10002980
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100029c0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov dword [ebp - 8], esi
mov edi, eax
test esi, esi
jne 0x100029e0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 3
jbe 0x10002a89
xor ebx, ebx
cmp esi, 3
jle 0x10002a89
mov ecx, dword [ebp + 0xc]
lea edx, [esi - 4]
mov eax, 0xaaaaaaab
mul edx
shr edx, 1
inc edx
lea eax, [edx + edx*2]
add ecx, 2
sub esi, eax
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], edx
mov ax, word [edi]
mov word [ebp - 4], ax
movzx eax, byte [edi + 2]
mov byte [ebp - 2], al
mov al, byte [ebp - 4]
movzx esi, al
and al, 3
shl al, 4
shr esi, 2
movzx ebx, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx esi, al
mov al, byte [ebp - 3]
mov byte [ecx - 2], bl
movzx ebx, al
shr ebx, 4
or esi, ebx
movzx ebx, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx esi, byte [ebp - 2]
and al, 0xf
add al, al
add al, al
mov byte [ecx - 1], bl
movzx eax, al
mov ebx, esi
shr ebx, 6
or eax, ebx
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
and esi, 0x3f
mov byte [ecx], al
movzx eax, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
add edi, 3
add ecx, 4
dec edx
jne 0x10002a12
mov esi, dword [ebp + 8]
mov ebx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
push ecx
xor eax, eax
lea edx, [ebp - 4]
push edi
push edx
mov word [ebp - 4], ax
mov byte [ebp - 2], al
call sub.MSVCR100.dll_memcpy
mov al, byte [ebp - 4]
mov edi, dword [ebp + 0xc]
movzx ecx, al
shr ecx, 2
mov dl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
and al, 3
shl al, 4
movzx ecx, al
mov al, byte [ebp - 3]
mov byte [edi + ebx*4], dl
movzx edx, al
shr edx, 4
or ecx, edx
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + ebx*4 + 1], cl
mov ecx, dword [ebp - 8]
add esp, 0xc
cmp ecx, 1
jle 0x10002afb
and al, 0xf
add al, al
add al, al
movzx edx, al
movzx eax, byte [ebp - 2]
shr eax, 6
or edx, eax
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + ebx*4 + 2], dl
jmp 0x10002b00
mov byte [edi + ebx*4 + 2], 0x3d
cmp ecx, 2
jle 0x10002b18
movzx eax, byte [ebp - 2]
and eax, 0x3f
mov cl, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + ebx*4 + 3], cl
jmp 0x10002b1d
mov byte [edi + ebx*4 + 3], 0x3d
mov ecx, dword [ebp + 0x10]
mov eax, 0xaaaaaaab
mul esi
shr edx, 1
lea eax, [edx + edx*2]
sub esi, eax
neg esi
sbb esi, esi
neg esi
add esi, edx
add esi, esi
add esi, esi
pop edi
mov dword [ecx], esi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10006af0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, dword [edi + 6]
cmp ax, bx
jbe 0x10006b13
lea ecx, [esi + 0xc]
movzx edx, ax
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
add eax, esi
cmp dword [ebp - 8], eax
jae 0x10006b0d
mov dword [ebp - 8], eax
add ecx, 0x28
dec edx
jne 0x10006afe
mov byte [ebp - 0x58], bl
mov byte [ebp - 0x57], bl
mov byte [ebp - 0x56], 0x58
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x54], 0xe0
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.100068b9
and dword [edx + 0x31], esi
add eax, 0x50a8458d
call fcn.100068c9
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.1000687e
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x10006ba7
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.100068b9
invalid

Function at 0x10006c50
Capabilities:
Contain obfuscated stackstrings

Disassembly:
stc
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.100068c9
push eax
push esi
push dword [ebp + 8]
call fcn.1000687e
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
invalid
inc ebp
xchg esi, eax

Function at 0x10006cb0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.100068c9
push eax
push esi
push dword [ebp + 8]
call fcn.1000687e
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
inc ebp
salc
aam 0x88
pop ebp
xlatb
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
fimul word [ecx - 0x3a]
inc ebp
fistp word [ecx - 0x3a]
inc ebp
loopne 0x10006d54
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.100068c9
push eax
push esi
push dword [ebp + 8]
call fcn.1000687e
add esp, 0x30
invalid
test dword [eax - 1], ecx
Function at 0x10007330
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc dword [eax]
and byte [ebp - 0x533], 0
mov byte [ebp - 0x532], 0x68
and byte [ebp - 0x531], 0
mov byte [ebp - 0x530], 0xd4
mov byte [ebp - 0x52f], 0xfb
mov byte [ebp - 0x52e], pe_nt_image_headers32
mov byte [ebp - 0x52d], 0xe4
mov byte [ebp - 0x52c], 0xf2
mov byte [ebp - 0x52b], 0xdf
mov byte [ebp - 0x52a], 0xf6
mov byte [ebp - 0x529], 0xf9
mov byte [ebp - 0x528], 0xf3
mov byte [ebp - 0x527], 0xfb
mov byte [ebp - 0x526], 0xf2
mov byte [ebp - 0x525], 0x97
lea eax, [ebp - 0x534]
push eax
call fcn.100068c9
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.1000687e
add esp, 0xc
mov dword [ebp - 0x680], eax
call fcn.100068b9
and al, 0x97
push ds
in al, dx
and byte [ebp - 0x664], 0
and byte [ebp - 0x663], 0
mov byte [ebp - 0x662], 7
and byte [ebp - 0x661], 0
mov byte [ebp - 0x660], 0xb0
mov byte [ebp - 0x65f], 0x9d
mov byte [ebp - 0x65e], 0x99
mov byte [ebp - 0x65d], 0x88
mov byte [ebp - 0x65c], 0xb9
mov byte [ebp - 0x65b], 0x94
mov byte [ebp - 0x65a], 0x94
mov byte [ebp - 0x659], 0x97
mov byte [ebp - 0x658], 0x9b
mov byte [ebp - 0x657], pe_nt_image_headers32
lea eax, [ebp - 0x664]
push eax
call fcn.100068c9
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.1000687e
add esp, 0xc
mov dword [ebp - 0x67c], eax
and byte [ebp - 0x524], 0
and byte [ebp - 0x523], 0
mov byte [ebp - 0x522], 0x15
and byte [ebp - 0x521], 0
mov byte [ebp - 0x520], 0xa2
mov byte [ebp - 0x51f], 0x8f
mov byte [ebp - 0x51e], 0x8b
mov byte [ebp - 0x51d], 0x9a
mov byte [ebp - 0x51c], 0xac
mov byte [ebp - 0x51b], 0x98
mov byte [ebp - 0x51a], 0x8f
mov byte [ebp - 0x519], 0x8f
mov byte [ebp - 0x518], 0xea
lea eax, [ebp - 0x524]
push eax
call fcn.100068c9
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.1000687e
add esp, 0xc
mov dword [ebp - 0x39c], eax
call fcn.100068b9
jnp 0x1000750c
shl ch, 1
invalid
Function at 0x100095b0
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x10013030]
cmp eax, 0x10013030
je 0x100095f0
test byte [eax + 0x1c], 2
je 0x100095f0
cmp byte [eax + 0x19], 5
jb 0x100095f0
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0x10]
push 0x10010240
push 0x66
push ecx
push edx
mov esi, str.LHW__CrackUrl
call fcn.10002ed0
add esp, 0x10
push 0x3c
lea eax, [esp + 0x10]
push 0
push eax
call sub.MSVCR100.dll_memset
mov edi, dword [ebp + 8]
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
or eax, 0xffffffff
push 0
push 0
push edi
mov dword [esp + 0x1c], 0x3c
mov dword [esp + 0x54], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x3c], eax
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
mov ebx, eax
test ebx, ebx
je 0x100096eb
mov esi, dword [ebp + 0xc]
push 0x40
push 0
push esi
call sub.MSVCR100.dll_memset
movzx edx, word [esp + 0x30]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
add esp, 0xc
mov dword [esi], edi
mov dword [esi + 0x3c], edx
mov dword [esi + 4], eax
mov dword [esi + 0x20], ecx
test eax, eax
je 0x100096a5
test ecx, ecx
je 0x100096a5
push 0x23
push eax
call dword [sym.imp.MSVCR100.dll_wcschr]
add esp, 8
test eax, eax
je 0x100096a5
mov dword [esi + 8], eax
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10009687
sub eax, edx
sar eax, 1
sub dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
jne 0x100096a5
mov dword [esi + 4], 0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x30]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x34]
mov dword [esi + 0x28], ecx
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x10], edx
mov edx, dword [esp + 0x14]
mov dword [esi + 0x2c], eax
mov eax, dword [esp + 0x38]
mov dword [esi + 0x14], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0x30], edx
mov edx, dword [esp + 0x28]
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x34], ecx
mov dword [esi + 0x1c], edx
mov dword [esi + 0x38], eax
mov eax, dword [0x10013030]
cmp eax, 0x10013030
je 0x1000971f
test byte [eax + 0x1c], 2
je 0x1000971f
cmp byte [eax + 0x19], 5
jb 0x1000971f
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0x10]
push 0x10010240
push 0x67
push ecx
push edx
mov esi, str.LHW__CrackUrl
call fcn.10002ed0
add esp, 0x10
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000c210
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0
mov ebx, 1
push ebx
push 0
push 0
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call esi
test eax, eax
jne 0x1000c260
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x1000c2af
push 8
push ebx
push 0
push 0
lea ecx, [ebp - 8]
push ecx
call esi
test eax, eax
je 0x1000c2af
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
push edx
push 0
push 0
push 0x8003
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1000c2af
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
push 0
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1000c2af
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 4]
push 0
push ecx
push edx
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x1000c2af
xor ebx, ebx
mov eax, dword [ebp - 4]
test eax, eax
je 0x1000c2bd
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 8]
test eax, eax
je 0x1000c2cd
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000d210
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x14
push ebx
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea ecx, [ebx*4]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
inc edx
cmp edx, 0xffdc
jbe 0x1000d27f
mov eax, dword [0x10013030]
cmp eax, 0x10013030
je 0x1000d277
test byte [eax + 0x1c], 8
je 0x1000d277
cmp byte [eax + 0x19], 2
jb 0x1000d277
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 0x10]
push 0xffdc
push ebx
push 0x10010230
push edx
push eax
mov edx, 0x2b
call fcn.10006c80
add esp, 0x14
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
mov dword [ebp - 0xc], 0
call dword [sym.imp.MSVCR100.dll_malloc]
mov edx, dword [ebp + 8]
add esp, 4
push 0
lea ecx, [ebp - 0xc]
push ecx
mov esi, eax
push ebx
push esi
push edx
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 8], eax
test eax, eax
je 0x1000d340
mov eax, dword [ebp - 0xc]
lea ecx, [eax*4]
mov eax, 0xaaaaaaab
mul ecx
mov esi, edx
shr esi, 1
add esi, 0x1f4
push esi
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
mov dword [edi + 8], eax
test eax, eax
je 0x1000d33d
push 0x93
push str.__xml_version_1.0____QueueMessage_xmlns:xsd_http:__www.w3.org_2001_XMLSchema__xmlns:xsi_http:__www.w3.org_2001_XMLSchema_instance___MessageText_
push esi
push eax
call dword [sym.imp.MSVCR100.dll_memcpy_s]
mov eax, dword [edi + 8]
lea edx, [ebp - 0x10]
push edx
add eax, 0x93
push eax
mov eax, dword [ebp - 4]
sub esi, 0x93
push ebx
mov dword [ebp - 0x10], esi
call fcn.100029c0
mov ecx, dword [edi + 8]
add esp, 0x1c
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
push 0x1d
lea ebx, [eax + 0x93]
sub esi, eax
push str.__MessageText___QueueMessage_
add ecx, ebx
push esi
push ecx
call dword [sym.imp.MSVCR100.dll_memcpy_s]
add esp, 0x10
add ebx, 0x1d
mov dword [edi + 0xc], ebx
mov esi, dword [ebp - 4]
test esi, esi
je 0x1000d34e
push esi
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
mov eax, dword [ebp - 8]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000e581
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10013018]
jne 0x1000e58b
repz ret
jmp fcn.1000ea37
Function at 0x402c40
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x403104
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4a4024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40319c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40317c
xor eax, eax
push ebp
push 0x403175
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 0x4031b8
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 0x40317c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4a4024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4a4024], ax
mov esp, ebp
pop ebp
ret

Function at 0x403e68
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4a704c], 0
je 0x403ec9
cmp word [0x4a7220], 0xd7b2
jne 0x403e91
cmp dword [0x4a7228], 0
jbe 0x403e91
mov eax, 0x4a721c
call dword [0x4a7238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4a4070
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 0x403ef0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4a4034], 0
jne 0x403ee5
push 0
push 0x4a4068
push 0x4a4070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40401c
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.00402778
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4a704d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x403fe4
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4059c4
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405bf4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405a47
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405bf4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405a47
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405c10
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405ad0
xor eax, eax
push ebp
push 0x405ac9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.0040580c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405aae
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405c30
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405aae
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405ad0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x405bea
cmp byte [ebp - 0xd], 0
jne 0x405b17
cmp byte [ebp - 0x12], 0
je 0x405bea
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405b30
dec ebx
cmp byte [ebx], 0x2e
je 0x405b3f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405b2f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405bea
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405b7c
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405bea
cmp byte [ebp - 0xd], 0
je 0x405bea
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405bea
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4062bc
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 0x406322
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.004042d8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402cc8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40630c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406329
lea eax, [ebp - 0x10]
call fcn.00404068
ret

Function at 0x40bdf4
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 0x40be2d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404158
jmp 0x40be36
mov eax, ebx
mov edx, esi
call fcn.004040bc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40be40
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 0x40be61
mov al, byte [esp]
jmp 0x40be63
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c4e8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c360
mov eax, dword [0x4a64c8]
cmp byte [eax], 0
je 0x40c564
mov eax, dword [0x4a6008]
call fcn.00402a70
call fcn.004028e0
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408f54
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40c5ac
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c59a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4a5f58]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4a7668]
call fcn.004057d0
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret