joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4aaef0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x50c0e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov dword [eax + 0x24], ecx
mov dword [eax + 0x28], edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x76c], ecx
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x770], 0
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x2c], ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp + 0x20]
mov dword [edx + 0x774], eax
cmp dword [ebp + 8], 0
jne 0x4aaf7e
call fcn.004aaaf0
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x30]
mov edx, dword [eax + 0xc]
call edx
cmp dword [ebp + 0x1c], 0
je 0x4aaf7e
call fcn.004aaaf0
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x34]
mov eax, dword [edx + 0x14]
call eax
cmp dword [ebp - 0x28], 0
je 0x4aaf8f
mov ecx, dword [ebp - 0x28]
add ecx, 0x10
mov dword [ebp - 0x38], ecx
jmp 0x4aaf96
mov dword [ebp - 0x38], 0
call fcn.004aaaf0
mov dword [ebp - 0x3c], eax
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x3c]
mov eax, dword [edx]
call eax
mov ecx, dword [ebp - 0x28]
cmp dword [ecx + 0x76c], 0
jne 0x4aafc7
mov ecx, dword [ebp + 0x18]
call fcn.00427ae0
mov dword [ebp - 0x40], eax
jmp 0x4aafea
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x76c]
mov ecx, dword [ebp - 0x28]
mov edx, dword [eax]
mov ecx, dword [ecx + 0x76c]
mov eax, dword [edx + 0x1c]
call eax
mov ecx, eax
call fcn.00427ae0
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x24]
call fcn.00421ff0
mov ecx, dword [eax]
mov dword [ebp - 0x14], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x10], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0xc], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 8], edx
push 0
sub esp, 0x10
mov eax, esp
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov edx, dword [ebp - 0x10]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0xc]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 8]
mov dword [eax + 0xc], edx
push 0x88
push SysReAllocString
push 0
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x28]
call fcn.00430de0
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x4ab065
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.USER32.dll_GetParent]
mov dword [ebp - 0x2c], eax
jmp 0x4ab048
push 5
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 1
push 0x86
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b87e8
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x4b5220
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x50c0e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], 0
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov dword [ebp - 0x210], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x214], ecx
mov edx, dword [ebp - 0x214]
sub edx, 0x21
mov dword [ebp - 0x214], edx
cmp dword [ebp - 0x214], 0xd
ja case.0x4b5285.8
mov eax, dword [ebp - 0x214]
jmp dword [eax*4 + 0x4b531c]
mov ecx, dword [ebp - 0x210]
or ecx, 0x100
mov dword [ebp - 0x210], ecx
cmp dword [ebp + 0x10], 0
je 0x4b52b6
mov edx, dword [ebp - 0x210]
or edx, 0x1000000
mov dword [ebp - 0x210], edx
push 0x208
push 0
lea eax, [ebp - 0x20c]
push eax
call fcn.004bad00
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
mov edx, dword [ebp - 0x210]
shl edx, 0x10
push edx
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
push 0xffffffffffffffff
lea eax, [ebp - 0x20c]
push eax
mov ecx, dword [ebp + 8]
call fcn.004220a0
mov ecx, dword [ebp - 0x218]
or ecx, 1
mov dword [ebp - 0x218], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b87e8
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4b8ddb
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4b8e1a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4b8e1a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4b8e1a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4b8e1a
cmp dword [ecx + 0x74], 0xe
jbe 0x4b8e1a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4caa1d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004b8280
mov eax, dword [0x50c0e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004cfcc7
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4caa5f
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4cabbb
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004b8190
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x50f4f8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004d2942
mov ecx, dword [esi*4 + 0x50f4f8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x4cabb4
cmp eax, dword [ecx + edi + 0x24]
jne 0x4cabb4
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4cabb4
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004d2942
add esp, 0x14
test edx, edx
jl 0x4cabb4
jg 0x4cab2a
test eax, eax
jb 0x4cabb4
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4cabb4
jl 0x4cab44
cmp dword [ebp - 0x1008], eax
ja 0x4cabb4
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4cab62
test ebx, ebx
je 0x4cab9b
cmp ecx, edi
jae 0x4cab9b
mov al, byte [ecx]
cmp al, 0xd
jne 0x4cab7c
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4cab88
cmp byte [ecx + 1], 0xa
jne 0x4cab88
inc ecx
jmp 0x4cab88
movzx eax, al
movsx eax, byte [eax + 0x50c370]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4cab62
cmp edx, ebx
jne 0x4cab62
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4cabb9
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004b87e8
leave
ret

Function at 0x4d05d0
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4f7168
push 0x4f7160
push str.FlsAlloc
push 0x1f
call fcn.004d04b7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4d0604
push dword [ebp + 8]
mov ecx, esi
call dword [0x4e469c]
call esi
jmp 0x4d060a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4d064e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4f7178
push 0x4f7170
push str.FlsGetValue
push 0x21
call fcn.004d04b7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4d0685
push dword [ebp + 8]
mov ecx, esi
call dword [0x4e469c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4d068d
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4f7180
push 0x4f7178
push str.FlsSetValue
push 0x22
call fcn.004d04b7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4d06c7
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4e469c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x4d1c40
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x50f4f8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4d1c80
cmp byte [ebx], 0xa
jne 0x4d1c80
or byte [edi + eax + 0x28], 4
jmp 0x4d1c85
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x4d1d84
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4d1d67
inc eax
cmp dl, 0xd
je 0x4d1cb1
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4d1cd7
cmp eax, ecx
jae 0x4d1ce5
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x4d1c99
jmp 0x4d1d84
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4d1d62
cmp dword [ebp - 0x10], 0
je 0x4d1d62
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x50f4f8]
test byte [eax + edi + 0x28], 0x48
je 0x4d1d3c
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4d1d27
mov byte [esi], dl
jmp 0x4d1d38
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x50f4f8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4d1d84
cmp byte [ebp - 1], 0xa
jne 0x4d1d4b
cmp esi, ebx
jne 0x4d1d4b
mov byte [esi], 0xa
jmp 0x4d1d83
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004d2960
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4d1d84
mov byte [esi], 0xd
jmp 0x4d1d83
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x50f4f8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4d1d81
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4d1d84
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4d1d8d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x50f4f8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4d1dd3
cmp word [ebx], dx
jne 0x4d1dd3
or byte [eax + edi + 0x28], 4
jmp 0x4d1dd8
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4d1f3b
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4d1f1b
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4d1e19
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4d1e4f
cmp eax, edx
jae 0x4d1e5d
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x4d1df4
jmp 0x4d1f3b
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4d1f16
cmp dword [ebp - 0x18], 0
je 0x4d1f16
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x50f4f8]
test byte [eax + edi + 0x28], 0x48
je 0x4d1eec
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4d1eb0
mov word [esi], cx
jmp 0x4d1ee7
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x50f4f8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x50f4f8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x50f4f8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4d1f3b
pop eax
cmp word [ebp - 4], ax
jne 0x4d1efc
cmp esi, ebx
jne 0x4d1efc
mov word [esi], ax
jmp 0x4d1f38
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004d2960
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4d1f3b
push 0xd
pop eax
jmp 0x4d1ef7
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x50f4f8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4d1f35
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4d1f3b
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4d3764
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x50c0e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4d37af
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004d38ff
test al, al
jne 0x4d37a9
sub edx, 2
cmp edx, edi
jne 0x4d378f
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4d37d1
lea eax, [edi + 2]
cmp edx, eax
je 0x4d37d1
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004d36b0
add esp, 0x10
jmp 0x4d38cb
push esi
lea ecx, [ebp - 0x255]
call fcn.004d38ff
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4d3814
push dword [ebp - 0x25c]
jmp 0x4d37c1
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4d3851
cmp word [ebp - 0x226], 0
je 0x4d3872
cmp word [ebp - 0x226], ax
jne 0x4d3851
cmp word [ebp - 0x224], 0
je 0x4d3872
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004d36b0
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4d38be
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4d382b
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4d38a6
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4d38cb
push 0x4d34e0
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004db6f0
add esp, 0x10
jmp 0x4d389b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b87e8
leave
ret

Function at 0x4d6c47
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004ce96e
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 0x4d6cb6
cmp esi, dword [ebp - 4]
je 0x4d6cb1
cmp dword [ebp + 0xc], 0
je 0x4d6cb1
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4d6c8e
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004d6799
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4d6cb8
xor eax, eax
inc eax
jmp 0x4d6cb8
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4d6d1d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x50c0e0]
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.004ce96e
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.004ce96e
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 0x4d6d94
cmp word [ecx], dx
je 0x4d6d94
mov eax, dword [0x4faf94]
push edi
dec eax
push eax
push 0x4fae80
call fcn.004d6cbc
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4d6e07
cmp word [eax], dx
je 0x4d6e07
mov eax, dword [edi]
test eax, eax
je 0x4d6db8
cmp word [eax], dx
je 0x4d6db8
lea eax, [ebp - 0x10]
push eax
call fcn.004d669f
jmp 0x4d6dc1
lea eax, [ebp - 0x10]
push eax
call fcn.004d673a
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4d6e31
mov eax, dword [0x4fae7c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4fab70
call fcn.004d6cbc
add esp, 0xc
test al, al
je 0x4d6e31
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4d6dfc
cmp word [eax], di
je 0x4d6dfc
lea eax, [ebp - 0x10]
push eax
call fcn.004d669f
pop ecx
jmp 0x4d6e33
lea eax, [ebp - 0x10]
push eax
call fcn.004d673a
jmp 0x4d6df9
mov eax, dword [edi]
test eax, eax
je 0x4d6e1e
cmp word [eax], dx
je 0x4d6e1e
lea eax, [ebp - 0x10]
push eax
call fcn.004d6654
pop ecx
jmp 0x4d6e31
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 0x4d6efc
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004d6b41
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4d6efc
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4d6efc
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4d6efc
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4d6e89
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004d07cd
test ebx, ebx
je 0x4d6ef7
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004d07cd
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4d6efc
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 0x4d6efc
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004c939c
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4d6efe
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b87e8
leave
ret
Function at 0x4dcaf0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4dcb1d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4dcb1d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x10a3058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.010a31a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x10a307e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10a306a
add dl, dl
jne 0x10a3089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10a30dc
xor eax, eax
add dl, dl
jne 0x10a3096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10a317d
add dl, dl
jne 0x10a30a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10a30b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10a30bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10a30c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x10a30d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10a3075
mov eax, 1
add dl, dl
jne 0x10a30ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10a30f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10a30e1
sub eax, ebx
mov ebx, 1
jne 0x10a3128
mov ecx, 1
add dl, dl
jne 0x10a310e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10a3119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10a3105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10a3075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x10a313f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10a314a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10a3136
cmp eax, 0x7d00
jae 0x10a316d
cmp eax, 0x500
jb 0x10a3168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10a3075
cmp eax, 0x7f
ja 0x10a3170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10a3075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x10a319e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x10a3075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10