joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d6380
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x2010
call fcn.00530230
mov eax, dword [0x58cb30]
xor eax, esp
mov dword [esp + 0x200c], eax
mov eax, dword [esp + 0x2014]
push ebx
push esi
push 0x55ba0c
mov esi, ecx
mov ecx, dword [esp + 0x2024]
push eax
mov dword [esp + 0x18], ecx
call fcn.004fdf10
mov ebx, eax
test ebx, ebx
mov dword [esp + 0xc], ebx
sete cl
mov byte [esi + 0x3044], cl
test ebx, ebx
je 0x4d6512
push ebp
push edi
push ebx
push 0x2000
lea eax, [esp + 0x24]
xor esi, esi
push 1
push eax
mov dword [esp + 0x20], esi
call fcn.0053c895
add esp, 0x10
mov ebp, eax
cmp ebp, 0x28
jbe 0x4d6505
lea ebx, [ebp - 0x28]
xor edi, edi
mov eax, 0xfeff
test ebx, ebx
je 0x4d64a0
lea esi, [esp + 0x20]
cmp byte [esi - 4], 0x2a
jne 0x4d643c
cmp byte [esi - 3], 0x2a
jne 0x4d643c
push 0xc
lea eax, [esi - 2]
push 0x5688f0
push eax
call fcn.00539030
add esp, 0xc
test eax, eax
je 0x4d64d0
mov eax, 0xfeff
cmp word [esi - 4], 0x2a
jne 0x4d6463
cmp word [esi - 2], 0x2a
jne 0x4d6463
push 0xc
push str.messages
push esi
call fcn.0053968d
add esp, 0xc
test eax, eax
je 0x4d64d0
mov eax, 0xfeff
cmp word [esi - 4], ax
jne 0x4d6492
cmp word [esi - 2], 0x2a
jne 0x4d6492
cmp word [esi], 0x2a
jne 0x4d6492
push 0xc
lea eax, [esi + 2]
push str.messages
push eax
call fcn.0053968d
add esp, 0xc
test eax, eax
je 0x4d64d0
mov eax, 0xfeff
inc edi
inc esi
cmp edi, ebx
jb 0x4d6410
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
add ebp, 0xffffffd8
add esi, ebp
push 0
push esi
push ebx
mov dword [esp + 0x1c], esi
call fcn.0053ccab
push ebx
push 0x2000
lea eax, [esp + 0x30]
push 1
push eax
call fcn.0053c895
add esp, 0x1c
jmp 0x4d63ef
mov eax, dword [esp + 0x10]
add eax, edi
mov edi, dword [esp + 0x14]
push 0
push eax
push edi
call fcn.0053ccab
push edi
push dword [esp + 0x203c]
push 1
push dword [esp + 0x30]
call fcn.0053c895
push edi
mov esi, eax
call fcn.005391cd
add esp, 0x20
mov eax, esi
jmp 0x4d6510
push ebx
call fcn.005391cd
add esp, 4
xor eax, eax
pop edi
pop ebp
mov ecx, dword [esp + 0x2014]
pop esi
pop ebx
xor ecx, esp
call fcn.00530218
add esp, 0x2010
ret 0xc

Function at 0x4d8890
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x130
mov eax, dword [0x58cb30]
xor eax, esp
mov dword [esp + 0x12c], eax
cmp dword [0x58b020], 0
push esi
mov esi, dword [esp + 0x140]
push edi
mov edi, dword [esp + 0x148]
jne 0x4d88ee
push 0x64
lea eax, [esp + 0x70]
push eax
push 0xf
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ax, word [esp + 0x6c]
mov word [0x5e0dec], ax
xor eax, eax
mov word [0x5e0dee], ax
mov dword [0x58b020], 0x5e0dec
push 0x32
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x148]
push dword [esp + 0x148]
call fcn.004bd8b0
push edi
push esi
xor eax, eax
push 0x58b010
mov word [esi], ax
lea eax, [esp + 0x14]
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
mov ecx, dword [esp + 0x134]
xor eax, eax
mov word [esi + edi*2 - 2], ax
pop edi
pop esi
xor ecx, esp
call fcn.00530218
add esp, 0x130
ret 0x10
Function at 0x4d8950
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x15c
mov eax, dword [0x58cb30]
xor eax, esp
mov dword [esp + 0x158], eax
mov ecx, dword [esp + 0x168]
mov eax, dword [esp + 0x170]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x16c]
xor ebp, ebp
push edi
mov edi, dword [esp + 0x174]
xor ebx, ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], 0x5e7
mov dword [esp + 0x1c], 0x5e8
mov dword [esp + 0x20], 0x5e9
mov dword [esp + 0x24], 0x5ea
mov dword [esp + 0x14], eax
test edi, edi
jne 0x4d89bc
cmp esi, 0x400
jb 0x4d89e5
mov eax, 1
cmp eax, 5
jae 0x4d89e5
mov ebx, esi
inc ebp
shrd esi, edi, 0xa
and ebx, 0x3ff
inc eax
shr edi, 0xa
test edi, edi
ja 0x4d89c1
jb 0x4d89e5
cmp esi, 0x400
jae 0x4d89c1
cmp dword [0x58b020], 0
jne 0x4d8a25
push 0x64
lea eax, [esp + 0xa4]
push eax
push 0xf
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ax, word [esp + 0xa0]
mov word [0x5e0dec], ax
xor eax, eax
mov word [0x5e0dee], ax
mov dword [0x58b020], 0x5e0dec
push 0x32
lea eax, [esp + 0x40]
push eax
push edi
push esi
call fcn.004bd8b0
push dword [esp + 0x17c]
mov eax, dword [esp + 0x14]
xor ecx, ecx
push eax
push 0x58b010
mov word [eax], cx
lea eax, [esp + 0x48]
push eax
push ecx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
mov eax, dword [esp + 0x17c]
xor edx, edx
mov ecx, dword [esp + 0x10]
mov word [ecx + eax*2 - 2], dx
test edi, edi
ja 0x4d8b1a
jb 0x4d8a7f
cmp esi, 0x64
jae 0x4d8b1a
test ebx, ebx
je 0x4d8b1a
imul eax, ebx, 0x3e8
shr eax, 0xa
test edi, edi
ja 0x4d8a9f
jb 0x4d8a9b
cmp esi, 0xa
jae 0x4d8a9f
mov bl, 1
jmp 0x4d8aa1
xor bl, bl
movzx ecx, bl
neg ecx
sbb ecx, ecx
xor edx, edx
and ecx, 0xffffffa6
add ecx, 0x64
div ecx
mov edi, eax
test edi, edi
je 0x4d8b20
test bl, bl
je 0x4d8ac6
mov esi, 0x55b978
cmp edi, 0xa
jb 0x4d8acb
mov esi, 0x558718
push 0x64
lea eax, [esp + 0xa4]
push eax
push 0xe
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
movzx eax, word [esp + 0xa0]
push edi
push esi
push eax
push str._c_s_u
lea eax, [esp + 0x38]
push 0xa
push eax
call fcn.00404ce0
mov ebx, dword [esp + 0x194]
lea eax, [esp + 0x40]
mov esi, dword [esp + 0x28]
add esp, 0x18
push ebx
push eax
push esi
call fcn.004bda80
jmp 0x4d8b2b
mov ebx, eax
mov esi, ecx
jmp 0x4d8b2b
mov ebx, dword [esp + 0x17c]
mov esi, dword [esp + 0x10]
cmp dword [esp + 0x180], 0
jne 0x4d8b39
test ebp, ebp
je 0x4d8b56
push ebx
push 0x55bb90
push esi
call fcn.004bda80
push ebx
push dword [esp + ebp*4 + 0x18]
call fcn.004b7300
push eax
push esi
call fcn.004bda80
mov ecx, dword [esp + 0x168]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00530218
add esp, 0x15c
ret 0x14
Function at 0x4d8ef0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x2c
mov eax, dword [0x58cb30]
xor eax, esp
mov dword [esp + 0x28], eax
push ebp
mov ebp, dword [esp + 0x34]
push esi
push ebp
mov dword [esp + 0x1c], ebp
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
test esi, esi
je 0x4d90c7
lea ecx, [esi*2 + 2]
push edi
push ecx
call fcn.005398b8
mov edi, eax
add esp, 4
test edi, edi
je 0x4d90c6
lea ecx, [esi + 1]
xor eax, eax
push ecx
push edi
push ebp
mov word [edi], ax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov esi, edi
lea ecx, [esi + 2]
lea ebx, [ebx]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4d8f50
push ebx
lea eax, [esp + 0x28]
sub esi, ecx
push eax
push ebp
sar esi, 1
call dword [sym.imp.USER32.dll_GetClientRect]
push ebp
call dword [sym.imp.USER32.dll_GetDC]
push 0
push 0
push 0x31
mov ebx, eax
push ebp
mov dword [esp + 0x24], ebx
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x18]
push eax
push esi
push edi
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov ecx, dword [esp + 0x18]
cmp ecx, dword [esp + 0x30]
jl 0x4d90a9
push edi
call fcn.004a3770
mov edx, eax
cmp edx, edi
je 0x4d8ff5
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4d8fc0
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push edi
call fcn.00531d40
mov esi, edi
add esp, 0xc
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4d8fe6
sub esi, ecx
sar esi, 1
lea eax, [esp + 0x18]
mov ebp, esi
push eax
push esi
push edi
push ebx
shr ebp, 1
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
lea eax, [ebp + 2]
mov dword [esp + 0x10], eax
cmp eax, esi
jae 0x4d909d
lea ebx, [edi + eax*2]
mov esi, 0x2026
mov edi, edi
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4d9025
mov ecx, dword [esp + 0x18]
sub eax, edx
sar eax, 1
cmp ecx, dword [esp + 0x30]
jl 0x4d9099
cmp ebp, 1
jb 0x4d9099
cmp eax, 1
jb 0x4d9099
lea eax, [eax*2 + 2]
mov word [ebx - 6], si
push eax
lea eax, [ebx - 4]
push ebx
push eax
call fcn.00531d40
mov esi, edi
add esp, 0xc
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4d9066
dec dword [esp + 0x10]
lea eax, [esp + 0x18]
sub esi, ecx
dec ebp
push eax
sar esi, 1
sub ebx, 2
push esi
push edi
push dword [esp + 0x20]
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
cmp dword [esp + 0x10], esi
mov esi, 0x2026
jb 0x4d9020
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x20]
push edi
push ebp
call dword [sym.imp.USER32.dll_SetWindowTextW]
push dword [esp + 0x24]
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
push ebp
call dword [sym.imp.USER32.dll_ReleaseDC]
push edi
call fcn.0053867f
add esp, 4
pop ebx
pop edi
mov ecx, dword [esp + 0x30]
pop esi
pop ebp
xor ecx, esp
call fcn.00530218
add esp, 0x2c
ret 4
Function at 0x4d9220
Capabilities:
Get graphical window text

Disassembly:
push edi
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x4d9284
push ebx
lea ebx, [eax + 1]
xor ecx, ecx
mov eax, ebx
mov edx, 2
mul edx
push esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00530413
mov esi, eax
add esp, 4
test esi, esi
je 0x4d9282
push ebx
push esi
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0
push 0
push dword [esp + 0x20]
push esi
call fcn.004d9390
push esi
call fcn.0053041c
add esp, 4
pop esi
pop ebx
pop edi
ret 0x14

Function at 0x4db370
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x30
push esi
mov esi, dword [esp + 0x38]
push edi
mov edi, ecx
cmp esi, 0x10d
jne 0x4db3c6
push 1
push str.Settings
call fcn.004fd160
test eax, eax
je 0x4db3bc
lea esi, [edi + 0x108c]
push esi
push 0x4daf50
push dword [0x5933dc]
push str.ORGTHEMES
push dword [0x5d3758]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
mov dword [esi], 0
pop edi
mov al, 1
pop esi
add esp, 0x30
ret 4
cmp esi, 0x10e
jne 0x4db3f6
push 1
push 0x558718
push 0
push 0x4fe
call fcn.004b7300
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop edi
mov al, 1
pop esi
add esp, 0x30
ret 4
mov eax, dword [0x5933dc]
push ebx
test eax, eax
jne 0x4db404
xor ebx, ebx
jmp 0x4db42f
push eax
call dword [sym.imp.USER32.dll_GetMenu]
test eax, eax
jne 0x4db413
xor ebx, ebx
jmp 0x4db42f
push 4
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
test eax, eax
jne 0x4db424
xor ebx, ebx
jmp 0x4db42f
push 6
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
mov ebx, eax
cmp esi, 0x10f
jne 0x4db44b
mov dword [edi + 0x80], 0xffffffff
push 0x558718
jmp 0x4db4ec
lea eax, [esi - 0x41a]
cmp eax, 0x7f
ja 0x4db532
lea eax, [esp + 0xc]
mov dword [esp + 0x14], 0
push eax
push 0
push esi
push ebx
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x1c], 0x30
mov dword [esp + 0x20], 0x20
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
test eax, eax
je 0x4db532
mov eax, dword [esp + 0x2c]
cmp eax, dword [edi + 0x74]
jae 0x4db532
mov dword [edi + 0x80], eax
imul eax, eax, 0x1304
add eax, dword [edi + 0x70]
push eax
call fcn.004a3770
push eax
push str.ActivePath
push str.InterfaceThemes
call fcn.004d0d50
mov eax, dword [edi + 0x1088]
cmp eax, 0xffffffff
je 0x4db510
push 0
push eax
push ebx
call dword [sym.imp.USER32.dll_CheckMenuItem]
push 8
push esi
push ebx
call dword [sym.imp.USER32.dll_CheckMenuItem]
mov ecx, edi
mov dword [edi + 0x1088], esi
call fcn.004d9850
pop ebx
pop edi
mov al, 1
pop esi
add esp, 0x30
ret 4
pop ebx
pop edi
xor al, al
pop esi
add esp, 0x30
ret 4
Function at 0x4dd4a0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x80
mov eax, dword [0x58cb30]
xor eax, esp
mov dword [esp + 0x7c], eax
push edi
mov edi, ecx
mov eax, dword [edi + 4]
test eax, eax
je 0x4dd4c9
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [edi + 4], 0
push 1
push str.ViewSmall
push str.GeneralToolbar
call fcn.004cffa0
test eax, eax
je 0x4dd6b5
push ebx
push ebp
push 0
push dword [0x5d375c]
push 0xd
push dword [0x5933dc]
push 0
push 0
push 0
push 0
push 0x56000944
push 0
push str.ToolbarWindow32
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0
push 0x14
push 0x41e
push eax
mov dword [edi + 4], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, 0x10
mov ebp, ebx
call fcn.004fe3e0
test al, al
je 0x4dd543
push ebx
call fcn.004fe480
push ebp
mov ebx, eax
call fcn.004fe480
mov ebp, eax
push esi
movzx esi, bp
movzx ecx, bx
shl esi, 0x10
or esi, ecx
push esi
push 0
push 0x41f
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push esi
push 0
push 0x420
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [edi + 0xc]
pop esi
test eax, eax
je 0x4dd580
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push 0
push 0x85
push 0x84
push 0x83
push str.FolderUp.png
push 1
call fcn.004da800
mov dword [edi + 0xc], eax
cmp byte [0x5d3808], 0
je 0x4dd5af
push eax
call fcn.004fd7b0
call fcn.004fe740
test al, al
jne 0x4dd5dc
push dword [edi + 0xc]
mov ecx, 0x5c8968
call fcn.004d97e0
push ebp
push ebx
push dword [edi + 0xc]
call fcn.004febe0
push 0xf
push 0xffffffffffffffff
push eax
mov dword [edi + 0xc], eax
call fcn.004fea00
mov eax, dword [edi + 0xc]
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push eax
push 1
push 0x413
push dword [edi + 4]
mov dword [esp + 0x1c], 0
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x58b528
push 1
push 0x444
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esp + 0x14]
mov ecx, edi
push eax
push 2
call fcn.004dc570
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], 0x38
mov dword [esp + 0x18], 0x173
pop ebp
pop ebx
test eax, eax
jne 0x4dd642
mov eax, 1
or eax, 4
mov dword [esp + 0x40], 2
mov dword [esp + 0x14], eax
mov eax, dword [edi + 4]
push 0x12
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], 0
call dword [sym.imp.USER32.dll_GetSysColor]
push 0xf
mov dword [esp + 0x1c], eax
call dword [sym.imp.USER32.dll_GetSysColor]
cmp dword [esp + 0x38], 0
mov dword [esp + 0x1c], eax
jne 0x4dd687
mov dword [esp + 0x38], 0x2a
lea eax, [esp + 0x70]
push eax
push dword [0x5c63d4]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x34], eax
lea eax, [esp + 0xc]
push eax
push 0xffffffffffffffff
push 0x40a
push dword [edi + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x80]
pop edi
xor ecx, esp
call fcn.00530218
add esp, 0x80
ret
Function at 0x4e0a00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x553540
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x58cb30]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
cmp eax, ebx
je 0x4e0b90
add eax, 0x54
nop
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov ecx, dword [eax - 0x54]
mov dword [esi], ecx
mov ecx, dword [eax - 0x50]
mov dword [esi + 4], ecx
mov ecx, dword [eax - 0x4c]
mov dword [esi + 8], ecx
mov ecx, dword [eax - 0x48]
mov dword [esi + 0xc], ecx
mov ecx, dword [eax - 0x44]
mov dword [esi + 0x10], ecx
mov ecx, dword [eax - 0x40]
mov dword [esi + 0x14], ecx
xor ecx, ecx
mov dword [ebp - 0x10], esi
mov dword [eax - 0x44], 0
mov dword [eax - 0x40], 7
mov word [eax - 0x54], cx
mov byte [ebp - 4], 1
mov ecx, dword [eax - 0x3c]
mov edx, dword [eax - 0x38]
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], edx
mov ecx, dword [eax - 0x34]
mov edx, dword [eax - 0x30]
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], edx
mov ecx, dword [eax - 0x2c]
mov edx, dword [eax - 0x28]
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], edx
mov ecx, dword [eax - 0x24]
mov dword [esi + 0x30], ecx
mov ecx, dword [eax - 0x20]
mov dword [esi + 0x34], ecx
mov ecx, dword [eax - 0x1c]
mov dword [esi + 0x38], ecx
mov ecx, dword [eax - 0x18]
mov dword [esi + 0x3c], ecx
mov dword [esi + 0x40], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov ecx, dword [eax - 0x14]
mov dword [esi + 0x40], ecx
mov ecx, dword [eax - 0x10]
mov dword [esi + 0x44], ecx
mov ecx, dword [eax - 0xc]
mov dword [esi + 0x48], ecx
mov ecx, dword [eax - 8]
mov dword [esi + 0x4c], ecx
mov ecx, dword [eax - 4]
mov dword [esi + 0x50], ecx
mov ecx, dword [eax]
mov dword [esi + 0x54], ecx
mov dword [eax - 4], 0
mov dword [eax], 0xf
mov byte [eax - 0x14], 0
mov byte [ebp - 4], 2
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
mov dword [esi + 0x58], ecx
mov dword [esi + 0x5c], edx
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
mov dword [esi + 0x60], ecx
mov dword [esi + 0x64], edx
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0x18]
mov dword [esi + 0x68], ecx
mov dword [esi + 0x6c], edx
mov ecx, dword [eax + 0x1c]
xor ecx, dword [esi + 0x70]
and ecx, 1
xor ecx, dword [esi + 0x70]
mov dword [esi + 0x70], ecx
mov edx, dword [eax + 0x1c]
xor edx, ecx
and edx, 2
xor edx, ecx
mov dword [esi + 0x70], edx
mov ecx, dword [eax + 0x1c]
xor ecx, edx
and ecx, 4
xor ecx, edx
mov dword [esi + 0x70], ecx
mov byte [ebp - 4], 0
lea eax, [eax + 0x78]
add esi, 0x78
lea ecx, [eax - 0x54]
mov dword [ebp - 0x18], esi
cmp ecx, ebx
jne 0x4e0a50
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0xffffffff
push edi
push esi
push esi
call fcn.004e0130
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4e1bd0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x64
mov eax, dword [0x58cb30]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
mov ebp, dword [esp + 0x74]
push esi
push edi
mov edi, dword [esp + 0x78]
cmp ebp, 4
jb 0x4e1c4c
nop
push edi
call fcn.004e5cd0
lea ecx, [edi + 2]
mov si, ax
push ecx
call fcn.004e5cd0
movzx ebx, ax
lea eax, [ebp - 4]
movzx ecx, si
cmp ebx, eax
ja 0x4e1d2d
cmp ecx, 9
je 0x4e1c28
cmp ecx, 0x4453
je 0x4e1c63
cmp ecx, 0x4c41
jne 0x4e1c39
push 0
push 4
push ebx
push edi
call fcn.004e5410
mov esi, eax
test esi, esi
jne 0x4e1c97
mov eax, 0xfffffffc
add edi, 4
sub eax, ebx
add edi, ebx
add ebp, eax
cmp ebp, 4
jae 0x4e1bf0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.00530218
add esp, 0x64
ret 8
cmp ebx, 5
jae 0x4e1c6f
mov esi, 0x4f
jmp 0x4e1c89
cmp byte [edi + 8], 0
jbe 0x4e1c7c
mov esi, 0x4001
jmp 0x4e1c89
push 0
push 5
push ebx
push edi
call fcn.004e5410
mov esi, eax
test esi, esi
je 0x4e1c39
mov dword [esp + 0x14], str.NTFS_ACL
jmp 0x4e1c9f
mov dword [esp + 0x14], str.OS_2
xor eax, eax
mov dword [esp + 0x10], 0x5b332a
lea ecx, [esp + 0x10]
mov dword [esp + 0x58], 0x48
mov dword [esp + 0x54], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], 0x558718
mov dword [esp + 0x28], 0x558718
mov dword [esp + 0x24], 0x558718
mov dword [esp + 0x20], 0x558718
mov dword [esp + 0x1c], 0x558718
mov dword [esp + 0x18], 0x5f2384
mov dword [esp + 0x50], 3
call fcn.004bf7b0
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.00530218
add esp, 0x64
ret 8
push ecx
push 0x56a7f4
lea eax, [esp + 0x64]
push 0xa
push eax
call fcn.00404ce0
xor eax, eax
mov dword [esp + 0x2c], 0x558718
add esp, 0x10
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], eax
lea eax, [esp + 0x5c]
mov dword [esp + 0x20], 0x558718
mov dword [esp + 0x24], 0x558718
mov dword [esp + 0x28], 0x558718
mov dword [esp + 0x2c], 0x558718
mov dword [esp + 0x58], 0x48
mov dword [esp + 0x10], 0x5b332a
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 0x5f2384
mov dword [esp + 0x50], 3
call fcn.004bf7b0
mov ecx, dword [esp + 0x70]
mov eax, 2
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00530218
add esp, 0x64
ret 8
Function at 0x4ea350
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
sub esp, 0x10
mov eax, dword [0x58cb30]
xor eax, esp
mov dword [esp + 0xc], eax
push ebx
push esi
push edi
mov edi, dword [esp + 0x20]
push 0x5e1e10
call fcn.00483130
mov edx, dword [esp + 0x24]
mov ebx, 0x12345678
mov esi, 0x23456789
mov dword [0x5f33a0], ebx
mov ecx, 0x34567890
mov dword [0x5f33a4], esi
mov dword [0x5f33a8], ecx
mov al, byte [edx]
test al, al
je 0x4ea3ed
lea ebx, [ebx]
movsx eax, al
lea edx, [edx + 1]
xor eax, ebx
shr ebx, 8
movzx eax, al
xor ebx, dword [eax*4 + 0x5e1e10]
movzx eax, bl
add eax, esi
mov dword [0x5f33a0], ebx
imul esi, eax, 0x8088405
inc esi
mov eax, esi
mov dword [0x5f33a4], esi
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5e1e10]
mov dword [0x5f33a8], ecx
mov al, byte [edx]
test al, al
jne 0x4ea3a0
mov eax, dword [edi]
mov dword [esp + 0xc], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x10], eax
mov eax, dword [edi + 8]
xor edi, edi
mov dword [esp + 0x14], eax
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
shr eax, 8
xor byte [esp + edi + 0xc], al
movzx eax, byte [esp + edi + 0xc]
inc edi
xor eax, ebx
shr ebx, 8
movzx eax, al
xor ebx, dword [eax*4 + 0x5e1e10]
movzx eax, bl
add eax, esi
imul esi, eax, 0x8088405
inc esi
mov eax, esi
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5e1e10]
cmp edi, 0xc
jl 0x4ea403
mov eax, dword [0x5e2268]
movzx edx, byte [0x5f22d7]
mov dword [0x5f33a4], esi
movzx esi, byte [esp + 0x17]
mov dword [0x5f33a8], ecx
mov dword [0x5f33a0], ebx
test byte [eax + 0x70], 2
jne 0x4ea487
movzx edx, byte [0x5f22df]
cmp esi, edx
je 0x4ea4a2
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.00530218
add esp, 0x10
ret 0xc
cmp byte [esp + 0x28], 0
je 0x4ea551
mov esi, dword [0x5f2280]
mov eax, esi
cdq
cmp edx, dword [0x5e223c]
jl 0x4ea4ca
mov edx, dword [0x5e2238]
jg 0x4ea4cc
cmp eax, edx
ja 0x4ea4cc
mov edx, esi
mov esi, dword [0x5f2278]
test edx, edx
je 0x4ea551
jmp 0x4ea4e0
and ecx, 0xfffd
lea esi, [esi + 1]
or ecx, 2
mov eax, ecx
xor eax, 1
imul eax, ecx
shr eax, 8
xor byte [esi - 1], al
movzx eax, byte [esi - 1]
mov ecx, dword [0x5f33a0]
xor eax, ecx
movzx eax, al
shr ecx, 8
xor ecx, dword [eax*4 + 0x5e1e10]
movzx eax, cl
add eax, dword [0x5f33a4]
imul eax, eax, 0x8088405
mov dword [0x5f33a0], ecx
mov ecx, dword [0x5f33a8]
inc eax
mov dword [0x5f33a4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5e1e10]
mov dword [0x5f33a8], ecx
sub edx, 1
jne 0x4ea4e0
mov ecx, dword [esp + 0x18]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00530218
add esp, 0x10
ret 0xc