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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x565548
mov eax, dword fs:[0]
push eax
mov eax, 0x82a8
call fcn.0051fee0
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.0049231b
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 0x491187
lea eax, [ebp - 0x821c]
push eax
call fcn.004036c8
mov esi, eax
push str.RegQueryInfoKey_failed_with
push esi
mov dword [ebp - 4], 1
call fcn.00405d7d
pop ecx
pop ecx
push edi
push esi
call fcn.00410478
lea eax, [ebp - 0x804c]
push eax
mov eax, esi
call fcn.00403732
mov byte [ebp - 4], 2
cmp edi, ebx
jle 0x491156
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.0049844a
push 0x5c983c
lea eax, [ebp - 0x816c]
push eax
call fcn.0051ed55
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 0x4911d4
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.0051497f
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 0x4911b0
cmp esi, ebx
jne 0x49126a
lea eax, [ebp - 0x8014]
push eax
lea esi, [ebp - 0x8030]
call fcn.0040338f
mov dword [ebp - 4], 5
mov edi, dword [ebp - 0x8174]
mov ecx, esi
call fcn.0040de6b
push 1
xor edi, edi
mov byte [ebp - 4], bl
call fcn.00404145
inc dword [ebp - 0x8170]
mov eax, dword [ebp - 0x8170]
mov edi, dword [ebp - 0x8174]
cmp eax, dword [ebp - 0x8178]
jb 0x4911ce
jmp 0x4911b0
lea eax, [ebp - 0x82b4]
push eax
call fcn.004036c8
mov edi, eax
push str.RegEnumValueW_failed_with
push edi
mov dword [ebp - 4], 3
call fcn.00405d7d
pop ecx
pop ecx
push esi
push edi
call fcn.00410478
lea eax, [ebp - 0x8030]
push eax
mov eax, edi
call fcn.00403732
mov byte [ebp - 4], 4
cmp esi, ebx
jle 0x4912b5
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.0049844a
push 0x5c983c
lea eax, [ebp - 0x80dc]
jmp 0x491181
Function at 0x491861
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x559c6e
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.0049231b
cmp dword [ebx + 0x14], 8
pop ecx
pop ecx
jb 0x4918c8
mov ebx, dword [ebx]
push ebx
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
test esi, esi
je 0x491956
lea eax, [esp + 0x14]
push eax
call fcn.004036c8
mov ebx, eax
and dword [esp + 0x170], 0
push str.RegDeleteValue_failed_with
push ebx
call fcn.00405d7d
pop ecx
pop ecx
push esi
push ebx
call fcn.00410478
lea eax, [esp + 0xb0]
push eax
mov eax, ebx
call fcn.00403732
mov byte [esp + 0x170], 1
test esi, esi
jle 0x491926
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.0049844a
push 0x5c983c
lea eax, [esp + 0xd0]
push eax
call fcn.0051ed55
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.0051497f
mov esp, ebp
pop ebp
ret

Function at 0x49197a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x559c6e
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.0049231b
cmp dword [ebx + 0x14], 8
pop ecx
pop ecx
jb 0x4919e8
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 0x491a82
lea eax, [esp + 0x14]
push eax
call fcn.004036c8
mov ebx, eax
and dword [esp + 0x170], 0
push str.RegSetValueExW_failed_with
push ebx
call fcn.00405d7d
pop ecx
pop ecx
push esi
push ebx
call fcn.00410478
lea eax, [esp + 0xb0]
push eax
mov eax, ebx
call fcn.00403732
mov byte [esp + 0x170], 1
test esi, esi
jle 0x491a52
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.0049844a
push 0x5c983c
lea eax, [esp + 0xd0]
push eax
call fcn.0051ed55
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.0051497f
mov esp, ebp
pop ebp
ret 0xc
Function at 0x49255d
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xe4
mov eax, 0x55e563
call fcn.00523ccd
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 0x49259c
push dword [edi]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
call fcn.00523d29
ret
add eax, 0x10
push eax
push 4
push ebx
push 0x492350
push esi
push esi
call fcn.0051a9e7
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 0x492707
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x49266d
lea eax, [ebp - 0x4c]
push eax
mov byte [ebp - 4], 1
call fcn.004975b6
pop ecx
mov edi, eax
lea eax, [ebp - 0xf0]
push eax
mov byte [ebp - 4], 2
call fcn.004036c8
mov esi, eax
push str.SetThreadPriority_failed:
push esi
mov byte [ebp - 4], 3
call fcn.00405d7d
pop ecx
pop ecx
push esi
mov ecx, edi
call fcn.0041193b
pop ecx
lea eax, [ebp - 0x30]
push eax
mov eax, esi
call fcn.00403732
mov byte [ebp - 4], 4
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x49262d
lea eax, [ebp - 0x30]
push eax
xor ecx, ecx
call fcn.00492b4d
pop ecx
push 1
xor edi, edi
lea esi, [ebp - 0x30]
call fcn.00404145
lea eax, [ebp - 0xf0]
mov byte [ebp - 4], 2
call fcn.00402669
push 1
lea esi, [ebp - 0x4c]
call fcn.00404145
and dword [ebp - 4], edi
jmp 0x49266d
mov eax, dword [ebx + 4]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x492721
lea eax, [ebp - 0x4c]
push eax
mov byte [ebp - 4], 6
call fcn.004975b6
pop ecx
mov edi, eax
lea eax, [ebp - 0xf0]
push eax
mov byte [ebp - 4], 7
call fcn.004036c8
mov esi, eax
push str.ResumeThread_failed:
push esi
mov byte [ebp - 4], 8
call fcn.00405d7d
pop ecx
pop ecx
push esi
mov ecx, edi
call fcn.0041193b
pop ecx
lea eax, [ebp - 0x30]
push eax
mov eax, esi
call fcn.00403732
mov byte [ebp - 4], 9
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x4926d9
lea eax, [ebp - 0x30]
push eax
xor ecx, ecx
call fcn.00492b4d
pop ecx
push 1
xor edi, edi
lea esi, [ebp - 0x30]
call fcn.00404145
lea eax, [ebp - 0xf0]
mov byte [ebp - 4], 7
call fcn.00402669
push 1
lea esi, [ebp - 0x4c]
call fcn.00404145
xor bl, bl
mov eax, dword [ebp - 0x54]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
jmp 0x492596
mov eax, dword [ebx + 4]
mov byte [eax + 0xc], 1
mov eax, dword [ebx + 4]
mov byte [eax + 0xd], 0
mov bl, 1
jmp 0x492709
Function at 0x4954de
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [eax + 0x14], 8
jb 0x4954e6
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4954f5
xor al, al
ret
shr eax, 4
not eax
and eax, 1
ret

Function at 0x496cec
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 0x496d30
cmp dword [esi + 0x14], 8
jb 0x496d16
mov edx, dword [esi]
jmp 0x496d18
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 0x496d0c
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret

Function at 0x497727
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.00517e90
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.0x497750
jmp dword [eax*4 + 0x4977ab]
mov eax, 0x5a4b28
leave
ret
mov eax, str.MIPS
leave
ret
mov eax, str.ALPHA
leave
ret
mov eax, 0x5a4b48
leave
ret
mov eax, 0x5a4b50
leave
ret
mov eax, 0x5a4b58
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 0x497e50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x559828
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.00517122
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x497ec7
push ebx
push 0
push esi
call fcn.00517e90
add esp, 0xc
xor eax, eax
mov dword [esi], 0x54485245
mov word [esi + 0xc], ax
mov dword [esp + 0x10], esi
jmp 0x497ed0
and dword [esp + 0x10], 0
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x497ee9
xor ecx, ecx
push str.Allocate_memory_for_CreateThread_failed_
inc ecx
call fcn.00492b4d
pop ecx
xor eax, eax
jmp 0x497ffb
push edi
push 8
call fcn.00517122
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x497f0e
xor ecx, ecx
push str.Failed_to_allocate_memory_in_CreateThread
inc ecx
call fcn.00492b4d
pop ecx
call fcn.0049801f
jmp 0x497ee2
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.00517e90
add esp, 0xc
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x1c], edi
xor edi, edi
push edi
push ebx
push 0x497e32
lea eax, [esp + 0x28]
push edi
push eax
call fcn.0051a9e7
add esp, 0x18
mov dword [esi + 8], eax
cmp eax, edi
jne 0x497ff2
lea eax, [esp + 0x24]
push eax
call fcn.004036c8
mov esi, eax
push str._beginthreadex_failed__errno
push esi
mov dword [esp + 0xf0], edi
call fcn.00405d7d
pop ecx
pop ecx
call fcn.0051ae38
push dword [eax]
push esi
call fcn.00404bb6
lea eax, [esp + 0xbc]
push eax
mov eax, esi
call fcn.00403732
mov byte [esp + 0xe8], 1
cmp dword [esp + 0xd0], 8
mov eax, dword [esp + 0xbc]
jae 0x497fb3
lea eax, [esp + 0xbc]
xor ecx, ecx
push eax
inc ecx
call fcn.00492b4d
pop ecx
push 1
xor edi, edi
lea esi, [esp + 0xc0]
call fcn.00404145
or dword [esp + 0xe8], 0xffffffff
lea eax, [esp + 0x24]
call fcn.00402669
mov esi, dword [esp + 0x10]
call fcn.0049801f
push ebx
call fcn.00515a19
jmp 0x497ee1
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.0051497f
mov esp, ebp
pop ebp
ret

Function at 0x4985e0
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 0x498627
cmp byte [esp], 2
jne 0x498621
mov eax, dword [esp]
shr eax, 8
cmp al, 2
jne 0x498621
dec al
jmp 0x498629
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.0051497f
mov esp, ebp
pop ebp
ret
Function at 0x49863b
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 0x4986a6
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x49865c
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 0x498658
mov eax, ecx
add eax, 4
inc edi
cmp dword [eax], 0
jne 0x49866e
test edi, edi
je 0x498658
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 0x49869e
and dword [0x603354], 0
jmp 0x4986af
inc dword [0x603354]
jmp 0x4986af
push 2
pop ecx
mov word [esi], cx
mov dword [esi + 4], eax
mov al, 1
pop edi
ret

Function at 0x4986b3
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 0x4986d4
push 6
pop eax
jmp 0x498779
mov eax, dword [esi + 4]
push edi
push 2
pop edi
cmp eax, edi
jne 0x4986e5
push 6
push 1
jmp 0x4986f1
cmp eax, 1
jne 0x498775
push 0x11
push edi
push edi
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
je 0x49876c
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 0x498767
cmp dword [esi + 4], 1
jne 0x498754
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 0x498762
push bind
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x498771
call fcn.00498788
push 0xa
pop eax
jmp 0x498778
xor eax, eax
jmp 0x498778
xor eax, eax
inc eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0051497f
leave
ret 4
Function at 0x49884b
Capabilities:
Send data
Send data on socket

Disassembly:
push 0xbc
mov eax, 0x55a941
call fcn.00523c97
mov esi, dword [ebp + 8]
xor eax, eax
inc eax
cmp dword [esi + 4], eax
jne 0x49891c
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
jne 0x498879
push 2
pop eax
jmp 0x49891c
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 0x49891a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x4988ad
mov edx, ebx
mov ecx, esi
call fcn.00498924
jmp 0x49891c
lea eax, [ebp - 0xc8]
push eax
call fcn.004036c8
mov esi, eax
and dword [ebp - 4], 0
push str.sendto_failed_as
push esi
call fcn.00405d7d
pop ecx
pop ecx
push edi
push esi
call fcn.00404bb6
lea eax, [ebp - 0x2c]
push eax
mov eax, esi
call fcn.00403732
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x4988ee
lea eax, [ebp - 0x2c]
push eax
push 4
pop ecx
call fcn.00492b4d
pop ecx
push 1
xor edi, edi
lea esi, [ebp - 0x2c]
call fcn.00404145
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xc8]
call fcn.00402669
push 0xa
jmp 0x498873
xor eax, eax
call fcn.00523d1a
ret 8

Function at 0x499700
Capabilities:
Write file on windows

Disassembly:
push 0x44
mov eax, 0x56b3d5
call fcn.00523c97
push 0x584a64
xor ebx, ebx
mov edi, ecx
push ebx
call fcn.00498c93
push eax
lea eax, [ebp - 0x48]
push eax
mov ecx, edi
call fcn.00498d3b
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 4], ebx
call fcn.0048f293
pop ecx
pop ecx
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.0048f6a9
lea eax, [ebp - 0x2c]
call fcn.0048f5a7
mov esi, dword [ebp - 0x1c]
cmp esi, ebx
je 0x4997e0
xor eax, eax
mov ecx, esi
and ecx, eax
mov dword [ebp - 0x50], esi
cmp ecx, 0xffffffff
je 0x4997e0
mov ecx, esi
or ecx, eax
je 0x4997e0
lea eax, [edi + 0x60]
cmp dword [eax + 0x14], 8
jb 0x499777
mov eax, dword [eax]
push 0x5a3db4
push eax
call fcn.005166c6
mov edi, eax
pop ecx
pop ecx
cmp edi, ebx
je 0x4997e0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x499796
lea eax, [ebp - 0x2c]
push edi
push esi
push 1
push eax
call fcn.00516a9b
push edi
mov esi, eax
call fcn.00516c96
mov eax, esi
add esp, 0x14
or eax, ebx
je 0x4997e0
mov eax, esi
and eax, ebx
cmp eax, 0xffffffff
je 0x4997e0
cmp esi, dword [ebp - 0x50]
jne 0x4997e0
xor eax, eax
cmp ebx, eax
jne 0x4997e0
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00403ff6
push 1
xor edi, edi
lea esi, [ebp - 0x48]
call fcn.00404145
mov al, 1
jmp 0x4997f9
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00403ff6
push 1
xor edi, edi
lea esi, [ebp - 0x48]
call fcn.00404145
xor al, al
call fcn.00523d1a
ret
Function at 0x49acb4
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56b397
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, 0x5a59dc
mov dword [esp + 0x1c], ebx
call fcn.0049231b
mov eax, dword [ebx]
dec eax
pop ecx
pop ecx
je 0x49ae26
dec eax
jne 0x49adef
push 0x587bd0
lea esi, [esp + 0x2c]
call fcn.0040338f
and dword [esp + 0x1b0], 0
add ebx, 4
lea eax, [esp + 0x18]
push ebx
push eax
mov ecx, esi
call fcn.00494cd2
pop ecx
pop ecx
push 1
xor edi, edi
mov byte [esp + 0x1b4], 2
call fcn.00404145
mov eax, dword [esp + 0x18]
mov esi, eax
cmp eax, dword [esp + 0x1c]
je 0x49ad77
mov ecx, esi
call fcn.0049acb4
add esi, 0x44
cmp esi, dword [esp + 0x1c]
jne 0x49ad67
push ebx
lea eax, [esp + 0x64]
call fcn.00494bb7
cmp dword [eax + 0x14], 8
jb 0x49ad89
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.00404145
inc bl
je 0x49ade2
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x49adbb
and eax, 0xffff
or eax, 0x80070000
push 0x66
push 0x5a59dc
mov edx, eax
lea ecx, [esp + 0x84]
call fcn.004983b8
push 0x5c983c
lea eax, [esp + 0x80]
push eax
call fcn.0051ed55
lea esi, [esp + 0x18]
call fcn.0043c808
mov ebx, dword [esp + 0x14]
and dword [ebx], 0
push 0x24
push 0
add ebx, 0x20
push ebx
call fcn.00517e90
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.0051497f
mov esp, ebp
pop ebp
ret
lea eax, [ebx + 4]
push eax
lea eax, [esp + 0x48]
call fcn.00494bb7
cmp dword [eax + 0x14], 8
jb 0x49ae3b
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.00404145
cmp byte [esp + 0x13], 0
je 0x49adef
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x49ae74
and eax, 0xffff
or eax, 0x80070000
push 0x58
push 0x5a59dc
mov edx, eax
lea ecx, [esp + 0x114]
call fcn.004983b8
push 0x5c983c
lea eax, [esp + 0x110]
jmp 0x49addc
Function at 0x49b3cd
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5651e8
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 0x49b4d6
cmp eax, 0x7a
je 0x49b4d6
lea eax, [esp + 0x24]
push eax
call fcn.004036c8
mov ebx, eax
push str.WinHttpQueryHeaders_failed_with
push ebx
mov dword [esp + 0x1a0], esi
call fcn.00405d7d
mov edi, dword [esp + 0x20]
pop ecx
pop ecx
push edi
push ebx
call fcn.0041056c
lea eax, [esp + 0xbc]
push eax
mov eax, ebx
call fcn.00403732
mov byte [esp + 0x198], 1
cmp edi, esi
jle 0x49b4a9
and edi, 0xffff
or edi, 0x80070000
push 0x9a
push edi
lea eax, [esp + 0xc4]
push eax
lea eax, [esp + 0x100]
push eax
call fcn.0049af2e
push 0x5c9a00
lea eax, [esp + 0xf8]
push eax
call fcn.0051ed55
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.0045cf54
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 0x49b5a1
call ebx
mov edi, eax
lea eax, [esp + 0x24]
push eax
call fcn.004036c8
mov ebx, eax
push str.WinHttpQueryHeaders_failed_with
push ebx
mov byte [esp + 0x1a0], 3
call fcn.00405d7d
pop ecx
pop ecx
push edi
push ebx
call fcn.0041056c
lea eax, [esp + 0xd8]
push eax
mov eax, ebx
call fcn.00403732
mov byte [esp + 0x198], 4
cmp edi, esi
jle 0x49b575
and edi, 0xffff
or edi, 0x80070000
push 0xab
push edi
lea eax, [esp + 0xe0]
push eax
lea eax, [esp + 0x100]
push eax
call fcn.0049af2e
push 0x5c9a00
lea eax, [esp + 0xf8]
jmp 0x49b4d0
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.0049cb80
lea esi, [esp + 0xbc]
call fcn.00426e9d
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.0051497f
mov esp, ebp
pop ebp
ret