joyce8/EMBER2024-capa huggingface dataset:
Function at 0x445d35
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
test esi, esi
jge 0x445d50
push str.negative_allocation_size__or_too_big_
push dword [sym.ruby187c.exc_rb_eNoMemError]
call sym.ruby187c.exc_rb_raise
jne 0x445d55
push 1
pop esi
cmp dword [sym.ruby187c.exc_ruby_gc_stress], 0
jne 0x445d6d
mov eax, dword [0x496ec0]
add eax, esi
cmp eax, dword [0x486294]
jbe 0x445d72
call fcn.00446645
call sym.ruby187c.exc_rb_w32_enter_critical
mov ebx, dword [sym.imp.MSVCRT.dll_malloc]
push esi
call ebx
pop ecx
mov edi, eax
call sym.ruby187c.exc_rb_w32_leave_critical
test edi, edi
jne 0x445daa
call fcn.00446645
call sym.ruby187c.exc_rb_w32_enter_critical
push esi
call ebx
pop ecx
mov edi, eax
call sym.ruby187c.exc_rb_w32_leave_critical
test edi, edi
jne 0x445daa
jmp sym.ruby187c.exc_rb_memerror
add dword [0x496ec0], esi
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x445e65
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [esp + 4], 0
je 0x445e81
call sym.ruby187c.exc_rb_w32_enter_critical
push dword [esp + 4]
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
jmp sym.ruby187c.exc_rb_w32_leave_critical
ret
Function at 0x4467c2
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x496edc]
push ebx
cmp dword [0x496ee0], eax
push esi
push edi
mov edi, dword [sym.imp.MSVCRT.dll_malloc]
jne 0x446829
add eax, 0xa
mov dword [0x496edc], eax
lea esi, [eax + eax*2]
shl esi, 2
call sym.ruby187c.exc_rb_w32_enter_critical
cmp dword [0x496ee0], 0
push esi
jle 0x446811
push dword [0x495eb0]
call dword [sym.imp.MSVCRT.dll_realloc]
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x44681b
mov dword [0x495eb0], esi
jmp 0x44681b
call edi
pop ecx
mov dword [0x495eb0], eax
mov esi, eax
call sym.ruby187c.exc_rb_w32_leave_critical
test esi, esi
jne 0x446829
jmp sym.ruby187c.exc_rb_memerror
mov ebx, 0x2710
call sym.ruby187c.exc_rb_w32_enter_critical
mov eax, dword [0x486298]
lea eax, [eax + eax*4 + 5]
shl eax, 2
push eax
call edi
pop ecx
mov esi, eax
call sym.ruby187c.exc_rb_w32_leave_critical
test esi, esi
jne 0x446863
cmp dword [0x486298], ebx
je 0x44685e
mov dword [0x486298], ebx
jmp 0x44682e
jmp sym.ruby187c.exc_rb_memerror
mov eax, dword [0x496ee0]
mov ecx, dword [0x495eb0]
push 0x14
xor edx, edx
lea eax, [eax + eax*2]
mov dword [ecx + eax*4], esi
mov eax, esi
pop ecx
div ecx
test edx, edx
jne 0x446889
inc dword [0x486298]
jmp 0x446890
push 0x14
pop eax
sub eax, edx
add esi, eax
mov eax, dword [0x496ee0]
mov ecx, dword [0x495eb0]
lea eax, [eax + eax*2]
mov dword [ecx + eax*4 + 4], esi
mov eax, dword [0x496ee0]
mov edx, dword [0x495eb0]
mov ecx, dword [0x486298]
lea eax, [eax + eax*2]
mov dword [edx + eax*4 + 8], ecx
mov eax, dword [0x486298]
lea eax, [eax + eax*4]
lea edi, [esi + eax*4]
mov eax, dword [0x495ea4]
test eax, eax
je 0x4468d2
cmp eax, esi
jbe 0x4468d8
mov dword [0x495ea4], esi
cmp dword [0x496ebc], edi
jae 0x4468e6
mov dword [0x496ebc], edi
fild dword [0x486298]
inc dword [0x496ee0]
fmul qword [0x475d60]
call sub.MSVCRT.dll__ftol
test eax, eax
mov dword [0x486298], eax
jg 0x44690c
mov dword [0x486298], ebx
cmp esi, edi
jae 0x446926
and dword [esi], 0
mov eax, dword [0x496ed4]
mov dword [esi + 4], eax
mov dword [0x496ed4], esi
add esi, 0x14
jmp 0x44690c
pop edi
pop esi
pop ebx
ret

Function at 0x44708c
Capabilities:
Terminate process

Disassembly:
cmp dword [sym.ruby187c.exc_rb_gc_stack_start], 0
jne 0x44709d
push 0
call sym.ruby187c.exc_Init_stack
pop ecx
jmp fcn.004467c2
Function at 0x456b0d
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
dec dword [0x487138]
jne 0x456b1a
call fcn.00456b4e
mov eax, dword [0x4983ec]
mov ecx, dword [eax]
add dword [0x4983ec], 4
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and ax, 0xdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
ret

Function at 0x456b4e
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ecx
cmp dword [0x498400], 0
push ebx
push ebp
push esi
push edi
mov esi, 0x497a2c
jne 0x456b6c
push 0x1571
call fcn.00456c1f
pop ecx
mov dword [0x487138], 0x270
mov dword [0x4983ec], esi
mov dword [esp + 0x10], 0xe3
mov edi, bind
mov ecx, 0x9908b0df
mov edx, dword [esi]
mov ebp, dword [esi + 4]
lea eax, [esi + 4]
mov ebx, edx
xor ebx, ebp
and ebx, edi
xor ebx, edx
mov edx, ebp
and dl, 1
shr ebx, 1
neg dl
sbb edx, edx
and edx, ecx
xor ebx, edx
xor ebx, dword [eax + 0x630]
dec dword [esp + 0x10]
mov dword [esi], ebx
mov esi, eax
jne 0x456b8e
mov dword [esp + 0x10], 0x18c
mov edx, dword [esi]
mov ebp, dword [esi + 4]
lea eax, [esi + 4]
mov ebx, edx
xor ebx, ebp
and ebx, edi
xor ebx, edx
mov edx, ebp
and dl, 1
shr ebx, 1
neg dl
sbb edx, edx
and edx, ecx
xor ebx, edx
xor ebx, dword [esi - 0x38c]
dec dword [esp + 0x10]
mov dword [esi], ebx
mov esi, eax
jne 0x456bc5
mov eax, dword [esi]
mov edx, dword [0x497a2c]
mov ebx, eax
xor ebx, edx
and dl, 1
and ebx, edi
pop edi
xor ebx, eax
shr ebx, 1
neg dl
sbb edx, edx
and edx, ecx
xor ebx, edx
xor ebx, dword [esi - 0x38c]
mov dword [esi], ebx
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x456c1f
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push 1
pop esi
mov dword [0x497a2c], eax
mov edx, esi
mov eax, 0x497a2c
mov ecx, dword [eax]
add eax, 4
mov edi, ecx
shr edi, 0x1e
xor edi, ecx
imul edi, edi, 0x6c078965
add edi, edx
inc edx
mov dword [eax], edi
cmp eax, 0x4983e8
jl 0x456c34
mov dword [0x487138], esi
mov dword [0x498400], esi
pop edi
pop esi
ret
Function at 0x45a2cf
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor ecx, ecx
movzx eax, byte [ebx]
shl eax, 1
je 0x45a2e5
inc ebx
mov byte [ebp + ecx - 0x10], al
inc ecx
cmp ecx, 8
jl 0x45a2dd
lea eax, [ebp - 0x10]
push eax
call sym.ruby187c.exc_des_setkey
test eax, eax
pop ecx
jne 0x45a3f0
mov edi, dword [ebp + 0xc]
mov esi, 0x499c60
cmp byte [edi], 0x5f
je 0x45a31d
push 2
mov dword [ebp + 8], 0x19
pop eax
jmp 0x45a3a5
cmp byte [ebx], 0
je 0x45a366
push 1
lea eax, [ebp - 0x10]
push 0
push eax
lea eax, [ebp - 0x10]
push eax
call sym.ruby187c.exc_des_cipher
add esp, 0x10
test eax, eax
jne 0x45a3f0
xor ecx, ecx
movzx eax, byte [ebx]
shl eax, 1
je 0x45a348
inc ebx
xor byte [ebp + ecx - 0x10], al
inc ecx
cmp ecx, 8
jl 0x45a340
lea eax, [ebp - 0x10]
push eax
call sym.ruby187c.exc_des_setkey
test eax, eax
pop ecx
jne 0x45a3f0
jmp 0x45a31d
mov al, byte [edi]
push 3
inc edi
and dword [ebp + 8], 0
mov byte [0x499c60], al
pop ecx
movzx eax, byte [ecx + edi]
test eax, eax
jne 0x45a380
push 0x2e
pop eax
mov edx, dword [ebp + 8]
mov byte [ecx + 0x499c61], al
movzx eax, byte [eax + 0x49b938]
shl edx, 6
or eax, edx
dec ecx
mov dword [ebp + 8], eax
jns 0x45a375
push 4
mov esi, 0x499c65
pop eax
add edi, eax
mov dword [ebp + 0xc], eax
xor ebx, ebx
dec eax
test eax, eax
jl 0x45a3d4
lea ecx, [esi + eax]
sub edi, esi
lea edx, [eax + 1]
movzx eax, byte [edi + ecx]
test eax, eax
jne 0x45a3c2
push 0x2e
pop eax
mov byte [ecx], al
movzx eax, byte [eax + 0x49b938]
shl ebx, 6
or ebx, eax
dec ecx
dec edx
jne 0x45a3b7
push dword [ebp + 8]
add esi, dword [ebp + 0xc]
lea eax, [ebp - 8]
push ebx
push eax
push 0x499c58
call sym.ruby187c.exc_des_cipher
add esp, 0x10
test eax, eax
je 0x45a3f7
xor eax, eax
jmp 0x45a4db
movzx ecx, byte [ebp - 7]
xor eax, eax
push 0x3f
mov ah, byte [ebp - 8]
or eax, ecx
movzx ecx, byte [ebp - 6]
shl eax, 8
or eax, ecx
pop ecx
mov edx, eax
and edx, ecx
sar eax, 6
mov dl, byte [edx + 0x487798]
mov byte [esi + 3], dl
mov edx, eax
and edx, ecx
sar eax, 6
mov dl, byte [edx + 0x487798]
mov byte [esi + 2], dl
mov edx, eax
and edx, ecx
sar eax, 6
mov dl, byte [edx + 0x487798]
mov byte [esi + 1], dl
mov al, byte [eax + 0x487798]
mov byte [esi], al
add esi, 4
movzx eax, byte [ebp - 5]
movzx edx, byte [ebp - 4]
shl eax, 8
or eax, edx
movzx edx, byte [ebp - 3]
shl eax, 8
or eax, edx
mov edx, eax
and edx, ecx
sar eax, 6
mov dl, byte [edx + 0x487798]
mov byte [esi + 3], dl
mov edx, eax
and edx, ecx
sar eax, 6
mov dl, byte [edx + 0x487798]
mov byte [esi + 2], dl
mov edx, eax
and edx, ecx
sar eax, 6
mov dl, byte [edx + 0x487798]
mov byte [esi + 1], dl
mov al, byte [eax + 0x487798]
mov byte [esi], al
add esi, 4
movzx eax, byte [ebp - 2]
movzx edx, byte [ebp - 1]
shl eax, 8
or eax, edx
shl eax, 2
mov edx, eax
and edx, ecx
sar eax, 6
mov dl, byte [edx + 0x487798]
mov byte [esi + 2], dl
mov edx, eax
and edx, ecx
sar eax, 6
mov cl, byte [edx + 0x487798]
mov byte [esi + 1], cl
mov al, byte [eax + 0x487798]
and byte [esi + 3], 0
mov byte [esi], al
mov eax, 0x499c60
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45f5b6
Capabilities:
Terminate process

Disassembly:
push dword [sym.ruby187c.exc_ruby_copyright]
call dword [sym.imp.MSVCRT.dll_puts]
pop ecx
push 0
call dword [sym.imp.MSVCRT.dll_exit]

Function at 0x4604e2
Capabilities:
Terminate process

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0
push dword [esp + 0x10]
call fcn.0046050d
add esp, 0x10
test eax, eax
je 0x46050c
cmp eax, 0xffffffff
jne 0x460506
jmp sym.ruby187c.exc_rb_memerror
push eax
call sym.ruby187c.exc_rb_jump_tag
ret

Function at 0x461118
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor edi, edi
call sym.ruby187c.exc_rb_ary_new
mov ebx, eax
lea eax, [ebp + 8]
push eax
call sym.ruby187c.exc_rb_string_value
push dword [ebp + 8]
call sym.ruby187c.exc_rb_check_safe_obj
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
cmp dword [ecx + 8], edi
jle 0x461190
mov eax, dword [ecx + 0xc]
push dword [ebp + 0xc]
add eax, edi
push eax
push ebx
call fcn.004611a7
add esp, 0xc
test eax, eax
jne 0x461197
mov eax, dword [ebp + 8]
cmp edi, dword [eax + 8]
jge 0x461190
mov esi, dword [eax + 0xc]
add esi, edi
push esi
call sub.MSVCRT.dll_strlen
pop ecx
lea eax, [esi + eax + 1]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
mov esi, dword [ecx + 8]
lea edi, [edx + esi]
cmp eax, edi
jae 0x461188
cmp byte [eax], 0
jne 0x461188
inc eax
jmp 0x46117c
sub eax, edx
mov edi, eax
cmp edi, esi
jl 0x461142
pop edi
mov eax, ebx
pop esi
pop ebx
pop ebp
ret
cmp eax, 0xffffffff
jne 0x4611a1
jmp sym.ruby187c.exc_rb_memerror
push eax
call sym.ruby187c.exc_rb_jump_tag
Function at 0x4611f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
call sym.ruby187c.exc_rb_ary_new
xor ebx, ebx
mov edi, eax
cmp dword [ebp + 8], ebx
jle 0x46123c
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
call sym.ruby187c.exc_rb_string_value
push dword [ebp + 0xc]
call sym.ruby187c.exc_rb_check_safe_obj
push dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push dword [eax + 0xc]
push edi
call fcn.004611a7
add esp, 0x14
test eax, eax
jne 0x461243
inc ebx
add esi, 4
cmp ebx, dword [ebp + 8]
jl 0x461207
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
cmp eax, 0xffffffff
jne 0x46124d
jmp sym.ruby187c.exc_rb_memerror
push eax
call sym.ruby187c.exc_rb_jump_tag
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp + 0xc]
push eax
push 0x47edf8
push dword [ebp + 0xc]
push dword [ebp + 8]
call sym.ruby187c.exc_rb_scan_args
add esp, 0x14
cmp eax, 2
jne 0x46128e
mov eax, dword [ebp - 4]
test al, 1
je 0x461285
sar eax, 1
mov esi, eax
jmp 0x461290
push eax
call sym.ruby187c.exc_rb_num2long
pop ecx
jmp 0x461281
xor esi, esi
push dword [ebp + 0xc]
call sym.ruby187c.exc_rb_check_array_type
cmp eax, 4
pop ecx
jne 0x4612ab
push esi
push dword [ebp + 0xc]
call fcn.00461118
pop ecx
pop ecx
jmp 0x4612c3
mov dword [ebp + 8], eax
push esi
mov eax, dword [ebp + 8]
push dword [eax + 0x10]
mov eax, dword [ebp + 8]
push dword [eax + 8]
call fcn.004611f0
add esp, 0xc
mov esi, eax
call sym.ruby187c.exc_rb_block_given_p
test eax, eax
je 0x4612da
push esi
call sym.ruby187c.exc_rb_ary_each
pop ecx
push 4
pop eax
jmp 0x4612dc
mov eax, esi
pop esi
leave
ret
Function at 0x467792
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4765d0
push 0x467bca
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x49ca28], 0xffffffff
or dword [0x49ca2c], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x49c848]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x49c844]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x49ca24], eax
call sym.ruby187c.exc_Init_ext
cmp dword [0x488f30], 0
jne 0x467815
push sym.ruby187c.exc__CrtDbgReportW
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.00467bb6
push 0x47e00c
push 0x47e008
call sub.MSVCRT.dll__initterm
mov eax, dword [0x49c840]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x49c83c]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x47e004
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.00401000
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret

Function at 0x40357a
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x4035a3
mov al, byte [esi + 1]
inc esi
test al, al
je 0x40359b
cmp al, 0x22
jne 0x40358f
cmp byte [esi], 0x22
jne 0x4035ad
inc esi
jmp 0x4035ad
cmp al, 0x20
jle 0x4035ad
inc esi
cmp byte [esi], 0x20
jg 0x4035a7
mov al, byte [esi]
test al, al
je 0x4035b7
cmp al, 0x20
jle 0x4035a0
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00401e17
push 0x404004
push section..data
call fcn.00403560
test byte [ebp - 0x18], 1
pop ecx
pop ecx
je 0x4035e7
movzx eax, word [ebp - 0x14]
jmp 0x4035ea
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
call fcn.0040360d
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x402ae4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402b7c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x402b5c
xor eax, eax
push ebp
push 0x402b55
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 0x402b98
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402b5c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret
Function at 0x404e24
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_2
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x404fe0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
je 0x404e85
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x404ffc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x404ef7
xor eax, eax
push ebp
push 0x404ef0
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.00404c7c
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x404ed9
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x40501c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404ef7
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpyA_1
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale_1
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA_1
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x404fd8
cmp byte [ebp - 0xd], 0
jne 0x404f39
cmp byte [ebp - 0x12], 0
je 0x404fd8
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404f52
dec ebx
cmp byte [ebx], 0x2e
je 0x404f61
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404f51
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404fd8
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404f8e
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA_1
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404fd8
cmp byte [ebp - 0xd], 0
je 0x404fd8
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA_1
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404fd8
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA_1
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 0x40559c
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, eax
mov edx, dword [ebx + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x4055cc
push 0
push dword [ebx]
call sub.KERNEL32.DLL_GetFileSize
cmp eax, 0xffffffff
je 0x4055c2
xor edx, edx
div dword [ebx + 8]
pop ebx
ret
call fcn.004027b8
or eax, 0xffffffff
jmp 0x4055c0
mov eax, 0x67
call fcn.004027a8
or eax, 0xffffffff
jmp 0x4055c0
Function at 0x4055dc
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, eax
mov ecx, dword [ebx + 4]
sub ecx, 0xd7b1
je 0x4055ef
sub ecx, 2
jne 0x405618
push 0
mov eax, esp
push 0
push eax
push dword [ebx + 8]
push edx
push dword [ebx]
call sub.KERNEL32.DLL_ReadFile_1
pop edx
dec eax
jne 0x40560c
cmp edx, dword [ebx + 8]
jne 0x40561f
pop ebx
ret
call sub.KERNEL32.DLL_GetLastError_1
call fcn.004027a8
jmp 0x40560a
mov eax, 0x67
jmp 0x405611
mov eax, 0x64
jmp 0x405611

Function at 0x4057e4
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [eax + 4]
sub eax, 0xd7b2
cmp eax, 1
ja 0x40581f
push 0
mov eax, esp
push 0
push eax
push dword [ebx + 8]
push edx
push dword [ebx]
call sub.KERNEL32.DLL_WriteFile_1
pop edx
dec eax
jne 0x405813
cmp edx, dword [ebx + 8]
jne 0x405826
mov eax, ebx
pop ebx
ret
call sub.KERNEL32.DLL_GetLastError_1
call fcn.004027a8
jmp 0x40580f
mov eax, 5
jmp 0x405818
mov eax, 0x65
jmp 0x405818

Function at 0x408878
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
test eax, eax
jle 0x4088b1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004039dc
jmp 0x4088ba
mov eax, ebx
mov edx, esi
call fcn.00403948
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4088c4
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
test eax, eax
jle 0x4088e5
mov al, byte [esp]
jmp 0x4088e7
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x413d94
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x413d9a
ret

Function at 0x416184
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.KERNEL32.DLL_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x4161d5
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4161bc
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4161ac
jmp 0x4161d5
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x4161bd
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x420dc8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
cmp dword [0x45c778], 0
sete dl
or al, dl
jne 0x420f08
mov eax, dword [0x45c77c]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x45c778]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x420ed7
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [0x45c778]
call fcn.0040d5c8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x420ecf
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x168], 0
je 0x420ecf
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x420ecf
mov eax, dword [ebp - 0x14]
call fcn.004290c0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x420ecf
push ebp
call fcn.00420d84
pop ecx
test al, al
jne 0x420ecf
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x90]
cmp eax, dword [ebp - 0x14]
jne 0x420e8b
mov eax, dword [ebp - 0x14]
call fcn.00427a4c
dec eax
jle 0x420ecf
mov byte [ebp - 1], 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov bx, 0xffc1
call fcn.00402e48
cmp byte [ebp - 1], 0
je 0x420ecf
push dword [ebp - 8]
push dword [ebp - 0xc]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x420ecf
mov edx, dword [ebp - 0x14]
mov eax, dword [0x45c77c]
call fcn.004205d0
inc edi
dec esi
jne 0x420e1e
mov eax, dword [0x45c77c]
cmp dword [eax + 8], 0
jle 0x420eef
mov eax, dword [0x45c77c]
call fcn.00420660
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x420f08
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00420bec
pop ecx
test al, al
jne 0x420f08
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret