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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov dl, 1
mov eax, dword [0x512738]
call fcn.0051cb14
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x6784f5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x5c]
cmp dword [eax + 8], 0
jle 0x6784d2
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.0051e7a4
mov eax, dword [ebp - 8]
call fcn.0051d4c0
mov eax, dword [eax + 0x48]
mov edx, esi
call fcn.00515a88
cmp byte [ebp + 8], 0
je 0x6783ba
xor edx, edx
mov eax, ebx
call fcn.00677270
mov edx, dword [eax]
call dword [edx + 0x30]
mov edx, eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x44]
xor edx, edx
mov eax, ebx
call fcn.00677270
mov edx, dword [eax]
call dword [edx + 0x24]
mov esi, eax
mov eax, ebx
call fcn.006771a0
imul esi, eax
mov edx, esi
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x6783f6
xor edx, edx
mov eax, ebx
call fcn.00677270
mov edx, dword [eax]
call dword [edx + 0x30]
mov esi, eax
mov eax, ebx
call fcn.006771a0
imul esi, eax
mov edx, esi
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x44]
xor edx, edx
mov eax, ebx
call fcn.00677270
mov edx, dword [eax]
call dword [edx + 0x24]
mov edx, eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x30]
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.0049b478
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 8]
call fcn.0051d4c0
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x54]
mov eax, dword [ebx + 0x64]
mov dword [ebp - 0xc], eax
mov eax, ebx
call fcn.006771a0
dec eax
test eax, eax
jl 0x6784aa
inc eax
mov dword [ebp - 0x10], eax
xor esi, esi
mov edx, esi
mov eax, ebx
call fcn.00677144
push 0
lea eax, [ebp - 0x20]
push eax
mov edx, esi
mov eax, ebx
call fcn.0067729c
mov eax, dword [eax + 4]
mov edx, dword [eax]
call dword [edx + 0x24]
imul esi
movzx edx, byte [ebp + 8]
imul edx
push eax
mov edx, esi
mov eax, ebx
call fcn.0067729c
mov eax, dword [eax + 4]
mov edx, dword [eax]
call dword [edx + 0x30]
imul esi
movzx edx, byte [ebp + 8]
xor dl, 1
and edx, 0x7f
imul edx
xor ecx, ecx
pop edx
call fcn.0049b45c
mov eax, dword [ebp - 8]
call fcn.0051d4c0
mov edx, eax
lea ecx, [ebp - 0x20]
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x14]
inc esi
dec dword [ebp - 0x10]
jne 0x678440
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.00677144
cmp byte [ebp + 0xc], 0
je 0x6784d2
movzx eax, word [ebx + 0x60]
mov edx, 0x10
call fcn.004456f0
mov edx, eax
mov eax, dword [ebp - 8]
call fcn.00676934
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6784fc
mov eax, dword [ebp - 8]
call fcn.00408470
pop eax
jmp eax
Function at 0x67d194
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
jne 0x67d1b0
mov eax, ebx
call fcn.0067d12c
jmp 0x67d256
cmp dword [eax + 4], 1
jle 0x67d256
mov dl, 1
mov eax, dword [0x6795ac]
call fcn.0067afa4
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x67d22c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x30]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebx + 0x30]
movzx eax, byte [eax + 0xc]
mov edx, dword [ebp - 4]
mov byte [edx + 0xc], al
mov eax, dword [ebx + 0x30]
movzx eax, byte [eax + 0xd]
mov edx, dword [ebp - 4]
mov byte [edx + 0xd], al
mov eax, dword [ebx + 0x30]
movzx eax, byte [eax + 0xe]
mov edx, dword [ebp - 4]
mov byte [edx + 0xe], al
mov esi, dword [ebx + 0x30]
mov edi, dword [ebp - 4]
add esi, 0xf
add edi, 0xf
mov ecx, 0xc1
rep movsd dword es:[edi], dword [esi]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x67d243
mov eax, dword [ebx + 0x30]
call fcn.0051c050
mov eax, dword [ebp - 4]
mov dword [ebx + 0x30], eax
call fcn.0051c04c
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x67f04c
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x67f0d1
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1e]
xor ecx, ecx
mov edx, 0x1e
call fcn.00407c24
mov dword [ebp - 0x1a], 2
mov word [ebp - 0xe], 0x40
lea eax, [ebp - 0x24]
mov ecx, 0x67f0ec
mov edx, ebx
call fcn.0040b128
mov eax, dword [ebp - 0x24]
call fcn.0040aec4
mov dword [ebp - 0x16], eax
mov eax, esi
call fcn.0040aec4
mov dword [ebp - 0x12], eax
lea eax, [ebp - 0x1e]
push eax
call sub.shell32.dll_SHFileOperationW
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x67f0d8
lea eax, [ebp - 0x24]
call fcn.0040a224
pop eax
jmp eax
Function at 0x44a010
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0
push 0
push 3
push 0
push 3
push 0x40000000
push str.CONOUT_
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
lea eax, [esp + 8]
push eax
push edi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test eax, eax
mov dword [0x650054], esi
je 0x44a05f
mov ecx, dword [0x650d3c]
push 0x650a58
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov eax, esi
pop edi
pop esi
pop ecx
ret

Function at 0x5b8546
Capabilities:
Encode data using xor

Disassembly:
push esp
push 0xee733987
invalid
lahf
Function at 0x40129f
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
and dword [ebp - 0x14], 0
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x14]
push edi
mov dword [ebp - 0x38], esi
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [ebp - 8], eax
mov eax, dword [0x41b5c0]
mov dword [ebp - 0x30], eax
mov eax, dword [0x41b5c4]
mov dword [ebp - 0x34], eax
call fcn.00401298
mov edi, dword [ebp - 0x14]
mov eax, dword [0x41b5c8]
add edi, 0x23f
mov dword [ebp - 0x28], eax
mov eax, dword [0x41b5cc]
push 0x20
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x2c], eax
pop esi
mov dword [ebp - 0x20], 2
add dword [ebp - 0x20], 3
mov edx, dword [ebp - 8]
mov eax, edx
mov ecx, dword [0xaf7f4c]
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x401328
push 0x418300
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [0xaf7f4c]
add eax, dword [ebp - 0x28]
cmp ecx, 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0xaf7f48]
mov dword [ebp - 0x24], 0xedeb2e40
cmove eax, dword [ebp - 0x24]
and dword [ebp - 0x24], 0
cmp ecx, 0x3eb
mov dword [0xaf7f48], eax
mov eax, dword [0xaf7ea0]
cmove eax, dword [ebp - 0x24]
mov dword [0xaf7ea0], eax
lea eax, [edi + edx]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
shr eax, 5
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
and dword [ebp - 0x18], 0
mov dword [0xaf7f44], 0xf4ea3dee
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x1c]
sub ebx, eax
mov dword [ebp - 0x10], eax
mov eax, ebx
mov dword [ebp - 0x1c], ebx
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1c]
nop
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x20]
mov eax, ebx
shr eax, cl
add eax, dword [ebp - 0x34]
mov dword [ebp - 0x10], eax
xor eax, dword [ebp - 0x24]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 8], eax
add edi, 0x61c88647
mov dword [ebp - 0x14], edi
dec esi
jne 0x4012f0
mov esi, dword [ebp - 0x38]
mov eax, dword [ebp - 8]
pop edi
mov dword [esi + 4], ebx
mov dword [esi], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d6b9
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a35c]
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.004051e5
mov dword [ebp - 0x14], eax
cmp dword [0x453700], esi
jne 0x40d7ac
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d739
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d88c
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d88c
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d88c
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x453700], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x453704], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x453708], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x453710], eax
test eax, eax
je 0x40d7a9
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x45370c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d7d1
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d7c4
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d7e6
push 4
pop eax
jmp 0x40d88e
cmp dword [ebp - 0x14], esi
je 0x40d7e6
push dword [0x453700]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d7cb
mov eax, dword [0x45370c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d844
cmp dword [0x453710], edi
je 0x40d844
push eax
call ebx
push dword [0x453710]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d844
test eax, eax
je 0x40d844
call ecx
test eax, eax
je 0x40d839
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 0x40d839
test byte [ebp - 8], 1
jne 0x40d844
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d874
mov eax, dword [0x453704]
cmp eax, edi
je 0x40d871
push eax
call ebx
test eax, eax
je 0x40d871
call eax
mov esi, eax
test esi, esi
je 0x40d871
mov eax, dword [0x453708]
cmp eax, edi
je 0x40d871
push eax
call ebx
test eax, eax
je 0x40d871
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x453700]
call ebx
test eax, eax
je 0x40d88c
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d88e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004044f2
mov esp, ebp
pop ebp
ret
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 + 0x5a5008], 0x8088405
inc edx
mov dword [ebx + 0x5a5008], 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 [0x5a5024]
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 [0x5a5024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x5a5024], ax
mov esp, ebp
pop ebp
ret
Function at 0x404dec
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5b204c], 0
je 0x404e4d
cmp word [0x5b2220], 0xd7b2
jne 0x404e15
cmp dword [0x5b2228], 0
jbe 0x404e15
mov eax, 0x5b221c
call dword [0x5b2238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x5a5074
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 [0x5a5034], 0
jne 0x404e69
push 0
push 0x5a506c
push 0x5a5074
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 [0x5b204d], 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 0x4071dc
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 0x407242
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 0x40722c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407249
lea eax, [ebp - 0x10]
call fcn.00404ff4
ret

Function at 0x40a514
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 0x40a52d
test al, 0x10
jne 0x40a531
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40a6c8
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 0x40a6dc
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 0x40a6fe
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40d7a8
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 0x40d7e1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004050e4
jmp 0x40d7ea
mov eax, ebx
mov edx, esi
call fcn.00405048
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40d7f4
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 0x40d815
mov al, byte [esp]
jmp 0x40d817
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40e83c
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 0x40e912
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 0x40e8fc
mov eax, ebx
call fcn.00402c7c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40e8f5
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 0x40e8df
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40e924
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40e8df
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 0x40e8fc
mov eax, dword [ebp - 0x10]
call fcn.00402cac
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e919
lea eax, [ebp - 8]
call fcn.00404ff4
ret

Function at 0x40f010
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 0x40f074
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.0040a04c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f07b
lea eax, [ebp - 0xc]
call fcn.00404ff4
ret

Function at 0x410258
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 0x41029d
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.004050e4
jmp 0x4102b6
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 0x4248b8
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 0x424905
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.004246e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x42491d
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x424924
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.004246e4
dec esi
jne 0x424946
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x425aa4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x5b2890
cmp dword [edi], 0
jne 0x425b20
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x5b288c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x5a553c
mov ecx, 2
call fcn.00402f2c
mov edx, 0x425a7c
lea eax, [esi + 5]
call fcn.00425a9c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00425a9c
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 0x425af5
mov dword [0x5b288c], 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 0x428cc4
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 0x428cca
ret

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