joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004110
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x30
mov eax, dword [0x1002d00c]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
mov ebx, dword [esp + 0x38]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10004140
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.10005a76
add esp, 0x30
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1000417d
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x1000417d
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.10005a76
add esp, 0x30
ret 4
cmp dword [esi + 0x4c], 0
je 0x10004275
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x100041a5
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x100041d9
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.1000c481
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.10005a76
add esp, 0x30
ret 4
mov byte [esp + 0x17], bl
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x2b]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x10004244
sub eax, 1
je 0x10004244
sub eax, 2
jne 0x10004275
push dword [esi + 0x4c]
movsx eax, byte [esp + 0x1b]
push eax
call fcn.1000c481
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.10005a76
add esp, 0x30
ret 4
mov edi, dword [esp + 0xc]
lea eax, [esp + 0x18]
sub edi, eax
je 0x10004263
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.1000d22a
add esp, 0x10
cmp edi, eax
jne 0x10004275
lea eax, [esp + 0x17]
mov byte [esi + 0x3d], 1
cmp dword [esp + 0x10], eax
jne 0x10004167
mov ecx, dword [esp + 0x38]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10005a76
add esp, 0x30
ret 4
Function at 0x10004bd0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x28
mov eax, dword [0x1002d00c]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x10004c92
cmp byte [esi + 0x3d], 0
je 0x10004c92
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x10004c7f
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x10004c44
sub eax, 1
je 0x10004c48
sub eax, 2
jne 0x10004c7f
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.10005a76
add esp, 0x28
ret
mov byte [esi + 0x3d], 0
mov edi, dword [esp + 8]
lea eax, [esp + 0xc]
sub edi, eax
je 0x10004c67
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.1000d22a
add esp, 0x10
cmp edi, eax
jne 0x10004c7f
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.10005a76
add esp, 0x28
ret
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.10005a76
add esp, 0x28
ret
mov ecx, dword [esp + 0x28]
mov al, 1
pop esi
xor ecx, esp
call fcn.10005a76
add esp, 0x28
ret

Function at 0x10005030
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001e8b0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1002d00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.10005a84
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.10006c69
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10005810
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001e9ad
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x1002d00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x20], edi
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.100057b0
mov ebx, eax
mov ecx, ebx
or ecx, edx
jne 0x10005895
mov ecx, dword [ebp - 0x1c]
mov dword [edi], ecx
mov ecx, dword [ebp - 0x18]
mov dword [edi + 4], ecx
mov ecx, dword [ebp - 0x14]
mov dword [edi + 8], ecx
jmp 0x10005928
cmp dword [esi + 0x14], 8
jb 0x1000589d
mov esi, dword [esi]
push 0x1002a37c
push esi
call fcn.1000ae69
mov esi, eax
add esp, 8
mov dword [ebp - 0x20], esi
test esi, esi
je 0x10005917
mov eax, dword [ebp - 0x18]
mov edx, eax
mov ecx, dword [ebp - 0x1c]
sub edx, ecx
mov dword [ebp - 0x24], eax
cmp ebx, edx
jae 0x100058ca
lea eax, [ecx + ebx]
jmp 0x10005901
jbe 0x10005904
mov eax, dword [ebp - 0x14]
sub eax, ecx
cmp ebx, eax
jbe 0x100058e4
push ecx
push ebx
lea ecx, [ebp - 0x1c]
call fcn.10005950
mov ecx, dword [ebp - 0x1c]
jmp 0x10005904
mov esi, ebx
sub esi, edx
push esi
push 0
push dword [ebp - 0x24]
call fcn.10007ee0
mov eax, dword [ebp - 0x24]
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
add eax, esi
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
push esi
push 1
push ebx
push ecx
call fcn.1000b190
push esi
call fcn.1000acc1
add esp, 0x14
mov eax, dword [ebp - 0x1c]
mov dword [edi], eax
mov eax, dword [ebp - 0x18]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [edi + 8], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10005a76
mov esp, ebp
pop ebp
ret

Function at 0x10012d5a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10012bd7

Function at 0x10016aff
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100167a1
Function at 0x401ff0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x70
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov eax, esp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x4027d0
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
add eax, dword [ecx + 0x3c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x78]
add eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
add eax, dword [ecx + 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
mov word [ebp - 0x42], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x4c]
cmp eax, dword [ebp - 0x30]
jae 0x40218f
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x50]
mov dword [ebp - 0x10], 0xffffffff
lea ecx, [ebp - 0x68]
mov dword [esp], eax
call fcn.00402830
sub esp, 4
cmp dword [ebp + 8], 0
jbe 0x402154
cmp dword [ebp + 0xc], 3
jbe 0x402154
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x10], 0
mov eax, esp
lea ecx, [ebp - 0x68]
mov dword [eax], ecx
mov dword [eax + 4], 0x14d
call fcn.00401e60
mov dword [ebp - 0x74], eax
jmp 0x4020f3
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x40214f
mov eax, dword [ebp - 0x6c]
cmp eax, dword [ebp + 0xc]
jne 0x40214a
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
add eax, dword [ecx + 0x24]
mov ecx, dword [ebp - 0x48]
shl ecx, 1
add eax, ecx
mov ax, word [eax]
mov word [ebp - 0x42], ax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
add eax, dword [ecx + 0x1c]
movzx ecx, word [ebp - 0x42]
shl ecx, 2
add eax, ecx
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x70], 2
jmp 0x402164
jmp 0x40214f
jmp 0x402154
mov eax, dword [ebp - 0x2c]
add eax, 4
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x70], 0
lea ecx, [ebp - 0x68]
call fcn.004028f0
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x402181
jmp 0x40217c
jmp 0x40218f
mov eax, dword [ebp - 0x4c]
add eax, 1
mov dword [ebp - 0x4c], eax
jmp 0x402088
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x38]
add eax, ecx
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x70
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4021d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x4b6400], eax
pop esi
pop edi
pop ebp
ret
Function at 0x415156
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4151f3
push ebx
push esi
call fcn.0041511f
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00415068
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4151a0
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4151f2
push edi
push eax
call fcn.00413e75
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4151c0
call fcn.00413e3b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4151f1
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00415068
add esp, 0x20
test eax, eax
jne 0x4151df
push edi
call fcn.00413e3b
jmp 0x4151e7
push ebx
call fcn.00413e3b
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x415a1f
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x425b20
push 0x425b18
push str.FlsAlloc
push 0x1e
call fcn.0041588c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x415a53
push dword [ebp + 8]
mov ecx, esi
call dword [0x422158]
call esi
jmp 0x415a59
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x415a9d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x425b30
push 0x425b28
push str.FlsGetValue
push 0x20
call fcn.0041588c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x415ad4
push dword [ebp + 8]
mov ecx, esi
call dword [0x422158]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41962c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004192ce

Function at 0x419637
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041945d
Function at 0x4087ed
Capabilities:
Encode data using xor

Disassembly:
ficomp word [ecx]
push cs
dec esp
jle 0x408750
insb byte es:[edi], dx
dec esi
jmp 0x677f9fc0
inc eax
leave
dec esp
ror ebp, 0x44
dec ebx
pushfd
dec esp
cmc
xchg esp, eax
movsd dword es:[edi], dword [esi]
dec ebp
cli
and eax, 0xb5787d55
cwde
test dword [esp + eax*2], 0x9494026c
mov ch, 0xbc
sbb esp, dword [ebp - 0x44353e90]
in eax, dx
iretd
mov ebx, 0xce8dcfed
jmp 0xdeda4168
dec ebp
cmp eax, 0xfe6048e3
sub al, 0xe7
fsubr qword cs:[edx + 0x1b39ae3d]
aam 0x9b
cdq
push edx
push ebp
or dword [ebp*8 + 0x78fb7fe2], edx
jno 0x408704
sti
js 0x4087ef
test dword [esi], edi
dec esp
dec esp
jns 0x40872d
sub al, 0x12
rcl dword [edi + 0x1f], cl
push esp
push 0x2e68b959
dec ebp
test esi, ebx
test al, 0x85
stosb byte es:[di], al
mov byte [esi - 0x15d2476d], bh
fnsave dword [edi + esi*4]
out 0x40, eax
xchg ebp, eax
fist dword [ebx]
cmovle eax, dword [ebp - 0x749140fd]
rol byte [eax + eax*8], cl
fisttp qword [ecx]
dec esp
cmpsb byte [esi], byte es:[edi]
stc
jge 0x408762
sbb al, 0x16
mov edx, 0x9bc2308b
xor al, 0x78
jg 0x4087b8
mov esi, dword [eax]
ret 0x349b
sbb al, 0x54
les edx, [ebp - 0x3d]
pop esp
inc edx
lodsd eax, dword [esi]
xchg esp, eax
dec eax
or dword [ebp - 0x24], edi
invalid
jo 0x40877b
inc ebx
in eax, dx
cld
invalid

Function at 0x44aad0
Capabilities:
Get file version info

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x214
lea eax, [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x220]
push esi
push edi
push 0x104
push eax
push ecx
mov word [ebp], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x44ab92
cmp eax, 0x104
jne 0x44ab15
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x44ab92
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x44ab92
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
test esi, esi
je 0x44ab92
mov ecx, dword [esp + 0x10]
push ebx
push esi
push edi
lea edx, [esp + 0x24]
push ecx
push edx
xor ebx, ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x44ab7a
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push ecx
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x44ab7a
mov edx, dword [esp + 0x10]
mov ebx, 1
mov ax, word [edx]
mov word [ebp], ax
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x214
ret 8
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x214
ret 8
Function at 0x4524fd
Capabilities:
Encode data using xor

Disassembly:
adc byte [ecx - 0x3b], ah
hlt
jg 0x4524d5
in al, 0xd3
dec esp
enter 0xffffffffffff9274, 0x6f
je 0x452469
outsd dx, dword [esi]
rol byte [ecx], cl
xchg esp, eax
scasd eax, dword es:[edi]
je 0x4524d4
adc byte [eax], ch
wait
mov ebp, 0xc965a3b6
mov dword [ebp + 0x3682f079], edi
mov ebp, 0x3682f079
xor eax, 0x347d4260
and al, 0x3d
pop ecx
out 0xf6, eax
mov ebx, dword [ebp - 0x57]
inc esp
loope 0x4524e9
invalid
jmp 0x4524cf
shl bh, 1
mov ebp, es
call 0x83a9769b
adc al, 0
mov es, word [ecx]
push es
sub eax, 0xbcca397b
push esp
loop 0x452527
dec edi
xchg ebp, eax
out dx, eax
inc edi
ja 0x45254a
xchg esp, eax
outsb dx, byte [esi]
imul esp, dword [ebp + 0x44], 0xd718bc0d
out dx, eax
xor ecx, edx
invalid
pop edi
les eax, [ecx]
arpl word [edx - 0x4fa8d3db], ax
cmpsd dword [esi], dword es:[edi]
rol byte [edx + edi], 1
int 0x33
jecxz 0x4524db
add al, 0x5c
xchg ebp, eax
adc al, 0x42
jno 0x4525ae
dec esp
mov ah, 0x8c
cmp dword [edi + 0x1a62f5c1], 0x964f2b0c
jl 0x4525c8
push 0xffffffffffffffeb
mov esi, 0xc2453125
and ah, ah
test dword [esi + 0x5a71844f], edx
or al, 0x96
dec ebx
cmpsb byte [esi], byte es:[edi]
int3
inc eax
jb 0x452561
push esp
movsd dword es:[edi], dword [esi]
push ebp
sub bl, 0x59
test al, 0x65
add al, 0xe1
invalid
pop ebp
pop esp
invalid

Function at 0x4a8f57
Capabilities:
Encode data using xor

Disassembly:
scasd eax, dword es:[edi]
imul ecx, dword [ebp - 0x69], 0x37
jne 0x4a8f65
mov ebx, 0x5a8babb9
mov bh, 0x89
sbb byte [ecx + 0x30], dl
inc ebp
sbb eax, 0xb8f7ae6
fldcw word [ecx]
adc byte [ecx], ch
xchg byte [ecx + 0xc], bl
bound edi, qword [eax]
jo 0x4a8f6f
mov ch, 0x80
inc al
adc al, 0xb0
imul ebx, dword [edi - 0x2a], 0x5b5c0d8f
invalid

Function at 0x4ed5cd
Capabilities:
Encode data using xor

Disassembly:
mov dword [edi + 0x66], edx
push esp
sahf
mov esp, 0xef584f0a
dec ebx
xor dl, byte [ebp + 0x2bf18c33]
sbb eax, 0x7ac32272
xor byte [ecx + ebx - 0x62], ah
adc cl, byte [esi + ebp - 0x413efcd]
dec esi
popfd
mov ebx, 0x5bd179c5
adc dword [edi], 0xf9600a5
fild word [edi + ebp*2 - 0x3f0c63a6]
test eax, 0x6aef3c38
dec esi
invalid
Function at 0x51936e
Capabilities:
Encode data using xor

Disassembly:
test dword [ebp - 0x6bca811d], esi
xchg edi, eax
mov bl, 0xb
inc esp
xor ebx, edx
jge 0x5193ba
fidivr dword [ebp + 0x3e]
ffree st(5)
add eax, 0x51f6b302
mov ebp, 0x3c00bd1d
imul dword [esi]
arpl word [eax - 0xe], ax
xor al, 0x3a
inc eax
jae 0x519379
shl byte [ebp - 0x9cee55e], 1
mov dword [0xe562b04], eax
add al, 0x2b
push esi
push cs
adc eax, 0xb9733788
aad 0xe8
pop eax
cmc
fcomi st(5)
push 0x3a
enter 0xffffffffffffbe05, 0x10
cmp al, byte [ecx + 0x7b2352f7]
cmpsd dword [esi], dword es:[edi]
and byte [ebx], ah
push ss
fldenv [ebx + esi + 0x1960f3b9]
add al, 0x79
xlatb
xor edi, dword [ecx + 0x41960f3]
jns 0x519399
lea eax, [eax - 0x3919ea36]
cli
mov ch, 0x50
movsb byte es:[edi], byte [esi]
mov dword [0xd76c871a], eax
outsd dx, dword [esi]
and byte [ebx + 0x428f049f], cl
cmp byte [ebx + 0x763bbf12], dh
xchg edi, eax
add esp, ebp
mov esp, 0x39b0a283
ffree st(1)
jo 0x5193f7
push esi
test dword [ebx], esp
adc eax, 0x2ae28536
lahf
cmpsb byte [esi], byte es:[edi]
sbb eax, dword [eax + 0x4cc2cc69]
xor edi, dword [ebx - 0x78]
adc dword [ebx], esp
ret 0x792d
int3

Function at 0x51b964
Capabilities:
Encode data using xor

Disassembly:
fsubr st(0), st(0)
sub al, byte [eax - 0x4b4d402d]
cmp bh, dl
sar dword [edi - 0x28c74b4e], cl
out 0xd5, al
pop esp
inc ebx
push ebx
rol dword [ecx - 0x3a], 1
xor byte [edx], cl
test byte [esi - 0x61e86798], dh
or dh, cl
and cl, byte [ebx - 0x571aba9f]
jns 0x51b968
dec ebx
or dh, byte [ebp - 0x25adddc]
int 0x74
invalid
Function at 0x4039f0
Capabilities:
Query or enumerate registry value

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

Function at 0x404784
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x470048], 0
je 0x4047e5
cmp word [0x47021c], 0xd7b2
jne 0x4047ad
cmp dword [0x470224], 0
jbe 0x4047ad
mov eax, 0x470218
call dword [0x470234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46e070
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 0x40480c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46e030], 0
jne 0x404801
push 0
push 0x46e068
push 0x46e070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4065c4
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 0x40662a
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.00404b78
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.0040344c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406614
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406631
lea eax, [ebp - 0x10]
call fcn.00404908
ret

Function at 0x40b7c0
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 0x40b7f9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004049f8
jmp 0x40b802
mov eax, ebx
mov edx, esi
call fcn.0040495c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40bec4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bd2c
mov eax, dword [0x46fab8]
cmp byte [eax], 0
je 0x40bf40
mov eax, dword [0x46f8cc]
call fcn.004030a4
call fcn.00402bf4
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.00408f9c
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 0x40bf88
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bf76
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x46f87c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x470664]
call fcn.00405a30
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