joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51bbc0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x120
mov eax, dword [0x6218c0]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x124]
push ebx
push ebp
mov ebp, dword [esp + 0x134]
xor ebx, ebx
push esi
push edi
mov edi, dword [esp + 0x138]
xor esi, esi
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edi
call fcn.004dd070
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x51bc3f
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004ddbb0
push eax
push edi
push str.schannel:_invalid_path_name_for_CA_file__s:__s
push ebp
call fcn.004e0f60
push esi
call dword [0x6211e4]
add esp, 0x20
lea eax, [ebx + 0x4d]
jmp 0x51bd9f
push 0
push 0x80
push 3
push 0
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x51bc99
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004ddbb0
push eax
push edi
push str.schannel:_failed_to_open_CA_file__s:__s
push ebp
call fcn.004e0f60
push 0
mov esi, 0x4d
call dword [0x6211e4]
add esp, 0x20
jmp 0x51bd91
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x51bcd9
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004ddbb0
push eax
push edi
push str.schannel:_failed_to_determine_size_of_CA_file__s:__s
push ebp
call fcn.004e0f60
add esp, 0x1c
mov esi, 0x4d
jmp 0x51bd7d
mov edi, dword [esp + 0x24]
cmp dword [esp + 0x28], ebx
jl 0x51bd07
jg 0x51bced
cmp edi, 0x100000
jbe 0x51bd07
push 0x100000
push str.schannel:_CA_file_exceeds_max_size_of__u_bytes
push ebp
call fcn.004e0f60
add esp, 0xc
mov esi, 0x4d
jmp 0x51bd7d
lea eax, [edi + 1]
push eax
call dword [0x6211e0]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x51bd1f
lea esi, [eax + 0x1b]
jmp 0x51bd7d
test edi, edi
je 0x51bd64
nop dword [eax]
nop word [eax + eax]
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x51bdbc
mov eax, dword [esp + 0x10]
test eax, eax
je 0x51bdb8
add esi, eax
cmp esi, edi
jb 0x51bd30
push ebp
push dword [esp + 0x18]
mov byte [edi + ebx], 0
push edi
push ebx
push dword [esp + 0x2c]
call fcn.0051b9c0
add esp, 0x14
mov esi, eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [0x6211e4]
add esp, 4
push dword [esp + 0x20]
call fcn.00584c22
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0057029b
add esp, 0x120
ret
mov edi, esi
jmp 0x51bd64
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004ddbb0
push eax
push dword [esp + 0x24]
push str.schannel:_failed_to_read_from_CA_file__s:__s
push ebp
call fcn.004e0f60
add esp, 0x1c
mov esi, 0x4d
jmp 0x51bd7d
Function at 0x521620
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x6211e0]
mov esi, eax
add esp, 4
test esi, esi
jne 0x52164b
pop esi
pop ebp
add esp, 0xc
ret
lea ecx, [esi + 0xc]
mov dword [esi], ebp
mov dword [esi + 4], ecx
mov eax, dword [ebp + 0xc]
add eax, ecx
push ebx
mov ebx, dword [esp + 0x24]
mov dword [esi + 8], eax
push edi
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jbe 0x52169a
mov eax, dword [ebp]
push ecx
call eax
mov eax, dword [edi]
push ebx
push dword [esp + 0x2c]
push dword [esi + 4]
call eax
mov eax, dword [esi + 8]
add eax, dword [ebp + 0xc]
push dword [esi + 4]
mov dword [esp + 0x28], eax
push eax
mov eax, dword [ebp + 8]
call eax
mov ebx, dword [ebp + 0x14]
add esp, 0x18
mov dword [esp + 0x28], ebx
jmp 0x5216a2
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], eax
push dword [esi + 4]
mov eax, dword [ebp]
call eax
push dword [esi + 8]
mov eax, dword [ebp]
call eax
mov eax, dword [esp + 0x30]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x521716
mov ebp, dword [esp + 0x14]
mov ebx, eax
mov dword [esp + 0x18], eax
nop dword [eax]
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x13], al
lea eax, [esp + 0x13]
push 1
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x1f], al
lea eax, [esp + 0x1f]
push 1
push eax
push dword [esi + 8]
mov eax, dword [edi]
call eax
add esp, 0x18
sub ebx, 1
jne 0x5216d0
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jae 0x521745
nop dword [eax + eax]
mov eax, dword [edi]
push 1
push 0x5e0e56
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x5e0e57
push dword [esi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [ebp + 0x10]
jb 0x521720
pop edi
pop ebx
mov eax, esi
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x521750
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push dword [esp + 0x24]
call fcn.004db2e0
mov edx, dword [ebp + 0xc]
mov ebx, eax
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x14], ebx
lea ecx, [ecx + edx*2]
add ecx, 0xc
push ecx
call dword [0x6211e0]
mov esi, eax
add esp, 8
test esi, esi
je 0x5218d2
lea ecx, [esi + 0xc]
mov dword [esi], ebp
mov dword [esi + 4], ecx
mov eax, dword [ebp + 0xc]
add eax, ecx
mov dword [esi + 8], eax
push edi
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jbe 0x5217d2
mov eax, dword [ebp]
push ecx
call eax
mov eax, dword [esp + 0x28]
push ebx
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
mov eax, dword [esi + 8]
add eax, dword [ebp + 0xc]
push dword [esi + 4]
mov dword [esp + 0x38], eax
push eax
mov eax, dword [ebp + 8]
call eax
mov eax, dword [ebp + 0x14]
add esp, 0x18
mov dword [esp + 0x14], eax
push dword [esi + 4]
mov eax, dword [ebp]
call eax
push dword [esi + 8]
mov eax, dword [ebp]
call eax
mov eax, dword [esp + 0x1c]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x521846
mov ebp, dword [esp + 0x24]
mov ebx, eax
mov dword [esp + 0x18], eax
nop dword [eax]
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x13], al
lea eax, [esp + 0x13]
push 1
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x1f], al
lea eax, [esp + 0x1f]
push 1
push eax
push dword [esi + 8]
mov eax, dword [edi]
call eax
add esp, 0x18
sub ebx, 1
jne 0x521800
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jae 0x521875
nop dword [eax + eax]
mov eax, dword [edi]
push 1
push 0x5e0e56
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x5e0e57
push dword [esi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [ebp + 0x10]
jb 0x521850
push dword [esp + 0x30]
call fcn.004db2e0
mov ecx, dword [esi]
push eax
push dword [esp + 0x34]
push dword [esi + 4]
mov eax, dword [ecx + 4]
call eax
mov edi, dword [esp + 0x44]
add esp, 0x10
mov ebx, dword [esi]
test edi, edi
jne 0x5218a0
mov edi, dword [ebx + 0xc]
add edi, dword [esi + 8]
push dword [esi + 4]
mov eax, dword [ebx + 8]
push edi
call eax
push dword [ebx + 0x14]
mov eax, dword [ebx + 4]
push edi
push dword [esi + 8]
call eax
push dword [esi + 8]
mov eax, dword [ebx + 8]
push edi
call eax
push esi
call dword [0x6211e4]
add esp, 0x20
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0xc
ret
Function at 0x5219a0
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
lea eax, [esp + 4]
push 0xf0000040
push 0x18
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x5219c6
mov eax, 0x1b
add esp, 0xc
ret
lea eax, [esp + 8]
push eax
push 0
push 0
push 0x800c
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x5219fe
push eax
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esp + 4], 0
mov eax, 2
add esp, 0xc
ret
push dword [esp + 0x18]
call fcn.004db2e0
add esp, 4
push 0
push eax
push dword [esp + 0x1c]
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push 0
push 2
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [esp], 0x20
jne 0x521a55
push 0
lea eax, [esp + 4]
push eax
push dword [esp + 0x18]
push 2
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov eax, dword [esp + 8]
test eax, eax
je 0x521a64
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x521a75
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
add esp, 0xc
ret

Function at 0x521a80
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x521acc
push ebx
mov ebx, dword [esp + 0x10]
mov cl, byte [esi + ebx]
mov dl, cl
mov al, cl
shr dl, 1
and al, 0xfe
not dl
movzx eax, al
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
or cl, 1
test dl, 2
movzx ecx, cl
cmove ecx, eax
mov byte [esi + ebx], cl
inc esi
cmp esi, edi
jb 0x521a91
pop ebx
pop edi
pop esi
ret

Function at 0x5241b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bf54d
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x6218c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
call fcn.005702a9
add esp, 4
test eax, eax
je 0x5241f4
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [eax], edx
mov dword [eax + 4], ecx
jmp 0x5241f6
xor eax, eax
mov dword [ebp + 8], eax
lea edi, [esi + 4]
mov dword [ebp - 4], 0
push edi
push 0
push eax
push 0x524560
push 0
push 0
call fcn.00586c22
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x524233
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push 6
mov dword [edi], 0
call fcn.0055c938
int3
Function at 0x525000
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bf7e8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x6218c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
call fcn.0053d620
lea ecx, [ebx + 0x30]
mov dword [ebp - 4], 0
call fcn.0053faf0
lea ecx, [ebx + 0x6c]
mov byte [ebp - 4], 1
call fcn.0053cfb0
lea edi, [ebx + 0x84]
mov byte [ebp - 4], 2
mov ecx, edi
mov dword [ebp - 0x14], edi
call fcn.0053d620
lea esi, [edi + 0x34]
mov byte [edi + 0x30], 0
push 0x2c
mov byte [ebp - 4], 3
mov dword [ebp - 0x18], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.005702a9
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea esi, [edi + 0x3c]
mov byte [ebp - 4], 4
push 0x2c
mov dword [ebp - 0x18], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.005702a9
add esp, 8
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea ecx, [ebx + 0xd0]
mov byte [ebp - 4], 5
mov dword [ebx + 0xc8], 0
mov dword [ebx + 0xcc], 0
call fcn.0053f6a0
lea ecx, [ebx + 0xd4]
mov byte [ebp - 4], 6
call fcn.0053f770
lea esi, [ebx + 0xd8]
mov byte [ebp - 4], 7
mov ecx, esi
mov dword [ebp - 0x18], esi
call fcn.00541270
mov dword [esi], vtable.log4cplus::spi::FactoryRegistry_class_log4cplus::spi::AppenderFactory_.0
lea esi, [ebx + 0x118]
mov byte [ebp - 4], 8
mov ecx, esi
mov dword [ebp - 0x18], esi
call fcn.00541270
mov dword [esi], vtable.log4cplus::spi::FactoryRegistry_class_log4cplus::spi::LayoutFactory_.0
lea esi, [ebx + 0x158]
mov byte [ebp - 4], 9
mov ecx, esi
mov dword [ebp - 0x18], esi
call fcn.00541270
mov dword [esi], vtable.log4cplus::spi::FactoryRegistry_class_log4cplus::spi::FilterFactory_.0
lea esi, [ebx + 0x198]
mov byte [ebp - 4], 0xa
mov ecx, esi
mov dword [ebp - 0x18], esi
call fcn.00541270
mov dword [esi], vtable.log4cplus::spi::FactoryRegistry_class_log4cplus::spi::LocaleFactory_.0
lea ecx, [ebx + 0x1d8]
mov byte [ebp - 4], 0xb
call fcn.00541cc0
mov dword [ebx + 0x230], 0
mov eax, ebx
mov dword [ebx + 0x234], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x528f90
Capabilities:
Print debug messages

Disassembly:
push ebx
push esi
push edi
call fcn.00592c5d
mov edi, dword [0x62d994]
mov ebx, dword fs:[0x2c]
test eax, eax
je 0x528fe9
mov esi, dword [ebx + edi*4]
cmp byte [esi + 0xc], 0
jne 0x528fc8
call fcn.005713e3
cmp byte [esi + 0xc], 0
jne 0x528fc8
call fcn.005713e3
mov esi, dword [esi + 4]
test esi, esi
je 0x528ff4
mov ecx, esi
call fcn.00526240
push 0x410
push esi
call fcn.005702d9
add esp, 8
jmp 0x528ff4
push str.log4cplus:_CRT_heap_is_already_gone_in_threadCleanup___n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov esi, dword [ebx + edi*4]
cmp byte [esi + 0xc], 0
jne 0x529005
call fcn.005713e3
pop edi
mov dword [esi + 4], 0
pop esi
pop ebx
ret
Function at 0x534820
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c0ff5
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x6218c0]
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 dword [ebp - 0x10], esp
mov ebx, ecx
xor esi, esi
mov dword [ebp - 0x60], esi
cmp byte [ebx + 0x34], 0
mov dword [ebp - 4], esi
je 0x534876
cmp byte [ebp + 8], 0
jne 0x534876
push dword [ebx + 0x30]
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 1
call fcn.00531440
mov esi, dword [ebp - 0x60]
lea ecx, [ebx + 0xa8]
mov dword [ebp - 4], 0
call fcn.00531c50
mov eax, dword [ebx + 0xa8]
xor edx, edx
mov ecx, dword [eax + 4]
mov eax, 4
cmp dword [ecx + ebx + 0xe0], edx
cmovne eax, edx
mov dword [ecx + ebx + 0xb4], eax
test dword [ecx + ebx + 0xb8], eax
jne 0x534a5a
jmp 0x5348d5
lea edi, [ebx + 0x1cc]
lea eax, [ebx + 0x158]
push edi
push eax
call fcn.00422790
add esp, 8
test al, al
jne 0x5349c2
call fcn.00528240
cmp dword [edi + 0x14], 7
mov ecx, edi
mov dword [ebp - 0x64], eax
jbe 0x534905
mov ecx, dword [edi]
push ecx
call fcn.00593336
add esp, 4
test eax, eax
je 0x534917
call fcn.00584c0f
lea eax, [ebx + 0x158]
push eax
lea eax, [ebp - 0x5c]
push str.Renaming_file
push eax
call fcn.004935f0
push str._to
push eax
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 4
push eax
call fcn.0041f5c0
push edi
push eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 5
push eax
call fcn.00443e00
add esp, 0x24
mov ecx, dword [ebp - 0x64]
push eax
mov byte [ebp - 4], 6
call fcn.0053fb60
lea ecx, [ebp - 0x2c]
call fcn.00406c10
lea ecx, [ebp - 0x44]
call fcn.00406c10
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0
call fcn.00406c10
cmp dword [edi + 0x14], 7
jbe 0x534982
mov edi, dword [edi]
cmp dword [ebx + 0x16c], 7
lea eax, [ebx + 0x158]
jbe 0x534993
mov eax, dword [eax]
push edi
push eax
call fcn.0059335e
add esp, 8
test eax, eax
je 0x5349a8
call fcn.00584c0f
mov eax, dword [eax]
push eax
lea eax, [ebx + 0x1cc]
push eax
lea eax, [ebx + 0x158]
push eax
push dword [ebp - 0x64]
call fcn.00532e10
add esp, 0x10
call fcn.0055bd87
push 0
push 0xa
push edx
push eax
call fcn.00570330
push edx
push eax
mov ecx, ebx
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], edx
call fcn.00531950
mov eax, dword [ebx]
mov ecx, ebx
push 0x12
call dword [eax + 0x28]
push dword [ebx + 0x1c8]
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.005314b0
push eax
call fcn.00535640
mov ecx, eax
mov edi, 0xf4240
mov eax, edx
add esp, 0x10
mul edi
mov edi, eax
mov eax, ecx
mov ecx, 0xf4240
mul ecx
add edi, edx
mov dword [ebx + 0x1f8], eax
mov dword [ebx + 0x1fc], edi
mov dword [ebp - 4], 7
test esi, esi
je 0x534a3c
mov ecx, esi
call fcn.0054a010
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.0057029b
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x68]
push 1
push eax
call fcn.00487b80
add esp, 8
lea ecx, [ebp - 0x84]
push eax
push str.ios_base::badbit_set
call fcn.004859c0
push 0x612bd4
lea eax, [ebp - 0x84]
push eax
call fcn.00572059
int3
Function at 0x540730
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c1f75
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x6218c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x24], edi
xor ebx, ebx
lea eax, [edi + 0xc]
mov dword [ebp - 0x18], ebx
mov ecx, 1
mov dword [ebp - 4], ebx
lock or dword [eax], ecx
push 8
call fcn.005702a9
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], eax
test eax, eax
je 0x540818
mov esi, edi
mov dword [ebp - 0x1c], esi
test edi, edi
je 0x5407a4
mov eax, dword [edi + 4]
mov ecx, dword [eax + 4]
add ecx, 4
add ecx, edi
call fcn.0052ea80
push 8
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], 1
call fcn.005702a9
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x5407cb
xor esi, esi
mov dword [ebx], edi
mov dword [ebp - 0x1c], esi
mov dword [ebx + 4], edi
jmp 0x5407cd
xor ebx, ebx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], 3
call fcn.00540070
mov dword [ebp - 0x20], ebx
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [ebp - 4], 3
push eax
push 0
push ebx
push 0x53ffa0
push 0
push 0
call fcn.00586c22
mov ecx, dword [ebp - 0x14]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
je 0x54088b
mov ebx, dword [ebp - 0x18]
mov eax, ecx
jmp 0x54081d
mov esi, dword [ebp - 0x1c]
xor eax, eax
mov ecx, dword [edi + 8]
mov dword [ebp - 4], 6
mov dword [edi + 8], eax
test ecx, ecx
je 0x54083f
cmp dword [ecx + 4], 0
jne 0x540899
push 8
push ecx
call fcn.005702d9
add esp, 8
mov dword [ebp - 4], 0
test bl, 1
je 0x540863
mov byte [ebp - 4], 7
test esi, esi
je 0x540863
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
add ecx, 4
add ecx, esi
call fcn.0052ea90
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 6
mov dword [ecx + 4], 0
call fcn.0055c938
call fcn.00586a8a
int3
Function at 0x540a70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c2046
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x6218c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.log4cplus::spi::InternalLoggingEvent.0
xorps xmm0, xmm0
movups xmmword [edi + 8], xmm0
xor eax, eax
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 7
mov word [edi + 8], ax
movups xmmword [edi + 0x20], xmm0
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], 7
mov dword [ebp - 4], eax
mov word [edi + 0x20], ax
mov dword [edi + 0x38], 0xffffffff
movups xmmword [edi + 0x3c], xmm0
mov dword [edi + 0x4c], eax
mov dword [edi + 0x50], 7
mov word [edi + 0x3c], ax
lea esi, [edi + 0x54]
mov byte [ebp - 4], 2
push 0x40
mov dword [ebp - 0x14], esi
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.005702a9
xorps xmm0, xmm0
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
xor eax, eax
movups xmmword [edi + 0x5c], xmm0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x70], 7
mov word [edi + 0x5c], ax
movups xmmword [edi + 0x74], xmm0
mov dword [edi + 0x84], eax
mov dword [edi + 0x88], 7
mov word [edi + 0x74], ax
mov dword [edi + 0x90], eax
mov dword [edi + 0x94], eax
movups xmmword [edi + 0x98], xmm0
mov dword [edi + 0xa8], eax
mov dword [edi + 0xac], 7
mov word [edi + 0x98], ax
movups xmmword [edi + 0xb0], xmm0
mov dword [edi + 0xc0], eax
mov dword [edi + 0xc4], 7
mov word [edi + 0xb0], ax
mov dword [edi + 0xc8], eax
mov dword [edi + 0xcc], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x546ca0
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c30c5
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x6218c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x30], eax
xor edi, edi
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x38], eax
movlpd qword [ebp - 0x4c], xmm0
movlpd qword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x3c], edi
cmp byte [ebp + 0x14], 0
mov ecx, 0x17
push dword [ebp + 0xc]
mov eax, 2
mov dword [ebp - 4], edi
cmovne eax, ecx
mov esi, 6
mov dword [ebp - 0x2c], eax
mov ecx, 0x11
mov al, byte [ebp + 0x10]
movzx ebx, al
inc ebx
test al, al
lea eax, [ebp - 0x28]
push eax
cmovne esi, ecx
call fcn.00546b90
add esp, 8
mov byte [ebp - 4], 1
call fcn.005473a0
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 7
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x30]
cmova ecx, dword [ebp - 0x28]
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], esi
cmp dword [eax + 0x14], 7
mov dword [ebp - 0x5c], 8
jbe 0x546d5e
mov eax, dword [eax]
lea edx, [ebp - 0x34]
push edx
lea edx, [ebp - 0x5c]
push edx
push ecx
push eax
call dword [sym.imp.WS2_32.dll_GetAddrInfoW]
mov esi, eax
test esi, esi
jne 0x546e1b
mov edi, dword [ebp - 0x34]
or esi, 0xffffffff
mov ebx, edi
test ebx, ebx
je 0x546e13
nop dword [eax + eax]
push 0x80
push 0
push 0
push dword [ebx + 0xc]
push dword [ebx + 8]
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov dword [ebp - 0x2c], eax
cmp esi, 0xffffffff
je 0x546dd0
test esi, esi
je 0x546dd0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push esi
mov dword [ebp - 0x30], eax
call dword [sym.imp.WS2_32.dll_closesocket]
push dword [ebp - 0x30]
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp - 0x2c]
mov esi, eax
cmp eax, 0xffffffff
je 0x546df9
push dword [ebx + 0x10]
push dword [ebx + 0x18]
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x546e05
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
mov eax, dword [ebp - 0x2c]
je 0x546dd7
mov ebx, dword [ebx + 0x1c]
test ebx, ebx
jne 0x546d90
cmp eax, 0xffffffff
je 0x546e13
mov eax, dword [ebp - 0x38]
mov esi, dword [ebp - 0x2c]
mov dword [eax], 0
jmp 0x546e28
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call fcn.00584c0f
mov dword [eax], esi
mov esi, dword [0x5e50b4]
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x546e5e
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x546e54
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x546e9b
push ecx
push edx
call fcn.005702d9
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
test edi, edi
je 0x546e7d
push edi
call dword [sym.imp.WS2_32.dll_FreeAddrInfoW]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0057029b
mov esp, ebp
pop ebp
ret
call fcn.00584b21
int3