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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e1fd0
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x50c0e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xa8], ecx
mov eax, dword [ebp - 0xa8]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp - 0xa8]
mov eax, dword [edx + 0x10]
mov dword [eax + 0x590], 0
mov ecx, dword [ebp - 0xa8]
cmp dword [ecx + 4], 0
jne 0x49ff59
mov dword [ebp - 0xc0], 8
mov dword [ebp - 0xbc], 0x800
lea edx, [ebp - 0xc0]
push edx
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
test eax, eax
je 0x49ff13
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0xa8]
call fcn.0049f780
mov dword [ebp - 0xb0], 0x40030000
push 0
sub esp, 0x10
mov ecx, esp
mov edx, dword [ebp - 0x20]
mov dword [ecx], edx
mov eax, dword [ebp - 0x1c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x18]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0x14]
mov dword [ecx + 0xc], eax
push 0
mov ecx, dword [ebp - 0xb0]
push ecx
push 0
mov edx, dword [ebp - 0xa8]
mov eax, dword [edx + 0x10]
mov ecx, dword [ebp - 0xa8]
mov edx, dword [eax]
mov ecx, dword [ecx + 0x10]
mov eax, dword [edx + 0x1c]
call eax
mov ecx, eax
call fcn.00427d00
push eax
mov ecx, dword [ebp - 0xa8]
call fcn.00431000
push 1
mov ecx, dword [ebp - 0xa8]
mov ecx, dword [ecx + 0x10]
call fcn.00427290
push eax
mov edx, dword [ebp - 0xa8]
mov eax, dword [edx + 0x10]
mov ecx, dword [ebp - 0xa8]
mov edx, dword [eax]
mov ecx, dword [ecx + 0x10]
mov eax, dword [edx + 0x1c]
call eax
mov ecx, eax
call fcn.004276e0
mov ecx, dword [eax]
push ecx
push 0x30
mov edx, dword [ebp - 0xa8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0xa4]
push ecx
mov edx, dword [ebp - 0xa8]
mov eax, dword [edx + 0x10]
mov ecx, dword [ebp - 0xa8]
mov edx, dword [eax]
mov ecx, dword [ecx + 0x10]
mov eax, dword [edx + 0x28]
call eax
mov dword [ebp - 0xb4], eax
mov ecx, dword [ebp - 0xb4]
mov dword [ebp - 0xb8], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0xb8]
call fcn.00423490
mov byte [ebp - 0xa9], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa4]
call fcn.00422460
movzx edx, byte [ebp - 0xa9]
test edx, edx
je 0x49ffd4
call fcn.0049fba0
mov ecx, dword [ebp - 0xa8]
mov edx, dword [ecx + 0x10]
mov dword [edx + 0x588], eax
mov eax, dword [ebp - 0xa8]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 0x588]
push edx
push 0
push 0x465
mov eax, dword [ebp - 0xa8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
push 5
mov edx, dword [ebp - 0xa8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 0xa8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebp - 0xa8]
mov byte [eax + 0x18], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b83c8
mov esp, ebp
pop ebp
ret 4
Function at 0x4a00a0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4a00e5
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [ebp - 4]
cmp eax, dword [ecx + 4]
jne 0x4a00d6
mov edx, dword [ebp + 0x14]
mov dword [edx], 1
xor eax, eax
jmp 0x4a015d
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetParent]
mov dword [ebp - 8], eax
jmp 0x4a00b2
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
cmp dword [ecx + 0x590], 0
jne 0x4a014b
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
add eax, 0x588
push eax
push 0
push 0x466
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
mov dword [ecx + 0x590], 1
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x10]
call fcn.004a0190
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4a7960
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e25a0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x50c0e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.00430cb0
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
call fcn.004a7af0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0x18
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx], vtable.DuiLib::INotifyUI.0
mov edx, dword [ebp - 0x10]
add edx, 0x1c
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
mov dword [eax], vtable.DuiLib::IDialogBuilderCallback.0
mov ecx, dword [ebp - 0x10]
mov dword [ecx], vtable.DuiLib::CMenuWnd.0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x10], vtable.DuiLib::CMenuWnd.1.0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x18], vtable.DuiLib::CMenuWnd.2.0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x1c], vtable.DuiLib::CMenuWnd.3.0
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x20], 0
mov eax, dword [ebp - 0x10]
add eax, 0x2c
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], 0x4e4830
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.00424b10
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x76c], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x770], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x774], 6
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4aaad0
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 0x4aab5e
call fcn.004aa6d0
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 0x4aab5e
call fcn.004aa6d0
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 0x4aab6f
mov ecx, dword [ebp - 0x28]
add ecx, 0x10
mov dword [ebp - 0x38], ecx
jmp 0x4aab76
mov dword [ebp - 0x38], 0
call fcn.004aa6d0
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 0x4aaba7
mov ecx, dword [ebp + 0x18]
call fcn.00427d00
mov dword [ebp - 0x40], eax
jmp 0x4aabca
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.00427d00
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x24]
call fcn.00422210
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.00431000
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 0x4aac45
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.USER32.dll_GetParent]
mov dword [ebp - 0x2c], eax
jmp 0x4aac28
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.004b83c8
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x4b4e00
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.0x4b4e65.8
mov eax, dword [ebp - 0x214]
jmp dword [eax*4 + 0x4b4efc]
mov ecx, dword [ebp - 0x210]
or ecx, 0x100
mov dword [ebp - 0x210], ecx
cmp dword [ebp + 0x10], 0
je 0x4b4e96
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.004ba8e0
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.004222c0
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.004b83c8
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4b89bb
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004b7e60
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.004cf8a7
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4ca63f
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4ca79b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004b7d70
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.004d2522
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 0x4ca794
cmp eax, dword [ecx + edi + 0x24]
jne 0x4ca794
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 0x4ca794
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004d2522
add esp, 0x14
test edx, edx
jl 0x4ca794
jg 0x4ca70a
test eax, eax
jb 0x4ca794
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4ca794
jl 0x4ca724
cmp dword [ebp - 0x1008], eax
ja 0x4ca794
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4ca742
test ebx, ebx
je 0x4ca77b
cmp ecx, edi
jae 0x4ca77b
mov al, byte [ecx]
cmp al, 0xd
jne 0x4ca75c
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4ca768
cmp byte [ecx + 1], 0xa
jne 0x4ca768
inc ecx
jmp 0x4ca768
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 0x4ca742
cmp edx, ebx
jne 0x4ca742
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4ca799
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004b83c8
leave
ret

Function at 0x4d01b0
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.004d0097
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4d01e4
push dword [ebp + 8]
mov ecx, esi
call dword [0x4e469c]
call esi
jmp 0x4d01ea
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4d022e
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.004d0097
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4d0265
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 0x4d026d
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.004d0097
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4d02a7
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 0x4d1820
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 0x4d1860
cmp byte [ebx], 0xa
jne 0x4d1860
or byte [edi + eax + 0x28], 4
jmp 0x4d1865
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 0x4d1964
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4d1947
inc eax
cmp dl, 0xd
je 0x4d1891
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4d18b7
cmp eax, ecx
jae 0x4d18c5
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 0x4d1879
jmp 0x4d1964
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 0x4d1942
cmp dword [ebp - 0x10], 0
je 0x4d1942
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x50f4f8]
test byte [eax + edi + 0x28], 0x48
je 0x4d191c
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4d1907
mov byte [esi], dl
jmp 0x4d1918
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 0x4d1964
cmp byte [ebp - 1], 0xa
jne 0x4d192b
cmp esi, ebx
jne 0x4d192b
mov byte [esi], 0xa
jmp 0x4d1963
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004d2540
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4d1964
mov byte [esi], 0xd
jmp 0x4d1963
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x50f4f8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4d1961
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4d1964
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4d196d
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 0x4d19b3
cmp word [ebx], dx
jne 0x4d19b3
or byte [eax + edi + 0x28], 4
jmp 0x4d19b8
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 0x4d1b1b
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 0x4d1afb
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4d19f9
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4d1a2f
cmp eax, edx
jae 0x4d1a3d
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 0x4d19d4
jmp 0x4d1b1b
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 0x4d1af6
cmp dword [ebp - 0x18], 0
je 0x4d1af6
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x50f4f8]
test byte [eax + edi + 0x28], 0x48
je 0x4d1acc
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 0x4d1a90
mov word [esi], cx
jmp 0x4d1ac7
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 0x4d1b1b
pop eax
cmp word [ebp - 4], ax
jne 0x4d1adc
cmp esi, ebx
jne 0x4d1adc
mov word [esi], ax
jmp 0x4d1b18
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004d2540
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4d1b1b
push 0xd
pop eax
jmp 0x4d1ad7
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x50f4f8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4d1b15
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4d1b1b
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 0x4d3344
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 0x4d338f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004d34df
test al, al
jne 0x4d3389
sub edx, 2
cmp edx, edi
jne 0x4d336f
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4d33b1
lea eax, [edi + 2]
cmp edx, eax
je 0x4d33b1
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004d3290
add esp, 0x10
jmp 0x4d34ab
push esi
lea ecx, [ebp - 0x255]
call fcn.004d34df
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 0x4d33f4
push dword [ebp - 0x25c]
jmp 0x4d33a1
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 0x4d3431
cmp word [ebp - 0x226], 0
je 0x4d3452
cmp word [ebp - 0x226], ax
jne 0x4d3431
cmp word [ebp - 0x224], 0
je 0x4d3452
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004d3290
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4d349e
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4d340b
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4d3486
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4d34ab
push 0x4d30c0
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004db2d0
add esp, 0x10
jmp 0x4d347b
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.004b83c8
leave
ret

Function at 0x4d6827
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004ce54e
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 0x4d6896
cmp esi, dword [ebp - 4]
je 0x4d6891
cmp dword [ebp + 0xc], 0
je 0x4d6891
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4d686e
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004d6379
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4d6898
xor eax, eax
inc eax
jmp 0x4d6898
xor eax, eax
pop edi
pop esi
leave
ret