joyce8/EMBER2024-capa huggingface dataset:
Function at 0x561250
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Encrypt data using salsa20 or chacha

Disassembly:
mov eax, 0x98
call fcn.005b9060
mov eax, dword [0x6d1d44]
xor eax, esp
mov dword [esp + 0x94], eax
mov ecx, dword [esp + 0xa8]
push edi
mov edi, dword [esp + 0xa0]
mov dword [esp + 4], edi
mov eax, dword [ecx]
mov dword [esp + 0x68], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x6c], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x70], eax
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x74], eax
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x78], eax
mov eax, dword [ecx + 0x14]
mov dword [esp + 0x7c], eax
mov eax, dword [ecx + 0x18]
mov dword [esp + 0x80], eax
mov eax, dword [ecx + 0x1c]
mov ecx, dword [esp + 0xb0]
mov dword [esp + 0x84], eax
mov dword [esp + 0x58], 0x61707865
mov dword [esp + 0x5c], 0x3320646e
mov eax, dword [ecx]
mov dword [esp + 0x88], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x8c], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x90], eax
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x60], 0x79622d32
mov dword [esp + 0x64], 0x6b206574
test eax, eax
je 0x56144d
push ebx
mov ebx, dword [esp + 0xa8]
push ebp
push esi
nop
mov esi, 0x40
cmp eax, esi
cmovb esi, eax
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x28]
mov dword [esp + 0x24], esi
push eax
call fcn.00561470
add esp, 8
xor eax, eax
test esi, esi
je 0x56141c
cmp esi, 0x20
jb 0x5613f4
lea edx, [edi - 1]
lea ecx, [esp + esi + 0x23]
add edx, esi
cmp edi, ecx
ja 0x56136c
lea ecx, [esp + 0x24]
cmp edx, ecx
jae 0x5613f4
lea ecx, [ebx - 1]
add ecx, esi
cmp edi, ecx
ja 0x561379
cmp edx, ebx
jae 0x5613f4
mov ebp, esi
lea edx, [edi + 0x10]
lea esi, [esp + 0x24]
mov ecx, ebx
sub ecx, esi
and ebp, 0xffffffe0
mov dword [esp + 0x14], ecx
mov ecx, edi
sub ecx, esi
mov dword [esp + 0x18], ecx
mov ecx, ebx
mov ebx, dword [esp + 0x14]
sub ecx, edi
mov esi, dword [esp + 0x18]
mov edi, ecx
mov dword [esp + 0x1c], ecx
nop word [eax + eax]
movups xmm0, xmmword [esp + eax + 0x24]
lea ecx, [ebx + eax]
movups xmm1, xmmword [esp + ecx + 0x24]
lea ecx, [esi + eax]
lea edx, [edx + 0x20]
pxor xmm1, xmm0
movups xmm0, xmmword [esp + eax + 0x34]
add eax, 0x20
movups xmmword [esp + ecx + 0x24], xmm1
movups xmm1, xmmword [edi + edx - 0x20]
pxor xmm1, xmm0
movups xmmword [edx - 0x20], xmm1
cmp eax, ebp
jb 0x5613b0
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0xb0]
cmp eax, esi
jae 0x56141c
lea ecx, [esp + 0x24]
mov ebp, edi
sub ebx, ecx
sub ebp, ecx
lea edx, [esp + 0x24]
add edx, eax
inc eax
mov cl, byte [ebx + edx]
xor cl, byte [edx]
mov byte [edx + ebp], cl
cmp eax, esi
jb 0x561402
mov ebx, dword [esp + 0xb0]
mov eax, dword [esp + 0xb4]
add edi, esi
inc dword [esp + 0x94]
sub eax, esi
add ebx, esi
mov dword [esp + 0x10], edi
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xb4], eax
test eax, eax
jne 0x561320
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x98]
pop edi
xor ecx, esp
call fcn.005b8900
add esp, 0x98
ret
Function at 0x602650
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x602677
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.005ea320
add esp, 4
or eax, 0xffffffff
jmp 0x602679
xor eax, eax
pop ebp
ret

Function at 0x6026a0
Capabilities:
Delete directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x6026c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.005ea320
add esp, 4
or eax, 0xffffffff
jmp 0x6026c9
xor eax, eax
pop ebp
ret

Function at 0x6069c5
Capabilities:
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.006066f6

Function at 0x630c60
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
call fcn.0061e5c0
mov byte [ebp - 1], al
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x630c9e
cmp dword [ebp + 8], 0
je 0x630c8c
lea eax, [ebp + 8]
push eax
call fcn.00631060
add esp, 4
movzx ecx, byte [ebp - 1]
test ecx, ecx
je 0x630c9e
mov eax, 4
jmp 0x630dce
call fcn.0061e390
movzx edx, al
test edx, edx
jne 0x630ccc
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x630cbd
mov dword [ebp - 0xc], 4
jmp 0x630cc4
mov dword [ebp - 0xc], 3
mov eax, dword [ebp - 0xc]
jmp 0x630dce
movzx eax, byte [ebp - 1]
test eax, eax
je 0x630d75
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
push 0
push 0
lea ecx, [ebp - 0x34]
push ecx
push 0x630fc0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
lea ecx, [ebp - 8]
call fcn.005e9936
lea ecx, [ebp - 8]
call fcn.00614a20
movzx edx, al
test edx, edx
jne 0x630d37
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 8]
call fcn.005e9adc
mov eax, dword [ebp - 0x10]
jmp 0x630dce
push 0
push 0xffffffffffffffff
lea ecx, [ebp - 8]
call fcn.00632310
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
test eax, eax
je 0x630d62
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 8]
call fcn.005e9adc
mov eax, dword [ebp - 0x14]
jmp 0x630dce
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 8]
call fcn.005e9adc
mov eax, dword [ebp - 0x18]
jmp 0x630dce
call fcn.0061e510
movzx ecx, al
test ecx, ecx
jne 0x630dae
mov edx, dword [ebp + 0x10]
or edx, 0x200000
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x20]
push eax
call fcn.00630f90
add esp, 0x10
jmp 0x630dce
call fcn.0061e420
mov dword [ebp - 0x24], eax
lea ecx, [ebp + 0x10]
push ecx
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.00630f90
add esp, 0x10
mov esp, ebp
pop ebp
ret
Function at 0x630de0
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
call fcn.0061e5c0
mov byte [ebp - 1], al
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x630e1e
cmp dword [ebp + 8], 0
je 0x630e0c
lea eax, [ebp + 8]
push eax
call fcn.00631080
add esp, 4
movzx ecx, byte [ebp - 1]
test ecx, ecx
je 0x630e1e
mov eax, 4
jmp 0x630f4e
call fcn.0061e390
movzx edx, al
test edx, edx
jne 0x630e4c
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x630e3d
mov dword [ebp - 0xc], 4
jmp 0x630e44
mov dword [ebp - 0xc], 3
mov eax, dword [ebp - 0xc]
jmp 0x630f4e
movzx eax, byte [ebp - 1]
test eax, eax
je 0x630ef5
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
push 0
push 0
lea ecx, [ebp - 0x34]
push ecx
push 0x631010
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
lea ecx, [ebp - 8]
call fcn.005e9936
lea ecx, [ebp - 8]
call fcn.00614a20
movzx edx, al
test edx, edx
jne 0x630eb7
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 8]
call fcn.005e9adc
mov eax, dword [ebp - 0x10]
jmp 0x630f4e
push 0
push 0xffffffffffffffff
lea ecx, [ebp - 8]
call fcn.00632310
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
test eax, eax
je 0x630ee2
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 8]
call fcn.005e9adc
mov eax, dword [ebp - 0x14]
jmp 0x630f4e
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 8]
call fcn.005e9adc
mov eax, dword [ebp - 0x18]
jmp 0x630f4e
call fcn.0061e510
movzx ecx, al
test ecx, ecx
jne 0x630f2e
mov edx, dword [ebp + 0x10]
or edx, 0x200000
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x20]
push eax
call fcn.00630f60
add esp, 0x10
jmp 0x630f4e
call fcn.0061e420
mov dword [ebp - 0x24], eax
lea ecx, [ebp + 0x10]
push ecx
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.00630f60
add esp, 0x10
mov esp, ebp
pop ebp
ret

Function at 0x63427a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.006338ee

Function at 0x634285
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00633c29
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x408974
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x4085d8
add ecx, ecx
add ebx, ecx
call fcn.0040899b
sub ebx, ecx
dec ebx
xor dword [eax], esi
and ebx, ebx
inc eax
add ebx, ebx
cmp eax, edi
jne fcn.00408974
and ecx, ecx
sub ecx, ecx
ret

Function at 0x408946
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x4085d8
pop ecx
call fcn.00408972
xor dword [edi], ecx
add edi, 1
sub eax, eax
inc edx
cmp edi, ebx
jne fcn.00408946
add edx, 1
and eax, edx
ret
Function at 0x43302eac
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 0x43302ee8
movzx eax, 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 0x43302f08
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.43304b48
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x43303140
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.433048d8
test esi, esi
jne 0x43303176
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.433049c8
jmp 0x43303194
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.43303044
mov edi, eax
test esi, esi
je 0x43303194
cmp dword [ebx], 0
je 0x43303194
dec esi
jmp 0x4330317d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x433038cc
Capabilities:
Query or enumerate registry value

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

Function at 0x43304758
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x43373048], 0
je 0x433047b9
cmp word [0x4337321c], 0xd7b2
jne 0x43304781
cmp dword [0x43373224], 0
jbe 0x43304781
mov eax, 0x43373218
call dword [0x43373234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x433047e0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4337002c], 0
jne 0x433047d5
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x43305d84
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 0x43305fb4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x43305e07
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x43305fb4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x43305e07
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x43305fd0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x43305e90
xor eax, eax
push ebp
push 0x43305e89
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.43305bc0
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 0x43305e6e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x43305ff0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x43305e6e
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 0x43305e90
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 0x43305faa
cmp byte [ebp - 0xd], 0
jne 0x43305ed7
cmp byte [ebp - 0x12], 0
je 0x43305faa
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x43305ef0
dec ebx
cmp byte [ebx], 0x2e
je 0x43305eff
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x43305eef
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x43305faa
inc ebx
cmp byte [ebp - 0x12], 0
je 0x43305f3c
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 0x43305faa
cmp byte [ebp - 0xd], 0
je 0x43305faa
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 0x43305faa
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 0x43308420
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x433084b0
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x433084b0
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x43308463
test edx, 3
jne 0x43308452
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x4330845d
jmp 0x43308463
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x43308463
cmp dword [ecx - 8], 1
je 0x4330846d
mov edx, ebx
or edx, 3
call fcn.43305024
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x4330847f
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.433048d8

Function at 0x433084bc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x4330854c
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x4330854c
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x433084ff
test edx, 3
jne 0x433084ee
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x433084f9
jmp 0x433084ff
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x433084ff
cmp dword [ecx - 8], 1
je 0x43308509
mov edx, ebx
or edx, 3
call fcn.43305024
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x4330851b
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.433048d8

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.43304d9c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x43308da9
test al, 0x10
je 0x43308dad
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.43304d9c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x43308dcd
test al, 0x10
jne 0x43308dd1
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x4330b9f8
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 0x4330ba31
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.433049c8
jmp 0x4330ba3a
mov eax, ebx
mov edx, esi
call fcn.4330492c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4330ba44
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 0x4330ba66
movzx eax, byte [esp]
jmp 0x4330ba68
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4330c0f8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x4330bf70
mov eax, dword [0x43372a54]
cmp byte [eax], 0
je 0x4330c174
mov eax, dword [0x43372824]
call fcn.43303258
call fcn.43302e00
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.43309190
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 0x4330c1bc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4330c1aa
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x433727a0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x433757f4]
call fcn.43305b68
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

Function at 0x4330ca08
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4330cade
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.43304970
lea eax, [ebp - 4]
call fcn.43304dec
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.43304d9c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x4330cac8
mov eax, ebx
call fcn.43302ca4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4330cac1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.43304d9c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x4330caab
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4330caf0
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4330caab
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4330cac8
mov eax, dword [ebp - 0x10]
call fcn.43302cc0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4330cae5
lea eax, [ebp - 4]
call fcn.433048d8
ret
Function at 0x4331b8f8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x43376300
cmp dword [edi], 0
jne 0x4331b974
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x433762fc]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x43370ad4
mov ecx, 2
call fcn.43302f44
mov edx, 0x4331b8d0
lea eax, [esi + 5]
call fcn.4331b8f0
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.4331b8f0
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x4331b949
mov dword [0x433762fc], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4331de88
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.43304d9c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4331dee0
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x43372bc8]
mov dl, 1
mov eax, dword [0x4331d9ac]
call fcn.4330c2b8
call fcn.43304320
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.4331dab4
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4331ed3c
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 0x4331ed42
ret