joyce8/EMBER2024-capa huggingface dataset:
Function at 0x437290
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x68
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x20], edi
call fcn.00436ef0
mov esi, eax
mov ecx, edi
mov dword [esp + 0x24], esi
call fcn.00436ed0
mov ebp, dword [esp + 0x80]
mov edi, eax
push ebp
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x18], edi
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x38]
cdq
idiv esi
mov ebx, eax
test edx, edx
je 0x4372da
inc ebx
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x3c]
cdq
idiv edi
mov edi, eax
mov dword [esp + 0x14], eax
test edx, edx
je 0x4372f4
inc edi
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x84]
test eax, eax
jne 0x437314
mov ecx, dword [esp + 0x10]
push ecx
push esi
push eax
push eax
lea edx, [esp + 0x58]
push edx
call dword [sym.imp.USER32.dll_SetRect]
jmp 0x437320
push eax
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
test ebx, ebx
jle 0x43743a
mov dword [esp + 0x80], 0
mov dword [esp + 0x18], ebx
test edi, edi
jle 0x437428
mov ecx, dword [esp + 0x80]
add ecx, esi
mov dword [esp + 0x1c], ecx
xor edx, edx
mov dword [esp + 0x84], edi
jmp 0x437360
mov eax, dword [ebp]
mov ecx, dword [esp + 0x80]
add ecx, eax
mov dword [esp + 0x68], ecx
mov ecx, dword [ebp + 4]
lea esi, [edx + ecx]
mov dword [esp + 0x6c], esi
mov esi, dword [esp + 0x1c]
add esi, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x70], esi
lea esi, [edx + eax]
add ecx, esi
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x6c]
mov dword [esp + 0x78], ecx
push eax
lea ecx, [esp + 0x60]
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x58]
mov ebx, dword [esp + 0x4c]
mov edi, dword [esp + 0x54]
mov dword [esp + 0x30], ecx
sub ecx, edx
cmp eax, ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], edi
jge 0x4373da
add eax, edx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x64]
sub eax, dword [esp + 0x5c]
sub edi, ebx
cmp eax, edi
jge 0x4373ee
add eax, ebx
mov dword [esp + 0x34], eax
mov edx, dword [esp + 0x20]
mov ecx, dword [edx + 0x6c]
test ecx, ecx
je 0x437410
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x80]
lea edx, [esp + 0x5c]
push edx
push eax
call fcn.004342d0
sub dword [esp + 0x84], 1
mov edx, esi
jne 0x437360
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x24]
add dword [esp + 0x80], esi
sub dword [esp + 0x18], 1
jne 0x437337
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret 0xc
Function at 0x43b7b0
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push 0xffffffffffffffff
push 0x470cf8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x492bec]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00437930
mov eax, dword [esi + 0x5c]
mov edi, dword [esp + 0x44]
push eax
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x68]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push 1
push edi
mov dword [esp + 0x24], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov edx, dword [esi + 0x2c]
mov ebx, dword [esi + 0x28]
mov ecx, dword [esi + 0x30]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x34]
add eax, edx
add ecx, ebx
cmp dword [esi + 0x88], 0
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], eax
je 0x43b854
sub esp, 0x10
mov ebp, esp
mov dword [ebp], ebx
mov dword [ebp + 4], edx
mov dword [ebp + 8], ecx
push edi
mov ecx, esi
mov dword [ebp + 0xc], eax
call fcn.0043a6b0
jmp 0x43b94a
mov eax, dword [esi + 0x70]
mov ecx, dword [eax - 0xc]
lea ebx, [esi + 0x70]
test ecx, ecx
jge 0x43b866
or ebp, 0xffffffff
jmp 0x43b882
push 0x477710
push eax
call dword [sym.imp.MSVCR90.dll__mbsstr]
add esp, 8
test eax, eax
jne 0x43b87e
or ebp, 0xffffffff
jmp 0x43b882
sub eax, dword [ebx]
mov ebp, eax
cmp dword [esi + 0x7c], 0
je 0x43b933
cmp ebp, 0xffffffff
je 0x43b933
push ebp
lea ecx, [esp + 0x48]
push ecx
mov ecx, ebx
call fcn.00424260
mov edx, dword [esi + 0x6c]
mov ecx, dword [esp + 0x44]
mov eax, dword [ecx - 0xc]
push edx
lea edx, [esp + 0x28]
push edx
push eax
push ecx
push edi
mov dword [esp + 0x50], 0
call dword [sym.imp.USER32.dll_DrawTextA]
inc ebp
push ebp
lea eax, [esp + 0x18]
push eax
mov ecx, ebx
call fcn.004244f0
mov esi, dword [esi + 0x6c]
mov ebx, dword [esp + 0x14]
mov eax, dword [ebx - 0xc]
or esi, 2
push esi
lea ecx, [esp + 0x28]
push ecx
push eax
push ebx
push edi
call dword [sym.imp.USER32.dll_DrawTextA]
add ebx, 0xfffffff0
lea edx, [ebx + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x43b909
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
mov dword [esp + 0x3c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43b94a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x43b94a
mov ecx, dword [esi + 0x6c]
mov ebx, dword [ebx]
mov eax, dword [ebx - 0xc]
push ecx
lea edx, [esp + 0x28]
push edx
push eax
push ebx
push edi
call dword [sym.imp.USER32.dll_DrawTextA]
mov ecx, dword [esp + 0x18]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [esp + 0x1c]
push edx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x20]
push eax
push edi
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, 1
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 4
Function at 0x43ec50
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x470f30
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebp
push esi
push edi
mov eax, dword [0x492bec]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, dword [esp + 0x28]
push 0
push str.bselfpaint
push esi
call fcn.004445a0
mov edi, dword [esp + 0x38]
push 0
push str.btransparentbk
push esi
mov dword [edi], eax
call fcn.004445a0
push SysReAllocString
push str.width
push esi
mov dword [edi + 0x34], eax
call fcn.00444380
push SysReAllocString
push str.height
push esi
mov dword [edi + 0x2c], eax
call fcn.00444380
mov dword [edi + 0x30], eax
lea eax, [edi + 0xc]
push eax
push str.bkcolor
push esi
call fcn.00444400
or ebp, 0xffffffff
push ebp
push str.clipcolor
push esi
call fcn.00444670
add esp, 0x48
cmp eax, ebp
je 0x43ecf2
mov dword [edi + 4], 1
mov dword [edi + 8], eax
push str.tooltips
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
call fcn.00446920
lea ecx, [edi + 0x1c]
push eax
mov dword [esp + 0x24], 0
call fcn.00414500
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov dword [esp + 0x20], ebp
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x43ed37
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.cursor
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.00446920
lea ecx, [edi + 0x20]
push eax
mov dword [esp + 0x24], 1
call fcn.00414500
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x20], ebp
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x43ed7c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.scrollbar
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.00446920
push str.headerctrl
lea edx, [esp + 0x2c]
push edx
mov ecx, esi
mov dword [esp + 0x28], 2
call fcn.00446920
mov eax, dword [esp + 0x10]
cmp dword [eax - 0xc], 0
mov byte [esp + 0x20], 3
je 0x43edc2
lea edx, [esp + 0x10]
lea ecx, [edi + 0x24]
push edx
call fcn.00414500
mov eax, dword [esp + 0x28]
cmp dword [eax - 0xc], 0
je 0x43edd9
lea edx, [esp + 0x28]
lea ecx, [edi + 0x28]
push edx
call fcn.00414500
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x20], 2
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43edfd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x20], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x43ee1e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret 8
Function at 0x43fa10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47109c
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x492bec]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
or eax, 0xffffffff
mov ebx, 1
xor ebp, ebp
mov dword [esi + 0x10], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebp
mov eax, dword [0x493fc0]
mov edx, dword [eax + 0xc]
mov ecx, 0x493fc0
lea edi, [esi + 0x1c]
call edx
add eax, 0x10
mov dword [edi], eax
mov eax, dword [0x493fc0]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x20], ebp
mov ecx, 0x493fc0
lea ebp, [esi + 0x20]
call edx
add eax, 0x10
mov dword [ebp], eax
mov eax, dword [0x493fc0]
mov edx, dword [eax + 0xc]
mov byte [esp + 0x20], bl
mov ecx, 0x493fc0
lea ebx, [esi + 0x24]
call edx
add eax, 0x10
mov dword [ebx], eax
mov eax, dword [0x493fc0]
mov edx, dword [eax + 0xc]
mov ecx, 0x493fc0
mov byte [esp + 0x20], 2
call edx
add eax, 0x10
mov dword [esi + 0x28], eax
or eax, 0xffffffff
push 0
mov dword [esi], 0
mov dword [esi + 4], 0
push 0x47ee18
mov ecx, edi
mov byte [esp + 0x28], 3
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call fcn.00412c00
push 0
push 0x47ee18
mov ecx, ebp
call fcn.00412c00
push 0
push 0x47ee18
mov ecx, ebx
mov dword [esi + 0x34], 0
call fcn.00412c00
push 0xa
push str.headerctrl
lea ecx, [esi + 0x28]
call fcn.00412c00
mov eax, SysReAllocString
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x440510
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x47125f
mov eax, dword fs:[0]
push eax
push ecx
push ebp
push esi
push edi
mov eax, dword [0x492bec]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
mov dword [esi], vtable.dsStyle.0
mov eax, dword [0x493fc0]
mov edx, dword [eax + 0xc]
mov ecx, 0x493fc0
lea ebp, [esi + 8]
call edx
add eax, 0x10
mov dword [ebp], eax
xor edi, edi
lea ecx, [esi + 0x4c]
mov dword [esp + 0x1c], edi
call fcn.004394f0
lea ecx, [esi + 0x6c]
mov byte [esp + 0x1c], 1
call fcn.004394f0
lea ecx, [esi + 0x8c]
mov byte [esp + 0x1c], 2
call fcn.004472c0
push edi
push 0x47ee18
mov ecx, ebp
mov byte [esp + 0x24], 3
mov dword [esi + 4], 1
call fcn.00412c00
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x10
ret
Function at 0x441940
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x471400
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x492bec]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ebp, ecx
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
push esi
push edi
call fcn.0043f510
lea eax, [esp + 0x28]
push eax
xor ebx, ebx
push edi
mov ecx, ebp
mov dword [esp + 0x30], ebx
call fcn.0043df30
mov ecx, dword [esp + 0x28]
push str.cursor
lea edx, [esp + 0x2c]
mov dword [esi + 0x88], ecx
push edx
mov ecx, edi
call fcn.00446920
lea ecx, [esi + 0x58]
push eax
mov dword [esp + 0x20], ebx
call fcn.00414500
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4419d8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.tooltips
lea ecx, [esp + 0x28]
push ecx
mov ecx, edi
call fcn.00446920
mov edx, dword [eax]
mov dword [esp + 0x1c], 1
lea ebx, [esi + 0x9c]
test edx, edx
jne 0x441a01
xor eax, eax
jmp 0x441a1b
mov eax, edx
lea ecx, [eax + 1]
mov dword [esp + 0x28], ecx
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x441a10
sub eax, dword [esp + 0x28]
push eax
push edx
mov ecx, ebx
call fcn.00412c00
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esp + 0x1c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x441a4c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esi + 0x5c]
push ecx
push edi
mov ecx, ebp
call fcn.00440ce0
push 0
push str.sendparent
push edi
call fcn.004445a0
mov dword [esi + 0x7c], eax
add esp, 0xc
mov eax, 1
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
Function at 0x4429d0
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x14
push ebx
push esi
mov ebx, ecx
mov eax, dword [ebx + 8]
push edi
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0xc], edi
cmp eax, 0xffffffff
je 0x442b0c
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x442b0c
cmp esi, dword [ebx + 0x110]
jae 0x442a1e
mov dword [esp + 0x14], 1
jmp 0x442b0c
push ebp
mov ecx, ebx
call fcn.004429a0
push edi
push edi
push 3
push edi
push 1
push SysReAllocString
lea ebp, [ebx + 0xc]
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x442b09
mov eax, esi
shr eax, 2
sub esi, eax
and esi, 0xfffffffe
push esi
call sub.mfc90.dll_Ordinal_265
add esp, 4
push 2
push 0
mov ecx, esi
neg ecx
push ecx
push edi
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x14]
push 0
lea edx, [esp + 0x20]
push edx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x20], 0
je 0x442b09
cmp esi, dword [esp + 0x1c]
jne 0x442b09
push 0
push 0
push 5
push 0
push 1
push 0x40000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebx + 8], eax
cmp eax, 0xffffffff
je 0x442b09
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [esp + 0x14]
push ecx
push 2
push 0x477e6c
push eax
call edi
test eax, eax
je 0x442b09
cmp dword [esp + 0x10], 2
jne 0x442b09
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx + 8]
push 0
lea edx, [esp + 0x14]
push edx
push esi
push eax
push ecx
call edi
test eax, eax
je 0x442b09
cmp esi, dword [esp + 0x10]
jne 0x442b09
mov edx, dword [ebx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov dword [esp + 0x18], 1
xor edi, edi
pop ebp
mov eax, dword [esp + 0x10]
push eax
call sub.mfc90.dll_Ordinal_266
mov esi, dword [esp + 0x18]
add esp, 4
cmp esi, edi
jne 0x442b28
mov ecx, ebx
call fcn.004429a0
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x442b40
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x108
mov eax, dword [0x492bec]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push esi
mov esi, ecx
push esi
call ebx
cmp eax, 0xffffffff
je 0x442b86
test al, 0x10
je 0x442b86
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0046d6fc
add esp, 0x108
ret
push 0x103
lea eax, [esp + 0xd]
push 0
push eax
mov byte [esp + 0x14], 0
call sub.MSVCR90.dll_memset
lea edx, [esp + 0x14]
add esp, 0xc
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x442ba7
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea esi, [esp + 0xc]
cmp byte [esp + 0xc], cl
je 0x442be1
mov al, byte [esi]
cmp al, 0x5c
je 0x442bcc
cmp al, 0x2f
jne 0x442bdb
push 0
lea ecx, [esp + 0x10]
push ecx
mov byte [esi], 0
call edi
mov byte [esi], 0x5c
inc esi
cmp byte [esi], 0
jne 0x442bc2
push 0
lea edx, [esp + 0x10]
push edx
call edi
lea eax, [esp + 0xc]
push eax
call ebx
pop edi
cmp eax, 0xffffffff
je 0x442bff
test al, 0x10
jne 0x442b6a
mov ecx, dword [esp + 0x10c]
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0046d6fc
add esp, 0x108
ret
Function at 0x442c30
Capabilities:
Get file size

Disassembly:
sub esp, 0x108
mov eax, dword [0x492bec]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
mov ebx, dword [esp + 0x110]
push ebp
push esi
push edi
push 0x103
xor ebp, ebp
lea eax, [esp + 0x15]
push ebp
push eax
mov esi, ecx
mov byte [esp + 0x1c], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
mov ecx, esi
call fcn.004429a0
push 0x104
lea ecx, [esp + 0x14]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x442d71
lea ecx, [esp + eax + 0xf]
lea edx, [esp + 0x10]
cmp ecx, edx
jb 0x442ca8
cmp byte [ecx], 0x5c
je 0x442ca7
dec ecx
lea eax, [esp + 0x10]
cmp ecx, eax
jae 0x442c97
jmp 0x442ca8
inc ecx
mov eax, ebx
lea edi, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x442cb0
sub eax, edi
mov al, byte [ebx + eax - 1]
cmp al, 0x5c
je 0x442cd3
cmp al, 0x2f
je 0x442cd3
push str..uilog
push ecx
push ebx
push str._s_s_s
jmp 0x442cdf
push str..uilog
push ecx
push ebx
push 0x477e70
lea edi, [esi + 0xc]
push edi
call dword [sym.imp.MSVCR90.dll_sprintf]
mov eax, dword [esp + 0x134]
add esp, 0x14
mov ecx, 0x1388000
cmp eax, 0x1388000
ja 0x442d01
mov ecx, eax
mov dword [esi + 0x110], ecx
cmp eax, 0x1000
jae 0x442d13
mov eax, 0x1000
mov ecx, ebx
mov dword [esi + 0x110], eax
call fcn.00442b40
test eax, eax
je 0x442d71
push 0
push 0
push 4
push 0
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
je 0x442d71
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x442d71
test eax, eax
je 0x442d64
mov ecx, dword [esi + 8]
push 2
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi], 1
mov eax, 1
jmp 0x442d89
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x442d87
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0xffffffff
mov eax, ebp
mov ecx, dword [esp + 0x114]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0046d6fc
add esp, 0x108
ret 8
Function at 0x442db0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10c
mov eax, dword [0x492bec]
xor eax, esp
mov dword [esp + 0x108], eax
push ebp
mov ebp, dword [esp + 0x114]
push esi
mov eax, ebp
push edi
mov esi, ecx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x442dd5
sub eax, edx
mov edi, eax
mov eax, dword [esi + 8]
mov dword [esp + 0xc], 0
cmp eax, 0xffffffff
je 0x442ed1
push 0
lea ecx, [esp + 0x10]
push ecx
push edi
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x442e12
cmp dword [esp + 0xc], edi
je 0x442eb5
mov ecx, esi
call fcn.004429a0
push 0x103
lea edx, [esp + 0x15]
push 0
push edx
mov byte [esp + 0x1c], 0
call sub.MSVCR90.dll_memset
lea eax, [esi + 0xc]
lea edx, [esp + 0x1c]
add esp, 0xc
sub edx, eax
jmp 0x442e40
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x442e40
lea eax, [esp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x442e51
sub eax, edx
lea eax, [esp + eax + 0xf]
lea ecx, [esp + 0x10]
cmp eax, ecx
jb 0x442e81
mov cl, byte [eax]
cmp cl, 0x5c
je 0x442e7d
cmp cl, 0x2f
je 0x442e7d
dec eax
lea edx, [esp + 0x10]
cmp eax, edx
jae 0x442e66
jmp 0x442e81
mov byte [eax + 1], 0
mov eax, dword [esi + 0x110]
push eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.00442c30
test eax, eax
je 0x442ed1
mov eax, dword [esi + 8]
push 0
lea edx, [esp + 0x10]
push edx
push edi
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x442ed1
cmp edi, dword [esp + 0xc]
jne 0x442ed1
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ecx, esi
call fcn.004429d0
test eax, eax
je 0x442ed1
mov eax, 1
jmp 0x442eda
mov ecx, esi
call fcn.004429a0
xor eax, eax
mov ecx, dword [esp + 0x114]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0046d6fc
add esp, 0x10c
ret 4

Function at 0x443110
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov byte [ecx + 0x68], al
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret
Function at 0x443e70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
push ebx
mov ebx, dword [ecx + 4]
push ebp
push esi
push edi
mov dword [esp + 0x10], ecx
test ebx, ebx
je 0x443f0a
mov eax, dword [ebx + 0x18]
mov ebp, dword [eax]
mov edi, dword [ebx + 4]
lea esp, [esp]
mov esi, dword [ebx + 0x18]
mov eax, dword [ebx + 4]
test edi, edi
je 0x443e9e
cmp edi, eax
je 0x443ea4
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp ebp, esi
je 0x443f06
mov esi, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
test edi, edi
jne 0x443ee7
call esi
xor eax, eax
cmp ebp, dword [eax + 0x14]
jne 0x443ebd
call esi
mov eax, dword [ebp + 8]
test eax, eax
je 0x443ed3
cmp dword [eax + 0x3c], 6
jne 0x443ed3
mov ecx, dword [esp + 0x18]
cmp dword [eax + 0x74], ecx
je 0x443eef
test edi, edi
jne 0x443eeb
call esi
xor eax, eax
cmp ebp, dword [eax + 0x14]
jne 0x443ee2
call esi
mov ebp, dword [ebp]
jmp 0x443e90
mov eax, dword [edi]
jmp 0x443eb6
mov eax, dword [edi]
jmp 0x443edb
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword [ecx + 8], eax
pop ebx
add esp, 4
mov dword [esp + 4], eax
jmp fcn.00443d40
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword [ecx + 8], 0
pop ebx
pop ecx
ret 4

Function at 0x445690
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4716d3
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x492bec]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor ebx, ebx
push ebx
call fcn.004451a0
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [esp + 0x18], ebx
mov dword [ecx], 0x493c14
or eax, 0xffffffff
mov dword [esi + 0x40], eax
mov dword [esi + 0x3c], eax
push ebx
push 0x47ee18
mov byte [esp + 0x20], 1
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], bl
mov byte [esi + 0x2c], bl
mov dword [esi + 0x30], ebx
call fcn.00451160
mov dword [esi + 0x40], ebx
mov dword [esi + 0x3c], ebx
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret