joyce8/EMBER2024-capa huggingface dataset:
Function at 0x491217
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5652b3
mov eax, dword fs:[0]
push eax
mov eax, 0x82a8
call fcn.0051fcc0
mov eax, dword [0x5f7350]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, ecx
mov dword [ebp - 0x8180], ebx
cmp dword [esi], ebx
mov dword [ebp - 0x8174], eax
setne al
movzx eax, al
push 0x234
push eax
mov edi, str.srcwindows_registry.cpp
mov dword [ebp - 0x817c], esi
call fcn.004924b4
pop ecx
pop ecx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x8178]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [esi]
mov dword [ebp - 0x8178], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, eax
cmp edi, ebx
je 0x491320
lea eax, [ebp - 0x821c]
push eax
call fcn.00403689
mov esi, eax
push str.RegQueryInfoKey_failed_with
push esi
mov dword [ebp - 4], 1
call fcn.00405d65
pop ecx
pop ecx
push edi
push esi
call fcn.00410496
lea eax, [ebp - 0x804c]
push eax
mov eax, esi
call fcn.004036f3
mov byte [ebp - 4], 2
cmp edi, ebx
jle 0x4912ef
and edi, 0xffff
or edi, 0x80070000
push 1
push 0x24a
push str.srcwindows_registry.cpp
push edi
lea eax, [ebp - 0x804c]
push eax
lea eax, [ebp - 0x816c]
push eax
call fcn.00498954
push 0x5c9774
lea eax, [ebp - 0x816c]
push eax
call fcn.0051eb2a
mov edi, dword [ebp - 0x8174]
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x8180], 1
mov dword [ebp - 0x8170], ebx
cmp dword [ebp - 0x8178], ebx
ja 0x49136d
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005146df
leave
ret 4
mov esi, dword [ebp - 0x817c]
push ebx
push ebx
push ebx
xor eax, eax
push ebx
mov word [ebp - 0x8014], ax
lea eax, [ebp - 0x8184]
push eax
lea eax, [ebp - 0x8014]
push eax
push dword [ebp - 0x8170]
mov dword [ebp - 0x8184], 0x4000
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov esi, eax
cmp esi, 0x103
je 0x491349
cmp esi, ebx
jne 0x491403
lea eax, [ebp - 0x8014]
push eax
lea esi, [ebp - 0x8030]
call fcn.00403350
mov dword [ebp - 4], 5
mov edi, dword [ebp - 0x8174]
mov ecx, esi
call fcn.0040dea7
push 1
xor edi, edi
mov byte [ebp - 4], bl
call fcn.0040412d
inc dword [ebp - 0x8170]
mov eax, dword [ebp - 0x8170]
mov edi, dword [ebp - 0x8174]
cmp eax, dword [ebp - 0x8178]
jb 0x491367
jmp 0x491349
lea eax, [ebp - 0x82b4]
push eax
call fcn.00403689
mov edi, eax
push str.RegEnumValueW_failed_with
push edi
mov dword [ebp - 4], 3
call fcn.00405d65
pop ecx
pop ecx
push esi
push edi
call fcn.00410496
lea eax, [ebp - 0x8030]
push eax
mov eax, edi
call fcn.004036f3
mov byte [ebp - 4], 4
cmp esi, ebx
jle 0x49144e
and esi, 0xffff
or esi, 0x80070000
push 1
push 0x26d
push str.srcwindows_registry.cpp
push esi
lea eax, [ebp - 0x8030]
push eax
lea eax, [ebp - 0x80dc]
push eax
call fcn.00498954
push 0x5c9774
lea eax, [ebp - 0x80dc]
jmp 0x49131a
Function at 0x4919fa
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x559963
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x5f7350]
xor eax, esp
mov dword [esp + 0x150], eax
push ebx
push esi
push edi
mov eax, dword [0x5f7350]
xor eax, esp
push eax
lea eax, [esp + 0x168]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi], 0
push 0x31a
setne al
movzx eax, al
push eax
mov edi, str.srcwindows_registry.cpp
mov ebx, edx
call fcn.004924b4
cmp dword [ebx + 0x14], 8
pop ecx
pop ecx
jb 0x491a61
mov ebx, dword [ebx]
push ebx
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
test esi, esi
je 0x491aef
lea eax, [esp + 0x14]
push eax
call fcn.00403689
mov ebx, eax
and dword [esp + 0x170], 0
push str.RegDeleteValue_failed_with
push ebx
call fcn.00405d65
pop ecx
pop ecx
push esi
push ebx
call fcn.00410496
lea eax, [esp + 0xb0]
push eax
mov eax, ebx
call fcn.004036f3
mov byte [esp + 0x170], 1
test esi, esi
jle 0x491abf
and esi, 0xffff
or esi, 0x80070000
push 1
push 0x323
push edi
push esi
lea eax, [esp + 0xc0]
push eax
lea eax, [esp + 0xe0]
push eax
call fcn.00498954
push 0x5c9774
lea eax, [esp + 0xd0]
push eax
call fcn.0051eb2a
mov ecx, dword [esp + 0x168]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x150]
xor ecx, esp
call fcn.005146df
mov esp, ebp
pop ebp
ret

Function at 0x491b13
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x559963
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x5f7350]
xor eax, esp
mov dword [esp + 0x150], eax
push ebx
push esi
push edi
mov eax, dword [0x5f7350]
xor eax, esp
push eax
lea eax, [esp + 0x168]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
cmp dword [esi], 0
mov dword [esp + 0x10], eax
setne al
movzx eax, al
push 0x329
push eax
mov edi, str.srcwindows_registry.cpp
mov ebx, edx
call fcn.004924b4
cmp dword [ebx + 0x14], 8
pop ecx
pop ecx
jb 0x491b81
mov ebx, dword [ebx]
push dword [ebp + 0xc]
push dword [esp + 0x14]
push dword [ebp + 0x10]
push 0
push ebx
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
je 0x491c1b
lea eax, [esp + 0x14]
push eax
call fcn.00403689
mov ebx, eax
and dword [esp + 0x170], 0
push str.RegSetValueExW_failed_with
push ebx
call fcn.00405d65
pop ecx
pop ecx
push esi
push ebx
call fcn.00410496
lea eax, [esp + 0xb0]
push eax
mov eax, ebx
call fcn.004036f3
mov byte [esp + 0x170], 1
test esi, esi
jle 0x491beb
and esi, 0xffff
or esi, 0x80070000
push 1
push 0x338
push edi
push esi
lea eax, [esp + 0xc0]
push eax
lea eax, [esp + 0xe0]
push eax
call fcn.00498954
push 0x5c9774
lea eax, [esp + 0xd0]
push eax
call fcn.0051eb2a
mov ecx, dword [esp + 0x168]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x150]
xor ecx, esp
call fcn.005146df
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4926d7
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xe4
mov eax, 0x55e2e3
call fcn.00523a34
mov ebx, ecx
mov edi, dword [ebx + 4]
push dword [edi]
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [ebx + 4]
cmp dword [eax + 4], esi
je 0x492716
push dword [edi]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
call fcn.00523a90
ret
add eax, 0x10
push eax
push 4
push ebx
push 0x4924e9
push esi
push esi
call fcn.0051a747
mov ecx, dword [ebx + 4]
mov dword [ecx + 4], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax + 4]
add esp, 0x18
cmp eax, esi
je 0x492881
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x4927e7
lea eax, [ebp - 0x4c]
push eax
mov byte [ebp - 4], 1
call fcn.00497abf
pop ecx
mov edi, eax
lea eax, [ebp - 0xf0]
push eax
mov byte [ebp - 4], 2
call fcn.00403689
mov esi, eax
push str.SetThreadPriority_failed:
push esi
mov byte [ebp - 4], 3
call fcn.00405d65
pop ecx
pop ecx
push esi
mov ecx, edi
call fcn.00411926
pop ecx
lea eax, [ebp - 0x30]
push eax
mov eax, esi
call fcn.004036f3
mov byte [ebp - 4], 4
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x4927a7
lea eax, [ebp - 0x30]
push eax
xor ecx, ecx
call fcn.00492cc7
pop ecx
push 1
xor edi, edi
lea esi, [ebp - 0x30]
call fcn.0040412d
lea eax, [ebp - 0xf0]
mov byte [ebp - 4], 2
call fcn.0040262a
push 1
lea esi, [ebp - 0x4c]
call fcn.0040412d
and dword [ebp - 4], edi
jmp 0x4927e7
mov eax, dword [ebx + 4]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x49289b
lea eax, [ebp - 0x4c]
push eax
mov byte [ebp - 4], 6
call fcn.00497abf
pop ecx
mov edi, eax
lea eax, [ebp - 0xf0]
push eax
mov byte [ebp - 4], 7
call fcn.00403689
mov esi, eax
push str.ResumeThread_failed:
push esi
mov byte [ebp - 4], 8
call fcn.00405d65
pop ecx
pop ecx
push esi
mov ecx, edi
call fcn.00411926
pop ecx
lea eax, [ebp - 0x30]
push eax
mov eax, esi
call fcn.004036f3
mov byte [ebp - 4], 9
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x492853
lea eax, [ebp - 0x30]
push eax
xor ecx, ecx
call fcn.00492cc7
pop ecx
push 1
xor edi, edi
lea esi, [ebp - 0x30]
call fcn.0040412d
lea eax, [ebp - 0xf0]
mov byte [ebp - 4], 7
call fcn.0040262a
push 1
lea esi, [ebp - 0x4c]
call fcn.0040412d
xor bl, bl
mov eax, dword [ebp - 0x54]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
jmp 0x492710
mov eax, dword [ebx + 4]
mov byte [eax + 0xc], 1
mov eax, dword [ebx + 4]
mov byte [eax + 0xd], 0
mov bl, 1
jmp 0x492883

Function at 0x4957ff
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [eax + 0x14], 8
jb 0x495807
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x495816
xor al, al
ret
shr eax, 4
not eax
and eax, 1
ret
Function at 0x4970be
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [esi + 0x10]
push ebx
push edi
xor edx, edx
push 0xa
mov eax, ecx
pop ebx
div ebx
xor edi, edi
mov dword [ebp - 4], 0x811c9dc5
inc eax
test ecx, ecx
je 0x497102
cmp dword [esi + 0x14], 8
jb 0x4970e8
mov edx, dword [esi]
jmp 0x4970ea
mov edx, esi
mov ebx, dword [ebp - 4]
movzx edx, word [edx + edi*2]
imul ebx, ebx, 0x1000193
xor edx, ebx
add edi, eax
mov dword [ebp - 4], edx
cmp edi, ecx
jb 0x4970de
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret

Function at 0x497c30
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push 0x24
lea eax, [ebp - 0x24]
push 0
push eax
call fcn.00517bf0
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [ebp - 0x24]
cmp eax, 0xa
ja case.default.0x497c59
jmp dword [eax*4 + 0x497cb4]
mov eax, 0x5a4a68
leave
ret
mov eax, str.MIPS
leave
ret
mov eax, str.ALPHA
leave
ret
mov eax, 0x5a4a88
leave
ret
mov eax, 0x5a4a90
leave
ret
mov eax, 0x5a4a98
leave
ret
mov eax, str.IA64
leave
ret
mov eax, str.ALPHA64
leave
ret
mov eax, str.MSIL
leave
ret
mov eax, str.AMD64
leave
ret
mov eax, str.IA32_ON_WIN64
leave
ret
mov eax, str.UNKNOWN
leave
ret
Function at 0x49835a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x55951d
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x5f7350]
xor eax, esp
mov dword [esp + 0xc8], eax
push ebx
push esi
push edi
mov eax, dword [0x5f7350]
xor eax, esp
push eax
lea eax, [esp + 0xe0]
mov dword fs:[0], eax
mov edi, 0x6015d4
push edi
mov ebx, 0x10c
push ebx
call fcn.00516e81
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4983d1
push ebx
push 0
push esi
call fcn.00517bf0
add esp, 0xc
xor eax, eax
mov dword [esi], 0x54485245
mov word [esi + 0xc], ax
mov dword [esp + 0x10], esi
jmp 0x4983da
and dword [esp + 0x10], 0
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x4983f3
xor ecx, ecx
push str.Allocate_memory_for_CreateThread_failed_
inc ecx
call fcn.00492cc7
pop ecx
xor eax, eax
jmp 0x498505
push edi
push 8
call fcn.00516e81
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x498418
xor ecx, ecx
push str.Failed_to_allocate_memory_in_CreateThread
inc ecx
call fcn.00492cc7
pop ecx
call fcn.00498529
jmp 0x4983ec
mov eax, dword [ebp + 0xc]
push 0xc
mov dword [ebx + 4], eax
mov eax, dword [ebp + 8]
pop edi
push edi
mov dword [ebx], eax
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00517bf0
add esp, 0xc
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x1c], edi
xor edi, edi
push edi
push ebx
push 0x49833c
lea eax, [esp + 0x28]
push edi
push eax
call fcn.0051a747
add esp, 0x18
mov dword [esi + 8], eax
cmp eax, edi
jne 0x4984fc
lea eax, [esp + 0x24]
push eax
call fcn.00403689
mov esi, eax
push str._beginthreadex_failed__errno
push esi
mov dword [esp + 0xf0], edi
call fcn.00405d65
pop ecx
pop ecx
call fcn.0051ab98
push dword [eax]
push esi
call fcn.00404b9e
lea eax, [esp + 0xbc]
push eax
mov eax, esi
call fcn.004036f3
mov byte [esp + 0xe8], 1
cmp dword [esp + 0xd0], 8
mov eax, dword [esp + 0xbc]
jae 0x4984bd
lea eax, [esp + 0xbc]
xor ecx, ecx
push eax
inc ecx
call fcn.00492cc7
pop ecx
push 1
xor edi, edi
lea esi, [esp + 0xc0]
call fcn.0040412d
or dword [esp + 0xe8], 0xffffffff
lea eax, [esp + 0x24]
call fcn.0040262a
mov esi, dword [esp + 0x10]
call fcn.00498529
push ebx
call fcn.00515779
jmp 0x4983eb
mov eax, dword [esp + 0x14]
mov dword [esi + 4], eax
mov eax, esi
mov ecx, dword [esp + 0xe0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.005146df
mov esp, ebp
pop ebp
ret

Function at 0x498aea
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x5f7350]
xor eax, esp
mov dword [esp + 0x194], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x498b31
cmp byte [esp], 2
jne 0x498b2b
mov eax, dword [esp]
shr eax, 8
cmp al, 2
jne 0x498b2b
dec al
jmp 0x498b33
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.005146df
mov esp, ebp
pop ebp
ret
Function at 0x498b45
Capabilities:
Resolve dns

Disassembly:
push edi
mov edi, str.localhost
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x498bb0
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x498b66
xor al, al
pop edi
ret
mov cx, word [eax + 8]
mov word [esi], cx
mov ecx, dword [eax + 0xc]
xor edi, edi
cmp dword [ecx], edi
je 0x498b62
mov eax, ecx
add eax, 4
inc edi
cmp dword [eax], 0
jne 0x498b78
test edi, edi
je 0x498b62
mov eax, dword [0x603354]
xor edx, edx
div edi
cmp dword [0x603354], 0xffffffff
mov eax, dword [ecx + edx*4]
mov eax, dword [eax]
mov dword [esi + 4], eax
jne 0x498ba8
and dword [0x603354], 0
jmp 0x498bb9
inc dword [0x603354]
jmp 0x498bb9
push 2
pop ecx
mov word [esi], cx
mov dword [esi + 4], eax
mov al, 1
pop edi
ret

Function at 0x498bbd
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5f7350]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 8], 0xffffffff
je 0x498bde
push 6
pop eax
jmp 0x498c83
mov eax, dword [esi + 4]
push edi
push 2
pop edi
cmp eax, edi
jne 0x498bef
push 6
push 1
jmp 0x498bfb
cmp eax, 1
jne 0x498c7f
push 0x11
push edi
push edi
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
je 0x498c76
push 0x7f000001
mov word [ebp - 0x14], di
call dword [sym.imp.WS2_32.dll_htonl]
push dword [ebp + 8]
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x498c71
cmp dword [esi + 4], 1
jne 0x498c5e
lea eax, [ebp - 0x18]
push eax
push 0x8004667e
push dword [esi + 8]
mov dword [ebp - 0x18], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
jmp 0x498c6c
push bind
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x498c7b
call fcn.00498c92
push 0xa
pop eax
jmp 0x498c82
xor eax, eax
jmp 0x498c82
xor eax, eax
inc eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005146df
leave
ret 4
Function at 0x498d55
Capabilities:
Send data
Send data on socket

Disassembly:
push 0xbc
mov eax, 0x55c7dd
call fcn.005239fe
mov esi, dword [ebp + 8]
xor eax, eax
inc eax
cmp dword [esi + 4], eax
jne 0x498e26
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
jne 0x498d83
push 2
pop eax
jmp 0x498e26
push 0x10
push ecx
push 0
push dword [ebp + 0xc]
push edx
push eax
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x498e24
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x498db7
mov edx, ebx
mov ecx, esi
call fcn.00498e2e
jmp 0x498e26
lea eax, [ebp - 0xc8]
push eax
call fcn.00403689
mov esi, eax
and dword [ebp - 4], 0
push str.sendto_failed_as
push esi
call fcn.00405d65
pop ecx
pop ecx
push edi
push esi
call fcn.00404b9e
lea eax, [ebp - 0x2c]
push eax
mov eax, esi
call fcn.004036f3
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x498df8
lea eax, [ebp - 0x2c]
push eax
push 4
pop ecx
call fcn.00492cc7
pop ecx
push 1
xor edi, edi
lea esi, [ebp - 0x2c]
call fcn.0040412d
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xc8]
call fcn.0040262a
push 0xa
jmp 0x498d7d
xor eax, eax
call fcn.00523a81
ret 8
Function at 0x49b1c0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56b0d5
mov eax, dword fs:[0]
push eax
sub esp, 0x198
mov eax, dword [0x5f7350]
xor eax, esp
mov dword [esp + 0x190], eax
push ebx
push esi
push edi
mov eax, dword [0x5f7350]
xor eax, esp
push eax
lea eax, [esp + 0x1a8]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx], 0
push 0x50
setne al
movzx eax, al
push eax
mov edi, 0x5a591c
mov dword [esp + 0x1c], ebx
call fcn.004924b4
mov eax, dword [ebx]
dec eax
pop ecx
pop ecx
je 0x49b332
dec eax
jne 0x49b2fb
push 0x587bd0
lea esi, [esp + 0x2c]
call fcn.00403350
and dword [esp + 0x1b0], 0
add ebx, 4
lea eax, [esp + 0x18]
push ebx
push eax
mov ecx, esi
call fcn.00494ff3
pop ecx
pop ecx
push 1
xor edi, edi
mov byte [esp + 0x1b4], 2
call fcn.0040412d
mov eax, dword [esp + 0x18]
mov esi, eax
cmp eax, dword [esp + 0x1c]
je 0x49b283
mov ecx, esi
call fcn.0049b1c0
add esi, 0x44
cmp esi, dword [esp + 0x1c]
jne 0x49b273
push ebx
lea eax, [esp + 0x64]
call fcn.00494ed8
cmp dword [eax + 0x14], 8
jb 0x49b295
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebx, eax
neg ebx
sbb bl, bl
push 1
xor edi, edi
lea esi, [esp + 0x64]
call fcn.0040412d
inc bl
je 0x49b2ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x49b2c7
and eax, 0xffff
or eax, 0x80070000
push 0x66
push 0x5a591c
mov edx, eax
lea ecx, [esp + 0x84]
call fcn.004988c2
push 0x5c9774
lea eax, [esp + 0x80]
push eax
call fcn.0051eb2a
lea esi, [esp + 0x18]
call fcn.0043cadb
mov ebx, dword [esp + 0x14]
and dword [ebx], 0
push 0x24
push 0
add ebx, 0x20
push ebx
call fcn.00517bf0
add esp, 0xc
mov ecx, dword [esp + 0x1a8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.005146df
mov esp, ebp
pop ebp
ret
lea eax, [ebx + 4]
push eax
lea eax, [esp + 0x48]
call fcn.00494ed8
cmp dword [eax + 0x14], 8
jb 0x49b347
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb al, al
inc al
push 1
xor edi, edi
lea esi, [esp + 0x48]
mov byte [esp + 0x17], al
call fcn.0040412d
cmp byte [esp + 0x13], 0
je 0x49b2fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x49b380
and eax, 0xffff
or eax, 0x80070000
push 0x58
push 0x5a591c
mov edx, eax
lea ecx, [esp + 0x114]
call fcn.004988c2
push 0x5c9774
lea eax, [esp + 0x110]
jmp 0x49b2e8
Function at 0x49b8b1
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x564f53
mov eax, dword fs:[0]
push eax
sub esp, 0x180
mov eax, dword [0x5f7350]
xor eax, esp
mov dword [esp + 0x178], eax
push ebx
push esi
push edi
mov eax, dword [0x5f7350]
xor eax, esp
push eax
lea eax, [esp + 0x190]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
xor esi, esi
push esi
lea ecx, [esp + 0x14]
push ecx
push esi
push esi
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0xc]
push 0x16
push eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x28], esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x20], eax
call ebx
mov dword [esp + 0x18], eax
cmp dword [esp + 0x20], esi
jne 0x49b9ba
cmp eax, 0x7a
je 0x49b9ba
lea eax, [esp + 0x24]
push eax
call fcn.00403689
mov ebx, eax
push str.WinHttpQueryHeaders_failed_with
push ebx
mov dword [esp + 0x1a0], esi
call fcn.00405d65
mov edi, dword [esp + 0x20]
pop ecx
pop ecx
push edi
push ebx
call fcn.0041058a
lea eax, [esp + 0xbc]
push eax
mov eax, ebx
call fcn.004036f3
mov byte [esp + 0x198], 1
cmp edi, esi
jle 0x49b98d
and edi, 0xffff
or edi, 0x80070000
push 0x9a
push edi
lea eax, [esp + 0xc4]
push eax
lea eax, [esp + 0x100]
push eax
call fcn.0049b453
push 0x5c9938
lea eax, [esp + 0xf8]
push eax
call fcn.0051eb2a
mov eax, dword [esp + 0x10]
shr eax, 1
lea ecx, [esp + 0xbc]
mov dword [esp + 0xbc], esi
mov dword [esp + 0xc0], esi
mov dword [esp + 0xc4], esi
call fcn.0045d08b
push esi
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x1a0], 2
push dword [esp + 0xc4]
push esi
push 0x16
push dword [esp + 0x30]
call edi
test eax, eax
jne 0x49ba85
call ebx
mov edi, eax
lea eax, [esp + 0x24]
push eax
call fcn.00403689
mov ebx, eax
push str.WinHttpQueryHeaders_failed_with
push ebx
mov byte [esp + 0x1a0], 3
call fcn.00405d65
pop ecx
pop ecx
push edi
push ebx
call fcn.0041058a
lea eax, [esp + 0xd8]
push eax
mov eax, ebx
call fcn.004036f3
mov byte [esp + 0x198], 4
cmp edi, esi
jle 0x49ba59
and edi, 0xffff
or edi, 0x80070000
push 0xab
push edi
lea eax, [esp + 0xe0]
push eax
lea eax, [esp + 0x100]
push eax
call fcn.0049b453
push 0x5c9938
lea eax, [esp + 0xf8]
jmp 0x49b9b4
push dword [esp + 0x14]
mov edi, dword [esp + 0x18]
push dword [esp + 0xc4]
xor eax, eax
push dword [esp + 0xc4]
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], esi
push edi
mov word [edi], ax
call fcn.0049d072
lea esi, [esp + 0xbc]
call fcn.004e7046
mov eax, edi
mov ecx, dword [esp + 0x190]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x178]
xor ecx, esp
call fcn.005146df
mov esp, ebp
pop ebp
ret