joyce8/EMBER2024-capa huggingface dataset:
Function at 0x54c0ac
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, dword [ebp + 8]
test edi, edi
jne 0x54c0cf
test esi, 4
je 0x54c0cf
xor edi, edi
jmp 0x54c0d8
mov eax, edi
call fcn.0040a87c
mov edi, eax
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.0054bac8
test al, al
jne 0x54c0ed
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x54c13c
xor eax, eax
push ebp
push 0x54c12c
push dword fs:[eax]
mov dword fs:[eax], esp
push esi
push edi
mov eax, dword [ebp - 4]
call fcn.0040a87c
push eax
call sub.kernel32.dll_MoveFileExW
mov dword [ebp - 8], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x14], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54c133
lea eax, [ebp - 0x10]
call fcn.0054bb04
ret
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x54c1b8
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.0054bac8
test al, al
jne 0x54c1d9
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x54c225
xor eax, eax
push ebp
push 0x54c215
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0040a87c
push eax
call sub.kernel32.dll_RemoveDirectoryW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54c21c
lea eax, [ebp - 0xc]
call fcn.0054bb04
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x54c230
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.0054bac8
test al, al
jne 0x54c254
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x54c2a1
xor eax, eax
push ebp
push 0x54c291
push dword fs:[eax]
mov dword fs:[eax], esp
push edi
mov eax, esi
call fcn.0040a87c
push eax
call sub.kernel32.dll_SetFileAttributesW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54c298
lea eax, [ebp - 0xc]
call fcn.0054bb04
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x54ef44
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x18]
call fcn.00409924
xor eax, eax
push ebp
push 0x54f02a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp + 0x18], 0
jne 0x54ef8b
lea edx, [ebp + 0x18]
mov eax, edi
call fcn.0050d404
cmp dword [ebp + 0x18], 0
jne 0x54ef8b
lea eax, [ebp + 0x18]
call fcn.0050f74c
lea eax, [ebp - 0x40]
xor ecx, ecx
mov edx, 0x3c
call fcn.00406e80
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x540
test ebx, ebx
je 0x54efb6
mov eax, ebx
call fcn.0040a87c
mov dword [ebp - 0x34], eax
mov eax, edi
call fcn.0040a87c
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 4]
call fcn.0040a87c
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x18]
call fcn.0040a87c
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x40]
push eax
call sub.shell32.dll_ShellExecuteExW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x54eff8
call sub.kernel32.dll_GetLastError
mov dword [esi], eax
jmp 0x54f014
mov dword [esi], 0x103
mov eax, dword [ebp - 8]
test eax, eax
je 0x54f014
push 0
push esi
movzx edx, byte [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
call fcn.0054eb64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54f031
lea eax, [ebp + 0x18]
call fcn.00409840
ret

Function at 0x54f25c
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xffffffdc
mov ebx, eax
mov dword [esp], 0x10
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x54f28a
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x10
call fcn.0040a91c
jmp 0x54f291
mov eax, ebx
call fcn.00409840
add esp, 0x24
pop ebx
ret

Function at 0x54f298
Capabilities:
Get session user name

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
mov dword [esp], 0x101
push esp
lea eax, [esp + 8]
push eax
call sub.advapi32.dll_GetUserNameW
test eax, eax
je 0x54f2c9
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x101
call fcn.0040a91c
jmp 0x54f2d0
mov eax, ebx
call fcn.00409840
add esp, 0x208
pop ebx
ret

Function at 0x54f2e0
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffec
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x54f2f9
xor eax, eax
jmp 0x54f34d
lea eax, [esp + 8]
push eax
push 0x54f354
push 0
call sub.advapi32.dll_LookupPrivilegeValueW
mov dword [esp + 4], 1
mov dword [esp + 0x10], 2
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError
test eax, eax
je 0x54f33e
xor eax, eax
jmp 0x54f34d
push 0
push 2
call sub.user32.dll_ExitWindowsEx
cmp eax, 1
sbb eax, eax
inc eax
add esp, 0x14
ret
Function at 0x54f37c
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x54f3d6
inc esi
xor edi, edi
cmp edi, 1
jne 0x54f3a2
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep
jmp 0x54f3b0
cmp edi, 1
jle 0x54f3b0
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0054bcac
test eax, eax
jne 0x54f3d6
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x54f3d6
call sub.kernel32.dll_GetLastError
cmp eax, 3
je 0x54f3d6
inc edi
dec esi
jne 0x54f392
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x54f7dc
Capabilities:
Delete registry value

Disassembly:
push ebx
push esi
push edi
push ecx
mov esi, edx
mov edi, eax
test cl, cl
je 0x54f7ef
mov ebx, 0x80000001
jmp 0x54f7f4
mov ebx, 0x80000002
push 0
push 2
lea eax, [esp + 8]
push eax
mov ecx, 0x54f850
mov edx, ebx
xor eax, eax
call fcn.0050fc70
test eax, eax
jne 0x54f82a
mov eax, edi
call fcn.0040a87c
push eax
mov eax, dword [esp + 4]
push eax
call sub.advapi32.dll_RegDeleteValueW
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey
mov eax, esi
call fcn.0040a87c
push eax
call sub.gdi32.dll_RemoveFontResourceW
test eax, eax
je 0x54f84b
push 0
push 0
push 0x1d
push 0xffff
call sub.user32.dll_SendNotifyMessageW
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x54f8b8
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov edi, ecx
mov esi, edx
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x54fa01
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x54fa18
push 0x54fa40
call sub.kernel32.dll_GetModuleHandleW
push eax
call fcn.00411b5c
mov ebx, eax
lea edx, [ebp - 0xc]
movzx eax, byte [ebp - 1]
call fcn.0054bac8
test al, al
jne 0x54f917
mov byte [ebp - 2], 0
jmp 0x54f9e6
xor eax, eax
push ebp
push 0x54f9df
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
je 0x54f95b
push 0
mov eax, dword [ebp + 8]
push eax
push edi
lea edx, [ebp - 0x24]
mov eax, esi
call fcn.0050d358
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.0050cf4c
mov eax, dword [ebp - 0x20]
call fcn.0040a87c
push eax
call ebx
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 2], al
jmp 0x54f9c9
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x30]
mov eax, esi
call fcn.0050d358
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
call fcn.0050d42c
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
call fcn.0050cf4c
mov eax, dword [ebp - 0x28]
call fcn.0040a87c
push eax
call sub.kernel32.dll_GetDiskFreeSpaceW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 2], al
cmp byte [ebp - 2], 0
je 0x54f9c9
mov ecx, edi
mov eax, dword [ebp - 0x14]
imul dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
call fcn.005122ec
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
imul dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
call fcn.005122ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54f9e6
lea eax, [ebp - 0xc]
call fcn.0054bb04
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54fa08
lea eax, [ebp - 0x30]
mov edx, 5
call fcn.004098a0
ret

Function at 0x54fbe0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
push 2
lea eax, [ebp - 4]
push eax
push 0x20001004
movzx eax, bx
push eax
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x54fc04
mov eax, dword [ebp - 4]
jmp 0x54fc07
or eax, 0xffffffff
pop ebx
pop ecx
pop ebp
ret
Function at 0x54fc0c
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov byte [ebp - 1], dl
mov edi, eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
mov byte [ebp - 2], 0
test esi, esi
je 0x54fc59
xor ebx, ebx
jmp 0x54fc4e
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov eax, esi
call fcn.0041c2f4
test eax, eax
jne 0x54fc4d
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 2
jmp 0x54fd04
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x54fc2f
movzx eax, byte [ebp - 1]
sub al, 1
jb 0x54fc65
je 0x54fc6e
jmp 0x54fc77
call fcn.005102d4
mov esi, eax
jmp 0x54fc79
call sub.kernel32.dll_GetUserDefaultLangID
mov esi, eax
jmp 0x54fc79
xor esi, esi
test si, si
je 0x54fd04
xor ebx, ebx
jmp 0x54fc9f
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
movzx edx, si
cmp eax, edx
jne 0x54fc9e
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x54fd04
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x54fc86
xor ebx, ebx
jmp 0x54fcf9
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
and eax, 0x3ff
mov dx, 0x3ff
and dx, si
movzx edx, dx
cmp eax, edx
jne 0x54fcf8
mov ax, 0x3ff
and ax, si
cmp ax, 4
jne 0x54fced
mov eax, dword [ebp - 8]
movzx eax, word [eax + 0x28]
call fcn.0054fbe0
push eax
mov eax, esi
call fcn.0054fbe0
pop edx
cmp edx, eax
jne 0x54fcf8
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x54fd04
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x54fcae
movzx eax, byte [ebp - 2]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x557a8c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf8
push ebx
mov ebx, eax
push 0x104
lea eax, [ebp - 0x208]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
lea eax, [ebp - 0x208]
call fcn.0041e174
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5632c8
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
add esp, 0xfffffff4
mov ebx, edx
mov esi, eax
cmp byte [esi + 4], 0
je 0x5633a2
mov byte [esi + 5], 1
mov eax, dword [esi + 0x10]
mov dword [esp + 4], eax
mov byte [esp + 8], 0
lea edx, [esp + 4]
xor ecx, ecx
mov eax, 0x5633b4
call fcn.0055594c
mov eax, dword [esi + 0xc]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x563320
mov eax, 0x563414
call fcn.005556dc
push 1
mov eax, dword [esi + 8]
push eax
call sub.kernel32.dll_TerminateProcess
push 0x2710
mov eax, dword [esi + 8]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
je 0x56330b
push esp
mov eax, dword [esi + 8]
push eax
call sub.kernel32.dll_GetExitCodeProcess
test eax, eax
je 0x563373
cmp dword [esp], 0
jne 0x563355
mov eax, 0x56346c
call fcn.005556dc
jmp 0x56337d
mov eax, dword [esp]
mov dword [esp + 4], eax
mov byte [esp + 8], 0
lea edx, [esp + 4]
xor ecx, ecx
mov eax, 0x5634a8
call fcn.0055594c
jmp 0x56337d
mov eax, 0x563510
call fcn.005556dc
mov eax, dword [esi + 8]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
mov dword [esi + 8], eax
xor eax, eax
mov dword [esi + 0x10], eax
mov byte [esi + 4], 0
test bl, bl
je 0x5633a2
push 0xfa
call sub.kernel32.dll_Sleep
add esp, 0xc
pop esi
pop ebx
ret
Function at 0x563578
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5637b6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
inc dword [eax + 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov ebx, dword [ebp - 4]
mov dword [ebx + 0x20], eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x24], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x28], ecx
xor eax, eax
lea ebx, [eax + 0xc]
add ebx, ecx
xor edx, edx
push ebp
push 0x56375b
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0
push 0xffffffffffffffff
push 0
call sub.kernel32.dll_CreateEventW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x5635ed
mov eax, 0x5637d4
call fcn.0054c9d8
xor edx, edx
push ebp
push 0x5636f0
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x14
call fcn.00406e80
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 8]
push eax
push 0x14
mov eax, dword [ebp - 4]
add eax, 0x4034
push eax
push ebx
mov eax, dword [ebp - 4]
add eax, 0x20
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
push eax
call sub.kernel32.dll_TransactNamedPipe
test eax, eax
jne 0x5636d9
call sub.kernel32.dll_GetLastError
cmp eax, 0x3e5
je 0x563655
mov eax, 0x5637f8
call fcn.0054c9d8
xor edx, edx
push ebp
push 0x5636c2
push dword fs:[edx]
mov dword fs:[edx], esp
cmp byte [ebp + 8], 0
je 0x563695
mov eax, dword [ebp - 4]
cmp word [eax + 0x1a], 0
je 0x563695
mov ebx, dword [ebp - 4]
mov eax, dword [ebx + 0x1c]
call dword [ebx + 0x18]
push 0x4ff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0xc]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x563673
pop dword fs:[0]
add esp, 8
push 0x5636c9
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
push eax
call sub.kernel32.dll_GetOverlappedResult
mov ebx, eax
call sub.kernel32.dll_GetLastError
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5636f7
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
ret

Function at 0x564ed0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
push 0
push 1
lea eax, [ebp - 4]
push eax
mov eax, ebx
call fcn.0040a87c
mov ecx, eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax - 1]
mov edx, 0x80000002
call fcn.0050fc70
test eax, eax
jne 0x564f43
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 8]
push eax
push 0
mov eax, esi
call fcn.0040a87c
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x564f32
cmp dword [ebp - 8], 4
je 0x564f36
xor ebx, ebx
jmp 0x564f38
mov bl, 1
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
jmp 0x564f45
xor ebx, ebx
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x569894
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffe08
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x11f4], ebx
mov dword [ebp - 0x11f8], ebx
mov dword [ebp - 0x11ec], ebx
mov dword [ebp - 0x11f0], ebx
mov dword [ebp - 0x11e8], ebx
mov dword [ebp - 0x1004], ecx
mov dword [ebp - 0x11cc], edx
mov dword [ebp - 0x11d0], eax
lea esi, [ebp - 0x11de]
xor eax, eax
push ebp
push 0x569add
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x11d4], eax
xor eax, eax
mov dword [ebp - 0x11c8], eax
mov eax, dword [ebp - 0x11d0]
add eax, 0x10
push eax
lea ecx, [ebp - 0x11c4]
mov edx, dword [ebp - 0x1004]
mov eax, dword [ebp - 0x11cc]
call fcn.00565e58
cmp dword [ebp - 0x1084], 0x418
jle 0x569956
lea ecx, [ebp - 0x11e8]
mov edx, dword [ebp - 0x1004]
mov ax, 0xeb
call fcn.00515f84
mov ecx, dword [ebp - 0x11e8]
mov dl, 1
mov eax, dword [0x419708]
call fcn.00422c04
call fcn.00408f34
lea eax, [ebp - 0x11f0]
lea edx, [ebp - 0x1184]
mov ecx, 0x80
push 0
call fcn.0040a014
mov edx, dword [ebp - 0x11f0]
lea ecx, [ebp - 0x11ec]
mov eax, dword [ebp - 0x11d0]
mov eax, dword [eax]
call fcn.00569200
mov edx, dword [ebp - 0x11ec]
mov eax, dword [ebp - 0x11d0]
add eax, 0x14
call fcn.00409c20
lea eax, [ebp - 0x11f8]
lea edx, [ebp - 0x1104]
mov ecx, 0x80
push 0
call fcn.0040a014
mov edx, dword [ebp - 0x11f8]
lea ecx, [ebp - 0x11f4]
mov eax, dword [ebp - 0x11d0]
mov eax, dword [eax]
call fcn.00569200
mov edx, dword [ebp - 0x11f4]
mov eax, dword [ebp - 0x11d0]
add eax, 0x18
call fcn.00409c20
lea eax, [ebp - 0x1078]
movzx eax, byte [eax]
mov edx, dword [ebp - 0x11d0]
mov byte [edx + 0x1d], al
mov ebx, dword [ebp - 0x1080]
test ebx, ebx
jle 0x569a9e
push ebp
mov eax, esi
mov edx, 0xa
call fcn.0056981c
pop ecx
mov eax, dword [esi + 6]
push eax
mov eax, dword [ebp - 0x11d0]
mov eax, dword [eax]
mov ecx, dword [esi + 2]
movzx edx, word [esi]
call fcn.005665e0
mov dword [ebp - 0x11e4], eax
cmp dword [ebp - 0x11e4], 0
jne 0x569a3b
push ebp
call fcn.00569674
pop ecx
xor eax, eax
push ebp
push 0x569a6c
push dword fs:[eax]
mov dword fs:[eax], esp
push ebp
mov eax, dword [ebp - 0x11e4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 0x11e4]
add eax, 0x12
call fcn.0056981c
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x569a86
mov edx, dword [ebp - 0x11e4]
mov eax, dword [ebp - 0x11d0]
call fcn.0056661c
dec ebx
jne 0x569a00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x569ae4
lea eax, [ebp - 0x11f8]
call fcn.00409864
lea eax, [ebp - 0x11f4]
call fcn.00409840
lea eax, [ebp - 0x11f0]
call fcn.00409864
lea eax, [ebp - 0x11ec]
mov edx, 2
call fcn.004098a0
ret
Function at 0x583e78
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov esi, ecx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x583fd4
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, edx
test esi, esi
je 0x583eb6
or ebx, 0xffff
mov eax, esi
call fcn.0040a87c
mov esi, eax
jmp 0x583eb8
xor esi, esi
xor eax, eax
mov dword [ebp - 8], eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push esi
push ebx
mov eax, dword [ebp - 4]
push eax
call sub.winhttp.dll_WinHttpQueryHeaders
call sub.kernel32.dll_GetLastError
cmp eax, 0x2f76
jne 0x583ee8
mov eax, edi
call fcn.00409840
jmp 0x583fb9
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
je 0x583f38
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0
call sub.kernel32.dll_GetLastError
lea ecx, [ebp - 0x1c]
mov edx, dword [0x5e43ec]
call fcn.00421a40
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0xc], 0x11
lea eax, [ebp - 0x18]
push eax
push 1
mov ecx, dword [0x5dbbc0]
mov dl, 1
mov eax, dword [0x586a58]
call fcn.00422cfc
call fcn.00408f34
mov edx, dword [ebp - 8]
shr edx, 1
dec edx
mov eax, edi
call fcn.0040a9f4
mov eax, dword [edi]
call fcn.00409d60
test eax, eax
jle 0x583fb9
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [edi]
call fcn.0040a87c
push eax
push esi
push ebx
mov eax, dword [ebp - 4]
push eax
call sub.winhttp.dll_WinHttpQueryHeaders
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x583fb9
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0
call sub.kernel32.dll_GetLastError
lea ecx, [ebp - 0x20]
mov edx, dword [0x5e43ec]
call fcn.00421a40
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0xc], 0x11
lea eax, [ebp - 0x18]
push eax
push 1
mov ecx, dword [0x5dbbc0]
mov dl, 1
mov eax, dword [0x586a58]
call fcn.00422cfc
call fcn.00408f34
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x583fdb
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.004098a0
ret

Function at 0x5841e6
Capabilities:
Initialize winhttp library

Disassembly:
push ebx
push esi
push edi
test dl, dl
je 0x5841a7
add esp, 0xfffffff0
call fcn.0040809c
mov ebx, edx
mov edi, eax
mov eax, edi
call fcn.00587ba4
mov dl, 1
mov eax, dword [0x58366c]
call fcn.00586750
mov dword [edi + 0xa0], eax
mov dl, 1
mov eax, dword [0x57a2ac]
call fcn.0057ef0c
mov dword [edi + 0x9c], eax
mov eax, dword [0x582ea0]
call fcn.00586390
push 0
push 0
push 0
push 1
push 0x584248
call sub.winhttp.dll_WinHttpOpen
mov esi, eax
mov dword [edi + 0x98], esi
test esi, esi
jne 0x584215
mov ecx, dword [0x5dbd7c]
mov dl, 1
mov eax, dword [0x586b10]
call fcn.00422cc0
call fcn.00408f34
push 0
push 0x10010
push 0x583ff4
mov eax, dword [edi + 0x98]
push eax
call sub.winhttp.dll_WinHttpSetStatusCallback
mov eax, edi
test bl, bl
je 0x584242
call fcn.004080f4
pop dword fs:[0]
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x585190
Capabilities:
Prepare http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x58535c
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebx + 0xa0], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
jle 0x5851d3
mov esi, dword [ebp - 4]
movzx esi, word [esi + 0x10]
jmp 0x5851d5
xor esi, esi
push 0
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0040a87c
push eax
mov eax, dword [ebx + 0x50]
mov eax, dword [eax + 0x98]
push eax
call sub.winhttp.dll_WinHttpConnect
mov edi, eax
mov dword [ebx + 0x88], edi
test edi, edi
jne 0x585229
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x5db8ec]
mov dl, 1
mov eax, dword [0x586bd8]
call fcn.00422cfc
call fcn.00408f34
xor esi, esi
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, 0x585378
call fcn.0040ac64
jne 0x585242
or esi, 0x800000
push esi
push 0
push 0
push 0
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00583e38
mov eax, dword [ebp - 0x10]
call fcn.0040a87c
push eax
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.0057cb44
mov eax, dword [ebp - 0x14]
call fcn.0040a87c
push eax
mov eax, dword [ebx + 0x88]
push eax
call sub.winhttp.dll_WinHttpOpenRequest
mov edi, eax
mov dword [ebx + 0x8c], edi
test edi, edi
jne 0x5852ce
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
call sub.kernel32.dll_GetLastError
lea ecx, [ebp - 0x28]
mov edx, dword [0x5e43ec]
call fcn.00421a40
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0x11
lea eax, [ebp - 0x24]
push eax
push 1
mov ecx, dword [0x5dbcf4]
mov dl, 1
mov eax, dword [0x586bd8]
call fcn.00422cfc
call fcn.00408f34
mov edi, dword [ebx + 0x10]
push edi
push edi
mov esi, dword [ebx + 0xc]
push esi
push esi
mov eax, dword [ebx + 0x8c]
push eax
call sub.winhttp.dll_WinHttpSetTimeouts
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x585334
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
call sub.kernel32.dll_GetLastError
lea ecx, [ebp - 0x2c]
mov edx, dword [0x5e43ec]
call fcn.00421a40
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0x11
lea eax, [ebp - 0x24]
push eax
push 1
mov ecx, dword [0x5dbe68]
mov dl, 1
mov eax, dword [0x586bd8]
call fcn.00422cfc
call fcn.00408f34
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x585363
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.004098a0
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004098a0
ret