joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49e470
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525248
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x5640a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [edi + 0xf48], 0
je 0x49e529
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
push ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
call fcn.004a2150
mov esi, dword [ebp - 0x18]
push 0x104
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.node.dll
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49e57e
mov dword [str.node.dll], esi
call fcn.004a2440
test eax, eax
je 0x49e57e
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x49e529
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
sub eax, esi
sar eax, 1
push eax
push esi
call fcn.00402f10
movups xmm0, xmmword [ebp + 8]
sub esp, 0x10
mov ecx, edi
mov eax, esp
movups xmmword [eax], xmm0
call fcn.0049e620
test al, al
jne 0x49e5ff
movups xmm0, xmmword [ebp + 8]
sub esp, 0x10
mov ecx, edi
mov eax, esp
movups xmmword [eax], xmm0
call fcn.004a7690
test al, al
je 0x49e593
push 1
mov ecx, edi
call fcn.004a0b80
mov eax, dword [edi]
lea esi, [edi + 0xf30]
mov eax, dword [eax + 0x1c]
cmp eax, method.ui::Control.virtual_28
jne 0x49e5a8
mov eax, dword [edi + 0x188]
jmp 0x49e5ac
test esi, esi
je 0x49e593
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
sub eax, esi
sar eax, 1
push eax
push esi
call fcn.00402f10
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov ecx, edi
call eax
push esi
mov ecx, eax
call fcn.0043d350
movups xmm0, xmmword [0x52cf48]
lea esi, [edi + 0xf50]
mov ecx, edi
push esi
sub esp, 0x10
mov eax, esp
movups xmmword [eax], xmm0
call fcn.004a79d0
mov ecx, dword [esi]
test ecx, ecx
je 0x49e5e2
mov eax, dword [ecx]
push 0xffffffffffffffff
push ecx
call dword [eax + 0xf0]
cmp byte [edi + 0xfe4], 0
je 0x49e5ff
mov eax, dword [edi + 0xf60]
cmp word [eax], 0
je 0x49e5ff
push eax
mov ecx, edi
call fcn.0049fd70
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x49fd70
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525340
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x5640a8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
test edi, edi
je 0x49ff31
mov ecx, dword [esi + 0xf4c]
test ecx, ecx
je 0x49fe6a
cmp byte [esi + 0x101c], 0
je 0x49fded
mov eax, dword [esi + 0x188]
mov al, byte [eax + 0x517]
test al, al
jne 0x49fded
push 0
push ecx
call dword [0x56e314]
mov ecx, dword [esi + 0x188]
add esp, 8
push 0x7d0
push 0x79
push esi
call fcn.0043a400
mov byte [esi + 0xf49], 0
mov dword [esi + 0x1024], 0
mov eax, dword [esi + 0x10c8]
sub eax, dword [esi + 0x10c4]
cmp eax, 4
jb 0x49fe23
push dword [esi + 0x1028]
mov ecx, dword [esi + 0x188]
push 0x78
push esi
call fcn.0043a400
mov edx, edi
lea ecx, [ebp - 0x2c]
call fcn.004529e0
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 0x10
jb 0x49fe3c
mov eax, dword [eax]
push eax
push dword [esi + 0xf4c]
call dword [0x56e690]
mov eax, dword [ebp - 0x18]
add esp, 8
cmp eax, 0x10
jb 0x49ff31
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00402920
jmp 0x49ff31
cmp dword [esi + 0xf50], 0
je 0x49ff31
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, 8
mov dword [ebp - 4], 1
push edi
mov word [ebp - 0x3c], ax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
cmp byte [esi + 0x101c], 0
mov dword [ebp - 0x34], eax
je 0x49fed4
mov eax, dword [esi + 0x188]
cmp byte [eax + 0x517], 0
jne 0x49fed4
push 0
push dword [esi + 0xf18]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x188]
push 0x7d0
push 0x79
push esi
call fcn.0043a400
mov byte [esi + 0xf49], 0
mov dword [esi + 0x1024], 0
mov eax, dword [esi + 0x10c8]
sub eax, dword [esi + 0x10c4]
test eax, 0xfffffffc
je 0x49ff0c
push dword [esi + 0x1028]
mov ecx, dword [esi + 0x188]
push 0x78
push esi
call fcn.0043a400
mov eax, dword [esi + 0xf50]
lea edx, [ebp - 0x3c]
push 0
push 0
push 0
mov ecx, dword [eax]
push 0
push edx
push eax
call dword [ecx + 0xd0]
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004e1bb1
mov esp, ebp
pop ebp
ret 4
Function at 0x4a0140
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
cmp edi, dword [esi + 0xf50]
jne 0x4a0244
cmp dword [esi + 0xfec], 0
jne 0x4a01e9
mov eax, dword [esi + 0x188]
cmp byte [eax + 0x517], 0
je 0x4a01e9
push 0
push dword [esi + 0xf18]
mov dword [esp + 0x10], str.Internet_Explorer_Hidden
mov dword [esp + 0x14], 0
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
lea ecx, [esp + 8]
push ecx
push 0x49ff50
push eax
call dword [sym.imp.USER32.dll_EnumThreadWindows]
mov eax, dword [esp + 0xc]
mov dword [esi + 0xfec], eax
test eax, eax
je 0x4a01e9
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
push esi
push str.BrowserContext
push dword [esi + 0xfec]
mov dword [esi + 0xff0], eax
call dword [sym.imp.USER32.dll_SetPropW]
push 0x4a10b0
push 0xfffffffffffffffc
push dword [esi + 0xfec]
call dword [sym.imp.USER32.dll_SetWindowLongW]
cmp byte [esi + 0x101c], 0
mov byte [esi + 0xf49], 1
je 0x4a020e
push 5
push dword [esi + 0xf18]
mov byte [esi + 0x101c], 0
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x188]
test ecx, ecx
je 0x4a0244
push 0x78
push esi
call fcn.0043a550
mov ecx, dword [esi + 0x188]
push 0x79
push esi
call fcn.0043a550
push ecx
mov ecx, dword [esi + 0x188]
push 0
push 0
push str.LoadOver
push esi
call fcn.0043add0
mov ecx, dword [esi + 0x1118]
test ecx, ecx
je 0x4a0257
push dword [ebp + 0xc]
mov eax, dword [ecx]
push edi
call dword [eax + 0x10]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4a1dc0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525488
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x5640a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push str.BrowserKernalSwitched
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
cmp byte [ebp + 8], 0
mov byte [esi + 0xf4a], 0
je 0x4a1e5e
cvttss2si eax, dword [esi + 0x2a8]
mov edx, dword [esi]
sub esp, 0x10
mov ecx, esi
mov dword [ebp - 0x1c], eax
cvttss2si eax, dword [esi + 0x2ac]
mov dword [ebp - 0x18], eax
cvttss2si eax, dword [esi + 0x2b0]
mov dword [ebp - 0x14], eax
cvttss2si eax, dword [esi + 0x2b4]
mov dword [ebp - 0x10], eax
mov eax, esp
movups xmm0, xmmword [ebp - 0x1c]
movups xmmword [eax], xmm0
call dword [edx + 0x27c]
mov ecx, dword [esi + 0x188]
push 0x7d0
push 0x79
push esi
call fcn.0043a400
jmp 0x4a1ebc
mov ecx, dword [esi + 0x188]
push 0xc8
push 0x79
push esi
call fcn.0043a400
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov byte [ebp - 4], 2
mov eax, 8
push dword [esi + 0xf60]
mov word [ebp - 0x1c], ax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push 0
push 0
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x1c]
mov eax, dword [esi + 0xf50]
push 0
push 0
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xd0]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp + 0x24]
cmp eax, 8
jb 0x4a1ed1
inc eax
lea ecx, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
call fcn.00402f10
xor eax, eax
mov dword [ebp + 0x24], 7
mov word [ebp + 0x10], ax
mov eax, dword [ebp + 0x3c]
mov dword [ebp + 0x20], 0
cmp eax, 8
jb 0x4a1efa
inc eax
lea ecx, [ebp + 0x28]
push eax
push dword [ebp + 0x28]
call fcn.00402f10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x38
Function at 0x4ac870
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
cmp dword [edi + 0x1c], 8
lea edx, [edi + 8]
mov ebx, dword [edx + 0x10]
mov dword [ebp - 4], ecx
jb 0x4ac88b
mov edx, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
add ebx, ebx
je 0x4ac8a7
movzx eax, byte [edx + ecx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, ebx
jb 0x4ac896
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x18]
mov ecx, dword [edx + 0xc]
and eax, esi
lea esi, [eax*8]
add ecx, esi
cmp dword [ecx + 4], edi
jne 0x4ac8dd
cmp dword [ecx], edi
jne 0x4ac8d5
mov eax, dword [edx + 4]
mov dword [ecx], eax
mov ecx, dword [edx + 0xc]
mov eax, dword [edx + 4]
mov dword [esi + ecx + 4], eax
jmp 0x4ac8e5
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
jmp 0x4ac8e5
cmp dword [ecx], edi
jne 0x4ac8e8
mov eax, dword [edi]
mov dword [ecx], eax
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 4]
mov esi, dword [edi]
mov dword [eax], esi
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
lea ecx, [edi + 8]
dec dword [edx + 8]
call fcn.004ad0b0
push edi
call fcn.004e1bac
mov eax, dword [ebp + 8]
add esp, 4
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4ace10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5258d5
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5640a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi + 0x18], 0
lea eax, [edi + 0x58]
mov dword [edi + 0x14], 0
xor ecx, ecx
mov dword [edi + 0x10], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x3c], 0
mov dword [edi], vtable.ui::ElemPainter.0
mov dword [edi + 0x48], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x50], vtable.ui::CDuiString.0
mov dword [edi + 0x54], eax
mov word [eax], cx
mov dword [ebp - 4], ecx
lea eax, [edi + 0xe0]
mov dword [edi + 0xd8], vtable.ui::CDuiString.0
mov dword [edi + 0xdc], eax
mov word [eax], cx
mov dword [edi + 0x184], ecx
lea ecx, [edi + 0x188]
mov byte [ebp - 4], 2
call fcn.00451380
lea ecx, [edi + 0x1a8]
mov byte [ebp - 4], 3
call fcn.00451380
mov eax, dword [ebp + 8]
push ecx
lea ecx, [edi + 0x160]
mov dword [edi + 8], 1
mov dword [edi + 0x4c], eax
call fcn.004acdb0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4b88f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
jne 0x4b8909
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov esi, eax
test esi, esi
je 0x4b8946
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4b8942
nop word [eax + eax]
cmp esi, edx
jae 0x4b8946
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x4b8930
cmp esi, edx
jb 0x4b894d
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4b8a70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x526036
mov eax, dword fs:[0]
push eax
push ecx
push edi
mov eax, dword [0x5640a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea eax, [edi + 0x14]
push 0x1388
push eax
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSectionAndSpinCount]
mov dword [ebp - 4], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
push 0
push 0
push 1
mov byte [ebp - 4], 1
push 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
call dword [sym.imp.KERNEL32.DLL_CreateEventW]
push 0
push 0
push 0
push 0
mov dword [edi], eax
call dword [sym.imp.KERNEL32.DLL_CreateEventW]
push 0
push 0x14
push 0x14
push 0
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.DLL_CreateSemaphoreW]
push pe_nt_image_headers32
mov dword [edi + 0x10], eax
call fcn.004e1dfa
mov ecx, eax
mov dword [ebp - 0x10], eax
call fcn.004b9760
mov dword [edi + 0x38], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4b90b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 8], 0
jne 0x4b90d5
push 0
push 0
push esi
push 0x4b91d0
push 0
push 0
call fcn.00500ca9
add esp, 0x18
mov dword [esi + 8], eax
mov ecx, dword [esi + 0x38]
call fcn.004ba010
test eax, eax
je 0x4b90eb
push dword [ebp + 8]
mov ecx, eax
call fcn.004ba3c0
mov eax, dword [esi + 4]
pop esi
test eax, eax
je 0x4b90fa
push eax
call dword [sym.imp.KERNEL32.DLL_SetEvent]
xor eax, eax
pop ebp
ret 4
Function at 0x4bb900
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 8], 0
lea eax, [esi + 8]
push edi
mov edi, ecx
mov dword [ebp - 8], edi
jne 0x4bb923
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
push ebx
lea ebx, [edi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
cmp dword [edi + 0x6c], 8
lea eax, [edi + 0x58]
jb 0x4bb939
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4bba25
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push 2
push 0
push 0
push edi
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 4
lea eax, [esi + 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x4bba1e
mov eax, dword [esi + 0x38]
inc eax
push 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x4bba1e
cmp dword [esi + 0x3c], 8
lea ecx, [esi + 0x28]
jb 0x4bb9c1
mov ecx, dword [ecx]
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
add eax, eax
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x4bba1e
push 0
lea eax, [ebp - 4]
push eax
push 4
lea eax, [esi + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x4bba1e
push 0
lea eax, [ebp - 4]
push eax
push 8
lea eax, [esi + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x4bba1e
push 0
lea eax, [ebp - 4]
push eax
push 8
lea eax, [esi + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x4bba37
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop ebx
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp - 8]
add esi, 4
push esi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov ecx, dword [ebp - 8]
push dword [ebp + 8]
lea ecx, [ecx + 0x34]
call fcn.004bbbb0
push esi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov esi, dword [ebp - 8]
push 0
push 0
push 0
inc dword [esi]
push edi
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push 0
lea eax, [ebp - 4]
push eax
push 4
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push edi
test eax, eax
jne 0x4bba99
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
push ebx
call eax
pop ebx
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
push ebx
call eax
pop ebx
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4bbac0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 8], 0
lea eax, [ebx + 8]
push esi
mov esi, ecx
jne 0x4bbade
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebx + 0x38]
mov eax, dword [ebx + 4]
push edi
lea edi, [esi + 0x1c]
push edi
lea eax, [eax + ecx*2]
add eax, 0xa
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
cmp dword [esi + 0x6c], 8
lea eax, [esi + 0x58]
jb 0x4bbb03
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4bbb6d
push 0
push 0
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push 4
lea eax, [ebx + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x4bbb66
push 0
lea eax, [ebp + 8]
push eax
push 8
lea eax, [ebx + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x4bbb7f
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
lea eax, [ebp + 8]
push eax
push 8
lea eax, [ebx + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
test eax, eax
je 0x4bbb67
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4bc910
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa8
mov eax, dword [0x5640a8]
xor eax, esp
mov dword [esp + 0xa4], eax
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
cmp byte [esi + 0x3f], 0
jne 0x4bca54
cmp byte [esi + 0x3c], 0
jne 0x4bcb48
cmp byte [esi + 0x3e], 0
jne 0x4bc950
mov byte [esi + 0x3e], 1
cmp byte [esi + 0x40], 0
movss xmm2, dword [esi + 0x38]
mulss xmm2, dword [ebp + 8]
movaps xmm0, xmm2
movss dword [esp + 0xc], xmm2
addss xmm0, dword [esi + 0x30]
movss dword [esi + 0x30], xmm0
je 0x4bcb37
movss xmm0, dword [esi + 0x78]
cvtps2pd xmm0, xmm0
andps xmm0, xmmword [0x5491a0]
cvtpd2ps xmm1, xmm0
movss xmm0, dword [esi + 0x84]
comiss xmm0, xmm1
jae 0x4bcb14
movss xmm0, dword [esi + 0x7c]
cvtps2pd xmm1, xmm2
movss dword [esp + 0x10], xmm0
movss xmm0, dword [esi + 0x80]
cvtpd2ps xmm1, xmm1
movss dword [esp + 8], xmm0
cvtps2pd xmm0, xmm0
cvtps2pd xmm1, xmm1
call fcn.0050b530
xorps xmm2, xmm2
cvtsd2ss xmm2, xmm0
movss xmm0, dword [esi + 0x78]
movaps xmm3, xmm0
mulss xmm0, xmm2
mulss xmm3, dword [0x548eb0]
movss dword [esi + 0x78], xmm0
movss xmm0, dword [0x548f2c]
movaps xmm1, xmm0
subss xmm0, dword [esp + 8]
subss xmm1, xmm2
mulss xmm1, dword [esp + 8]
divss xmm1, xmm0
xorps xmm0, xmm0
mulss xmm1, xmm3
addss xmm1, dword [esi + 0x7c]
movss dword [esi + 0x7c], xmm1
movss xmm1, dword [esp + 0xc]
ucomiss xmm1, xmm0
lahf
test ah, 0x44
jnp 0x4bca6c
movss xmm0, dword [esi + 0x7c]
mov ecx, esi
subss xmm0, dword [esp + 0x10]
cvtps2pd xmm0, xmm0
andps xmm0, xmmword [0x5491a0]
cvtpd2ps xmm1, xmm0
call fcn.004bc8c0
test al, al
je 0x4bca6c
mov dword [esi + 0x78], 0
mov byte [esi + 0x3f], 1
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.004e1bb1
mov esp, ebp
pop ebp
ret 4
mov edi, dword [esi + 0x10]
mov esi, dword [edi]
cmp esi, edi
je 0x4bcb48
nop dword [eax]
lea eax, [esp + 0x20]
mov dword [esp + 0x18], vtable.ui::CDuiString.0
push 0xffffffffffffffff
push dword [esi + 0xc]
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x20]
xor eax, eax
mov word [esp + 0x28], ax
call fcn.004523e0
mov eax, dword [esi + 0x90]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xa0], eax
movss xmm0, dword [ecx + 0x7c]
subss xmm0, dword [eax + 4]
subss xmm0, dword [eax + 8]
movss dword [eax + 0x10], xmm0
movss xmm0, dword [eax + 8]
addss xmm0, dword [ecx + 0x7c]
lea ecx, [esp + 0x20]
movss dword [eax + 4], xmm0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], vtable.ui::CDuiString.0
cmp eax, ecx
je 0x4bcaf6
push eax
call fcn.004fdfef
add esp, 4
mov esi, dword [esi]
cmp esi, edi
jne 0x4bca80
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.004e1bb1
mov esp, ebp
pop ebp
ret 4
mov byte [esi + 0x3f], 1
xor al, al
mov dword [esi + 0x78], 0
pop edi
pop esi
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.004e1bb1
mov esp, ebp
pop ebp
ret 4
comiss xmm0, dword [esi + 0x2c]
jbe 0x4bcb48
mov byte [esi + 0x40], 1
mov dword [esi + 0x30], 0
mov ecx, dword [esp + 0xac]
mov al, 1
pop edi
pop esi
xor ecx, esp
call fcn.004e1bb1
mov esp, ebp
pop ebp
ret 4
Function at 0x4cabc0
Capabilities:
Prepare http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push dword [ebp + 0x20]
mov esi, ecx
push 0
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push dword [eax + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
test eax, eax
jne 0x4cabf4
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x4cabf7
pop esi
pop ebp
ret 0x20
mov dword [esi + 4], eax
cmp dword [esi + 8], 0
je 0x4cac23
push 4
lea eax, [ebp + 8]
mov dword [ebp + 8], 2
push eax
push 0x3f
push dword [esi + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x4cac23
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x4cac25
xor eax, eax
pop esi
pop ebp
ret 0x20