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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
add dword [ebp + 0x10], 0x646c6f47
mov eax, dword [eax]
mov dx, word [eax + 6]
test dx, dx
jbe 0x409c15
push ebx
push esi
mov esi, dword [eax + 0xa]
mov eax, dword [ebp + 0xc]
push edi
xor edi, edi
lea ecx, [eax + 7]
movzx eax, dx
mov dword [ebp + 8], eax
mov eax, edi
push 4
cdq
pop ebx
idiv ebx
mov al, byte [edx + ebp + 0x10]
xor al, byte [ecx]
mov byte [esi + edi], al
inc edi
inc ecx
dec dword [ebp + 8]
jne 0x409bfa
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x409fcd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push es
mov ax, 0x101f
mov es, ax
xor eax, eax
mov esi, eax
mov ecx, 0x8000
xor al, byte es:[esi]
inc esi
loop 0x409fe3
pop es
mov byte [ebp - 1], al
mov al, byte [ebp - 1]
test al, al
jne 0x409ff6
add al, 0x55
mov ecx, dword [ebp + 8]
pop esi
mov byte [ecx], al
xor al, al
leave
ret
Function at 0x40acff
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
mov dword [ebp - 0x54], 0
push 1
lea eax, [ebp - 0x54]
push eax
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x50], 0
mov eax, dword [ebp - 0xc]
shl eax, 2
cmp dword [eax + eax*4 + 0x40daa0], 0xffffffff
je 0x40ad4e
inc dword [ebp - 0xc]
jmp 0x40ad32
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
shl ecx, 2
mov dword [ecx + ecx*4 + 0x40daa0], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
shl ecx, 2
mov dword [ecx + ecx*4 + 0x40daa8], eax
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push 0
lea eax, [ebp - 0x50]
push eax
push 0x40
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
lea eax, [ebp - 0x30]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov ecx, dword [ebp - 4]
xor eax, dword [ecx + 0x10]
mov ecx, dword [ebp - 0xc]
shl ecx, 2
mov dword [ecx + ecx*4 + 0x40daac], eax
test dword [ebp - 0x4c], 0xffff
jne 0x40add1
mov eax, dword [ebp - 0xc]
shl eax, 2
mov dword [eax + eax*4 + 0x40daa8], 4
mov eax, dword [ebp - 0xc]
shl eax, 2
cmp dword [eax + eax*4 + 0x40daa8], 4
je 0x40adfe
push 0
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
jmp 0x40ae13
push 0
push 0
mov eax, dword [ebp - 8]
add eax, 0x40
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
jmp 0x40ae18
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ae1d
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.0040af20
add esp, 0x14
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40ae57
jmp 0x40af16
mov eax, dword [ebp - 4]
sub eax, 0x40
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.0040af20
add esp, 0x14
test eax, eax
jne 0x40ae88
jmp 0x40af11
mov dword [ebp - 0x14], 0
jmp 0x40ae97
inc dword [ebp - 0x14]
mov eax, dword [ebp - 4]
sub eax, 0x40
cmp eax, dword [ebp - 0x14]
jbe 0x40aec6
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
xor edx, edx
mov dl, byte [eax + ecx + 0x40]
mov al, byte [edx + 0x40d850]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
mov byte [ecx + edx], al
jmp 0x40ae94
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
jmp 0x40af1b
jmp 0x40aec6
jmp 0x40aec6
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40af20
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
cmp dword [ebp + 0x18], 0
je 0x40af3f
mov dword [ebp - 0x14], 0xc0000000
jmp 0x40af46
mov dword [ebp - 0x14], 0x80000000
cmp dword [ebp + 0x18], 0
je 0x40af5c
mov dword [ebp - 0xc], 2
jmp 0x40af63
mov dword [ebp - 0xc], 1
cmp dword [ebp + 0x18], 0
je 0x40af79
mov dword [ebp - 4], 2
jmp 0x40af80
mov dword [ebp - 4], 3
cmp dword [ebp + 0x18], 0
je 0x40af96
mov dword [ebp - 0x10], 4
jmp 0x40af9d
mov dword [ebp - 0x10], 2
cmp dword [ebp + 0x18], 0
je 0x40afb3
mov dword [ebp - 8], 2
jmp 0x40afba
mov dword [ebp - 8], 4
push 0
push 0x80
mov eax, dword [ebp - 4]
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0xffffffff
jne 0x40aff1
xor eax, eax
jmp 0x40b08c
push 0
mov eax, dword [ebp + 0x18]
push eax
push 0
mov eax, dword [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingA]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
jne 0x40b02f
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
jmp 0x40b08c
mov eax, dword [ebp + 0x18]
push eax
push 0
push 0
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, dword [ebp + 0x14]
cmp dword [eax], 0
jne 0x40b077
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
jmp 0x40b08c
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
jmp 0x40b08c
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b528
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
cmp dword [eax], 0xffffffff
jne 0x40b544
xor eax, eax
jmp 0x40b5e9
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
jmp 0x40b559
inc dword [ebp - 4]
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 4], eax
jae 0x40b584
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor edx, edx
mov dl, byte [eax + ecx]
mov al, byte [edx + 0x40d958]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov byte [ecx + edx], al
jmp 0x40b556
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
mov dword [ebp - 4], 0
jmp 0x40b5b4
inc dword [ebp - 4]
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 4], eax
jae 0x40b5df
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor edx, edx
mov dl, byte [eax + ecx]
mov al, byte [edx + 0x40d850]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov byte [ecx + edx], al
jmp 0x40b5b1
mov eax, 1
jmp 0x40b5e9
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40b6dd
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
cmp dword [eax], 0xffffffff
jne 0x40b6f6
xor eax, eax
jmp 0x40b742
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 1
je 0x40b710
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 2
jne 0x40b720
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jmp 0x40b738
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
sub eax, 0x40
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, 1
jmp 0x40b742
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40b898
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0xc], 0
nop
leave
add esp, 4
popal
leave
add esp, 4
push ebp
mov ebp, esp
sub esp, 0x20
pushal
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
jmp 0x40b8d4
inc dword [ebp - 0xc]
mov eax, dword [0x40f9e0]
cmp dword [ebp - 0xc], eax
jge 0x40b909
mov eax, dword [ebp - 0xc]
mov eax, dword [eax*4 + 0x40fb70]
push eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiA]
test eax, eax
jne 0x40b904
jmp 0x40b909
jmp 0x40b8d1
mov eax, dword [0x40f9e0]
cmp dword [ebp - 0xc], eax
jl 0x40b933
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.0040ae1d
add esp, 8
mov dword [ebp - 0x10], 1
jmp 0x40b963
cmp dword [0x40d0ec], 0
jne 0x40b954
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_MoveFileA]
mov dword [ebp - 0x10], eax
jmp 0x40b963
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
mov dword [ebp - 0x10], eax
popal
mov eax, dword [ebp - 0x10]
leave
ret 8
Function at 0x40bd38
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
nop
nop
leave
add esp, 4
popal
leave
add esp, 4
push ebp
mov ebp, esp
sub esp, 0x20
pushal
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 0
jmp 0x40bd80
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
shl eax, 2
cmp dword [eax + eax*4 + 0x40daa0], 0xffffffff
je 0x40bdb4
mov eax, dword [ebp - 0x1c]
shl eax, 2
mov ecx, dword [ebp - 0x18]
cmp dword [eax + eax*4 + 0x40daa0], ecx
jne 0x40bdaf
jmp 0x40bdb4
jmp 0x40bd7d
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x1c]
shl eax, 2
lea eax, [eax + eax*4]
add eax, 0x40daa0
push eax
call fcn.0040b2b3
add esp, 0x18
test eax, eax
je 0x40be08
cmp dword [ebp - 4], 0
je 0x40be03
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x1c]
shl ecx, 2
add dword [ecx + ecx*4 + 0x40daa4], eax
jmp 0x40be25
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov dword [ebp - 4], eax
popal
mov eax, dword [ebp - 4]
leave
ret 0x14

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

Disassembly:
cmp dword [0x7a1244], 0
push esi
jne 0x4069b5
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40698f
mov dword [ecx*4 + 0x7a1240], eax
inc ecx
cmp ecx, 0x100
jl 0x40698a
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4069e6
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x7a1240]
xor eax, esi
inc ecx
dec edx
jne 0x4069c8
pop edi
not eax
pop esi
ret 0xc
Function at 0x404090
Capabilities:
Create thread

Disassembly:
push ebp
push esi
mov esi, eax
lea ebp, [esi + 0xc]
test ebp, ebp
je 0x4040a9
mov eax, dword [ebp]
test eax, eax
je 0x4040a9
push eax
call dword [0x406034]
mov eax, dword [esi + 8]
test eax, eax
je 0x40410b
cmp dword [eax + 4], 0
je 0x40410b
add eax, 0xc
push eax
push 4
push esi
push 0x403d30
push 0
push 0
call dword [0x4060a0]
mov ecx, dword [esi + 8]
mov dword [ecx + 0x10], eax
mov edx, dword [esi + 8]
add esp, 0x18
cmp dword [edx + 0x10], 0
jne 0x404122
mov eax, edx
mov dword [eax + 0x10], 0xffffffff
mov esi, dword [esi + 8]
mov eax, dword [esi + 0x10]
cmp eax, 0xffffffff
je 0x404100
push eax
call dword [0x406008]
mov dword [esi + 0x10], 0xffffffff
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
test ebp, ebp
je 0x40411d
mov ebp, dword [ebp]
test ebp, ebp
je 0x40411d
push ebp
call dword [0x406040]
pop esi
xor al, al
pop ebp
ret
mov ecx, edx
mov byte [ecx + 8], 1
mov edx, dword [esi + 8]
mov eax, dword [edx + 0x10]
push eax
call dword [0x406018]
cmp eax, 0xffffffff
jne 0x404167
push edi
mov edi, dword [esi + 8]
mov eax, dword [edi + 0x10]
cmp eax, 0xffffffff
je 0x404154
push eax
call dword [0x406008]
mov dword [edi + 0x10], 0xffffffff
mov byte [edi + 8], 0
mov dword [edi + 0xc], 0
mov ecx, dword [esi + 8]
mov byte [ecx + 8], 0
pop edi
test ebp, ebp
je 0x404179
mov ebp, dword [ebp]
test ebp, ebp
je 0x404179
push ebp
call dword [0x406040]
pop esi
mov al, 1
pop ebp
ret
Function at 0x402ff4
Capabilities:
Query or enumerate registry value

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

Function at 0x403d58
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46304c], 0
je 0x403db9
cmp word [0x463220], 0xd7b2
jne 0x403d81
cmp dword [0x463228], 0
jbe 0x403d81
mov eax, 0x46321c
call dword [0x463238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46106c
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 0x403de0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x461030], 0
jne 0x403dd5
push 0
push 0x461064
push 0x46106c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x403f0c
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.00402754
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x46304d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x403ed4
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405d80
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 0x405de6
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.004041c8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402bb8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405dd0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405ded
lea eax, [ebp - 0x10]
call fcn.00403f58
ret

Function at 0x40ae84
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_1
test eax, eax
jle 0x40aebd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404048
jmp 0x40aec6
mov eax, ebx
mov edx, esi
call fcn.00403fac
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40aed0
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 0x40aef1
mov al, byte [esp]
jmp 0x40aef3
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b578
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b3f0
mov eax, dword [0x4628a8]
cmp byte [eax], 0
je 0x40b5f4
mov eax, dword [0x4625ec]
call fcn.00402a24
call fcn.004028bc
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004086c4
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
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 0x40b63c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b62a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x462580]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x463668]
call fcn.00405278
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40bee4
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 0x40bfba
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00403ff0
lea eax, [ebp - 8]
call fcn.00404468
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404418
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40bfa4
mov eax, ebx
call fcn.00402754
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40bf9d
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.00404418
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40bf87
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40bfcc
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40bf87
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 0x40bfa4
mov eax, dword [ebp - 0x10]
call fcn.00402774
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bfc1
lea eax, [ebp - 8]
call fcn.00403f58
ret

Function at 0x40c538
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 0x40c59c
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.004041c8
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004081ec
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c5a3
lea eax, [ebp - 0xc]
call fcn.00403f58
ret

Function at 0x41db34
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 0x41db81
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.0041d974
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41db99
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x41dba0
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.0041d974
dec esi
jne 0x41dbc2
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x41ed04
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x46388c
cmp dword [edi], 0
jne 0x41ed80
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x463888]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4613fc
mov ecx, 2
call fcn.00402950
mov edx, 0x41ecdc
lea eax, [esi + 5]
call fcn.0041ecfc
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041ecfc
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 0x41ed55
mov dword [0x463888], 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 0x4202bc
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 0x4202c2
ret

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