joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b2bc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx eax, word [esp + 4]
push str.RGBABUF
push eax
push dword [0x68befc]
call dword [0x68944c]
push eax
push dword [0x68befc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
mov dword [esi], eax
je 0x4b2c02
movsx ecx, word [eax + 2]
movsx edx, word [eax]
add eax, 4
mov dword [edi], edx
mov dword [edi + 4], ecx
mov dword [esi], eax
ret

Function at 0x4b9336
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5817cc
mov eax, dword fs:[0]
push eax
sub esp, 0x220
push ebx
push esi
push edi
mov eax, dword [0x67d978]
xor eax, esp
push eax
lea eax, [esp + 0x230]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
lea eax, [ebx + 0x34]
mov dword [esp + 0x14], eax
and dword [esp + 0x238], 0
push dword [ebx + 0x10]
call fcn.004b91e0
add esp, 4
test al, al
jne 0x4b93df
push str.AsyncFile:_Invalid_Handle_in_Irp___i_bytes__offset__i__code__08x
lea eax, [esp + 0x38]
push eax
call fcn.00409f00
mov byte [esp + 0x238], 1
lea ecx, [ebp + 0xc]
push ecx
push ecx
lea ecx, [edi + 8]
push ecx
push ecx
lea ecx, [ebp + 0x10]
push ecx
mov esi, eax
call fcn.0040a170
pop ecx
mov esi, eax
call fcn.0040a170
pop ecx
mov esi, eax
call fcn.0040a170
push eax
call fcn.0041c772
mov byte [esp + 0x238], 0
lea eax, [esp + 0x34]
push eax
call fcn.00402184
cmp dword [ebp + 0xc], 0
je 0x4b9460
cmp dword [ebp + 0xc], 0x26
je 0x4b9454
push dword [ebp + 0xc]
lea esi, [esp + 0x1c]
call fcn.00463557
mov edi, eax
mov byte [esp + 0x23c], 4
lea eax, [esp + 0x38]
mov dword [esp], str.AsyncFile:_error__1_
push eax
call fcn.00409f00
mov byte [esp + 0x238], 5
push edi
mov esi, eax
call fcn.0040a212
push eax
call fcn.00401068
mov byte [esp + 0x238], 4
lea eax, [esp + 0x34]
push eax
call fcn.00402184
mov byte [esp + 0x238], 0
push 0
push 1
lea ecx, [esp + 0x20]
call fcn.0041382c
jmp 0x4b9519
mov esi, ebx
call fcn.004b9668
jmp 0x4b9519
cmp dword [edi], 0x103
je 0x4b9519
and dword [esp + 0x10], 0
push 1
lea eax, [esp + 0x14]
push eax
push edi
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x4b949a
mov edi, dword [esp + 0x10]
test edi, edi
je 0x4b949a
push dword [ebp + 0x14]
mov esi, ebx
call fcn.004b9544
jmp 0x4b9519
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4b94e4
push dword [ebp + 0x14]
mov edi, dword [esp + 0x14]
mov esi, ebx
call fcn.004b9544
push str.AsyncFile:_Dubious_Irp
lea eax, [esp + 0xe0]
push eax
call fcn.00409f00
mov byte [esp + 0x238], 2
push eax
call fcn.0043f353
mov byte [esp + 0x238], 0
lea eax, [esp + 0xdc]
jmp 0x4b9513
push str.AsyncFile:_error_in_async_operation
lea eax, [esp + 0x188]
push eax
call fcn.00409f00
mov byte [esp + 0x238], 3
push eax
call fcn.0041c772
mov byte [esp + 0x238], 0
lea eax, [esp + 0x184]
push eax
call fcn.00402184
or dword [esp + 0x238], 0xffffffff
mov eax, dword [esp + 0x14]
dec dword [eax]
mov ecx, dword [esp + 0x230]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4b95a9
Capabilities:
Read file on windows

Disassembly:
push 0x24
mov eax, 0x5836a4
call fcn.0053d79c
mov esi, ecx
push dword [esi + 0x10]
call fcn.004b91e0
add esp, 4
test al, al
je 0x4b9662
mov ebx, dword [esi + 0x24]
add ebx, 0x1b
push ebx
call fcn.005174fd
push ebx
mov edi, eax
xor ebx, ebx
push ebx
push edi
mov dword [ebp - 0x10], edi
call fcn.005389c0
add esp, 0x10
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x4b9603
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0x14]
mov dword [edi + 8], eax
mov eax, dword [esi + 0x18]
mov dword [edi + 0xc], eax
jmp 0x4b9605
xor edi, edi
or dword [ebp - 4], 0xffffffff
inc dword [esi + 0x34]
push 0x4b9310
push edi
push dword [esi + 0x24]
add edi, 0x18
push edi
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFileEx]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
je 0x4b9662
cmp eax, 0x26
je 0x4b965d
cmp edi, ebx
jne 0x4b9662
push eax
lea esi, [ebp - 0x30]
call fcn.00463557
pop ecx
xor esi, esi
inc esi
mov dword [ebp - 4], esi
push eax
call fcn.00432744
or dword [ebp - 4], 0xffffffff
push ebx
push esi
lea ecx, [ebp - 0x30]
call fcn.0041382c
jmp 0x4b9662
call fcn.004b9668
call fcn.0053d874
ret

Function at 0x4ba956
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x57ccf9
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x67d978]
xor eax, esp
mov dword [esp + 0x30], eax
push esi
mov eax, dword [0x67d978]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push eax
call fcn.00462529
pop ecx
and dword [esp + 0x48], 0
lea ecx, [esp + 0xc]
xor esi, esi
call fcn.0042cd9e
test eax, eax
je 0x4ba9e0
push esi
lea esi, [esp + 0x10]
call fcn.00426f9d
push eax
lea ecx, [esp + 0x20]
call fcn.00415abb
mov byte [esp + 0x48], 1
lea ecx, [esp + 0x1c]
call fcn.00463b3b
mov esi, eax
mov byte [esp + 0x48], 0
push 0
push 1
lea ecx, [esp + 0x24]
call fcn.0041382c
or dword [esp + 0x48], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.00407743
mov eax, esi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00536476
mov esp, ebp
pop ebp
ret
Function at 0x4bab44
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5660a6
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x67d978]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
push edi
mov eax, dword [0x67d978]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
cmp di, 0xffff
mov esi, ecx
jne 0x4babaa
xor ax, ax
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.00536476
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
xor ebx, ebx
cmp ecx, ebx
je 0x4babd5
mov eax, dword [esi + 0x34]
mov edx, dword [eax]
lea edx, [ecx + edx*2]
cmp ecx, edx
jae 0x4babd5
dec dword [eax]
mov esi, dword [esi + 0x24]
mov eax, dword [esi]
lea ecx, [eax + 2]
mov dword [esi], ecx
mov word [eax], di
mov ax, di
jmp 0x4bab8a
mov eax, dword [esi + 0x4c]
cmp eax, ebx
jne 0x4babe2
or ax, 0xffff
jmp 0x4bab8a
cmp dword [esi + 0x3c], ebx
jne 0x4babfe
push eax
push edi
call fcn.004bd0cf
pop ecx
test al, al
pop ecx
movzx eax, di
jne 0x4bab8a
mov eax, 0xffff
jmp 0x4bab8a
movzx eax, di
push ebx
push 8
lea ecx, [esp + 0x4c]
mov dword [esp + 0x18], eax
call fcn.0042cf6e
mov dword [esp + 0x70], ebx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x48]
call fcn.0045dbcb
mov ecx, eax
call fcn.0045cd5b
mov edi, dword [esp + 0x58]
mov ebx, eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x48]
call fcn.0045dbcb
mov ecx, eax
call fcn.0045cd5b
lea edx, [esp + 0x18]
add edi, ebx
push edx
lea ebx, [esi + 0x44]
jmp 0x4bad0d
cmp eax, 1
jg 0x4bad52
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x48]
call fcn.0045dbcb
mov ecx, eax
call fcn.0045cd5b
mov edi, dword [esp + 0x18]
sub edi, eax
je 0x4baca6
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x48]
call fcn.0045dbcb
mov ecx, eax
call fcn.0045cd5b
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0053b26b
add esp, 0x10
cmp edi, eax
jne 0x4bad33
lea eax, [esp + 0x10]
cmp dword [esp + 0x1c], eax
mov byte [esi + 0x42], 1
jne 0x4bad74
test edi, edi
ja 0x4bacd0
cmp dword [esp + 0x58], 0x20
jae 0x4bad33
push 0
push 8
lea ecx, [esp + 0x4c]
call fcn.00413515
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x48]
call fcn.0045dbcb
mov ecx, eax
call fcn.0045cd5b
mov edi, dword [esp + 0x58]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x48]
call fcn.0045dbcb
mov ecx, eax
call fcn.0045cd5b
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x24]
add edi, edx
mov ecx, dword [esi + 0x3c]
push edi
push eax
lea edx, [esp + 0x28]
push edx
lea edx, [esp + 0x22]
push edx
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x2c], eax
mov eax, dword [ecx]
push ebx
call dword [eax + 0x14]
test eax, eax
jge 0x4bac54
or si, 0xffff
or dword [esp + 0x70], 0xffffffff
push 0
push 1
lea ecx, [esp + 0x4c]
call fcn.00411efe
mov ax, si
jmp 0x4bab8a
cmp eax, 3
jne 0x4bad33
push dword [esi + 0x4c]
push dword [esp + 0x14]
call fcn.004bd0cf
test al, al
movzx esi, word [ebp + 8]
pop ecx
pop ecx
jne 0x4bad38
mov esi, 0xffff
jmp 0x4bad38
mov si, word [ebp + 8]
jmp 0x4bad38
Function at 0x4bb6fd
Capabilities:
Write file on windows

Disassembly:
push 0x4c
mov eax, 0x56604c
call fcn.0053d805
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x3c], ebx
je 0x4bb813
cmp byte [esi + 0x42], bl
je 0x4bb813
mov eax, dword [esi]
mov edi, 0xffff
push edi
call dword [eax + 4]
movzx eax, ax
cmp ax, di
jne 0x4bb739
xor al, al
jmp 0x4bb815
push ebx
push 8
lea ecx, [ebp - 0x30]
call fcn.0042cf6e
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x30]
call fcn.0045dbcb
mov ecx, eax
call fcn.0045cd5b
mov edi, dword [ebp - 0x1c]
mov ebx, eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x30]
call fcn.0045dbcb
mov ecx, eax
call fcn.0045cd5b
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x34]
push eax
add edi, ebx
push edi
push dword [ebp - 0x38]
lea eax, [esi + 0x44]
push eax
call dword [edx + 0x18]
sub eax, 0
je 0x4bb7ad
dec eax
je 0x4bb7b1
dec eax
dec eax
je 0x4bb80f
xor bl, bl
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.00411efe
mov al, bl
jmp 0x4bb815
mov byte [esi + 0x42], 0
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x30]
call fcn.0045dbcb
mov ecx, eax
call fcn.0045cd5b
mov edi, dword [ebp - 0x34]
sub edi, eax
je 0x4bb7f1
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x30]
call fcn.0045dbcb
mov ecx, eax
call fcn.0045cd5b
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0053b26b
add esp, 0x10
cmp edi, eax
jne 0x4bb797
cmp byte [esi + 0x42], 0
je 0x4bb80f
test edi, edi
jne 0x4bb747
push edi
push 8
lea ecx, [ebp - 0x30]
call fcn.00413515
jmp 0x4bb747
mov bl, 1
jmp 0x4bb799
mov al, 1
call fcn.0053d888
ret
Function at 0x4bf16f
Capabilities:
Manipulate boot configuration

Disassembly:
push ebp
sub esp, 0x58
lea ebp, [esp - 4]
mov eax, dword [0x67d978]
xor eax, ebp
mov dword [ebp + 0x58], eax
push 0x40
mov eax, 0x57ccc4
call fcn.0053d7cf
mov eax, dword [ebp + 0x64]
mov dword [ebp + 4], eax
xor ebx, ebx
mov dword [ebp], ebx
mov dword [ebp + 0x54], 7
push ebx
lea ecx, [ebp + 0x3c]
call fcn.00412c1b
xor esi, esi
inc esi
mov dword [ebp - 4], esi
mov byte [ebp - 4], 2
push str.SoftwareMicrosoftWindowsCurrentVersionSetup
lea ecx, [ebp - 0x2c]
call fcn.00415a69
mov byte [ebp - 4], 3
push esi
push esi
lea eax, [ebp - 0x2c]
push eax
push reloc.WS2_32.dll_bind
lea eax, [ebp + 8]
push eax
call fcn.0047e3a1
mov byte [ebp - 4], 5
push ebx
push esi
lea ecx, [ebp - 0x2c]
call fcn.0041382c
push str.BootDir
lea ecx, [ebp - 0x2c]
call fcn.00415a69
mov byte [ebp - 4], 6
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp + 8]
call fcn.0047edfe
mov byte [ebp - 4], 7
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0x3c]
call fcn.00413799
mov byte [ebp - 4], 6
push ebx
push esi
lea ecx, [ebp - 0x4c]
call fcn.0041382c
mov byte [ebp - 4], 5
push ebx
push esi
lea ecx, [ebp - 0x2c]
call fcn.0041382c
mov byte [ebp - 4], 2
lea ecx, [ebp + 8]
call fcn.0045f4f0
mov dword [ebp - 4], esi
jmp 0x4bf292
push str.boot.ini
lea eax, [ebp + 0x3c]
push eax
push dword [ebp + 4]
call fcn.0040a121
add esp, 0xc
mov dword [ebp], esi
mov byte [ebp - 4], bl
push ebx
push esi
lea ecx, [ebp + 0x3c]
call fcn.0041382c
mov eax, dword [ebp + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x58]
xor ecx, ebp
call fcn.00536476
add ebp, 0x5c
leave
ret 4
Function at 0x4c03f3
Capabilities:
Start service

Disassembly:
push 0x58
mov eax, 0x579423
call fcn.0053d7cf
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x24]
push eax
call fcn.00514787
mov byte [ebp - 4], 1
push ebx
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00514cec
mov byte [ebp - 4], 2
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x34]
call fcn.00515040
cmp dword [ebp - 0x60], 4
je 0x4c0454
cmp dword [ebp - 0x60], 2
je 0x4c0454
cmp dword [ebp - 0x60], 5
je 0x4c0454
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov dword [ebp - 0x14], eax
jmp 0x4c045b
mov dword [ebp - 0x14], 1
mov byte [ebp - 4], 1
lea eax, [ebp - 0x34]
push eax
call fcn.004bfe41
mov byte [ebp - 4], bl
lea eax, [ebp - 0x24]
push eax
call fcn.0044fce1
or dword [ebp - 4], 0xffffffff
jmp 0x4c04bc
xor eax, eax
cmp dword [ebp - 0x14], ebx
setne al
call fcn.0053d874
ret

Function at 0x4c0e84
Capabilities:
Check for time delay via gettickcount
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x581551
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
push ebx
push esi
push edi
mov eax, dword [0x67d978]
xor eax, esp
push eax
lea eax, [esp + 0xc0]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x5c], edi
jne 0x4c0f6e
mov ebx, dword [0x689424]
push edi
push edi
push edi
push edi
call ebx
push edi
push edi
push edi
push edi
mov dword [esi + 0x60], eax
call ebx
mov dword [esi + 0x64], eax
lea eax, [esi + 0x58]
push eax
push 4
push esi
push 0x4c1156
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
mov dword [esi + 0x5c], eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ebx, eax
call esi
sub eax, ebx
test eax, eax
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
jge 0x4c0f19
fadd dword [0x6341f8]
fdiv qword [0x634200]
fstp dword [esp + 0x10]
fld dword [0x6341fc]
fcomp dword [esp + 0x10]
fnstsw ax
test ah, 5
jp 0x4c0f6e
push str.CSynchThread:_duration___1_s
lea eax, [esp + 0x18]
push eax
call fcn.00409f00
mov dword [esp + 0xc8], edi
lea ecx, [esp + 0x10]
push ecx
mov esi, eax
call fcn.00438293
push eax
call fcn.00401000
or dword [esp + 0xc8], 0xffffffff
lea eax, [esp + 0x14]
push eax
call fcn.00402184
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4cc19c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56ee4d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
mov eax, dword [0x67d978]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
lea eax, [esp + 0x14]
push eax
call fcn.00443147
xor ebx, ebx
mov dword [esp + 0x28], ebx
push 0xc
call fcn.00536391
pop ecx
mov dword [esp + 0xc], eax
mov byte [esp + 0x28], 1
cmp eax, ebx
je 0x4cc213
mov dword [eax], method.boost::system::error_category.virtual_4
mov dword [eax + 4], 2
mov byte [esp + 0x28], 2
mov ecx, dword [ebp + 0x10]
mov dword [eax], 0x62ecd4
mov dword [eax + 8], ecx
mov byte [esp + 0x28], 1
mov esi, eax
jmp 0x4cc215
xor esi, esi
mov byte [esp + 0x28], bl
push esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], esi
call fcn.004a6175
mov byte [esp + 0x28], 3
push esi
lea eax, [esp + 0x10]
push esi
push eax
call fcn.00491f48
add esp, 0xc
mov byte [esp + 0x28], 4
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], eax
mov byte [esp + 0x28], bl
lea eax, [esp + 0xc]
push eax
call fcn.00405946
push ecx
push ecx
mov eax, esp
mov dword [esp + 0x14], esp
lea ecx, [esp + 0x1c]
push ecx
push eax
call fcn.0041d783
mov byte [esp + 0x30], 5
push dword [ebp + 0xc]
push dword [ebp + 8]
mov byte [esp + 0x38], bl
call fcn.004cc083
mov bl, al
or dword [esp + 0x28], 0xffffffff
lea eax, [esp + 0x14]
push eax
call fcn.00405946
mov al, bl
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4cc2bc
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56ee4d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
mov eax, dword [0x67d978]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
lea eax, [esp + 0x14]
push eax
call fcn.00443147
xor ebx, ebx
mov dword [esp + 0x28], ebx
push 0x10
call fcn.00536391
pop ecx
mov dword [esp + 0xc], eax
mov byte [esp + 0x28], 1
cmp eax, ebx
je 0x4cc339
mov dword [eax], method.boost::system::error_category.virtual_4
mov dword [eax + 4], 3
mov byte [esp + 0x28], 2
mov ecx, dword [ebp + 0xc]
mov dword [eax + 8], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax], 0x62ecd4
mov dword [eax + 0xc], ecx
mov byte [esp + 0x28], 1
mov esi, eax
jmp 0x4cc33b
xor esi, esi
mov byte [esp + 0x28], bl
push esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], esi
call fcn.004a6175
mov byte [esp + 0x28], 3
push esi
lea eax, [esp + 0x10]
push esi
push eax
call fcn.00491f48
add esp, 0xc
mov byte [esp + 0x28], 4
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], eax
mov byte [esp + 0x28], bl
lea eax, [esp + 0xc]
push eax
call fcn.00405946
push ecx
push ecx
mov eax, esp
mov dword [esp + 0x14], esp
lea ecx, [esp + 0x1c]
push ecx
push eax
call fcn.0041d783
mov byte [esp + 0x30], 5
push 1
push dword [ebp + 8]
mov byte [esp + 0x38], bl
call fcn.004cc083
mov bl, al
or dword [esp + 0x28], 0xffffffff
lea eax, [esp + 0x14]
push eax
call fcn.00405946
mov al, bl
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4cf22b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x67d978]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x6d24d4], 0
push ebx
push esi
push edi
mov dword [ebp - 0x238], str.getaddrinfo
mov dword [ebp - 0x234], 0x4cf3c6
mov dword [ebp - 0x230], str.getnameinfo
mov dword [ebp - 0x22c], 0x4cf93e
mov dword [ebp - 0x228], str.freeaddrinfo
mov dword [ebp - 0x224], fcn.004cfb06
jne 0x4cf3aa
push 0x104
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4cf3a0
lea eax, [ebp - 0x220]
push eax
mov esi, 0x10c
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.0053cc4e
push str.ws2_32
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.0053cbdd
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x18
lea eax, [ebp - 0x118]
push eax
call ebx
mov edi, eax
test edi, edi
je 0x4cf304
push str.getaddrinfo
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4cf300
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
test edi, edi
jne 0x4cf359
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.0053cc4e
push str.wship6
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.0053cbdd
add esp, 0x18
lea eax, [ebp - 0x118]
push eax
call ebx
mov edi, eax
test edi, edi
je 0x4cf3a0
push str.getaddrinfo
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4cf355
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
test edi, edi
je 0x4cf3a0
xor esi, esi
push dword [ebp + esi*8 - 0x238]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [ebp + esi*8 - 0x234], eax
je 0x4cf37c
inc esi
cmp esi, 3
jl 0x4cf35b
jmp 0x4cf385
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
test edi, edi
je 0x4cf3a0
xor eax, eax
mov ecx, dword [ebp + eax - 0x234]
mov dword [eax + 0x686d38], ecx
add eax, 8
cmp eax, 0x18
jl 0x4cf38b
mov dword [0x6d24d4], 1
movzx eax, word [ebp + 8]
mov ecx, dword [ebp - 4]
mov eax, dword [eax*8 + 0x686d38]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00536476
leave
ret 4
Function at 0x4cf89c
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
mov esi, eax
mov eax, dword [ebp + 0x18]
and dword [esi], 0
mov byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x4cf911
cmp word [ebx + 8], 2
jne 0x4cf8f1
cmp word [ebx + 0xa], 4
jne 0x4cf8f1
mov edi, dword [ebx + 0xc]
jmp 0x4cf8eb
push dword [eax]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004cf692
test eax, eax
mov dword [esi], eax
je 0x4cf90c
lea esi, [eax + 0x1c]
add edi, 4
mov eax, dword [edi]
test eax, eax
jne 0x4cf8cf
push 0x400
push dword [ebx]
push 0x401
push dword [ebp + 0x18]
call fcn.0053c74f
add esp, 0x10
xor eax, eax
jmp 0x4cf937
push 8
pop eax
jmp 0x4cf937
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov eax, 0x2af9
sub ecx, eax
je 0x4cf937
dec ecx
je 0x4cf932
dec ecx
je 0x4cf92b
dec ecx
jmp 0x4cf937
mov eax, 0x2afb
jmp 0x4cf937
mov eax, 0x2afa
pop edi
pop esi
pop ebx
pop ebp
ret 0x14

Function at 0x4cfd5f
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
and dword [ebp - 8], 0
push ebx
call fcn.004cfc4d
mov ebx, eax
test ebx, ebx
je 0x4cfdb1
push esi
push edi
push dword [ebp + 8]
lea esi, [ebp - 8]
call fcn.004cfbc1
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, eax
test edi, edi
pop ecx
je 0x4cfda9
push dword [edi]
push ebx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x4cfda6
mov dword [ebp - 4], 1
push edi
call esi
push ebx
call esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret