joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10098880
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], esi
mov edx, dword [esi + 0xc]
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor ecx, eax
movzx eax, byte [edi + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edi + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [esi + 0x18]
mov esi, dword [esi + 4]
and ecx, eax
mov ebx, dword [edx + ecx*8]
mov eax, ebx
lea edx, [edx + ecx*8]
cmp ebx, esi
jne 0x100988de
mov ecx, esi
jmp 0x100988e3
mov ecx, dword [edx + 4]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x100988f6
mov ecx, dword [eax + 8]
cmp ecx, dword [edi]
je 0x100988f2
mov eax, dword [eax]
jmp 0x100988d6
cmp eax, esi
jne 0x1009894b
mov esi, dword [esi]
lea eax, [ebp - 8]
push ecx
push eax
push ecx
mov dword [ebp - 8], edi
mov edi, dword [esi + 4]
push edi
push esi
call fcn.10099260
mov edx, dword [ebp - 0xc]
mov ebx, eax
mov ecx, 0xffffffe
mov eax, dword [edx + 8]
sub ecx, eax
cmp ecx, 1
jae 0x1009892a
push str.list_T__too_long
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
inc eax
mov ecx, edx
mov dword [edx + 8], eax
mov dword [esi + 4], ebx
mov dword [edi], ebx
mov eax, dword [edx + 4]
mov eax, dword [eax]
push eax
add eax, 8
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.10037c40
mov eax, dword [ebp - 0x10]
pop edi
pop esi
add eax, 0xc
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10099510
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp byte [0x100ca48c], 0
mov eax, ecx
push ebx
push esi
push edi
mov dword [ebp - 8], eax
je 0x10099724
cmp byte [eax + 0x1d], 0
jne 0x10099724
mov eax, dword [0x101cd97c]
test eax, eax
jne 0x10099575
mov ecx, dword [0x101c5f78]
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
call eax
mov ecx, eax
mov eax, dword [0x101cd97c]
test ecx, ecx
je 0x1009956d
test eax, eax
jne 0x10099575
cmp dword [ecx + 0x14], 0x74
cmove eax, ecx
mov ecx, dword [ecx + 0x10]
mov dword [0x101cd97c], eax
test ecx, ecx
jne 0x10099556
test eax, eax
je 0x10099724
mov eax, dword [eax]
test eax, eax
je 0x10099724
push 0
push 0x7ff
call eax
mov esi, eax
add esp, 8
test esi, esi
je 0x10099724
mov edx, dword [esi]
mov ecx, esi
call dword [edx]
test eax, eax
je 0x10099724
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
mov ecx, eax
call edx
mov edi, eax
mov dword [ebp - 4], edi
test edi, edi
je 0x10099724
lea eax, [edi + 8]
test eax, eax
je 0x10099724
mov eax, dword [esi]
mov ecx, esi
push 0
mov eax, dword [eax + 0x18]
call eax
mov eax, dword [esi]
mov ecx, esi
push 0
mov eax, dword [eax + 0x10]
call eax
mov eax, dword [0x101cdb10]
test al, 1
jne 0x10099658
or eax, 1
mov dword [0x101cdb10], eax
mov eax, dword [0x101c5f7c]
mov ebx, dword [eax + 0x30]
test ebx, ebx
je 0x10099643
nop word [eax + eax]
mov esi, dword [ebx + 0xc]
mov edi, 0x811c9dc5
xor ecx, ecx
nop word [eax + eax]
inc ecx
cmp byte [ecx + esi], 0
jne 0x10099610
xor edx, edx
test ecx, ecx
je 0x10099639
nop dword [eax]
movsx eax, byte [edx + esi]
inc edx
xor eax, edi
imul edi, eax, 0x1000193
cmp edx, ecx
jb 0x10099620
cmp edi, 0xc6671bda
je 0x1009964d
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x10099600
mov edi, dword [ebp - 4]
xor ebx, ebx
mov dword [0x101cdb0c], ebx
jmp 0x1009965e
mov edi, dword [ebp - 4]
mov dword [0x101cdb0c], ebx
jmp 0x1009965e
mov ebx, dword [0x101cdb0c]
cmp dword [ebx + 0x50], 0
je 0x1009966b
mov dword [ebx + 0x50], 0
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 0x30]
mov dword [ebp - 4], eax
call dword [ebp - 4]
vmovss xmm1, dword [0x100b3888]
fstp dword [ebp - 4]
vmovss xmm0, dword [ebp - 4]
vucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x100996a5
mov ecx, dword [0x101cdb0c]
push ecx
vmovss dword [esp], xmm1
mov eax, dword [ecx]
mov eax, dword [eax + 0x3c]
call eax
mov eax, dword [0x101c6344]
lea ecx, [edi + 8]
vmovss xmm0, dword [0x100b3920]
add eax, 0xffffff75
xor eax, 0xb4
push 0
mov dword [eax + edi], 0
mov eax, dword [0x101c61c0]
add eax, 0xffffffd6
xor eax, 0x53
vmovss dword [eax + edi], xmm0
vmovss dword [eax + edi + 4], xmm0
vmovss dword [eax + edi + 8], xmm0
mov eax, dword [0x101c61c4]
vmovss xmm0, dword [0x100b38c0]
add eax, 0xffffffd5
xor eax, 0x54
vmovss dword [eax + edi], xmm0
vmovss dword [eax + edi + 4], xmm0
vmovss dword [eax + edi + 8], xmm0
mov eax, dword [edi + 8]
mov eax, dword [eax + 0x14]
call eax
mov eax, dword [edi + 8]
lea ecx, [edi + 8]
push 0
mov eax, dword [eax + 0x1c]
call eax
mov eax, dword [ebp - 8]
mov byte [eax + 0x1d], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1009aaa0
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push edi
lea edi, [ebp - 0x30]
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x100c0364]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x1009ac1c
mov dword [ebp - 0x28], 0x1c
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 8]
push ecx
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x1009ac09
cmp dword [ebp - 0x28], 0x10
jb 0x1009abed
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, esp
call fcn.1009d78c
cmp dword [ebp - 0x1c], eax
jne 0x1009abed
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp esi, esp
call fcn.1009d78c
cmp dword [ebp - 0x20], eax
je 0x1009abed
mov edx, dword [ebp + 8]
cmp dword [edx], 0
jne 0x1009ab74
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0x80
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
shl edx, 2
mov esi, esp
push edx
push 0
mov eax, dword [0x1015b8a4]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp esi, esp
call fcn.1009d78c
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp + 8]
cmp dword [edx], 0
jne 0x1009ab72
jmp 0x1009ac09
jmp 0x1009abcd
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 8]
cmp edx, dword [ecx + 4]
jb 0x1009abcd
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
shl ecx, 1
shl ecx, 2
mov esi, esp
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
push 0
mov ecx, dword [0x1015b8a4]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
cmp esi, esp
call fcn.1009d78c
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x1009abb7
jmp 0x1009ac09
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
shl eax, 1
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x30]
mov dword [edx], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x20]
mov dword [ecx + edx*4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 8], edx
mov dword [ebp - 0x28], 0x1c
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 8]
push edx
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1009aaf3
mov esi, esp
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.1009d78c
push edx
mov ecx, ebp
push eax
lea edx, [0x1009ac48]
call fcn.1009d738
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1009cc5f
add esp, 0x30
cmp ebp, esp
call fcn.1009d78c
mov esp, ebp
pop ebp
ret
Function at 0x1009ac60
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov dword [ebp - 8], 0xcccccccc
mov dword [ebp - 4], 0xcccccccc
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], 0
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0
mov eax, dword [ebp + 8]
push eax
call fcn.1009aaa0
add esp, 4
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0
je 0x1009ad2b
mov dword [ebp - 4], 0
jmp 0x1009acbc
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 8]
jae 0x1009ad2b
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov esi, esp
mov ecx, dword [ebp - 4]
mov edx, dword [eax + ecx*4]
push edx
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
cmp esi, esp
call fcn.1009d78c
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1009ad29
mov esi, esp
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp esi, esp
call fcn.1009d78c
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.1009a8c0
add esp, 0xc
mov esi, esp
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.1009d78c
jmp 0x1009acb3
pop esi
add esp, 8
cmp ebp, esp
call fcn.1009d78c
mov esp, ebp
pop ebp
ret

Function at 0x1009ad40
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov dword [ebp - 8], 0xcccccccc
mov dword [ebp - 4], 0xcccccccc
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x1009adeb
mov dword [ebp - 4], 0
jmp 0x1009ad73
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
cmp eax, dword [edx + 8]
jae 0x1009adce
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov esi, esp
mov eax, dword [ebp - 4]
mov ecx, dword [edx + eax*4]
push ecx
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
cmp esi, esp
call fcn.1009d78c
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1009adcc
mov esi, esp
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp esi, esp
call fcn.1009d78c
mov esi, esp
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.1009d78c
jmp 0x1009ad6a
mov esi, esp
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
push 0
mov eax, dword [0x1015b8a4]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp esi, esp
call fcn.1009d78c
pop esi
add esp, 8
cmp ebp, esp
call fcn.1009d78c
mov esp, ebp
pop ebp
ret
Function at 0x1009ae00
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
mov eax, 0xcccccccc
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
imul eax, dword [ebp + 8], 0x2c
add eax, dword [0x101cdb20]
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 5
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 4]
mov cl, byte [eax + 0x14]
and cl, 1
movzx edx, cl
test edx, edx
je 0x1009ae63
mov eax, dword [ebp - 0x18]
sub eax, 5
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x14]
add ecx, 2
mov dword [ebp - 0x14], ecx
mov esi, esp
lea edx, [ebp - 0xc]
push edx
push 0x40
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp esi, esp
call fcn.1009d78c
test eax, eax
jne 0x1009ae8e
mov eax, 0xa
jmp 0x1009af90
cmp dword [ebp + 0xc], 0
je 0x1009aeda
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov byte [eax], 0xe9
mov ecx, dword [ebp - 0x18]
add ecx, 5
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
sub eax, ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 1], eax
mov edx, dword [ebp - 4]
mov al, byte [edx + 0x14]
and al, 1
movzx ecx, al
test ecx, ecx
je 0x1009aed8
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov byte [ecx], 0xeb
mov edx, dword [ebp - 0x20]
mov byte [edx + 1], 0xf9
jmp 0x1009af16
mov eax, dword [ebp - 4]
mov cl, byte [eax + 0x14]
and cl, 1
movzx edx, cl
test edx, edx
je 0x1009af01
push 7
mov eax, dword [ebp - 4]
add eax, 0xc
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x1009af16
push 5
mov edx, dword [ebp - 4]
add edx, 0xc
push edx
mov eax, dword [ebp - 0x18]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov esi, esp
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp esi, esp
call fcn.1009d78c
mov esi, esp
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov edi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp edi, esp
call fcn.1009d78c
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
cmp esi, esp
call fcn.1009d78c
mov cl, byte [ebp + 0xc]
and cl, 1
shl cl, 1
mov edx, dword [ebp - 4]
mov al, byte [edx + 0x14]
and al, 0xfd
or al, cl
mov ecx, dword [ebp - 4]
mov byte [ecx + 0x14], al
mov dl, byte [ebp + 0xc]
and dl, 1
shl dl, 2
mov eax, dword [ebp - 4]
mov cl, byte [eax + 0x14]
and cl, 0xfb
or cl, dl
mov edx, dword [ebp - 4]
mov byte [edx + 0x14], cl
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x1009afb4]
call fcn.1009d738
pop eax
pop edx
pop edi
pop esi
add esp, 0x20
cmp ebp, esp
call fcn.1009d78c
mov esp, ebp
pop ebp
ret
Function at 0x1009b680
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov dword [ebp - 8], 0xcccccccc
mov dword [ebp - 4], 0xcccccccc
mov eax, dword [0x101cdb14]
mov dword [ebp - 4], eax
jmp 0x1009b6a7
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x1009b6c0
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x1009b6be
mov eax, dword [ebp - 4]
jmp 0x1009b744
jmp 0x1009b69f
mov esi, esp
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp esi, esp
call fcn.1009d78c
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1009b741
mov ecx, dword [ebp - 4]
add ecx, 0x20
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
mov dword [edx + 4], 0
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
mov dword [ecx], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 8]
add eax, 0x20
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 4]
cmp ecx, 0xfe0
jbe 0x1009b703
mov edx, dword [ebp - 4]
mov eax, dword [0x101cdb14]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x101cdb14], ecx
mov eax, dword [ebp - 4]
pop esi
add esp, 8
cmp ebp, esp
call fcn.1009d78c
mov esp, ebp
pop ebp
ret

Function at 0x1009bc30
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0xcccccccc
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movzx eax, byte [edx + ecx]
test eax, eax
je 0x1009bc80
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + edx]
cmp ecx, 0x90
je 0x1009bc80
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + eax]
cmp edx, 0xcc
je 0x1009bc80
xor eax, eax
jmp 0x1009bcc1
mov dword [ebp - 4], 1
jmp 0x1009bc92
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1009bcbc
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
movzx eax, byte [edx]
mov ecx, 1
imul edx, ecx, 0
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + edx]
cmp eax, edx
je 0x1009bcba
xor eax, eax
jmp 0x1009bcc1
jmp 0x1009bc89
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x402ad8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040464c
test esi, esi
jne 0x402b0e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040473c
jmp 0x402b2c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029ec
mov edi, eax
test esi, esi
je 0x402b2c
cmp dword [ebx], 0
je 0x402b2c
dec esi
jmp 0x402b15
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403138
Capabilities:
Read file on windows

Disassembly:
push ebx
xor ecx, ecx
mov ebx, eax
mov cx, word [eax + 4]
sub ecx, 0xd7b1
je 0x40314e
sub ecx, 2
jne 0x403170
push 0
mov eax, esp
push 0
push eax
push dword [ebx + 8]
push edx
push dword [ebx]
call sub.kernel32.dll_ReadFile
pop edx
dec eax
jne 0x403177
cmp edx, dword [ebx + 8]
je 0x403181
mov eax, 0x64
jmp 0x40317c
mov eax, 0x67
jmp 0x40317c
call sub.kernel32.dll_GetLastError
call fcn.00402900
pop ebx
ret

Function at 0x4033bc
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, eax
movzx eax, word [eax + 4]
sub eax, 0xd7b2
cmp eax, 1
ja 0x4033ef
push 0
mov eax, esp
push 0
push eax
push dword [ebx + 8]
push edx
push dword [ebx]
call sub.kernel32.dll_WriteFile
pop edx
dec eax
jne 0x4033f6
cmp edx, dword [ebx + 8]
je 0x403400
mov eax, 0x65
jmp 0x4033fb
mov eax, 5
jmp 0x4033fb
call sub.kernel32.dll_GetLastError
call fcn.00402900
mov eax, ebx
pop ebx
ret

Function at 0x40376c
Capabilities:
Query or enumerate registry value

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

Function at 0x4044d0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4a204c], 0
je 0x404531
cmp word [0x4a2220], 0xd7b2
jne 0x4044f9
cmp dword [0x4a2228], 0
jbe 0x4044f9
mov eax, 0x4a221c
call dword [0x4a2238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4a0090
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 0x404558
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4a0030], 0
jne 0x40454d
push 0
push 0x4a0088
push 0x4a0090
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406634
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 0x40669a
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004048bc
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004032e8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406684
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4066a1
lea eax, [ebp - 0x10]
call fcn.0040464c
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404b0c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40908d
test al, 0x10
jne 0x409091
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40c030
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 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40c069
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040473c
jmp 0x40c072
mov eax, ebx
mov edx, esi
call fcn.004046a0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c07c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40c09d
mov al, byte [esp]
jmp 0x40c09f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40d084
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 0x40d15a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004046e4
lea eax, [ebp - 8]
call fcn.00404b5c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404b0c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d144
mov eax, ebx
call fcn.00402778
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d13d
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.00404b0c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d127
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d16c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d127
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 0x40d144
mov eax, dword [ebp - 0x10]
call fcn.00402798
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d161
lea eax, [ebp - 8]
call fcn.0040464c
ret
Function at 0x40d66c
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 0x40d6d0
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004048bc
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408cd4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d6d7
lea eax, [ebp - 0xc]
call fcn.0040464c
ret

Function at 0x41ebdc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4a2888
cmp dword [edi], 0
jne 0x41ec58
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4a2884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4a04a0
mov ecx, 2
call fcn.004029ac
mov edx, 0x41ebb4
lea eax, [esi + 5]
call fcn.0041ebd4
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041ebd4
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 0x41ec2d
mov dword [0x4a2884], 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 0x42023c
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 0x420242
ret

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