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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x45f953
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x45f93a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x466310
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49d37e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.00466c30
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x4e9024
call fcn.0048c307
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4663a3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0048c307
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x46639c
push 0
mov ecx, eax
call fcn.0045d410
mov dword [esi + 0xc], eax
jmp 0x4663a5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4663a5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x48e9b6
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x48e9ee
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0048ca6d
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0048ca45
jmp 0x48e9fa
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4900a7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4900e9
call fcn.00495dd5
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4900e9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4900e0
xor eax, eax
jmp 0x4900f1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004900f7
pop edi
pop esi
pop ebx
ret 4
Function at 0x496305
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x496333
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x496351
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0049626b
jmp 0x496351
mov eax, dword [esi + 0x14]
test eax, eax
je 0x496351
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0049626b
test edi, edi
mov eax, edi
jne 0x49633b
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40152c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x40a514]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x4015c1
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x40157e
cmp dword [ebp + 0x10], ebx
jne 0x4015b5
push ebx
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 4]
call fcn.0040152c
test eax, eax
jne 0x401590
push edi
lea eax, [ebp - 0x10c]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x401565
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405818
cmp eax, ebx
je 0x4015c8
push ebx
push dword [0x40a514]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x4015c1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x40a514], ebx
jne 0x4015be
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x4015be
jmp 0x4015c1
Function at 0x402ddd
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x402dfa
mov dword [ebp - 8], CharNextA
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x402e09
mov ebx, 0x40ee48
mov eax, dword [ebp + 8]
test eax, eax
jl 0x402e1e
mov ecx, dword [0x40ada0]
add ecx, eax
push ecx
call fcn.00402dc6
push 4
lea eax, [ebp + 0x14]
push eax
call fcn.00402d94
test eax, eax
jne 0x402e35
push 0xfffffffffffffffd
pop eax
jmp 0x402f8e
test dword [ebp + 0x14], 0x80000000
je 0x402f6d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x40ada8
mov dword [ebp - 0xc], eax
call fcn.004061ea
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x402f8b
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x402e75
mov esi, dword [ebp + 0x14]
push esi
mov edi, 0x40ae48
push edi
call fcn.00402d94
test eax, eax
je 0x402e2d
sub dword [ebp + 0x14], esi
mov dword [0x40adc0], edi
mov dword [0x40adc4], esi
mov eax, dword [ebp - 8]
mov ecx, 0x40ada8
mov dword [0x40adc8], ebx
mov dword [0x40adcc], eax
call fcn.0040620a
mov dword [ebp - 0x14], eax
test eax, eax
jl 0x402f5f
mov esi, dword [0x40adc8]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x40a518], 1
mov edi, eax
je 0x402f13
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x402ee0
cmp dword [ebp + 0x14], 0
jne 0x402f13
push dword [ebp + 8]
mov eax, dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x54]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0
call fcn.004047bd
mov dword [ebp - 0xc], edi
xor eax, eax
cmp esi, eax
je 0x402f54
cmp dword [ebp + 0x10], eax
jne 0x402f3c
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402f66
cmp dword [ebp - 0x10], esi
jne 0x402f66
add dword [ebp - 4], esi
jmp 0x402f48
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x40adc8]
cmp dword [ebp - 0x14], 1
jne 0x402e94
jmp 0x402f8b
cmp dword [ebp + 0x14], eax
jg 0x402e68
jmp 0x402f8b
push 0xfffffffffffffffc
jmp 0x402e2f
push 0xfffffffffffffffe
jmp 0x402e2f
test edi, edi
je 0x402fd4
cmp dword [ebp + 0x14], esi
jge 0x402f79
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.00402d94
test eax, eax
je 0x402e2d
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x402fa0
mov esi, dword [ebp + 0x14]
push esi
mov edi, 0x40ae48
push edi
call fcn.00402d94
test eax, eax
je 0x402e2d
push 0
lea eax, [ebp + 0x10]
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402f66
cmp esi, dword [ebp + 0x10]
jne 0x402f66
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x402f95
jmp 0x402f8b
Function at 0x405403
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0x4222f0
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
mov dword [0x4222f0], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40543e
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405585
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4055a2
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x4055a5
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
inc ecx
push 0
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x4055d4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405618
test edi, edi
jne 0x4055df
mov byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405612

Function at 0x40561c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x14]
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40568d
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x400
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40567c
cmp dword [ebp + 0x14], 1
je 0x40567e
cmp dword [ebp + 0x14], 2
je 0x40567e
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x4058d6
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x422478
push esi
call fcn.00405735
push esi
call fcn.0040550e
mov edi, eax
test edi, edi
jne 0x4058f7
xor eax, eax
jmp 0x40594f
push edi
call fcn.00405757
test byte [0x40ae3c], 0x80
je 0x405910
mov al, byte [edi]
test al, al
je 0x4058f3
cmp al, 0x5c
je 0x4058f3
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
sub edi, esi
jmp 0x405930
push esi
call fcn.004057f1
test eax, eax
je 0x40592a
test byte [eax], 0x10
je 0x405954
push esi
call fcn.004058af
push esi
call ebx
cmp eax, edi
jg 0x40591b
push esi
call fcn.00405882
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x40594e
Function at 0x405c08
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00405818
mov esi, dword [esp + 0x18]
test eax, eax
je 0x405c2c
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405d65
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x423078], 0x4c554e
mov edi, 0x400
mov ebp, 0x423078
test esi, esi
je 0x405c70
push 1
push 0
push esi
call fcn.004055a5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405d6b
cmp eax, edi
jg 0x405d6b
push edi
mov esi, 0x422c78
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405d6b
cmp eax, edi
jg 0x405d6b
push esi
push ebp
push str._s_s_r_n
push 0x422878
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x40ad60]
push dword [eax + 0x128]
push esi
call fcn.004059ae
push 4
push 0xc0000000
push esi
call fcn.004055a5
mov ebp, eax
mov dword [esp + 0x14], ebp
cmp ebp, 0xffffffff
je 0x405d65
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405d5e
push 0
lea eax, [esp + 0x1c]
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405d5e
cmp edi, dword [esp + 0x18]
jne 0x405d5e
push str._Rename__r_n
push esi
call fcn.00405958
test eax, eax
jne 0x405d72
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call fcn.00405735
add edi, 0xa
mov eax, edi
push ebx
push 0x422878
add eax, esi
push eax
call fcn.00405561
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x1c]
push eax
add edi, ebx
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x40a4f4]
pop edi
pop esi
pop ebp
pop ebx
ret 8
push 0x407620
add eax, 0xa
push eax
call fcn.00405958
test eax, eax
je 0x405d29
inc eax
lea ecx, [esi + edi]
mov ebp, eax
cmp eax, ecx
jae 0x405d99
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405d8e
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405d2b
Function at 0x405da1
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.004058d6
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], eax
test cl, 8
je 0x405dd6
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x40a4ec], eax
jmp 0x405f68
mov dword [ebp + 8], ecx
and dword [ebp + 8], 1
push esi
je 0x405df1
test eax, eax
je 0x405f13
test cl, 2
je 0x405f13
push edi
push ebx
mov esi, 0x423478
push esi
call fcn.00405735
cmp dword [ebp + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x405e14
push str..
push esi
call edi
jmp 0x405e1a
push ebx
call fcn.004058af
cmp byte [ebx], 0
jne 0x405e28
cmp byte [0x423478], 0x5c
jne 0x405e30
push 0x4072a0
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
lea eax, [ebp - 0x148]
push eax
push esi
add edi, ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x405f08
lea esi, [ebp - 0x11c]
push 0x3f
mov eax, esi
push eax
call fcn.004054ca
cmp byte [eax], 0
je 0x405e73
cmp byte [ebp - 0x18], 0
je 0x405e73
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x405e89
mov al, byte [esi + 1]
test al, al
je 0x405ee7
cmp al, 0x2e
jne 0x405e89
cmp byte [esi + 2], 0
je 0x405ee7
push esi
push edi
call fcn.00405735
test byte [ebp - 0x148], 0x10
je 0x405eae
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405ee7
push dword [ebp + 0xc]
push ebx
call fcn.00405da1
jmp 0x405ee7
push ebx
call fcn.00405585
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405edf
test byte [ebp + 0xc], 4
je 0x405ed7
push ebx
push 0xfffffffffffffff1
call fcn.004047bd
push 0
push ebx
call fcn.00405c08
jmp 0x405ee7
inc dword [0x40a4ec]
jmp 0x405ee7
push ebx
push 0xfffffffffffffff2
call fcn.004047bd
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405e55
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405f12
mov byte [edi - 1], 0
pop edi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405f67
cmp dword [ebp - 8], esi
je 0x405f57
push ebx
call fcn.004057f1
test eax, eax
je 0x405f67
push ebx
call fcn.00405882
push ebx
call fcn.00405585
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x405f5f
test byte [ebp + 0xc], 4
je 0x405f57
push ebx
push 0xfffffffffffffff1
call fcn.004047bd
push esi
push ebx
call fcn.00405c08
jmp 0x405f67
inc dword [0x40a4ec]
jmp 0x405f67
push ebx
push 0xffffffffffffffe5
call fcn.004047bd
pop esi
pop ebx
leave
ret 8
Function at 0x406127
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0xf003f
xor esi, esi
push esi
push str.SoftwareKuaiZipSFX_
push 0x80000001
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406162
cmp dword [ebp - 4], esi
je 0x406162
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x406175
lea eax, [ebp - 8]
push eax
push esi
push esi
push 0x405f6d
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
leave
ret

Function at 0x406179
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x42387c], 0
jne 0x4061b7
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40618d
mov dword [ecx*4 + 0x423878], eax
inc ecx
cmp ecx, 0x100
jl 0x406188
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x4061e4
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x423878]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x4061c5
not eax
pop ebp
ret 0xc
Function at 0x402f80
Capabilities:
Query or enumerate registry value

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

Function at 0x403cc4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x454048], 0
je 0x403d25
cmp word [0x45421c], 0xd7b2
jne 0x403ced
cmp dword [0x454224], 0
jbe 0x403ced
mov eax, 0x454218
call dword [0x454234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45206c
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 0x403d4c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x452030], 0
jne 0x403d41
push 0
push 0x452064
push 0x45206c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4050a0
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 0x4052d0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405123
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4052d0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405123
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4052ec
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4051ac
xor eax, eax
push ebp
push 0x4051a5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00404ee8
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 0x40518a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x40530c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40518a
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 0x4051ac
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 0x4052c6
cmp byte [ebp - 0xd], 0
jne 0x4051f3
cmp byte [ebp - 0x12], 0
je 0x4052c6
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40520c
dec ebx
cmp byte [ebx], 0x2e
je 0x40521b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40520b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4052c6
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405258
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 0x4052c6
cmp byte [ebp - 0xd], 0
je 0x4052c6
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 0x4052c6
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