joyce8/EMBER2024-capa huggingface dataset:
Function at 0x484b10
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, eax
push 0
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x484b4c
mov eax, dword [ebp + 8]
mov dword [eax], 0xc0000018
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, 4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x3c]
lea edx, [esp + 0xc]
mov dword [esp + 0x1c], eax
lea eax, [edi + 0x3c]
push edx
push eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
call fcn.00484c20
mov ecx, dword [esp + 0x1c]
mov dword [eax], esi
mov dword [eax + 4], ecx
or dword [edi + 0x5c], esi
push ebx
lea esi, [edi + 0xa4]
mov dword [esp + 0x10], 1
call fcn.00449eb0
push edi
mov ecx, ebx
call fcn.0044f930
test al, al
jne 0x484bea
and dword [edi + 0x5c], 0xfffffffb
mov edx, dword [ebx + 0x3c]
mov edi, dword [esp + 0x10]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x14], edx
call fcn.00439bd0
mov edx, dword [eax + 4]
mov eax, dword [eax]
push edx
push eax
lea ecx, [esp + 0x18]
push ecx
push edi
call fcn.00484d20
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], 0xc0000001
mov ecx, dword [esp + 0xc]
mov dword [eax], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [edi + 0x60], 0
jne 0x484c06
mov edx, dword [edi + 0x38]
push 0
push 0xea60
push 0x64
push edx
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [edi + 0x60], eax
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x486000
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x572c42
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x5c3678]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, esi
call fcn.0046faa0
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
xor ebx, ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], eax
mov dword [ebp - 4], ebx
mov dword [esi + 0x50], vtable.WTL::CMessageFilter.0
lea edi, [esi + 0x54]
push edi
mov dword [esi + 0x1a0], ebx
mov byte [esi + 0x1a4], bl
mov byte [esi + 0x1a5], 1
call fcn.004ac300
mov dword [esi + method.IFontIconCBSimpleImpl_class_CMsgBox_.virtual_0], vtable.IFontIconCBSimpleImpl_class_CMsgBox_.0
mov dword [esi], vtable.CMsgBox.0
mov dword [esi + 0x2c], vtable.CMsgBox.1.0
mov dword [esi + 0x50], vtable.CMsgBox.2.0
mov dword [edi], vtable.CMsgBox.3.0
mov dword [esi + method.IFontIconCBSimpleImpl_class_CMsgBox_.virtual_0], vtable.CMsgBox.4.0
mov dword [esi + 0x1ac], ebx
mov eax, 2
mov byte [ebp - 4], al
mov dword [esi + 0x1b0], ebx
mov dword [esi + 0x1b4], ebx
mov dword [esi + 0x1bc], ebx
mov dword [esi + 0x1c0], eax
mov byte [esi + 0x1c4], bl
mov byte [esi + 0x1c5], bl
mov byte [esi + 0x1c6], bl
mov byte [esi + 0x1c7], bl
mov dword [esi + 0x1c8], 1
mov dword [esi + 0x1ec], ebx
mov dword [esi + 0x1f0], ebx
mov dword [esi + 0x1f4], ebx
mov dword [esi + 0x1f8], ebx
lea ecx, [esi + 0x208]
mov dword [esi + 0x1fc], ebx
mov dword [esi + 0x200], ebx
push ecx
mov dword [esi + 0x204], ebx
call fcn.004e2e10
lea edx, [esi + 0x220]
push edx
mov byte [ebp - 4], 3
call fcn.004e2e10
mov dword [esi + 0x238], ebx
mov dword [esi + 0x23c], ebx
mov dword [esi + 0x240], ebx
mov dword [esi + 0x248], 0xffffffff
xor eax, eax
mov word [esi + 0x244], ax
mov dword [esi + 0x24c], ebx
mov byte [esi + 0x250], bl
mov byte [esi + 0x251], bl
mov byte [esi + 0x252], 1
mov dword [esi + 0x254], ebx
mov edx, dword [0x5cc90c]
mov eax, dword [edx + 0xc]
mov ecx, 0x5cc90c
call eax
add eax, 0x10
mov dword [esi + 0x258], eax
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 4
Function at 0x486950
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x576798
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
mov eax, dword [0x5c3678]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x28], 0
test edi, edi
je 0x486b43
cmp dword [edi + 0x18], 0
mov esi, 8
je 0x4869c5
cmp dword [edi + 0x1c], esi
jb 0x4869b2
movzx eax, byte [edi]
mov ebx, dword [ebp + 8]
mov edx, dword [edi + 8]
push eax
mov ecx, ebx
call fcn.00487f80
jmp 0x4869c8
movzx eax, byte [edi]
mov ebx, dword [ebp + 8]
lea edx, [edi + 8]
push eax
mov ecx, ebx
call fcn.00487f80
jmp 0x4869c8
mov ebx, dword [ebp + 8]
cmp dword [edi + 0x34], 0
je 0x4869e2
cmp dword [edi + 0x38], esi
jb 0x4869d8
mov ecx, dword [edi + 0x24]
jmp 0x4869db
lea ecx, [edi + 0x24]
mov eax, ebx
call fcn.00488440
cmp dword [edi + 0x54], 0
je 0x486a03
cmp dword [edi + 0x58], esi
jb 0x4869f2
mov ecx, dword [edi + 0x44]
jmp 0x4869f5
lea ecx, [edi + 0x44]
movzx edx, byte [edi + 0x3c]
push edx
push 1
mov edx, ebx
call fcn.004885f0
cmp dword [edi + 0x90], 0
je 0x486a30
cmp dword [edi + 0x94], esi
jb 0x486a1c
mov ecx, dword [edi + 0x80]
jmp 0x486a22
lea ecx, [edi + 0x80]
movzx eax, byte [edi + 0x78]
push eax
push 2
mov edx, ebx
call fcn.004885f0
mov eax, dword [edi + 0xb4]
mov ecx, dword [ebx + 0x1bc]
mov dword [esp + 0x10], ecx
cmp eax, 0xffffffff
je 0x486a49
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0xb8]
cmp eax, 0xffffffff
je 0x486a5b
mov ecx, ebx
call fcn.004886d0
mov ecx, dword [edi + 0xcc]
sub ecx, dword [edi + 0xc8]
lea esi, [edi + 0xbc]
mov eax, 0x78787879
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x486b0c
lea eax, [ebx + 0x208]
call fcn.00489ab0
lea eax, [ebx + 0x128]
call fcn.004a1fb0
add ebx, 0xf4
push ebx
call fcn.004ac0b0
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x78787879
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x14], eax
mov ebx, 0
je 0x486b09
mov dword [esp + 0xc], ebx
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x78787879
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ebx, ecx
jb 0x486aec
call fcn.0053d6a6
mov edx, dword [esi + 0xc]
add edx, dword [esp + 0xc]
mov eax, dword [ebp + 8]
push edx
push eax
call fcn.00488c00
add dword [esp + 0xc], 0x44
inc ebx
cmp ebx, dword [esp + 0x14]
jb 0x486acc
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 0x1b8]
mov edx, dword [esp + 0x10]
push ecx
push edx
push ebx
call fcn.00486d80
mov dword [esp + 0x28], 0xffffffff
call fcn.00489bd0
push 0x485bb0
push 3
push 0x3c
push edi
call fcn.0053de6b
push edi
call fcn.0053c152
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x487e50
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi + 0x30]
push edi
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x487e82
cmp byte [ebp + 0xc], 0
je 0x487e8c
cmp byte [0x5cedd4], 0
je 0x487e8c
mov ecx, dword [esi + 0x30]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [esi + 0x30], 0
mov eax, 2
pop edi
pop ebp
ret 8
mov eax, dword [0x5cfcc4]
cmp dword [eax - 0xc], 0
je 0x487eb4
push eax
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
jne 0x487edd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x487ee4
mov eax, dword [ebp + 8]
push 0
push eax
push esi
mov byte [0x5cedd4], 1
call fcn.00486d80
lea edi, [esi + 0x1a0]
call fcn.00489850
mov eax, dword [esi + 0x1c0]
pop edi
pop ebp
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esi + 0x30]
push edx
jmp 0x487e75

Function at 0x489850
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
push ebx
push esi
test edi, edi
je 0x489867
lea ebx, [edi - 0x1a0]
jmp 0x489869
xor ebx, ebx
mov eax, dword [ebx + 0x30]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov byte [edi + 4], 1
mov eax, dword [ebx + 0x30]
push 0
push eax
call fcn.00467180
call fcn.00467280
inc dword [edi]
mov ecx, dword [ebx + 0x30]
mov esi, dword [sym.imp.USER32.dll_IsWindow]
push ecx
call esi
test eax, eax
je 0x4898fd
jmp 0x4898a0
push 0
push 0
push 0
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x4898fd
cmp byte [edi + 4], 0
je 0x4898fd
cmp eax, 0xffffffff
je 0x4898f3
mov eax, dword [ebx + 0x30]
push eax
call esi
test eax, eax
je 0x4898dd
mov edx, dword [ebx + 0x50]
mov edx, dword [edx]
lea ecx, [ebx + 0x50]
lea eax, [esp + 0xc]
push eax
call edx
test eax, eax
jne 0x4898f3
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov edx, dword [ebx + 0x30]
push edx
call esi
test eax, eax
jne 0x4898a0
mov eax, dword [ebx + 0x30]
push eax
call fcn.00467180
mov esi, eax
call fcn.00467380
mov ecx, dword [ebx + 0x30]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x489947
add dword [edi], 0xffffffff
je 0x489937
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
mov edx, dword [ebx + 0x30]
push 0
push 0
push 0x12
push edx
call esi
add dword [edi], 0xffffffff
jne 0x489926
cmp byte [edi + 5], 0
je 0x489947
mov eax, dword [ebx + 0x30]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x498740
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571d69
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x5c3678]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
xor ebx, ebx
mov dword [esi + 4], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], eax
mov dword [ebp - 4], ebx
mov dword [esi], vtable.CMyEdit.0
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov byte [ebp - 4], 3
lea ecx, [esi + 0x40]
push ecx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], 7
mov dword [esi + 0x3c], ebx
call fcn.004aaea0
mov edx, dword [0x5cc90c]
mov eax, dword [edx + 0xc]
mov ecx, 0x5cc90c
call eax
add eax, 0x10
mov dword [esi + 0x90], eax
mov byte [esi + 0x94], bl
mov byte [esi + 0x95], bl
mov byte [esi + 0x96], bl
mov byte [esi + 0x97], bl
mov byte [esi + 0x98], 1
mov dword [esi + 0x9c], ebx
xor eax, eax
mov dword [esi + 0xa0], eax
mov dword [esi + 0xa4], eax
mov dword [esi + 0xa8], eax
mov dword [esi + 0xac], eax
mov dword [esi + 0xb0], eax
mov dword [esi + 0xb4], eax
mov edi, dword [esi + 0x38]
call fcn.0046c450
cmp byte [eax + 0xc], bl
je 0x498831
mov eax, dword [eax]
cmp eax, 0x64
je 0x498831
push 0x64
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [esi + 0x38], eax
jmp 0x498834
mov dword [esi + 0x38], edi
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 4
Function at 0x4990e0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, eax
mov eax, dword [edi + 0x44]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x499202
call fcn.00498f30
mov ecx, dword [edi + 4]
push 0
push 0
push 0xba
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, eax
mov eax, dword [edi + 0x3c]
cmp ebx, eax
jle 0x4991ea
test eax, eax
je 0x4991ea
xor eax, eax
lea edx, [esp + 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov eax, dword [edi + 4]
push edx
push eax
mov byte [edi + 0x96], 1
mov dword [esp + 0x14], 0
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x10]
mov ecx, dword [edi + 0x3c]
cdq
idiv ecx
mov dword [esp + 0x1c], 0x1c
mov esi, eax
xor eax, eax
imul ecx, esi
mov edx, esi
imul edx, ebx
push eax
push eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 4]
push 0xce
push eax
mov dword [esp + 0x30], 7
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], ecx
call dword [sym.imp.USER32.dll_SendMessageW]
imul eax, esi
mov edx, dword [edi + 0x44]
push 1
lea ecx, [esp + 0x20]
push ecx
push 2
push edx
mov dword [esp + 0x40], eax
call dword [sym.imp.USER32.dll_SetScrollInfo]
call fcn.00498f30
mov eax, dword [edi + 0x44]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [edi + 0x96], 0
call fcn.00498f30
mov ecx, dword [edi + 0x44]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x49a350
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
push edi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
mov eax, dword [esi]
mov edx, dword [eax - 8]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
sub edx, edi
or ecx, edx
jge 0x49a383
mov ecx, edi
mov eax, esi
call fcn.00423b90
mov eax, dword [esi]
push edi
push eax
mov eax, dword [ebx]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x49a3aa
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x49a3aa
push ecx
push eax
call fcn.0053cd7d
add esp, 8
mov ecx, dword [esi]
mov dword [ecx - 0xc], eax
mov edx, dword [esi]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, edi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x49a5c0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x572bbf
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x5c3678]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, esi
call fcn.0046faa0
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
xor edi, edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], eax
mov dword [ebp - 4], edi
mov dword [esi + 0x50], vtable.CTransparentWnd_class_CFloatButton_.0
mov dword [esi + 0x54], edi
mov byte [esi + 0x5c], 0xff
mov dword [esi + 0x60], edi
mov dword [esi + 0x58], edi
lea ebx, [esi + 0x64]
push ebx
mov byte [ebp - 4], 1
call fcn.004ac300
mov dword [esi + method.IFontIconCBImpl_class_CFloatButton_.virtual_0], vtable.IFontIconCBImpl_class_CFloatButton_.0
mov dword [esi], vtable.CFloatButton.0
mov dword [esi + 0x2c], vtable.CFloatButton.1.0
mov dword [esi + 0x50], vtable.CFloatButton.2.0
mov dword [ebx], vtable.CFloatButton.3.0
mov dword [esi + method.IFontIconCBImpl_class_CFloatButton_.virtual_0], vtable.CFloatButton.4.0
mov dword [esi + 0x1b8], edi
lea ecx, [esi + 0x1bc]
push ecx
mov ecx, 0x58ed64
mov byte [ebp - 4], 3
call fcn.00421320
mov dword [esi + 0x1c0], edi
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 4
Function at 0x49a770
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5766a8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
mov eax, dword [0x5c3678]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [edi + 0x30]
mov ecx, dword [edi + 0x1bc]
push 0
push 1
push 0
push 0
push eax
lea ebx, [edi + 0x64]
push ebx
call fcn.004ac6e0
test al, al
jne 0x49a7ca
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x6c]
test eax, eax
jne 0x49a7db
push 0x80004003
call fcn.0053c010
lea esi, [ebp - 0x14]
call fcn.0046fa70
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x49a8e1
push 0
push 0x2710
lea esi, [ebp - 0x10]
call fcn.0046fb00
lea esi, [edi + 0x1b8]
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00472570
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x49a828
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp dword [esi], 0
je 0x49a8e1
mov eax, dword [esi]
test eax, eax
jne 0x49a841
push 0x80004003
call fcn.0053c010
push 1
push 0x3e9
lea esi, [ebp - 0x18]
call fcn.0046fb00
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x49a8d1
mov eax, esi
call fcn.004729c0
push 0
cmp eax, 2
jne 0x49a883
push ecx
mov eax, esp
mov dword [eax], esi
mov eax, dword [esi]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x10], esp
push esi
call ecx
push ebx
mov edx, edi
call fcn.004ad4b0
jmp 0x49a8d1
push 0
push 0
push 1
push edi
lea eax, [edi + 0x1ac]
push eax
push ecx
mov eax, esp
mov dword [ebp - 0x10], esp
mov dword [eax], esi
mov edx, dword [esi]
mov eax, dword [edx + 4]
push esi
call eax
lea ecx, [ebp - 0x10]
push ecx
push ebx
call fcn.004ae4d0
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x49a8d1
mov byte [eax + 0x3c], 1
mov byte [eax + 0x3d], 0x14
mov byte [eax + 0x3e], 0x28
mov byte [eax + 0x3f], 0xff
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x49a8d1
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov byte [ebp - 4], 0
test esi, esi
je 0x49a8e1
mov ecx, dword [esi]
mov edx, dword [ecx + 8]
push esi
call edx
mov eax, dword [edi + 0x30]
lea esi, [edi + 0x50]
call fcn.00476660
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x49a902
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49e130
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x566aa0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x5c3678]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [ebp - 4], ebx
mov dword [esi], vtable.CFontIcon.0
mov byte [esi + 0x44], 0xff
mov eax, dword [0x5cc90c]
mov edx, dword [eax + 0xc]
mov ecx, 0x5cc90c
call edx
add eax, 0x10
mov dword [esi + 0x4c], eax
mov byte [ebp - 4], 1
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov eax, dword [0x5cc90c]
mov edx, dword [eax + 0xc]
mov ecx, 0x5cc90c
call edx
add eax, 0x10
mov dword [esi + 0x68], eax
mov byte [ebp - 4], 2
mov eax, dword [0x5cc90c]
mov edx, dword [eax + 0xc]
mov ecx, 0x5cc90c
call edx
add eax, 0x10
mov dword [esi + 0x6c], eax
mov byte [ebp - 4], 3
mov eax, dword [0x5cc90c]
mov edx, dword [eax + 0xc]
mov ecx, 0x5cc90c
call edx
add eax, 0x10
mov dword [esi + 0x70], eax
mov byte [ebp - 4], 4
xor eax, eax
mov word [esi + 0xa4], ax
mov dword [esi + 0xa8], ebx
mov dword [esi + 0xc4], ebx
mov dword [esi + 0xc8], ebx
mov dword [esi + 0xcc], 3
mov dword [esi + 0xd0], ebx
mov dword [esi + 0xd4], ebx
mov edx, dword [0x5cc90c]
mov eax, dword [edx + 0xc]
mov ecx, 0x5cc90c
call eax
add eax, 0x10
mov dword [esi + 0xd8], eax
mov byte [ebp - 4], 5
mov edx, dword [0x5cc90c]
mov eax, dword [edx + 0xc]
mov ecx, 0x5cc90c
call eax
add eax, 0x10
mov dword [esi + 0xdc], eax
mov byte [ebp - 4], 6
mov eax, 1
lea ecx, [esi + 0xec]
mov dword [esi + 0xe0], eax
mov byte [esi + 0xe4], bl
mov byte [esi + 0xe5], bl
mov dword [esi + 0xe8], eax
call fcn.004a1eb0
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x90], ebx
mov dword [esi + 0x94], ebx
mov dword [esi + 0x98], ebx
mov dword [esi + 0x9c], ebx
mov dword [esi + 0xa0], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0xb4], ebx
mov dword [esi + 0xb8], ebx
mov dword [esi + 0xbc], ebx
mov dword [esi + 0xc0], ebx
or eax, 0xffffffff
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x45], ebx
mov dword [esi + 0xac], 9
mov dword [esi + 0xb0], 0x190
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4a1570
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x4a1583
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push esi
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4a1601
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x4a15f3
mov eax, dword [ebp + 0x10]
push 0x5cc9fe
push esi
mov dword [eax], esi
call fcn.0053d8d6
mov ecx, dword [ebp + 0xc]
add esp, 8
mov dword [ecx], eax
test eax, eax
je 0x4a15f3
push 0
lea edx, [ebp - 4]
push edx
push esi
push eax
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a15f3
cmp dword [ebp - 4], esi
jne 0x4a15f3
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
jne 0x4a1614
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
push esi
call fcn.004a14e0
add esp, 0xc
mov bl, al
pop edi
mov al, bl
pop ebx
pop esi
mov esp, ebp
pop ebp
ret