joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100016c0
Capabilities:
Allocate or change rwx memory
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push esi
push edi
mov edi, ecx
test edx, edx
je 0x100017d9
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
je 0x100017d9
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x100017c9
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov eax, ecx
or eax, edx
je 0x100017c9
test edx, edx
ja 0x100017c9
jb 0x10001731
cmp ecx, 0xffffffff
ja 0x100017c9
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1000173a
mov dword [eax], ecx
test edi, edi
je 0x1000174c
push edx
push ecx
mov ecx, edi
call fcn.10001ac0
add esp, 8
jmp 0x1000175c
push 0x40
push 0x3000
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, dword [ebp + 8]
mov dword [esi], eax
test eax, eax
je 0x100017c9
push dword [esp + 0x10]
push eax
push dword [esp + 0x14]
call fcn.10001660
add esp, 0xc
test eax, eax
je 0x100017a9
mov ecx, dword [ebp + 0x10]
mov eax, dword [esp + 0xc]
test ecx, ecx
je 0x10001792
mov dword [ecx], eax
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 0xffffffff
je 0x1000179e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x100017ba
push dword [esi]
push edi
call fcn.10001d80
add esp, 8
jmp 0x100017c9
push 0x8000
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x100017d9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10002200
Capabilities:
Hash data using fnv

Disassembly:
mov edx, ecx
test edx, edx
jne 0x10002209
xor eax, eax
ret
mov cl, byte [edx]
push esi
mov esi, 0x811c9dc5
test cl, cl
je 0x10002235
lea eax, [ecx - 0x41]
cmp al, 0x19
movsx eax, cl
ja 0x10002222
add eax, 0x20
mov cl, byte [edx + 1]
movzx eax, al
inc edx
xor esi, eax
imul esi, esi, 0x1000193
test cl, cl
jne 0x10002215
mov eax, esi
pop esi
ret
Function at 0x100030f0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
mov dword [ebp - 8], 0
mov eax, dword [esi]
mov dword [ebp - 4], 0x9908b0df
cmp eax, 0x270
jl 0x100031bd
cmp eax, 0x271
jne 0x10003120
call fcn.10003210
push ebx
push edi
lea edx, [esi + 4]
mov edi, 0xe3
lea ebx, [ebx]
mov ecx, dword [edx + 4]
xor ecx, dword [edx]
lea edx, [edx + 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 4]
mov eax, ecx
and eax, 1
shr ecx, 1
xor ecx, dword [ebp + eax*4 - 8]
xor ecx, dword [edx + 0x630]
mov dword [edx - 4], ecx
dec edi
jne 0x10003130
lea edx, [esi + 0x390]
mov edi, 0x18c
mov ecx, dword [edx + 4]
xor ecx, dword [edx]
lea edx, [edx + 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 4]
mov eax, ecx
and eax, 1
shr ecx, 1
xor ecx, dword [ebp + eax*4 - 8]
xor ecx, dword [edx - 0x390]
mov dword [edx - 4], ecx
dec edi
jne 0x10003163
mov ecx, dword [esi + 0x9c0]
xor ecx, dword [esi + 4]
and ecx, 0x7fffffff
xor ecx, dword [esi + 0x9c0]
mov eax, ecx
and eax, 1
shr ecx, 1
mov eax, dword [ebp + eax*4 - 8]
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
mov dword [esi], edi
pop edi
pop ebx
mov eax, dword [esi]
inc eax
mov ecx, dword [esi + eax*4]
mov dword [esi], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100031f0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
pop ebp
jmp fcn.100030f0

Function at 0x10003210
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [ecx + 4], 0x1571
mov dword [ecx], 1
push esi
mov edi, edi
mov esi, dword [ecx]
mov edx, dword [ecx + esi*4]
shr edx, 0x1e
xor edx, dword [ecx + esi*4]
imul edx, edx, 0x6c078965
add edx, esi
mov dword [ecx + esi*4 + 4], edx
inc dword [ecx]
cmp dword [ecx], 0x270
jl 0x10003220
pop esi
ret
Function at 0x10004190
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov ecx, dword [esi]
mov ebx, edx
lea eax, [ecx + 1]
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp + 8], ecx
test eax, eax
je 0x100041cc
push dword [ebp + 0x10]
push 0
push 0
push 0
push ecx
push dword [ebx + 0x1c]
push 1
push edi
call eax
add esp, 0x20
test eax, eax
je 0x100042bf
cmp edi, 0xffffffff
je 0x100042bf
push 0
lea eax, [ebp - 4]
push eax
push 1
push 0x1003a6a0
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100042bf
cmp dword [ebp - 4], 1
jne 0x100042bf
mov eax, dword [ebx + 0x1c]
xor esi, esi
test eax, eax
je 0x10004217
cmp byte [eax], 0
je 0x10004217
lea esp, [esp]
inc esi
cmp byte [eax + esi], 0
jne 0x10004210
push 0
lea ecx, [ebp - 4]
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100042bf
cmp esi, dword [ebp - 4]
jne 0x100042bf
push 0
lea eax, [ebp - 4]
push eax
push 3
push 0x1003a6a4
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100042bf
cmp dword [ebp - 4], 3
jne 0x100042bf
mov eax, dword [ebx + 0x20]
mov dword [ebp - 4], 0
mov esi, dword [eax + 8]
test esi, esi
je 0x1000428e
push dword [ebp + 0x10]
lea eax, [ebp - 4]
push dword [ebp + 0xc]
mov edx, ebx
push eax
push esi
push dword [ebp + 8]
mov ecx, edi
call fcn.100042d0
add esp, 0x14
test eax, eax
je 0x100042bf
mov eax, dword [esi + 0xc]
mov esi, dword [eax + 8]
test esi, esi
jne 0x10004266
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x100042a1
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 0x10]
push 0
push 0
push 0
push dword [ebp + 8]
push dword [ebx + 0x1c]
push 4
push edi
call eax
add esp, 0x20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100042d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebx + 0x20]
push edi
mov dword [ebp - 4], edx
mov edi, ecx
test esi, esi
je 0x100042fb
xor eax, eax
cmp byte [esi], al
je 0x100042fb
mov edi, edi
inc eax
cmp byte [esi + eax], 0
jne 0x100042f0
test eax, eax
jne 0x10004313
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 0x18]
test byte [eax + 8], 0x20
je 0x10004313
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x10]
test esi, esi
mov edx, dword [ecx]
mov dword [ebp - 0xc], edx
lea eax, [edx + 1]
mov dword [ecx], eax
mov eax, dword [ebp + 0x14]
mov ecx, 0x1003a6a8
cmovne ecx, esi
mov dword [ebp - 8], ecx
test eax, eax
je 0x10004355
push dword [ebp + 0x18]
push ecx
mov ecx, dword [ebp - 4]
push edx
push dword [ebx + 0x1c]
push dword [ebp + 8]
push dword [ecx + 0x1c]
push 2
push edi
call eax
add esp, 0x20
test eax, eax
je 0x100043f5
mov eax, dword [ebx + 0x1c]
xor esi, esi
test eax, eax
je 0x1000436a
cmp byte [eax], 0
je 0x1000436a
inc esi
cmp byte [eax + esi], 0
jne 0x10004363
cmp edi, 0xffffffff
je 0x100043f5
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [ebp + 0xc]
push ecx
push esi
push eax
push edi
call ebx
test eax, eax
je 0x100043f5
cmp esi, dword [ebp + 0xc]
jne 0x100043f5
push 0
lea eax, [ebp + 0xc]
push eax
push 3
push 0x1003a6ac
push edi
call ebx
test eax, eax
je 0x100043f5
cmp dword [ebp + 0xc], 3
jne 0x100043f5
mov edx, dword [ebp - 8]
mov ecx, edi
call fcn.10004400
test eax, eax
je 0x100043f5
push 2
push 0x1003a6b0
push edi
call fcn.10001930
add esp, 0xc
test eax, eax
je 0x100043f5
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x10004307
push dword [ebp + 0x18]
mov ecx, dword [ebp - 4]
push 0
push 0
push 0
push dword [ebp - 0xc]
push dword [ecx + 0x1c]
push 4
push edi
call eax
add esp, 0x20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10004400
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, edx
push esi
mov al, byte [ebx]
xor edx, edx
push edi
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0
mov esi, 1
mov edi, ebx
test al, al
je 0x10004543
jmp 0x10004430
movzx eax, al
mov al, byte [eax + 0x1003f4d8]
cmp al, 8
jne 0x10004446
test esi, esi
jne 0x10004465
lea edx, [esi + 1]
jmp 0x10004454
cmp al, 5
je 0x10004465
cmp al, 1
jne 0x10004452
test esi, esi
jne 0x10004465
xor edx, edx
mov al, byte [edi + 1]
inc dword [ebp - 8]
inc edi
xor esi, esi
test al, al
jne 0x10004430
xor eax, eax
jmp 0x1000446a
mov eax, 1
test edx, edx
jne 0x10004476
test eax, eax
je 0x10004543
cmp ecx, 0xffffffff
je 0x1000456f
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 8]
push eax
push 1
push 0x1003a6b4
push ecx
call edi
test eax, eax
je 0x1000456f
cmp dword [ebp - 8], 1
jne 0x1000456f
mov al, byte [ebx]
mov esi, ebx
test al, al
je 0x10004527
nop
cmp al, 0x22
jne 0x10004503
cmp ebx, esi
je 0x100044e4
push 0
lea eax, [ebp - 8]
push eax
mov edi, esi
sub edi, ebx
push edi
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1000456f
cmp edi, dword [ebp - 8]
jne 0x1000456f
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0xc]
push eax
push 2
push 0x1003a6b8
push dword [ebp - 4]
call edi
test eax, eax
je 0x1000456f
cmp dword [ebp - 0xc], 2
jne 0x1000456f
lea ebx, [esi + 1]
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x100044b0
cmp esi, ebx
jbe 0x10004527
push 0
lea eax, [ebp - 0xc]
push eax
sub esi, ebx
push esi
push ebx
push dword [ebp - 4]
call edi
test eax, eax
je 0x1000456f
cmp esi, dword [ebp - 0xc]
jne 0x1000456f
push 0
lea eax, [ebp - 0xc]
push eax
push 1
push 0x1003a6b4
push dword [ebp - 4]
call edi
test eax, eax
je 0x1000456f
cmp dword [ebp - 0xc], 1
jmp 0x10004561
cmp ecx, 0xffffffff
je 0x1000456f
mov esi, dword [ebp - 8]
push 0
lea eax, [ebp - 0xc]
push eax
push esi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1000456f
cmp esi, dword [ebp - 0xc]
jne 0x1000456f
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10004d70
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [esp + 0x10], esi
test esi, esi
je 0x10004e5f
test edx, edx
je 0x10004e5f
push edi
push edi
push 2
push edi
push 1
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, eax
mov dword [esp + 0xc], ecx
cmp ecx, 0xffffffff
je 0x10004e5f
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
test ebx, ebx
je 0x10004dd8
push edx
push edi
push edi
push edi
push edi
push edi
push edi
push ecx
call ebx
add esp, 0x20
test eax, eax
je 0x10004e2e
mov ecx, dword [esp + 0xc]
mov edx, dword [ebp + 0xc]
mov eax, dword [esi + 0x10]
mov dword [esp + 0x14], edi
mov esi, dword [eax + 8]
test esi, esi
je 0x10004e0e
push edx
lea eax, [esp + 0x18]
push ebx
push eax
mov edx, esi
call fcn.10004190
add esp, 0xc
test eax, eax
je 0x10004e2e
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0xc]
mov esi, dword [eax + 8]
test esi, esi
je 0x10004e0e
mov edx, dword [ebp + 0xc]
jmp 0x10004de6
test ebx, ebx
jne 0x10004e17
lea edi, [ebx + 1]
jmp 0x10004e32
push dword [ebp + 0xc]
push 0
push 0
push 0
push 0
push 0
push 5
push ecx
call ebx
add esp, 0x20
mov edi, eax
mov ecx, dword [esp + 0xc]
cmp ecx, 0xffffffff
je 0x10004e3e
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
test edi, edi
jne 0x10004e58
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [eax + 4], 0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10021290
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x558
mov eax, dword [0x1003e150]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 0x100354b0
push edi
mov esi, ecx
call fcn.100011c0
add esp, 0xc
cmp eax, 0x208
jae 0x10021477
lea eax, [ebp - 0x414]
push eax
push 0x100354b0
push edi
call fcn.100011c0
add esp, 0xc
lea eax, [ebp - 0x554]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ecx, eax
mov dword [ebp - 0x558], ecx
cmp ecx, 0xffffffff
je 0x10021477
jmp 0x10021310
mov ecx, dword [ebp - 0x554]
test cl, 0x10
je 0x100213a2
lea eax, [ebp - 0x528]
push 0x100354b4
push eax
call fcn.10002040
add esp, 8
test eax, eax
je 0x10021450
lea eax, [ebp - 0x528]
push 0x100354b8
push eax
call fcn.10002040
add esp, 8
test eax, eax
je 0x10021450
push 0
lea eax, [ebp - 0x528]
push eax
push edi
call fcn.100011c0
add esp, 0xc
cmp eax, 0x208
jae 0x10021450
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x528]
push eax
push edi
call fcn.100011c0
add esp, 0xc
lea eax, [ebx + 1]
push eax
lea eax, [ebp - 0x20c]
push eax
mov ecx, esi
call fcn.10021290
jmp 0x10021450
test cl, 0x40
jne 0x10021450
mov eax, dword [esi]
cmp eax, 0x3e7
jae 0x1002146b
cmp dword [ebp - 0x538], 0
jne 0x10021450
cmp dword [ebp - 0x534], 0
jl 0x10021450
imul eax, eax, 0x210
push 0
mov dword [eax + esi + 0x20], ebx
mov ecx, dword [esi]
mov eax, dword [ebp - 0x534]
imul ecx, ecx, 0x210
mov dword [ecx + esi + 0x24], eax
lea eax, [ebp - 0x528]
push eax
push edi
call fcn.100011c0
mov ecx, dword [esi + 0x80c90]
sub eax, ecx
add esp, 0xc
cmp eax, 0x208
jae 0x1002144e
mov eax, dword [esi]
imul eax, eax, 0x210
add eax, 0x28
add eax, esi
push eax
lea eax, [ebp - 0x528]
push eax
lea eax, [ebx - 1]
neg eax
sbb eax, eax
neg eax
dec eax
add eax, ecx
add eax, edi
push eax
call fcn.100011c0
mov eax, dword [esi]
imul eax, eax, 0x210
add eax, 0x28
add eax, esi
push eax
call fcn.10003040
add esp, 0x10
inc dword [esi]
lea eax, [ebp - 0x554]
push eax
push dword [ebp - 0x558]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10021310
push dword [ebp - 0x558]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10026064
mov esp, ebp
pop ebp
ret 8
Function at 0x1002ad92
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1003e150]
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
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.1002a5d7
mov dword [ebp - 0x14], eax
cmp dword [0x10040268], edi
jne 0x1002ae83
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x1002ae10
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1002af63
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x1002af63
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1002af63
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x10040268], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x1004026c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x10040270], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10040278], eax
test eax, eax
je 0x1002ae80
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10040274], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1002aea8
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1002ae9b
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x1002aebd
push 4
pop eax
jmp 0x1002af65
cmp dword [ebp - 0x14], edi
je 0x1002aebd
push dword [0x10040268]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1002aea2
mov eax, dword [0x10040274]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x1002af1b
cmp dword [0x10040278], esi
je 0x1002af1b
push eax
call ebx
push dword [0x10040278]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1002af1b
test eax, eax
je 0x1002af1b
call ecx
test eax, eax
je 0x1002af10
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 0x1002af10
test byte [ebp - 8], 1
jne 0x1002af1b
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x1002af4b
mov eax, dword [0x1004026c]
cmp eax, esi
je 0x1002af48
push eax
call ebx
test eax, eax
je 0x1002af48
call eax
mov edi, eax
test edi, edi
je 0x1002af48
mov eax, dword [0x10040270]
cmp eax, esi
je 0x1002af48
push eax
call ebx
test eax, eax
je 0x1002af48
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x10040268]
call ebx
test eax, eax
je 0x1002af63
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x1002af65
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10026064
leave
ret
Function at 0x40302c
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, eax
movzx eax, word [eax + 4]
sub eax, 0xd7b2
cmp eax, 1
ja 0x40305f
push 0
mov eax, esp
push 0
push eax
push dword [ebx + 8]
push edx
push dword [ebx]
call sub.KERNEL32.DLL_WriteFile_1
pop edx
dec eax
jne 0x403066
cmp edx, dword [ebx + 8]
je 0x403070
mov eax, 0x65
jmp 0x40306b
mov eax, 5
jmp 0x40306b
call sub.KERNEL32.DLL_GetLastError_1
call fcn.00402884
mov eax, ebx
pop ebx
ret

Function at 0x4033dc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x469020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403474
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x403454
xor eax, eax
push ebp
push 0x40344d
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 0x403490
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 0x403454
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov ax, word [0x469020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x469020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404138
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46b048], 0
je 0x404199
cmp word [0x46b21c], 0xd7b2
jne 0x404161
cmp dword [0x46b224], 0
jbe 0x404161
mov eax, 0x46b218
call dword [0x46b234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x469090
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 0x4041c0
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x469030], 0
jne 0x4041b5
push 0
push 0x469088
push 0x469090
push 0
call sub.user32.dll_MessageBoxA_1
pop edx
ret
Function at 0x405544
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_1
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405774
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
je 0x4055c7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405774
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
je 0x4055c7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405790
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x405650
xor eax, eax
push ebp
push 0x405649
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.0040538c
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_1
test eax, eax
je 0x40562e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4057b0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x40562e
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 0x405650
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
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_1
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA_1
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x40576a
cmp byte [ebp - 0xd], 0
jne 0x405697
cmp byte [ebp - 0x12], 0
je 0x40576a
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4056b0
dec ebx
cmp byte [ebx], 0x2e
je 0x4056bf
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4056af
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40576a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4056fc
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 0x40576a
cmp byte [ebp - 0xd], 0
je 0x40576a
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 0x40576a
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