joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000b170
Capabilities:
Encode data using xor
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x10039040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
mov edi, ecx
mov dword [ebp - 0x130], 0x128
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [ebp - 0x130]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x1000b1cc
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
cmp dword [ebp - 0x128], edi
je 0x1000b1db
lea eax, [ebp - 0x130]
push eax
push esi
call ebx
test eax, eax
jne 0x1000b1b6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x1000b1d3
push eax
call esi
movaps xmm0, xmmword [str.0DbUCE_UdXBUQT]
xor eax, eax
movups xmmword [ebp - 0x150], xmm0
nop dword [eax]
mov cl, byte [ebp - 0x150]
xor byte [ebp + eax - 0x14f], cl
inc eax
cmp eax, 0xe
jb 0x1000b210
mov byte [ebp - 0x140], 0x23
mov al, 0x4d
xor al, byte [ebp - 0x140]
mov bl, 0x4f
mov ah, bl
mov byte [ebp - 0x13f], al
mov al, byte [ebp - 0x140]
mov dl, 0x47
mov bh, ah
mov byte [ebp - 0x131], ah
mov dh, dl
mov byte [ebp - 0x136], 0
xor dl, al
mov byte [ebp - 0x141], 0
xor bl, al
mov byte [ebp - 0x13d], dl
xor ah, al
mov byte [ebp - 0x13c], bl
xor dh, al
mov byte [ebp - 0x13b], ah
xor bh, al
mov byte [ebp - 0x139], dh
mov cl, 0x57
mov byte [ebp - 0x138], bh
xor cl, al
mov byte [ebp - 0x136], 0
mov ch, 0xd
mov byte [ebp - 0x13e], cl
xor ch, al
mov al, byte [ebp - 0x131]
xor al, byte [ebp - 0x140]
mov byte [ebp - 0x137], al
lea eax, [ebp - 0x13f]
push eax
mov byte [ebp - 0x13a], ch
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea ecx, [ebp - 0x14f]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, 0x116e058
mov ebx, eax
call fcn.1000ab00
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x1000b30f
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push edi
call ebx
test eax, eax
js 0x1000b1d3
cmp dword [ebp - 8], 0
ja 0x1000b1d3
push edi
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000f995
mov esp, ebp
pop ebp
ret
Function at 0x1000ccc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.1000ce90
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1000cd9d
mov edx, dword [ebp - 4]
cmp edx, dword [0x10039010]
jb 0x1000cd0a
mov eax, dword [ebp - 4]
cmp eax, dword [0x10039014]
ja 0x1000cd0a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1000ccda
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10011920
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x1000cd2f
jmp 0x1000cd9d
cmp dword [ebp - 0x14], 0x10000
jne 0x1000cd83
cmp dword [ebp - 0x18], 0x10000
jb 0x1000cd83
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000cd66
mov eax, dword [ebp - 8]
jmp 0x1000cd9f
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1000cd76
xor eax, eax
jmp 0x1000cd9f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1000cd98
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.1000ce90
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1000ccda
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1000cdb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.1000cec0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1000ce85
mov edx, dword [ebp - 4]
cmp edx, dword [0x10039010]
jb 0x1000cdf5
mov eax, dword [ebp - 4]
cmp eax, dword [0x10039014]
ja 0x1000cdf5
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1000cdc5
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10011920
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x1000ce1a
jmp 0x1000ce85
cmp dword [ebp - 0x14], 0x10000
jne 0x1000ce6e
cmp dword [ebp - 0x18], 0x10000
jb 0x1000ce6e
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000ce51
mov eax, dword [ebp - 8]
jmp 0x1000ce87
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1000ce61
xor eax, eax
jmp 0x1000ce87
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1000ce80
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.1000cec0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1000cdc5
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1000cef0
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1000d2e0
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x1003ce84], 0
jne 0x1000cf2d
cmp dword [0x1003ce80], 0
je 0x1000cf2d
mov eax, dword [0x1003ce80]
mov dword [0x1003ce84], eax
cmp dword [0x1003ce84], 0
je 0x1000cfaa
mov ecx, dword [0x1003ce84]
cmp dword [ecx + 8], 0
je 0x1000cfaa
mov edx, dword [0x1003ce84]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x1000cfaa
mov ecx, dword [0x1003ce84]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x1000cfaa
mov eax, dword [0x1003ce84]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x1000cf79
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x1000cf80
xor eax, eax
jmp 0x1000d0c9
mov ecx, dword [0x1003ce84]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call fcn.10011920
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x1000d0c9
mov edx, dword [0x1003ce80]
mov dword [0x1003ce84], edx
jmp 0x1000cfc6
mov eax, dword [0x1003ce84]
mov ecx, dword [eax + 4]
mov dword [0x1003ce84], ecx
cmp dword [0x1003ce84], 0
je 0x1000d006
cmp dword [0x1003ce84], 0
je 0x1000d004
mov edx, dword [0x1003ce84]
cmp dword [edx + 8], 0
je 0x1000d004
mov eax, dword [0x1003ce84]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x1000d004
mov edx, dword [0x1003ce84]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x1000d004
jmp 0x1000cf5e
jmp 0x1000cfb8
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1000d0d0
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x1000d0c7
mov eax, dword [ebp - 0x18]
mov dword [0x1003ce84], eax
mov ecx, dword [0x1003ce84]
mov dword [ecx], 0x52727464
mov edx, dword [0x1003ce84]
mov dword [edx + 8], 0
mov eax, dword [0x1003ce84]
mov ecx, dword [0x1003ce80]
mov dword [eax + 4], ecx
mov edx, dword [0x1003ce84]
mov dword [0x1003ce80], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x1003ce84]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x1000d097
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x1000d0b7
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x1000d08e
mov eax, dword [0x1003ce84]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x1000cf5e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1000de10
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1003ce80]
mov dword [ebp - 4], eax
jmp 0x1000de29
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x1000de50
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1000de4e
call sub.KERNEL32.dll_GetLastError
jmp 0x1000de52
jmp 0x1000de20
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1000e2f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 0
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x1003ce90], eax
je 0x1000e314
mov eax, 0x10dd
jmp 0x1000e4bc
cmp dword [0x1003ce94], 0
je 0x1000e327
mov eax, dword [0x1003ce94]
jmp 0x1000e4bc
cmp dword [ebp + 0xc], 0
jne 0x1000e337
mov eax, 0x57
jmp 0x1000e4bc
cmp dword [ebp + 8], 0
jne 0x1000e347
mov eax, 6
jmp 0x1000e4bc
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x1000e370
mov dword [ebp - 8], 6
mov ecx, dword [ebp - 8]
mov dword [0x1003ce94], ecx
mov edx, dword [ebp + 8]
mov dword [0x1003ce98], edx
mov eax, dword [ebp - 8]
jmp 0x1000e4bc
push 0x18
call fcn.1000f9a3
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1000e3cb
mov dword [ebp - 8], 8
mov ecx, dword [ebp - 8]
mov dword [0x1003ce94], ecx
cmp dword [ebp - 4], 0
je 0x1000e3ba
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
push 0x18
mov eax, dword [ebp - 0x20]
push eax
call fcn.1000f9f6
add esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov dword [0x1003ce98], ecx
mov eax, dword [ebp - 8]
jmp 0x1000e4bc
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.1000e2d0
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.1000e2d0
mov dword [ebp + 0xc], eax
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x36]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
sub edx, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0xc], 0
je 0x1000e40b
cmp dword [ebp - 0xc], 0x1e
jbe 0x1000e427
mov dword [ebp - 8], 9
cmp dword [0x1003ce88], 0
je 0x1000e422
jmp 0x1000e399
jmp 0x1000e390
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x1000e44e
mov dword [ebp - 8], 9
cmp dword [0x1003ce88], 0
je 0x1000e449
jmp 0x1000e399
jmp 0x1000e390
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x18]
push edx
push 0x40
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1000e479
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x1000e390
mov edx, dword [ebp - 4]
mov dword [edx + 4], 1
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 4]
mov eax, dword [0x1003cea0]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x1003cea0], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x1000e4d0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x1003ce90], eax
je 0x1000e4ed
mov eax, 0x10dd
jmp 0x1000e5d0
mov eax, dword [0x1003cea0]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1000e56c
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x1000e548
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x1000e548
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.1000d370
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
push 0x18
mov edx, dword [ebp - 0xc]
push edx
call fcn.1000f9f6
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x1000e4f5
mov dword [0x1003cea0], 0
call fcn.1000dc50
mov ecx, dword [0x1003ce9c]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x1000e5ba
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call sub.KERNEL32.dll_ResumeThread
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push 8
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.1000f9f6
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x1000e584
mov dword [0x1003ce9c], 0
mov dword [0x1003ce90], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1000eab0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x1003ce94], 0
je 0x1000eac9
mov eax, dword [0x1003ce94]
jmp 0x1000eb68
call sub.KERNEL32.dll_GetCurrentThread
cmp dword [ebp + 8], eax
jne 0x1000eada
xor eax, eax
jmp 0x1000eb68
push 8
call fcn.1000f9a3
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1000eb32
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x1000eb1b
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
push 8
mov edx, dword [ebp - 0x10]
push edx
call fcn.1000f9f6
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x1003ce94], eax
mov dword [0x1003ce98], 0
mov eax, dword [ebp - 8]
jmp 0x1000eb68
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x1000eb4a
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x1000eafa
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x1003ce9c]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x1003ce9c], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x10016ef6
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10016f35
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10016f35
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10016f35
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10016f35
cmp dword [ecx + 0x74], 0xe
jbe 0x10016f35
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10021487
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10021524
push ebx
push esi
call fcn.10021450
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1001f358
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100214d1
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10021523
push edi
push eax
call fcn.1001d070
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100214f1
call fcn.1001aef0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10021522
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001f358
add esp, 0x20
test eax, eax
jne 0x10021510
push edi
call fcn.1001aef0
jmp 0x10021518
push ebx
call fcn.1001aef0
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x10024dd2
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1001b823
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10024e41
cmp esi, dword [ebp - 4]
je 0x10024e3c
cmp dword [ebp + 0xc], 0
je 0x10024e3c
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10024e19
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.10024927
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10024e43
xor eax, eax
inc eax
jmp 0x10024e43
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10024eae
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10039040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.1001b823
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.1001b823
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x10024f25
cmp word [ecx], dx
je 0x10024f25
mov eax, dword [0x10030f2c]
push edi
dec eax
push eax
push 0x10030e18
call fcn.10024e47
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x10024f98
cmp word [eax], dx
je 0x10024f98
mov eax, dword [edi]
test eax, eax
je 0x10024f49
cmp word [eax], dx
je 0x10024f49
lea eax, [ebp - 0x10]
push eax
call fcn.1002482d
jmp 0x10024f52
lea eax, [ebp - 0x10]
push eax
call fcn.100248c8
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x10024fc2
mov eax, dword [0x10030e14]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10030b08
call fcn.10024e47
add esp, 0xc
test al, al
je 0x10024fc2
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x10024f8d
cmp word [eax], di
je 0x10024f8d
lea eax, [ebp - 0x10]
push eax
call fcn.1002482d
pop ecx
jmp 0x10024fc4
lea eax, [ebp - 0x10]
push eax
call fcn.100248c8
jmp 0x10024f8a
mov eax, dword [edi]
test eax, eax
je 0x10024faf
cmp word [eax], dx
je 0x10024faf
lea eax, [ebp - 0x10]
push eax
call fcn.100247e2
pop ecx
jmp 0x10024fc2
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x1002508d
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10024ccc
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1002508d
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1002508d
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1002508d
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1002501a
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1001eb7b
test ebx, ebx
je 0x10025088
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1001eb7b
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1002508d
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1002508d
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1002725d
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1002508f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000f995
leave
ret
Function at 0x10029190
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100291bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100291bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x404500
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
xor eax, eax
cmp dword [esp + 0x20], 0
je 0x4045e0
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x4045e0
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x40454a
mov ecx, 0x1505
xor edi, edi
nop
movzx edx, byte [ebx + edi]
test edx, edx
je 0x404551
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc edi
mov ecx, esi
cmp ebp, edi
jne 0x404530
jmp 0x404553
mov esi, 0x1505
jmp 0x404553
mov esi, ecx
mov ecx, dword [esp + 0x20]
mov ebx, dword [ecx + 0x20]
lea edi, [ebx - 1]
mov edx, ebx
sub edx, 1
mov dword [esp + 8], edx
jb 0x4045e0
and edi, esi
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x404584
inc edi
dec ebx
je 0x4045de
mov eax, edi
and eax, dword [esp + 8]
mov edx, dword [esp + 4]
mov ebp, dword [edx + eax*4]
cmp ebp, 0xffffffff
je 0x4045de
mov eax, dword [ecx + 8]
cmp dword [eax + ebp*4], esi
jne 0x404580
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + ebp*4]
mov dword [esp], eax
push eax
call fcn.0040ccd0
mov ecx, dword [esp + 0x24]
add esp, 4
cmp eax, dword [esp + 0x28]
jne 0x404580
push dword [esp + 0x28]
push dword [esp + 4]
push dword [esp + 0x2c]
call fcn.0040ccf0
mov ecx, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
jne 0x404580
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + ebp*4]
jmp 0x4045e0
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4045f0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
xor edi, edi
cmp dword [esp + 0x24], 0
je 0x4046f1
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x4046f1
push ebx
call fcn.0040ccd0
add esp, 4
test eax, eax
je 0x40464a
mov ecx, 0x1505
xor ebp, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [ebx + ebp]
test edx, edx
je 0x404651
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x404630
jmp 0x404653
mov esi, 0x1505
jmp 0x404653
mov esi, ecx
mov dword [esp], eax
mov ecx, dword [esp + 0x24]
mov ebx, dword [ecx + 0x20]
lea ebp, [ebx - 1]
mov eax, ebx
sub eax, 1
mov dword [esp + 0xc], eax
jb 0x4046f1
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x404684
inc ebp
dec ebx
je 0x4046ef
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x4046ef
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x404680
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.0040ccd0
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x404680
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.0040ccf0
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x404680
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x4046ef
cmp dword [eax + 4], 2
mov edi, 0
jne 0x4046f1
mov edi, dword [eax + 8]
jmp 0x4046f1
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret