joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100eb580
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
xor ebp, ebp
lea eax, [ebx + 0xf0]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
push edi
add eax, 8
nop dword [eax + eax]
movups xmm1, xmmword [ebx]
inc ebp
lea ebx, [ebx + 0x10]
lea eax, [eax + 0x20]
movaps xmm0, xmm1
movd ecx, xmm1
psrldq xmm0, 4
movd dword [eax - 0x20], xmm0
movaps xmm0, xmm1
mov dword [eax - 0x28], ecx
mov edi, ecx
shr edi, 1
psrldq xmm0, 8
movd dword [eax - 0x18], xmm0
psrldq xmm1, 0xc
movd dword [eax - 0x10], xmm1
movups xmm1, xmmword [ebx - 0x10]
movd edx, xmm1
movaps xmm0, xmm1
psrldq xmm0, 4
xor edi, edx
and edi, 0x55555555
lea ecx, [edi + edi]
xor edi, edx
xor dword [eax - 0x28], ecx
mov dword [eax - 0x24], edi
mov edi, dword [eax - 0x20]
shr edi, 1
movd edx, xmm0
movaps xmm0, xmm1
psrldq xmm0, 8
psrldq xmm1, 0xc
xor edi, edx
and edi, 0x55555555
xor edx, edi
mov dword [eax - 0x1c], edx
movd edx, xmm0
lea ecx, [edi + edi]
mov edi, dword [eax - 0x18]
xor dword [eax - 0x20], ecx
shr edi, 1
xor edi, edx
and edi, 0x55555555
xor edx, edi
mov dword [eax - 0x14], edx
movd edx, xmm1
lea ecx, [edi + edi]
mov edi, dword [eax - 0x10]
xor dword [eax - 0x18], ecx
shr edi, 1
xor edi, edx
and edi, 0x55555555
xor edx, edi
mov dword [eax - 0xc], edx
lea ecx, [edi + edi]
xor dword [eax - 0x10], ecx
mov ecx, dword [esp + 0x18]
cmp ebp, dword [ecx]
jbe 0x100eb5a0
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x100eb990
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x44
mov eax, dword [0x1019d1d4]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x54]
lea eax, [esp + 0x2c]
push edi
push dword [esp + 0x5c]
push eax
mov dword [esi + 0xf0], 0xa
call fcn.100eb2f0
movups xmm0, xmmword [esp + 0x38]
add esp, 8
lea ebp, [esi + 0x10]
mov ebx, 1
movups xmmword [esi], xmm0
mov edx, dword [esp + 0x30]
xorps xmm0, xmm0
mov esi, dword [esp + 0x34]
shr edx, 1
and edx, 0x55555555
shr esi, 1
movups xmmword [esp + 0x10], xmm0
xor dword [esp + 0x14], edx
movups xmmword [esp + 0x20], xmm0
lea eax, [edx + edx]
mov edx, dword [esp + 0x1c]
xor esi, edx
psrldq xmm0, 4
xor eax, dword [esp + 0x30]
and esi, 0x55555555
xor edx, esi
mov dword [esp + 0x10], eax
movd ecx, xmm0
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x2c]
lea eax, [esi + esi]
mov esi, dword [esp + 0x38]
xor eax, dword [esp + 0x34]
shr esi, 1
xor esi, ecx
mov dword [esp + 0x18], eax
and esi, 0x55555555
xor ecx, esi
mov dword [esp + 0x24], ecx
lea eax, [esi + esi]
mov esi, dword [esp + 0x3c]
xor eax, dword [esp + 0x38]
shr esi, 1
xor esi, edx
mov dword [esp + 0x20], eax
and esi, 0x55555555
xor edx, esi
mov dword [esp + 0x2c], edx
lea eax, [esi + esi]
xor eax, dword [esp + 0x3c]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x10]
push eax
call fcn.100ec4b0
mov eax, dword [esp + 0x18]
add esp, 4
mov edi, dword [esp + 0x10]
add eax, eax
mov esi, dword [esp + 0x18]
xor eax, edi
mov edx, dword [esp + 0x20]
and eax, 0xaaaaaaaa
xor edi, eax
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
add eax, eax
mov dword [esp + 0x40], edi
xor eax, esi
movzx edi, byte [ebx + 0x101276af]
and eax, 0xaaaaaaaa
xor esi, eax
mov eax, dword [esp + 0x24]
add eax, eax
mov dword [esp + 0x44], esi
xor eax, edx
and eax, 0xaaaaaaaa
xor edx, eax
mov eax, dword [esp + 0x2c]
add eax, eax
mov dword [esp + 0x48], edx
xor eax, ecx
and eax, 0xaaaaaaaa
xor ecx, eax
xor eax, eax
mov dword [esp + 0x4c], ecx
nop dword [eax]
mov edx, dword [esp + eax*4 + 0x40]
mov cl, al
add cl, cl
mov esi, edi
shr esi, cl
mov ecx, edx
and ecx, 0x3000000
shr edx, 8
or ecx, edx
and esi, 3
shr ecx, 0x12
xor esi, ecx
xor esi, dword [esp + eax*4 + 0x30]
mov ecx, esi
shl ecx, 8
xor ecx, esi
shl ecx, 8
xor ecx, esi
shl ecx, 8
xor ecx, esi
mov dword [esp + eax*4 + 0x30], ecx
inc eax
cmp eax, 4
jb 0x100ebae0
movups xmm0, xmmword [esp + 0x30]
inc ebx
movups xmmword [ebp], xmm0
add ebp, 0x10
cmp ebx, 0xa
jbe 0x100eb9d1
mov ecx, dword [esp + 0x50]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100efce5
add esp, 0x44
ret
Function at 0x100eee20
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
push ebx
push ebp
xorps xmm0, xmm0
mov dword [esp + 8], 0
movlpd qword [esp + 0x14], xmm0
mov eax, 1
mov edx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push esi
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 0x40
mov edi, eax
xor ebx, ebx
and edi, 1
neg edi
adc ebx, ebx
and edi, dword [esp + 0x28]
neg ebx
mov ecx, edi
and edi, dword [esp + 0x14]
xor ecx, eax
mov esi, ebx
and esi, dword [esp + 0x2c]
mov eax, esi
and esi, dword [esp + 0x10]
xor eax, dword [esp + 0x10]
shrd ecx, eax, 1
shr eax, 1
add ecx, edi
mov dword [esp + 0x14], ecx
adc eax, esi
and ebx, 0x80000000
shrd ebp, edx, 1
mov dword [esp + 0x10], eax
xor eax, eax
shr edx, 1
add ebp, eax
mov eax, ecx
adc edx, ebx
sub dword [esp + 0x18], 1
jne 0x100eee51
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x7efff0
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.007f0000

Function at 0x7f0280
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.007f0290
Function at 0x431e20
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
movsd xmm0, qword [0x4967d8]
push dword [0x4a7280]
movsd qword [ebp - 8], xmm0
movsd xmm0, qword [0x496a30]
mov dword [ebp - 4], 0xcdb8ad50
movsd qword [ebp - 8], xmm0
movsd xmm0, qword [0x499908]
movsd qword [ebp - 8], xmm0
call fcn.00420b60
add esp, 4
push 1
call fcn.0047d0b2
int3
Function at 0x48708a
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a6060]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0047ef11
mov dword [ebp - 0x14], eax
cmp dword [0x4a8648], esi
jne 0x48717d
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x48710a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x48725d
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x48725d
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x48725d
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4a8648], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4a864c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4a8650], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4a8658], eax
test eax, eax
je 0x48717a
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4a8654], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4871a2
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x487195
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4871b7
push 4
pop eax
jmp 0x48725f
cmp dword [ebp - 0x14], esi
je 0x4871b7
push dword [0x4a8648]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x48719c
mov eax, dword [0x4a8654]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x487215
cmp dword [0x4a8658], edi
je 0x487215
push eax
call ebx
push dword [0x4a8658]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x487215
test eax, eax
je 0x487215
call ecx
test eax, eax
je 0x48720a
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x48720a
test byte [ebp - 8], 1
jne 0x487215
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x487245
mov eax, dword [0x4a864c]
cmp eax, edi
je 0x487242
push eax
call ebx
test eax, eax
je 0x487242
call eax
mov esi, eax
test esi, esi
je 0x487242
mov eax, dword [0x4a8650]
cmp eax, edi
je 0x487242
push eax
call ebx
test eax, eax
je 0x487242
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4a8648]
call ebx
test eax, eax
je 0x48725d
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x48725f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047dedb
mov esp, ebp
pop ebp
ret
Function at 0x10002ec0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x10002f18
cmp byte [esi + ebx - 1], 0xa
je 0x10002eec
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x10009084], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x10003540
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp], eax
call sym.___wine_dbg_get_channel_flags
movzx eax, al
bt eax, esi
jae 0x10003718
mov edi, dword [0x10009084]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], edi
je 0x10003627
test byte [0x10004018], 8
jne 0x100036c0
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x10004028], 8
jne 0x10003680
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x100035c9
cmp esi, 3
jbe 0x10003638
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov ecx, ebx
mov edi, eax
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
and edx, 0x80808080
je 0x100035da
mov esi, edx
mov dword [esp + 0xc], edi
shr esi, 0x10
test edx, 0x8080
mov dword [esp + 4], 1
cmove edx, esi
lea esi, [ecx + 2]
mov dword [esp], ebx
cmove ecx, esi
mov eax, edx
add al, dl
sbb ecx, 3
sub ecx, ebx
mov dword [esp + 8], ecx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x100060e8]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x100035c9
mov dword [esp], 0x10004028
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x100035a0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call sym._sprintf
add edi, eax
jmp 0x100035a0
mov dword [esp], 0x10004018
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x1000358b
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea edi, [ebx + eax]
jmp 0x10003593
mov eax, 0xffffffff
jmp 0x10003627
Function at 0x402e94
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 0x402ed1
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_1
push esp
call sub.KERNEL32.DLL_SetCurrentDirectoryA_1
lea eax, [esp + 4]
push eax
push 0x105
call sub.KERNEL32.DLL_GetCurrentDirectoryA_1
test bl, bl
je 0x402ef1
lea eax, [esp + 0x109]
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryA_1
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00405264
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x4030d0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x403129
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.KERNEL32.DLL_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402f6c
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402f6c
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x403113
inc ebx
jmp 0x4030fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403130
lea eax, [ebp - 8]
call fcn.00404ff4
ret

Function at 0x403138
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404ff4
test esi, esi
jne 0x40316f
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA_1
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.004050e4
jmp 0x403190
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402f6c
mov dword [esp], eax
test esi, esi
je 0x403190
cmp dword [ebx], 0
je 0x403190
dec esi
jmp 0x403177
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x40389c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x5a6008], 0x8088405
inc edx
mov dword [ebx + 0x5a6008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403f4c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x5a6024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403fe4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x403fc4
xor eax, eax
push ebp
push 0x403fbd
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 0x404000
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403fc4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov ax, word [0x5a6024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x5a6024], ax
mov esp, ebp
pop ebp
ret
Function at 0x404dec
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5b304c], 0
je 0x404e4d
cmp word [0x5b3220], 0xd7b2
jne 0x404e15
cmp dword [0x5b3228], 0
jbe 0x404e15
mov eax, 0x5b321c
call dword [0x5b3238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x5a6074
push 0xfffffffffffffff5
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 0x404e74
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x5a6034], 0
jne 0x404e69
push 0
push 0x5a606c
push 0x5a6074
push 0
call sub.user32.dll_MessageBoxA_1
pop edx
ret

Function at 0x404fa8
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.00402c7c
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x5b304d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404f70
push eax
push esi
push ebx
call sub.KERNEL32.DLL_CreateThread_1
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4072e8
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 0x40734e
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_1
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00405264
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403a88
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x407338
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407355
lea eax, [ebp - 0x10]
call fcn.00404ff4
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004054d0
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40a765
test al, 0x10
jne 0x40a769
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40a900
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004054d0
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
pop ebx
ret

Function at 0x40a914
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.004054d0
push eax
call sub.KERNEL32.DLL_SetFileAttributesA
test eax, eax
jne 0x40a936
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40d9e0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x40da19
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004050e4
jmp 0x40da22
mov eax, ebx
mov edx, esi
call fcn.00405048
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40da2c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x40da4d
mov al, byte [esp]
jmp 0x40da4f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40ea74
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 0x40eb4a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.0040508c
lea eax, [ebp - 8]
call fcn.00405520
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004054d0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40eb34
mov eax, ebx
call fcn.00402c7c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40eb2d
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.004054d0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40eb17
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40eb5c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40eb17
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 0x40eb34
mov eax, dword [ebp - 0x10]
call fcn.00402cac
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40eb51
lea eax, [ebp - 8]
call fcn.00404ff4
ret

Function at 0x40f248
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 0x40f2ac
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
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00405264
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.0040a2c8
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f2b3
lea eax, [ebp - 0xc]
call fcn.00404ff4
ret

Function at 0x410490
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffc00
mov esi, edx
mov edi, eax
mov eax, esi
call fcn.00404ff4
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.004054d0
mov ebp, eax
push ebp
call sub.KERNEL32.DLL_GetEnvironmentVariableA
mov ebx, eax
cmp ebx, 0x400
jge 0x4104d5
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.004050e4
jmp 0x4104ee
mov edx, ebx
dec edx
mov eax, esi
call fcn.0040565c
push ebx
mov eax, dword [esi]
call fcn.004054d0
push eax
push ebp
call sub.KERNEL32.DLL_GetEnvironmentVariableA
add esp, 0x400
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x425dc8
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov al, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x425e15
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.KERNEL32.DLL_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.00425bf4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x425e2d
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x425e34
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.00425bf4
dec esi
jne 0x425e56
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x426fb4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x5b388c
cmp dword [edi], 0
jne 0x427030
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x5b3888]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x5a65b8
mov ecx, 2
call fcn.00402f2c
mov edx, 0x426f8c
lea eax, [esi + 5]
call fcn.00426fac
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00426fac
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 0x427005
mov dword [0x5b3888], 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 0x429b50
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 0x429b56
ret

Function at 0x42c5f8
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 0x42c649
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x42c630
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x42c620
jmp 0x42c649
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 0x42c631
pop ebx
mov esp, ebp
pop ebp
ret