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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5254a8
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 0x49e739
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.004a2360
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 0x49e78e
mov dword [str.node.dll], esi
call fcn.004a2660
test eax, eax
je 0x49e78e
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x49e739
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.0049e830
test al, al
jne 0x49e80f
movups xmm0, xmmword [ebp + 8]
sub esp, 0x10
mov ecx, edi
mov eax, esp
movups xmmword [eax], xmm0
call fcn.004a78b0
test al, al
je 0x49e7a3
push 1
mov ecx, edi
call fcn.004a0d90
mov eax, dword [edi]
lea esi, [edi + 0xf30]
mov eax, dword [eax + 0x1c]
cmp eax, method.ui::Control.virtual_28
jne 0x49e7b8
mov eax, dword [edi + 0x188]
jmp 0x49e7bc
test esi, esi
je 0x49e7a3
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.0043d630
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.004a7bf0
mov ecx, dword [esi]
test ecx, ecx
je 0x49e7f2
mov eax, dword [ecx]
push 0xffffffffffffffff
push ecx
call dword [eax + 0xf0]
cmp byte [edi + 0xfe4], 0
je 0x49e80f
mov eax, dword [edi + 0xf60]
cmp word [eax], 0
je 0x49e80f
push eax
mov ecx, edi
call fcn.0049ff80
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 0x49ff80
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5255a0
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 0x4a0141
mov ecx, dword [esi + 0xf4c]
test ecx, ecx
je 0x4a007a
cmp byte [esi + 0x101c], 0
je 0x49fffd
mov eax, dword [esi + 0x188]
mov al, byte [eax + 0x517]
test al, al
jne 0x49fffd
push 0
push ecx
call dword [0x56e3f4]
mov ecx, dword [esi + 0x188]
add esp, 8
push 0x7d0
push 0x79
push esi
call fcn.0043a6e0
mov byte [esi + 0xf49], 0
mov dword [esi + 0x1024], 0
mov eax, dword [esi + 0x10c8]
sub eax, dword [esi + 0x10c4]
cmp eax, 4
jb 0x4a0033
push dword [esi + 0x1028]
mov ecx, dword [esi + 0x188]
push 0x78
push esi
call fcn.0043a6e0
mov edx, edi
lea ecx, [ebp - 0x2c]
call fcn.00452cd0
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 0x10
jb 0x4a004c
mov eax, dword [eax]
push eax
push dword [esi + 0xf4c]
call dword [0x56e770]
mov eax, dword [ebp - 0x18]
add esp, 8
cmp eax, 0x10
jb 0x4a0141
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00402920
jmp 0x4a0141
cmp dword [esi + 0xf50], 0
je 0x4a0141
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 0x4a00e4
mov eax, dword [esi + 0x188]
cmp byte [eax + 0x517], 0
jne 0x4a00e4
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.0043a6e0
mov byte [esi + 0xf49], 0
mov dword [esi + 0x1024], 0
mov eax, dword [esi + 0x10c8]
sub eax, dword [esi + 0x10c4]
test eax, 0xfffffffc
je 0x4a011c
push dword [esi + 0x1028]
mov ecx, dword [esi + 0x188]
push 0x78
push esi
call fcn.0043a6e0
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.004e1de4
mov esp, ebp
pop ebp
ret 4
Function at 0x4a0350
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 0x4a0454
cmp dword [esi + 0xfec], 0
jne 0x4a03f9
mov eax, dword [esi + 0x188]
cmp byte [eax + 0x517], 0
je 0x4a03f9
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 0x4a0160
push eax
call dword [sym.imp.USER32.dll_EnumThreadWindows]
mov eax, dword [esp + 0xc]
mov dword [esi + 0xfec], eax
test eax, eax
je 0x4a03f9
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 0x4a12c0
push 0xfffffffffffffffc
push dword [esi + 0xfec]
call dword [sym.imp.USER32.dll_SetWindowLongW]
cmp byte [esi + 0x101c], 0
mov byte [esi + 0xf49], 1
je 0x4a041e
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 0x4a0454
push 0x78
push esi
call fcn.0043a830
mov ecx, dword [esi + 0x188]
push 0x79
push esi
call fcn.0043a830
push ecx
mov ecx, dword [esi + 0x188]
push 0
push 0
push str.LoadOver
push esi
call fcn.0043b0b0
mov ecx, dword [esi + 0x1118]
test ecx, ecx
je 0x4a0467
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 0x4a1fd0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5256e8
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 0x4a206e
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.0043a6e0
jmp 0x4a20cc
mov ecx, dword [esi + 0x188]
push 0xc8
push 0x79
push esi
call fcn.0043a6e0
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 0x4a20e1
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 0x4a210a
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 0x4aca90
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 0x4acaab
mov edx, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
add ebx, ebx
je 0x4acac7
movzx eax, byte [edx + ecx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, ebx
jb 0x4acab6
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 0x4acafd
cmp dword [ecx], edi
jne 0x4acaf5
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 0x4acb05
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
jmp 0x4acb05
cmp dword [ecx], edi
jne 0x4acb08
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.004ad2d0
push edi
call fcn.004e1ddf
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 0x4ad030
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525b35
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.00451670
lea ecx, [edi + 0x1a8]
mov byte [ebp - 4], 3
call fcn.00451670
mov eax, dword [ebp + 8]
push ecx
lea ecx, [edi + 0x160]
mov dword [edi + 8], 1
mov dword [edi + 0x4c], eax
call fcn.004acfd0
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 0x4b8b20
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 0x4b8b39
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 0x4b8b76
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4b8b72
nop word [eax + eax]
cmp esi, edx
jae 0x4b8b76
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x4b8b60
cmp esi, edx
jb 0x4b8b7d
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 0x4b8ca0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x526286
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.004e204b
mov ecx, eax
mov dword [ebp - 0x10], eax
call fcn.004b9990
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 0x4b92e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 8], 0
jne 0x4b9305
push 0
push 0
push esi
push 0x4b9400
push 0
push 0
call fcn.00500eb9
add esp, 0x18
mov dword [esi + 8], eax
mov ecx, dword [esi + 0x38]
call fcn.004ba240
test eax, eax
je 0x4b931b
push dword [ebp + 8]
mov ecx, eax
call fcn.004ba5f0
mov eax, dword [esi + 4]
pop esi
test eax, eax
je 0x4b932a
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
pop ebp
ret 4
Function at 0x4bbb30
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 0x4bbb53
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 0x4bbb69
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 0x4bbc55
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 0x4bbc4e
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 0x4bbc4e
cmp dword [esi + 0x3c], 8
lea ecx, [esi + 0x28]
jb 0x4bbbf1
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 0x4bbc4e
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 0x4bbc4e
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 0x4bbc4e
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 0x4bbc67
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.004bbde0
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 0x4bbcc9
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 0x4bbcf0
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 0x4bbd0e
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 0x4bbd33
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 0x4bbd9d
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 0x4bbd96
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 0x4bbdaf
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 0x4bbd97
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 0x4bcb40
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 0x4bcc84
cmp byte [esi + 0x3c], 0
jne 0x4bcd78
cmp byte [esi + 0x3e], 0
jne 0x4bcb80
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 0x4bcd67
movss xmm0, dword [esi + 0x78]
cvtps2pd xmm0, xmm0
andps xmm0, xmmword [0x5491d0]
cvtpd2ps xmm1, xmm0
movss xmm0, dword [esi + 0x84]
comiss xmm0, xmm1
jae 0x4bcd44
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.0050b7b0
xorps xmm2, xmm2
cvtsd2ss xmm2, xmm0
movss xmm0, dword [esi + 0x78]
movaps xmm3, xmm0
mulss xmm0, xmm2
mulss xmm3, dword [0x548ee0]
movss dword [esi + 0x78], xmm0
movss xmm0, dword [0x548f5c]
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 0x4bcc9c
movss xmm0, dword [esi + 0x7c]
mov ecx, esi
subss xmm0, dword [esp + 0x10]
cvtps2pd xmm0, xmm0
andps xmm0, xmmword [0x5491d0]
cvtpd2ps xmm1, xmm0
call fcn.004bcaf0
test al, al
je 0x4bcc9c
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.004e1de4
mov esp, ebp
pop ebp
ret 4
mov edi, dword [esi + 0x10]
mov esi, dword [edi]
cmp esi, edi
je 0x4bcd78
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.004526d0
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 0x4bcd26
push eax
call fcn.004fe1ff
add esp, 4
mov esi, dword [esi]
cmp esi, edi
jne 0x4bccb0
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.004e1de4
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.004e1de4
mov esp, ebp
pop ebp
ret 4
comiss xmm0, dword [esi + 0x2c]
jbe 0x4bcd78
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.004e1de4
mov esp, ebp
pop ebp
ret 4
Function at 0x4cae10
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 0x4cae44
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4cae47
pop esi
pop ebp
ret 0x20
mov dword [esi + 4], eax
cmp dword [esi + 8], 0
je 0x4cae73
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 0x4cae73
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4cae75
xor eax, eax
pop esi
pop ebp
ret 0x20