joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5fdcd8
Capabilities:
Copy file

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.005fdb78
test al, al
jne 0x5fdcfc
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x5fdd56
xor eax, eax
push ebp
push 0x5fdd46
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
push eax
mov eax, edi
call fcn.0040b88c
push eax
mov eax, esi
call fcn.0040b88c
push eax
call sub.kernel32.dll_CopyFileW
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 0x5fdd4d
lea eax, [ebp - 0xc]
call fcn.005fdbb4
pop eax
jmp eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x5fdd64
Capabilities:
Delete file

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.005fdb78
test al, al
jne 0x5fdd85
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x5fddd3
xor eax, eax
push ebp
push 0x5fddc3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0040b88c
push eax
call sub.kernel32.dll_DeleteFileW
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 0x5fddca
lea eax, [ebp - 0xc]
call fcn.005fdbb4
pop eax
jmp eax
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5fdf44
Capabilities:
Get file attributes

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.005fdb78
test al, al
jne 0x5fdf67
mov dword [ebp - 4], 0xffffffff
jmp 0x5fdfb5
xor eax, eax
push ebp
push 0x5fdfa5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0040b88c
push eax
call sub.kernel32.dll_GetFileAttributesW
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 0x5fdfac
lea eax, [ebp - 0xc]
call fcn.005fdbb4
pop eax
jmp eax
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5fe0f4
Capabilities:
Move file

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.005fdb78
test al, al
jne 0x5fe118
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x5fe16e
xor eax, eax
push ebp
push 0x5fe15e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.0040b88c
push eax
mov eax, esi
call fcn.0040b88c
push eax
call sub.kernel32.dll_MoveFileW
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 0x5fe165
lea eax, [ebp - 0xc]
call fcn.005fdbb4
pop eax
jmp eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5fe178
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 0x5fe19b
test esi, 4
je 0x5fe19b
xor edi, edi
jmp 0x5fe1a4
mov eax, edi
call fcn.0040b88c
mov edi, eax
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.005fdb78
test al, al
jne 0x5fe1b9
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x5fe20a
xor eax, eax
push ebp
push 0x5fe1fa
push dword fs:[eax]
mov dword fs:[eax], esp
push esi
push edi
mov eax, dword [ebp - 4]
call fcn.0040b88c
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 0x5fe201
lea eax, [ebp - 0x10]
call fcn.005fdbb4
pop eax
jmp eax
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x5fe28c
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.005fdb78
test al, al
jne 0x5fe2ad
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x5fe2fb
xor eax, eax
push ebp
push 0x5fe2eb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0040b88c
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 0x5fe2f2
lea eax, [ebp - 0xc]
call fcn.005fdbb4
pop eax
jmp eax
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5fe304
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.005fdb78
test al, al
jne 0x5fe328
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x5fe377
xor eax, eax
push ebp
push 0x5fe367
push dword fs:[eax]
mov dword fs:[eax], esp
push edi
mov eax, esi
call fcn.0040b88c
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 0x5fe36e
lea eax, [ebp - 0xc]
call fcn.005fdbb4
pop eax
jmp eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x601200
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.0040a960
xor eax, eax
push ebp
push 0x6012e8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp + 0x18], 0
jne 0x601247
lea edx, [ebp + 0x18]
mov eax, edi
call fcn.005ba1ac
cmp dword [ebp + 0x18], 0
jne 0x601247
lea eax, [ebp + 0x18]
call fcn.005bc700
lea eax, [ebp - 0x40]
xor ecx, ecx
mov edx, 0x3c
call fcn.00407d24
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x540
test ebx, ebx
je 0x601272
mov eax, ebx
call fcn.0040b88c
mov dword [ebp - 0x34], eax
mov eax, edi
call fcn.0040b88c
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 4]
call fcn.0040b88c
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x18]
call fcn.0040b88c
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 0x6012b4
call sub.kernel32.dll_GetLastError
mov dword [esi], eax
jmp 0x6012d0
mov dword [esi], 0x103
mov eax, dword [ebp - 8]
test eax, eax
je 0x6012d0
push 0
push esi
movzx edx, byte [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
call fcn.00600dd8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6012ef
lea eax, [ebp + 0x18]
call fcn.0040a86c
pop eax
jmp eax

Function at 0x601520
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 0x60154e
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x10
call fcn.0040b928
jmp 0x601555
mov eax, ebx
call fcn.0040a86c
add esp, 0x24
pop ebx
ret

Function at 0x60155c
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 0x60158d
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x101
call fcn.0040b928
jmp 0x601594
mov eax, ebx
call fcn.0040a86c
add esp, 0x208
pop ebx
ret

Function at 0x6015a4
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 0x6015bd
xor eax, eax
jmp 0x601611
lea eax, [esp + 8]
push eax
push 0x601618
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 0x601602
xor eax, eax
jmp 0x601611
push 0
push 2
call sub.user32.dll_ExitWindowsEx
cmp eax, 1
sbb eax, eax
inc eax
add esp, 0x14
ret
Function at 0x601640
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 0x60169a
inc esi
xor edi, edi
cmp edi, 1
jne 0x601666
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep
jmp 0x601674
cmp edi, 1
jle 0x601674
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.005fdd64
test eax, eax
jne 0x60169a
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x60169a
call sub.kernel32.dll_GetLastError
cmp eax, 3
je 0x60169a
inc edi
dec esi
jne 0x601656
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x601ed8
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 0x601efc
mov eax, dword [ebp - 4]
jmp 0x601eff
or eax, 0xffffffff
pop ebx
pop ecx
pop ebp
ret

Function at 0x601f04
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 0x601f51
xor ebx, ebx
jmp 0x601f46
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov eax, esi
call fcn.00423d10
test eax, eax
jne 0x601f45
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 2
jmp 0x601ffc
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x601f27
movzx eax, byte [ebp - 1]
sub al, 1
jb 0x601f5d
je 0x601f66
jmp 0x601f6f
call fcn.005bd2d4
mov esi, eax
jmp 0x601f71
call sub.kernel32.dll_GetUserDefaultLangID
mov esi, eax
jmp 0x601f71
xor esi, esi
test si, si
je 0x601ffc
xor ebx, ebx
jmp 0x601f97
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
movzx edx, si
cmp eax, edx
jne 0x601f96
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x601ffc
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x601f7e
xor ebx, ebx
jmp 0x601ff1
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 0x601ff0
mov ax, 0x3ff
and ax, si
cmp ax, 4
jne 0x601fe5
mov eax, dword [ebp - 8]
movzx eax, word [eax + 0x28]
call fcn.00601ed8
push eax
mov eax, esi
call fcn.00601ed8
pop edx
cmp edx, eax
jne 0x601ff0
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x601ffc
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x601fa6
movzx eax, byte [ebp - 2]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x60a1f8
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.00425a14
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x617834
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
add esp, 0xfffffff4
mov ebx, edx
mov esi, eax
cmp byte [esi + 4], 0
je 0x61790e
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, 0x617920
call fcn.00607ea8
mov eax, dword [esi + 0xc]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x61788c
mov eax, 0x617980
call fcn.00607c20
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 0x617877
push esp
mov eax, dword [esi + 8]
push eax
call sub.kernel32.dll_GetExitCodeProcess
test eax, eax
je 0x6178df
cmp dword [esp], 0
jne 0x6178c1
mov eax, 0x6179d8
call fcn.00607c20
jmp 0x6178e9
mov eax, dword [esp]
mov dword [esp + 4], eax
mov byte [esp + 8], 0
lea edx, [esp + 4]
xor ecx, ecx
mov eax, 0x617a14
call fcn.00607ea8
jmp 0x6178e9
mov eax, 0x617a7c
call fcn.00607c20
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 0x61790e
push 0xfa
call sub.kernel32.dll_Sleep
add esp, 0xc
pop esi
pop ebx
ret
Function at 0x617ae4
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 0x617d28
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 0x617ccb
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 0x617b59
mov eax, 0x617d44
call fcn.005feac0
xor edx, edx
push ebp
push 0x617c60
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x14
call fcn.00407d24
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 0x617c47
call sub.kernel32.dll_GetLastError
cmp eax, 0x3e5
je 0x617bc1
mov eax, 0x617d68
call fcn.005feac0
xor edx, edx
push ebp
push 0x617c30
push dword fs:[edx]
mov dword fs:[edx], esp
cmp byte [ebp + 8], 0
je 0x617c01
mov eax, dword [ebp - 4]
cmp word [eax + 0x1a], 0
je 0x617c01
mov ebx, dword [ebp - 4]
mov eax, dword [ebx + 0x1c]
call dword [ebx + 0x18]
push 0x1cff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0xc]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x617bdf
pop dword fs:[0]
add esp, 8
push 0x617c37
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
pop edx
jmp edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x617c67
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
pop eax
jmp eax
Function at 0x61e1c0
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 0x61e409
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.0061a728
cmp dword [ebp - 0x1084], 0x418
jle 0x61e282
lea ecx, [ebp - 0x11e8]
mov edx, dword [ebp - 0x1004]
mov ax, 0xeb
call fcn.005c327c
mov ecx, dword [ebp - 0x11e8]
mov dl, 1
mov eax, dword [0x41d190]
call fcn.0042b510
call fcn.00409f64
lea eax, [ebp - 0x11f0]
lea edx, [ebp - 0x1184]
mov ecx, 0x80
push 0
call fcn.0040b00c
mov edx, dword [ebp - 0x11f0]
lea ecx, [ebp - 0x11ec]
mov eax, dword [ebp - 0x11d0]
mov eax, dword [eax]
call fcn.0061db20
mov edx, dword [ebp - 0x11ec]
mov eax, dword [ebp - 0x11d0]
add eax, 0x14
call fcn.0040ac5c
lea eax, [ebp - 0x11f8]
lea edx, [ebp - 0x1104]
mov ecx, 0x80
push 0
call fcn.0040b00c
mov edx, dword [ebp - 0x11f8]
lea ecx, [ebp - 0x11f4]
mov eax, dword [ebp - 0x11d0]
mov eax, dword [eax]
call fcn.0061db20
mov edx, dword [ebp - 0x11f4]
mov eax, dword [ebp - 0x11d0]
add eax, 0x18
call fcn.0040ac5c
mov eax, dword [ebp - 0x11d0]
movzx edx, byte [ebp - 0x1078]
mov byte [eax + 0x1d], dl
mov ebx, dword [ebp - 0x1080]
test ebx, ebx
jle 0x61e3c8
push ebp
mov eax, esi
mov edx, 0xa
call fcn.0061e148
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.0061aec0
mov dword [ebp - 0x11e4], eax
cmp dword [ebp - 0x11e4], 0
jne 0x61e365
push ebp
call fcn.0061df9c
pop ecx
xor eax, eax
push ebp
push 0x61e396
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.0061e148
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x61e3b0
mov edx, dword [ebp - 0x11e4]
mov eax, dword [ebp - 0x11d0]
call fcn.0061aefc
dec ebx
jne 0x61e32a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x61e410
lea eax, [ebp - 0x11f8]
call fcn.0040a890
lea eax, [ebp - 0x11f4]
call fcn.0040a86c
lea eax, [ebp - 0x11f0]
call fcn.0040a890
lea eax, [ebp - 0x11ec]
mov edx, 2
call fcn.0040a8cc
pop eax
jmp eax
Function at 0x65595c
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x655ac2
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, dword [ebp - 8]
test esi, esi
je 0x65599e
or ebx, 0xffff
mov eax, esi
call fcn.0040b88c
mov esi, eax
jmp 0x6559a0
xor esi, esi
xor eax, eax
mov dword [ebp - 0xc], eax
push 0
lea eax, [ebp - 0xc]
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 0x6559d0
mov eax, edi
call fcn.0040a86c
jmp 0x655aa5
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
je 0x655a20
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
call sub.kernel32.dll_GetLastError
lea ecx, [ebp - 0x20]
mov edx, dword [0x6bf7c0]
call fcn.00429e78
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0x11
lea eax, [ebp - 0x1c]
push eax
push 1
mov ecx, dword [0x6b77a8]
mov dl, 1
mov eax, dword [0x658fe0]
call fcn.0042b60c
call fcn.00409f64
mov edx, dword [ebp - 0xc]
shr edx, 1
dec edx
mov eax, edi
call fcn.0040ba00
mov eax, dword [edi]
test eax, eax
je 0x655a38
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x655aa5
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [edi]
call fcn.0040b88c
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 0x655aa5
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
call sub.kernel32.dll_GetLastError
lea ecx, [ebp - 0x24]
mov edx, dword [0x6bf7c0]
call fcn.00429e78
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0x11
lea eax, [ebp - 0x1c]
push eax
push 1
mov ecx, dword [0x6b77a8]
mov dl, 1
mov eax, dword [0x658fe0]
call fcn.0042b60c
call fcn.00409f64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x655ac9
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.0040a8cc
pop eax
jmp eax

Function at 0x655cd6
Capabilities:
Initialize winhttp library

Disassembly:
push ebx
push esi
push edi
test dl, dl
je 0x655c97
add esp, 0xfffffff0
call fcn.004090d4
mov ebx, edx
mov edi, eax
mov eax, edi
call fcn.0065f998
mov dl, 1
mov eax, dword [0x65406c]
call fcn.00658e30
mov dword [edi + 0xb8], eax
mov dl, 1
mov eax, dword [0x645128]
call fcn.006504fc
mov dword [edi + 0xb4], eax
mov eax, dword [0x65313c]
call fcn.006589ec
push 0
push 0
push 0
push 1
push 0x655d38
call sub.winhttp.dll_WinHttpOpen
mov esi, eax
mov dword [edi + 0xb0], esi
test esi, esi
jne 0x655d05
mov ecx, dword [0x6b7970]
mov dl, 1
mov eax, dword [0x659098]
call fcn.0042b5d0
call fcn.00409f64
push 0
push 0x10010
push 0x655ae4
mov eax, dword [edi + 0xb0]
push eax
call sub.winhttp.dll_WinHttpSetStatusCallback
mov eax, edi
test bl, bl
je 0x655d32
call fcn.0040912c
pop dword fs:[0]
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x657210
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 0x6573ec
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebx + 0xb9], 0
mov byte [ebx + 0xb8], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
jle 0x65725a
mov esi, dword [ebp - 4]
movzx esi, word [esi + 0x10]
jmp 0x65725c
xor esi, esi
push 0
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0040b88c
push eax
mov eax, dword [ebx + 0x58]
mov eax, dword [eax + 0xb0]
push eax
call sub.winhttp.dll_WinHttpConnect
mov edi, eax
mov dword [ebx + 0xa0], edi
test edi, edi
jne 0x6572b0
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 [0x6b7488]
mov dl, 1
mov eax, dword [0x659160]
call fcn.0042b60c
call fcn.00409f64
xor esi, esi
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, 0x657408
call fcn.0040bc70
jne 0x6572c9
or esi, 0x800000
push esi
push 0
push 0
push 0
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.0065591c
mov eax, dword [ebp - 0x10]
call fcn.0040b88c
push eax
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.0064c7b0
mov eax, dword [ebp - 0x14]
call fcn.0040b88c
push eax
mov eax, dword [ebx + 0xa0]
push eax
call sub.winhttp.dll_WinHttpOpenRequest
mov edi, eax
mov dword [ebx + 0xa4], edi
test edi, edi
jne 0x657355
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 [0x6bf7c0]
call fcn.00429e78
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 [0x6b78e8]
mov dl, 1
mov eax, dword [0x659160]
call fcn.0042b60c
call fcn.00409f64
mov eax, dword [ebx + 0x14]
push eax
mov eax, ebx
call fcn.0064c904
push eax
mov esi, dword [ebx + 0xc]
push esi
push esi
mov eax, dword [ebx + 0xa4]
push eax
call sub.winhttp.dll_WinHttpSetTimeouts
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x6573c2
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 [0x6bf7c0]
call fcn.00429e78
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 [0x6b7a68]
mov dl, 1
mov eax, dword [0x659160]
call fcn.0042b60c
call fcn.00409f64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6573f3
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.0040a8cc
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040a8cc
pop eax
jmp eax