joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40eed0
Capabilities:
Create directory
Create shortcut via ishelllink

Disassembly:
sub esp, 0x314
call fcn.0040ee90
test eax, eax
je 0x40f032
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 2
push 0
call eax
xor edx, edx
test eax, eax
setge dl
mov eax, edx
test eax, eax
je 0x40f032
push esi
push 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 8]
push eax
push 0x41c26c
push 1
push 0
push 0x41c27c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jl 0x40f022
mov eax, dword [esp + 8]
lea edx, [esp + 4]
push edx
push 0x41c290
mov ecx, dword [eax]
push eax
call dword [ecx]
mov esi, eax
test esi, esi
jl 0x40f018
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x31c]
push edi
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 0x324]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov esi, eax
test esi, esi
jl 0x40f00d
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push 0x421758
push edx
call esi
mov eax, dword [esp + 0x328]
lea ecx, [esp + 0x10]
push eax
push ecx
call esi
lea edx, [esp + 0x10]
push 0x421758
push edx
call esi
lea eax, [esp + 0x10]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [esp + 0x10]
push edi
push ecx
call esi
lea edx, [esp + 0x10]
push str..lnk
push edx
call esi
lea eax, [esp + 0x114]
push 0x104
push eax
lea ecx, [esp + 0x18]
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 8]
lea ecx, [esp + 0x114]
push 1
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x18]
mov esi, eax
mov eax, dword [esp + 8]
push eax
mov edx, dword [eax]
call dword [edx + 8]
pop edi
mov eax, dword [esp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
pop esi
add esp, 0x314
ret
mov eax, dword [esp]
add esp, 0x314
ret

Function at 0x40f040
Capabilities:
Delete file

Disassembly:
sub esp, 0x104
call fcn.0040ee90
test eax, eax
je 0x40f0c0
lea ecx, [esp]
push ecx
push 0
push 0
push 2
push 0
call eax
xor edx, edx
test eax, eax
setge dl
mov eax, edx
test eax, eax
je 0x40f0c0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 4]
push 0x421758
push eax
call esi
mov ecx, dword [esp + 0x110]
lea edx, [esp + 4]
push ecx
push edx
call esi
lea eax, [esp + 4]
push 0x421758
push eax
call esi
mov ecx, dword [esp + 0x10c]
lea edx, [esp + 4]
push ecx
push edx
call esi
lea eax, [esp + 4]
push str..lnk
push eax
call esi
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
add esp, 0x104
ret
Function at 0x413470
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x413485
xor eax, eax
ret 8
and eax, 0x10
cmp al, 0x10
jne 0x41349a
mov ecx, dword [esp + 8]
xor eax, eax
test ecx, ecx
setne al
ret 8
mov ecx, dword [esp + 8]
xor eax, eax
test ecx, ecx
sete al
ret 8

Function at 0x414130
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x417d2f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x18]
mov ebx, 1
push eax
mov dword [esp + 0x28], ebx
call sub.MFC42.DLL_CTime::GetTickCount
mov ecx, dword [eax]
lea eax, [esp + 0xc]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x30]
push eax
mov edx, dword [ecx]
call dword [edx + 0x28]
push ecx
mov ecx, dword [esp + 0x10]
mov eax, esp
mov dword [esp + 0x34], esp
lea edx, [esp + 0x34]
mov dword [eax], ecx
lea eax, [esp + 0x1c]
push edx
push eax
call sub.MFC42.DLL_CTime::GetTickCount
mov ecx, eax
call fcn.00414280
mov ecx, dword [eax]
mov eax, 0xc22e4507
imul ecx
add edx, ecx
sar edx, 0x10
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp edx, 0x164
jle 0x4141ef
lea edx, [esp + 0x30]
push str.__b__d__Y
push edx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CTime::Format
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 2
call fcn.004155a4
mov byte [esp + 0x24], bl
lea ecx, [esp + 0x30]
jmp 0x414242
push 0
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CTime::GetLocalTm
mov esi, dword [eax + 4]
push 0
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CTime::GetLocalTm
mov edi, dword [eax + 8]
lea eax, [esp + 0x30]
push str._b__d
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CTime::Format
mov ecx, dword [eax]
push esi
push edi
push ecx
lea edx, [esp + 0x1c]
push str.__s__02d:_02d
push edx
mov byte [esp + 0x38], 3
call sub.MFC42.DLL_CString::Format
add esp, 0x14
mov byte [esp + 0x24], bl
lea ecx, [esp + 0x30]
call fcn.004154de
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 0
call fcn.004154de
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret 8

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x2112c3b
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x79b71685
nop
nop
nop
test eax, eax
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40c7d0
nop
mov ecx, 0x2d2e7cad
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x432024
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
nop
mov ecx, 0x7a374e73
test eax, eax
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x43ebb0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x43ebce
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x43ebc3
pop esi
ret

Function at 0x43ed10
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x43eda2
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x43ed94
mov ebp, dword [sym.imp.KERNEL32.DLL_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x43ed8c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x43ed55
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x42e000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x42e030
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x40263b
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x1c], 4
mov dword [ebp - 8], 1
mov dword [ebp - 0xc], 0x14
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x2c], 0x901592b
mov dword [ebp - 0x28], pe_nt_image_headers32
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], 0
jne 0x40267f
mov ecx, dword [ebp - 0x14]
jmp 0x40275b
mov ecx, dword [ebp - 4]
movzx eax, word [ecx]
cmp eax, 0x5a4d
je 0x402694
mov eax, dword [ebp - 0x14]
jmp 0x40275b
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 8]
and byte [ebp - 0x20], 0xcc
add eax, dword [ecx + 0x3c]
mov dword [ebp - 0x18], eax
xor dword [ebp - 0x20], 0xb0f42504
cmp dword [ebp - 0x2c], 0x901592d
jb 0x4026b4
sub byte [ebp - 0x20], 0xb4
mov ecx, dword [ebp - 0x18]
cmp dword [ecx], 0x4550
je 0x4026cb
mov eax, dword [ebp - 0x14]
jmp 0x40275b
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
movzx eax, word [ecx]
cmp eax, 0x10b
je 0x402713
mov edx, dword [ebp - 0x10]
cmp dword [ebp - 0x2c], 0x901592d
jb 0x4026f6
add word [ebp - 0x20], 0x8587
movzx ecx, word [edx]
cmp ecx, 0x20b
je 0x402713
sub dword [ebp - 0x20], 0x33a00bd7
mov eax, dword [ebp - 0x14]
jmp 0x40275b
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 0x28]
and dword [ebp - 0x20], 0x4e11e68b
mov dword [ebp - 0x24], ecx
cmp dword [ebp + 0xc], 0
je 0x402735
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x18]
mov dword [ecx], eax
add byte [ebp - 0x20], 0x91
cmp dword [ebp + 0x10], 0
je 0x402743
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x10]
mov dword [ecx], eax
cmp dword [ebp + 0x14], 0
je 0x402758
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x24]
xor dword [ebp - 0x20], 0x8dd5e6bd
mov dword [ecx], eax
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x302938
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 0x302975
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 0x302995
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00304fd0
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x303e60
Capabilities:
Query or enumerate registry value

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

Function at 0x304bc4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x3b204c], 0
je 0x304c25
cmp word [0x3b2220], 0xd7b2
jne 0x304bed
cmp dword [0x3b2228], 0
jbe 0x304bed
mov eax, 0x3b221c
call dword [0x3b2238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x3af0bc
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 0x304c4c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x3af030], 0
jne 0x304c41
push 0
push 0x3af0b4
push 0x3af0bc
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x3064f8
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 0x306728
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x30657b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x306728
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x30657b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x306744
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x306604
xor eax, eax
push ebp
push 0x3065fd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00306340
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 0x3065e2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x306764
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x3065e2
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 0x306604
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 0x30671e
cmp byte [ebp - 0xd], 0
jne 0x30664b
cmp byte [ebp - 0x12], 0
je 0x30671e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x306664
dec ebx
cmp byte [ebx], 0x2e
je 0x306673
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x306663
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x30671e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x3066b0
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 0x30671e
cmp byte [ebp - 0xd], 0
je 0x30671e
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 0x30671e
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 0x306df0
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 0x306e56
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.00304fd0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00303554
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x306e40
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x306e5d
lea eax, [ebp - 0x10]
call fcn.00304d60
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00305220
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x3097b5
test al, 0x10
jne 0x3097b9
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x3097c0
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.00305220
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x3097e2
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x30c620
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 0x30c659
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00304e50
jmp 0x30c662
mov eax, ebx
mov edx, esi
call fcn.00304db4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x30c66c
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 0x30c68d
mov al, byte [esp]
jmp 0x30c68f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x30d674
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x30d74a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00304df8
lea eax, [ebp - 8]
call fcn.00305270
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00305220
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x30d734
mov eax, ebx
call fcn.00302724
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x30d72d
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 - 8]
call fcn.00305220
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x30d717
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x30d75c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x30d717
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x30d734
mov eax, dword [ebp - 0x10]
call fcn.00302744
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x30d751
lea eax, [ebp - 8]
call fcn.00304d60
ret

Function at 0x30dd00
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 0x30dd64
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.00304fd0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.003093ac
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x30dd6b
lea eax, [ebp - 0xc]
call fcn.00304d60
ret

Function at 0x31fb24
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x3b2888
cmp dword [edi], 0
jne 0x31fba0
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x3b2884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x3af44c
mov ecx, 2
call fcn.003029fc
mov edx, 0x31fafc
lea eax, [esi + 5]
call fcn.0031fb1c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0031fb1c
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 0x31fb75
mov dword [0x3b2884], 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 0x321154
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 0x32115a
ret
Function at 0x3239dc
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 0x323a2d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x323a14
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x323a04
jmp 0x323a2d
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 0x323a15
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x3405a4
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea ebx, [ebp - 4]
xor eax, eax
push ebp
push 0x340764
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
mov eax, dword [ebx]
call fcn.0034c5f4
mov eax, dword [ebx]
cmp byte [eax + 0x210], 0
je 0x340749
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebx]
sub eax, dword [edx + 0x220]
cmp eax, 0x1f4
jb 0x340607
mov eax, dword [ebx]
add eax, 0x21c
call fcn.00304d60
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebx]
mov dword [edx + 0x220], eax
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 8
je 0x3406d8
mov eax, dword [ebp - 8]
mov al, byte [eax]
mov edx, dword [0x3b12b8]
and eax, 0xff
bt dword [edx], eax
jae 0x34069a
push 1
push 0x102
push 0x102
mov eax, dword [ebx]
call fcn.0034d610
push eax
lea eax, [ebp - 0x24]
push eax
call sub.user32.dll_PeekMessageA
test eax, eax
je 0x340718
mov eax, dword [ebx]
push dword [eax + 0x21c]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 8]
mov dl, byte [edx]
call fcn.00304f48
push dword [ebp - 0x28]
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
call fcn.00304f48
push dword [ebp - 0x2c]
mov eax, dword [ebx]
add eax, 0x21c
mov edx, 3
call fcn.003050e0
mov eax, dword [ebp - 8]
mov byte [eax], 0
jmp 0x340718
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 8]
mov dl, byte [edx]
call fcn.00304f48
mov edx, dword [ebp - 0x30]
mov eax, dword [ebx]
add eax, 0x21c
call fcn.00305028
jmp 0x340718
mov eax, dword [ebx]
mov eax, dword [eax + 0x21c]
call fcn.00305020
mov edx, eax
mov eax, dword [ebx]
add eax, 0x21c
mov ecx, 1
call fcn.003052c0
mov eax, dword [ebx]
mov eax, dword [eax + 0x21c]
call fcn.00305020
mov edx, eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x21c]
call fcn.0030d7d8
cmp al, 2
je 0x3406b8
mov eax, dword [ebx]
mov eax, dword [eax + 0x21c]
call fcn.00305020
mov edx, eax
mov eax, dword [ebx]
add eax, 0x21c
mov ecx, 1
call fcn.003052c0
mov eax, dword [ebx]
mov eax, dword [eax + 0x21c]
call fcn.00305020
test eax, eax
jle 0x340732
push ebp
call fcn.003404c0
pop ecx
jmp 0x340749
xor edx, edx
mov eax, dword [ebx]
mov ecx, dword [eax]
call dword [ecx + 0xd0]
mov eax, dword [ebx]
mov si, 0xffeb
call fcn.003041ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x34076b
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.00304d84
ret

Function at 0x3414d8
Capabilities:
Enumerate gui resources

Disassembly:
mov byte [eax + 0xc], 0
mov byte [eax + 0xd], 0
xor edx, edx
mov dword [eax + 4], edx
push eax
push 0x341424
call sub.user32.dll_EnumWindows
ret