joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100a3660
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10100008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x101043e4]
push esi
push edi
mov edi, ecx
mov ecx, dword [0x101043e8]
cmp ebx, ecx
jne 0x100a36ac
mov dword [edi], 0
mov eax, edi
mov dword [edi + 4], 0
mov dword [edi + 8], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100be1f9
mov esp, ebp
pop ebp
ret
mov edx, ecx
xor eax, eax
sub edx, ebx
mov dword [ebp - 0xc], eax
dec edx
mov dword [ebp - 8], eax
xor esi, esi
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x10], esi
test edx, edx
je 0x100a3701
cmp edx, 0x7fffffff
ja 0x100a3803
push edx
lea ecx, [ebp - 0x10]
call fcn.100b6a00
mov ebx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x10]
push ebx
push 0
push esi
call fcn.100c0b60
mov ecx, dword [0x101043e8]
lea eax, [esi + ebx]
mov esi, dword [ebp - 0x10]
add esp, 0xc
mov ebx, dword [0x101043e4]
mov dword [ebp - 0xc], eax
mov edx, 1
sub ecx, ebx
sub ecx, edx
je 0x100a372d
nop dword [eax]
mov al, byte [ebx + edx]
lea edx, [edx + 1]
mov byte [esi + edx - 2], al
mov esi, dword [ebp - 0x10]
sub ecx, 1
je 0x100a372a
mov ebx, dword [0x101043e4]
jmp 0x100a3710
mov eax, dword [ebp - 0xc]
sub eax, esi
mov dword [ebp - 0x1c], esi
inc eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x100a37ac
mov eax, dword [ebp - 0x10]
xor esi, esi
mov ecx, eax
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0x18], esi
jbe 0x100a378e
mov eax, dword [ebp - 0x14]
add eax, esi
cmp ecx, dword [ebp - 8]
je 0x100a3778
mov al, byte [eax]
mov byte [ecx], al
mov ecx, dword [ebp - 0xc]
inc ecx
mov dword [ebp - 0xc], ecx
jmp 0x100a3785
push eax
push ecx
lea ecx, [ebp - 0x10]
call fcn.100b32a0
mov ecx, dword [ebp - 0xc]
inc esi
cmp esi, dword [ebp - 0x18]
jb 0x100a3761
mov eax, dword [ebp - 0x10]
mov dword [edi], eax
mov eax, dword [ebp - 8]
mov dword [edi + 8], eax
mov eax, edi
mov dword [edi + 4], ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100be1f9
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x10]
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
test ecx, ecx
je 0x100a37f0
mov edx, dword [ebp - 8]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x100a37e6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100a3808
push edx
push ecx
call fcn.100be753
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100be1f9
mov esp, ebp
pop ebp
ret
call fcn.100b5010
call fcn.100ca55d
int3
Function at 0x100a3810
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x10100008]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, edx
mov dword [ebp - 0x21c], ecx
cmp esi, edi
je 0x100a386d
mov eax, dword [edi]
mov edi, dword [edi + 4]
mov ebx, dword [esi]
sub edi, eax
mov dword [ebp - 0x218], eax
mov eax, dword [esi + 8]
sub eax, ebx
cmp edi, eax
jbe 0x100a3857
push edi
mov ecx, esi
call fcn.100b8a90
mov ebx, dword [esi]
push edi
push dword [ebp - 0x218]
push ebx
call fcn.100c0d20
lea eax, [ebx + edi]
add esp, 0xc
mov dword [esi + 4], eax
cmp dword [ebp + 0x20], 0x10
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x210], 0x200
push ecx
push 0
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push 0
push eax
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100a38e4
xor edi, edi
cmp dword [ebp - 0x210], edi
jbe 0x100a38e4
nop
mov cl, byte [ebp + edi - 0x20c]
mov eax, dword [esi + 4]
mov byte [ebp - 0x211], cl
cmp eax, dword [esi + 8]
je 0x100a38cc
mov byte [eax], cl
inc dword [esi + 4]
jmp 0x100a38db
lea ecx, [ebp - 0x211]
push ecx
push eax
mov ecx, esi
call fcn.100b32a0
inc edi
cmp edi, dword [ebp - 0x210]
jb 0x100a38b0
mov edx, dword [ebp + 0x20]
cmp edx, 0x10
jb 0x100a3914
mov ecx, dword [ebp + 0xc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100a390a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100a3925
push edx
push ecx
call fcn.100be753
add esp, 8
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100be1f9
mov esp, ebp
pop ebp
ret
call fcn.100ca55d
int3
Function at 0x100a8d60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x10100008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
sub esp, 0x18
mov ecx, esp
push 0x10102050
call fcn.100b24b0
lea ecx, [ebp - 0x50]
call fcn.10084ca0
add esp, 0x18
lea ecx, [ebp - 0x38]
mov esi, eax
call fcn.10086fb0
push esi
push eax
push dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
call fcn.100b5060
mov edx, dword [ebp - 0x24]
cmp edx, 0x10
jb 0x100a8dd6
mov ecx, dword [ebp - 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100a8dcc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100a8edc
push edx
push ecx
call fcn.100be753
add esp, 8
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
cmp edx, 0x10
jb 0x100a8e1c
mov ecx, dword [ebp - 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100a8e12
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100a8edc
push edx
push ecx
call fcn.100be753
add esp, 8
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x100a8e5b
test al, 0x10
je 0x100a8e5b
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.100b24b0
sub esp, 0x18
lea eax, [ebp - 0x1c]
mov ecx, esp
push eax
call fcn.100b24b0
call fcn.100a7da0
add esp, 0x30
mov edx, dword [ebp - 8]
cmp edx, 0x10
jb 0x100a8e8b
mov ecx, dword [ebp - 0x1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100a8e81
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100a8ee1
push edx
push ecx
call fcn.100be753
add esp, 8
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xf
mov byte [ebp - 0x1c], 0
cmp edx, 0x10
jb 0x100a8ecd
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100a8ec3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100a8ee1
push edx
push ecx
call fcn.100be753
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.100be1f9
mov esp, ebp
pop ebp
ret
call fcn.100ca55d
call fcn.100ca55d
int3
Function at 0x100b3cb0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x100b3ce1
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x100b3cd0
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x100d4567
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100d41e4

Function at 0x100dc5d3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100dc449

Function at 0x401080
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x13c
mov eax, dword [0x404008]
xor eax, esp
mov dword [esp + 0x138], eax
push esi
lea eax, [esp + 8]
mov dword [esp + 4], 0
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionOpenWith
xorps xmm0, xmm0
mov dword [esp + 0x18], 0
push reloc.OLEAUT32.dll_SysReAllocString
movaps xmmword [esp + 0x34], xmm0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401191
mov esi, dword [esp + 8]
test esi, esi
je 0x401191
push pe_nt_image_headers32
push eax
lea eax, [esp + 0x40]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x1c], pe_nt_image_headers32
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 0x403224
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x401191
lea ecx, [esp + 0x38]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401130
sub ecx, edx
sar ecx, 1
cmp ecx, 0x26
jne 0x401191
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
js 0x401191
lea eax, [esp + 4]
mov dword [esp + 0xc], 0x6a283fe2
push eax
lea eax, [esp + 0x10]
mov dword [esp + 0x14], 0x4599ecfa
push eax
push 4
push 0
lea eax, [esp + 0x30]
mov dword [esp + 0x24], 0x9e8c491
push eax
mov dword [esp + 0x2c], 0x267b1357
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ecx, dword [esp + 0x13c]
mov eax, dword [esp + 4]
pop esi
xor ecx, esp
call fcn.004012f0
mov esp, ebp
pop ebp
ret

Function at 0x4011b0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push 2
push 0
mov dword [ebp - 4], eax
call dword [sym.imp.ole32.dll_CoInitializeEx]
call fcn.00401080
mov ebx, eax
push 0
push ebx
call dword [sym.imp.ole32.dll_CoAllowSetForegroundWindow]
push str..pdf
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
test esi, esi
je 0x401232
mov edi, dword [ebx]
push 4
push esi
push dword [ebp - 4]
mov edi, dword [edi + 0xc]
mov ecx, edi
push ebx
call dword [0x403110]
call edi
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebx]
push ebx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x403110]
call esi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x8007000e
call fcn.00401030
int3
Function at 0x402914
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 0x402951
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402971
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404d68
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402b38
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.00404b00
test esi, esi
jne 0x402b6e
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.00404bf0
jmp 0x402b8c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029ec
mov edi, eax
test esi, esi
je 0x402b8c
cmp dword [ebx], 0
je 0x402b8c
dec esi
jmp 0x402b75
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403b78
Capabilities:
Query or enumerate registry value

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

Function at 0x404900
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x49f048], 0
je 0x404961
cmp word [0x49f21c], 0xd7b2
jne 0x404929
cmp dword [0x49f224], 0
jbe 0x404929
mov eax, 0x49f218
call dword [0x49f234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x49a078
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 0x404988
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x49a020], 0
jne 0x40497d
push 0
push 0x49a098
push 0x49a078
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404ab4
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.00402744
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x49f049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404a7c
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4065b0
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 0x4067e0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406633
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4067e0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406633
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4067fc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4066bc
xor eax, eax
push ebp
push 0x4066b5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004063f8
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 0x40669a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x40681c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40669a
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 0x4066bc
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 0x4067d6
cmp byte [ebp - 0xd], 0
jne 0x406703
cmp byte [ebp - 0x12], 0
je 0x4067d6
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40671c
dec ebx
cmp byte [ebx], 0x2e
je 0x40672b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40671b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4067d6
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406768
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 0x4067d6
cmp byte [ebp - 0xd], 0
je 0x4067d6
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 0x4067d6
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 0x409574
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404fb0
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40958d
test al, 0x10
jne 0x409591
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40967c
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00404fb0
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x40969e
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40b900
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 0x40b939
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404bf0
jmp 0x40b942
mov eax, ebx
mov edx, esi
call fcn.00404b54
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40ceb4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40cf18
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404d68
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00409334
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cf1f
lea eax, [ebp - 0xc]
call fcn.00404b00
ret

Function at 0x41e7a4
Capabilities:
Suspend thread

Disassembly:
push ebx
mov ebx, eax
mov byte [ebx + 0xe], 1
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, ebx
call fcn.0041e600
pop ebx
ret

Function at 0x41e7c4
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0041e600
dec esi
jne 0x41e7e6
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x41ff30
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x49fa24
cmp dword [edi], 0
jne 0x41ffac
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x49fa20]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x49a538
mov ecx, 2
call fcn.004029ac
mov edx, 0x41ff08
lea eax, [esi + 5]
call fcn.0041ff28
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041ff28
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 0x41ff81
mov dword [0x49fa20], 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 0x4214b0
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 0x4214b6
ret

Function at 0x4239c4
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 0x423a15
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4239fc
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4239ec
jmp 0x423a15
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 0x4239fd
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42e760
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404fa0
xor eax, eax
push ebp
push 0x42e88e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x42e861
xor eax, eax
push ebp
push 0x42e85a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404db8
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x42e82f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov ebx, eax
xor eax, eax
push ebp
push 0x42e81e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404db8
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.00404fb0
mov edx, ebx
pop ecx
call fcn.004029ac
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 1
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42e825
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x49e94c]
mov dl, 1
mov eax, dword [0x408214]
call fcn.0040c1c4
call fcn.004044dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42e895
lea eax, [ebp - 4]
call fcn.00404b00
ret