joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b1b1
Capabilities:
Create directory

Disassembly:
push ebp
sub esp, 0x410
lea ebp, [esp - 4]
mov eax, dword [0x44c038]
xor eax, ebp
mov dword [ebp + 0x410], eax
push 8
mov eax, 0x43eceb
call fcn.004279b7
xor edi, edi
mov dword [ebp - 0x10], edi
push 0x4432d8
push reloc.WS2_32.dll_bind
lea esi, [ebp - 0x10]
mov dword [ebp - 4], edi
call fcn.00401a23
test eax, eax
je 0x40b31c
lea eax, [ebp - 0x14]
push eax
mov eax, esi
mov dword [ebp - 0x14], edi
call fcn.0040b355
test eax, eax
je 0x40b31c
cmp dword [ebp - 0x14], edi
jbe 0x40b31c
push 0x44e980
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x40b31c
mov esi, 0x206
push esi
lea eax, [ebp + 0x20a]
push edi
push eax
mov word [ebp + 0x208], di
call fcn.00426270
push esi
lea eax, [ebp + 2]
push edi
push eax
mov word [ebp], di
call fcn.00426270
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
add esp, 0x18
mov esi, 0x104
push esi
lea eax, [ebp + 0x208]
push eax
push 0x400000
call ebx
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea ecx, [ebp - 0x14]
push ecx
mov edi, eax
call fcn.0040163c
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x443324
lea eax, [ebp + 0x208]
push eax
call edi
push 0
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push dword [ebp - 0x14]
lea eax, [ebp + 0x208]
push eax
call edi
push esi
lea eax, [ebp]
push eax
push 0
call ebx
push 0x44332c
lea eax, [ebp + 0x208]
push esi
push eax
call fcn.004290f9
add esp, 0xc
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [ebp + 0x208]
push esi
push eax
call fcn.004290f9
push 0x443330
lea eax, [ebp + 0x208]
push esi
push eax
call fcn.004290f9
mov eax, dword [ebp - 0x14]
add esp, 0x18
add eax, 0xfffffff0
call fcn.004010aa
xor edi, edi
cmp dword [ebp - 0x10], edi
je 0x40b32a
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x41c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.00425c5a
add ebp, 0x414
leave
ret 4

Function at 0x40b355
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [eax]
push edi
xor edi, edi
cmp eax, edi
mov dword [ebp - 4], 4
je 0x40b397
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 8]
push ecx
push edi
push str.simplelog
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40b397
cmp dword [ebp - 8], 4
jne 0x40b397
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
inc edi
mov eax, edi
pop edi
leave
ret 4
Function at 0x40bc20
Capabilities:
Create thread

Disassembly:
push ebx
xor ebx, ebx
cmp dword [edi + 0x24], ebx
push esi
jne 0x40bc31
lea esi, [edi + 0x20]
call fcn.0040b3bb
cmp dword [edi + 0x2c], ebx
jne 0x40bc3e
lea esi, [edi + 0x28]
call fcn.0040b3bb
cmp dword [edi + 0x34], ebx
jne 0x40bc4b
lea esi, [edi + 0x30]
call fcn.0040b3bb
cmp dword [edi + 0x1c], ebx
je 0x40bc63
mov eax, dword [edi + 0x1c]
cmp eax, ebx
je 0x40bca4
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40bca4
push 0xc
call fcn.0042570b
cmp eax, ebx
pop ecx
jne 0x40bc73
xor esi, esi
jmp 0x40bc93
push ebx
push ebx
push eax
push 0x40c7ec
push ebx
push ebx
mov dword [eax], edi
mov dword [eax + 8], ebx
mov dword [eax + 4], 0x40ba2d
call fcn.0042926d
add esp, 0x18
mov esi, eax
mov eax, dword [edi + 0x1c]
cmp eax, ebx
je 0x40bca1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x1c], esi
pop esi
pop ebx
ret
Function at 0x40e26a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
push dword [ebp + 8]
xor ebx, ebx
inc ebx
push 0x443434
lea eax, [esi + 0xc]
mov dword [ebp - 4], ebx
call fcn.004019b9
pop ecx
pop ecx
xor edi, edi
push edi
push edi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
push edi
call ebx
cmp eax, edi
mov dword [esi + 4], eax
jne 0x40e2a1
xor eax, eax
jmp 0x40e2fa
push edi
push edi
push 1
push edi
call ebx
cmp eax, edi
mov dword [esi + 8], eax
je 0x40e29d
push edi
push edi
push esi
push 0x40e32f
push edi
push edi
call fcn.0042926d
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add esp, 0x18
push 0x64
push dword [esi + 8]
mov dword [esi], eax
call ebx
test eax, eax
je 0x40e2eb
push 0x64
push dword [esi]
call ebx
test eax, eax
jne 0x40e2eb
push dword [esi]
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov dword [esi + 8], edi
pop edi
pop ebx
leave
ret 4

Function at 0x40e904
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x44c038]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, edi
mov dword [ebp - 0x30], eax
call fcn.0040e99e
xor ebx, ebx
lea esi, [ebp - 0x28]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x1c], ebx
call fcn.0040e866
push dword [ebp - 0x30]
mov esi, 0x1000
push esi
push ebx
push 0x8000004
lea eax, [ebp - 0x28]
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, ebx
mov dword [edi], eax
je 0x40e973
push ebx
push ebx
push ebx
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
mov dword [edi + 4], eax
je 0x40e973
mov dword [edi + 8], esi
mov dword [ebp - 0x2c], 1
jmp 0x40e97d
mov esi, edi
call fcn.0040e99e
mov dword [edi + 8], ebx
cmp dword [ebp - 0x1c], ebx
pop esi
pop ebx
je 0x40e98d
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2c]
xor ecx, ebp
call fcn.00425c5a
leave
ret 4
Function at 0x4100c5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push edi
xor edi, edi
cmp dword [esi], edi
mov dword [ebp - 0xc], edi
je 0x4101f0
cmp dword [ebp + 0xc], 0x6400000
ja 0x4101f0
push ebx
push 0x14
lea eax, [ebp - 0x28]
push edi
push eax
call fcn.00426270
mov eax, dword [esi + 4]
mov ecx, dword [esi]
add esp, 0xc
mov dword [ebp - 4], edi
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp + 0xc]
push eax
push dword [esi]
call ebx
test eax, eax
jne 0x41013d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4101ef
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x14]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x4101ef
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x4101ef
cmp dword [ebp - 4], 4
jne 0x4101ef
and dword [ebp - 8], 0
push dword [esi + 4]
call edi
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
sub ecx, eax
push ecx
mov ecx, dword [ebp + 8]
add eax, ecx
push eax
push dword [esi]
call ebx
test eax, eax
jne 0x4101a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4101ef
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x14]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x4101ef
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x4101ef
mov eax, dword [ebp - 4]
test eax, eax
je 0x4101ef
mov ecx, dword [ebp - 8]
add eax, ecx
cmp eax, dword [ebp + 0xc]
je 0x4101e8
mov dword [ebp - 8], eax
jmp 0x410178
mov dword [ebp - 0xc], 1
pop ebx
mov eax, dword [ebp - 0xc]
pop edi
leave
ret 8
Function at 0x4101f8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov ecx, dword [esi]
push ebx
xor ebx, ebx
cmp ecx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x410375
mov eax, dword [esi + 4]
push eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0x14
lea eax, [ebp - 0x2c]
push ebx
push eax
call fcn.00426270
mov eax, dword [esi + 4]
add esp, 0xc
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp - 8]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x410264
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x410375
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x18]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x410375
push ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x410375
cmp dword [ebp - 4], 4
jne 0x410375
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x410375
cmp eax, 0x6400000
ja 0x410375
inc eax
push edi
push eax
mov dword [ebp - 0xc], ebx
call fcn.004250a7
pop ecx
mov edi, eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0x14
lea eax, [ebp - 0x2c]
push ebx
push eax
call fcn.00426270
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 8]
add esp, 0xc
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
sub ecx, eax
push ecx
add eax, edi
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41030d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x410369
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x18]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x410369
push ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x410369
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x410369
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov eax, dword [ebp - 8]
cmp ecx, eax
je 0x410350
mov dword [ebp - 0xc], ecx
jmp 0x4102c2
mov ecx, dword [ebp + 0xc]
mov byte [edi + eax], bl
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov eax, dword [ebp - 8]
mov dword [ecx], eax
mov dword [ebp - 0x10], 1
jmp 0x410374
cmp edi, ebx
je 0x410374
push edi
call fcn.004269f8
pop ecx
pop edi
mov eax, dword [ebp - 0x10]
pop ebx
leave
ret 8
Function at 0x41037d
Capabilities:
Create thread

Disassembly:
push esi
push edi
mov edi, eax
xor esi, esi
cmp dword [edi], esi
je 0x41038c
call fcn.004103ed
cmp dword [edi + 8], esi
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi], eax
jne 0x4103a8
push esi
push esi
push 1
push esi
call ebx
mov dword [edi + 8], eax
cmp dword [edi + 0x10], esi
jne 0x4103b7
push esi
push esi
push 1
push esi
call ebx
mov dword [edi + 0x10], eax
mov eax, dword [edi + 8]
cmp eax, esi
pop ebx
jne 0x4103c3
xor eax, eax
jmp 0x4103e8
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push esi
push esi
push edi
push 0x410433
push esi
push esi
call fcn.0042926d
xor ecx, ecx
add esp, 0x18
cmp eax, esi
setne cl
mov dword [edi + 4], eax
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x4104fd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], 0x100000
mov dword [ebp - 0xc], ebx
ja 0x41064c
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x18], ecx
mov ecx, dword [esi + 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [ebp - 0x14], ecx
mov ecx, dword [esi]
push eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], ebx
call edi
push 0x14
lea eax, [ebp - 0x30]
push ebx
push eax
call fcn.00426270
mov eax, dword [esi + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 0xc
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp + 0xc]
push eax
push dword [esi]
call ebx
test eax, eax
jne 0x41057c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x41064b
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x1c]
push eax
push 4
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x41064b
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x41064b
cmp dword [ebp - 4], 4
jne 0x41064b
and dword [ebp - 8], 0
push dword [esi + 0x10]
call edi
push 0x14
lea eax, [ebp - 0x30]
push 0
push eax
call fcn.00426270
mov eax, dword [esi + 0x10]
mov ecx, dword [ebp + 0xc]
add esp, 0xc
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
sub ecx, eax
push ecx
mov ecx, dword [ebp + 8]
add eax, ecx
push eax
push dword [esi]
call ebx
test eax, eax
jne 0x410602
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x41064b
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x1c]
push eax
push 4
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x41064b
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x41064b
mov eax, dword [ebp - 4]
test eax, eax
je 0x41064b
mov ecx, dword [ebp - 8]
add eax, ecx
cmp eax, dword [ebp + 0xc]
je 0x410644
mov dword [ebp - 8], eax
jmp 0x4105bb
mov dword [ebp - 0xc], 1
pop edi
mov eax, dword [ebp - 0xc]
pop ebx
leave
ret 8
Function at 0x410654
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
xor ebx, ebx
push 0x14
lea eax, [ebp - 0x34]
push ebx
push eax
mov dword [ebp - 0x10], ebx
call fcn.00426270
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [esi + 0xc]
add esp, 0xc
mov dword [ebp - 0x18], ecx
mov ecx, dword [esi]
push eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp - 8]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4106c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4107ba
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x20]
push eax
push 4
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x4107ba
push ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x34]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x4107ba
cmp dword [ebp - 4], 4
jne 0x4107ba
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x4107ba
cmp eax, 0x100000
ja 0x4107ba
inc eax
push edi
push eax
mov dword [ebp - 0xc], ebx
call fcn.004250a7
pop ecx
mov edi, eax
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
sub ecx, eax
push ecx
add eax, edi
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x410755
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4107ae
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x20]
push eax
push 4
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x4107ae
push ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x34]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x4107ae
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x4107ae
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov eax, dword [ebp - 8]
cmp ecx, eax
je 0x410795
mov dword [ebp - 0xc], ecx
jmp 0x41071f
mov ecx, dword [ebp + 0xc]
mov byte [edi + eax], bl
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov eax, dword [ebp - 8]
mov dword [ecx], eax
mov dword [ebp - 0x10], 1
jmp 0x4107b9
cmp edi, ebx
je 0x4107b9
push edi
call fcn.004269f8
pop ecx
pop edi
mov eax, dword [ebp - 0x10]
pop ebx
leave
ret 8

Function at 0x4107c2
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x44c038]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x198]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x410803
cmp byte [ebp - 0x198], 1
jne 0x4107fd
cmp byte [ebp - 0x197], 1
je 0x410806
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00425c5a
leave
ret
Function at 0x4108b4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
test edx, edx
jne 0x4108bc
push 0x2b
pop eax
ret
mov eax, dword [esp + 4]
lea ecx, [esp + 8]
jmp fcn.00411067

Function at 0x410c6d
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esi + 0x88]
test eax, eax
je 0x410c8a
push dword [esi + 0x14]
push dword [esp + 0xc]
push dword [esp + 0xc]
push ecx
push esi
call eax
add esp, 0x14
ret
test ecx, ecx
jl 0x410cbb
cmp ecx, 2
jg 0x410cbb
push dword [esi + 0x10]
push 1
push 2
push dword [ecx*4 + 0x442a98]
call fcn.0043581e
push dword [esi + 0x10]
push 1
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.0043581e
add esp, 0x20
xor eax, eax
ret
Function at 0x414279
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
lea edx, [ecx + eax]
cmp ecx, edx
mov eax, 0x1505
jae 0x414294
push esi
movsx esi, byte [ecx]
imul eax, eax, 0x21
xor eax, esi
inc ecx
cmp ecx, edx
jb 0x414286
pop esi
ret
Function at 0x4186bb
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x44c038]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, ecx
mov esi, dword [edi]
push dword [esi + 0x74]
mov dword [ebp - 0x124], edi
call fcn.00426560
pop ecx
mov ecx, 0xff
cmp eax, ecx
jae 0x41881e
and dword [ebp - 0x120], 0
push ecx
lea eax, [ebp - 0x10b]
push 0
push eax
mov byte [ebp - 0x10c], 0
call fcn.00426270
mov ebx, dword [sym.imp.WS2_32.dll_inet_addr]
add esp, 0xc
push dword [esi + 0x74]
call ebx
lea eax, [ebp - 0x120]
push eax
push 0
push dword [esi + 0x74]
push edi
call fcn.004140cc
add esp, 0x10
cmp eax, 1
jne 0x418745
lea eax, [ebp - 0x120]
push eax
push edi
call fcn.00422258
pop ecx
pop ecx
mov edi, dword [ebp - 0x120]
test edi, edi
je 0x418760
push dword [esi + 0x74]
lea eax, [ebp - 0x10c]
push eax
call fcn.00435310
pop ecx
pop ecx
cmp byte [ebp - 0x10c], 0
jne 0x418776
push dword [esi + 0x74]
push str.Couldnt_bind_to__s
jmp 0x418817
lea eax, [ebp - 0x10c]
push eax
push str.We_bind_local_end_to__s_n
call fcn.004109a6
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
call ebx
cmp eax, 0xffffffff
je 0x41880b
test edi, edi
je 0x41880b
mov ebx, dword [edi]
call fcn.00414218
push dword [ebx + 0x10]
push dword [ebx + 0x14]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jl 0x4187e6
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x11c]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x128], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jge 0x418807
push str.getsockname___failed
call fcn.00410a0f
jmp 0x41881d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x8318], eax
mov ebx, eax
mov eax, dword [ebp - 0x124]
call fcn.00418ffb
push eax
push str.bind_failure:__s
jmp 0x418817
xor eax, eax
jmp 0x418821
lea eax, [ebp - 0x10c]
push eax
push str.couldnt_find_my_own_IP_address___s_
call fcn.00410a0f
pop ecx
pop ecx
push 0x2d
pop eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00425c5a
leave
ret
Function at 0x41894f
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x44c038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ebx, edx
push dword [ebx + 0xc]
mov edi, ecx
push dword [edi + 0x28]
mov eax, dword [edi]
push dword [ebx + 4]
mov dword [ebp - 0x98], edi
mov dword [ebp - 0x9c], esi
mov dword [ebp - 0x90], eax
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [ebp - 0x8c], eax
je 0x418b33
lea eax, [ebp - 0x88]
push 0x80
push eax
mov ecx, ebx
mov byte [esi], 0
call fcn.00413fad
mov esi, dword [ebp - 0x90]
lea eax, [ebp - 0x88]
push eax
push str.__Trying__s...
call fcn.004109a6
mov eax, esi
add esp, 0x10
cmp byte [eax + 0x1b6], 0
je 0x4189e5
push dword [ebp - 0x8c]
call fcn.004188f9
pop ecx
mov eax, dword [edi]
cmp dword [eax + 0x74], 0
je 0x418a03
push dword [ebp - 0x8c]
mov ecx, edi
call fcn.004186bb
test eax, eax
pop ecx
jne 0x418b27
push dword [ebp - 0x8c]
xor eax, eax
inc eax
call fcn.00418681
cmp dword [edi + 0x28], 1
pop ecx
jne 0x418a2e
push dword [ebx + 0x10]
push dword [ebx + 0x14]
push dword [ebp - 0x8c]
call dword [sym.imp.WS2_32.dll_connect]
mov edi, eax
jmp 0x418a30
xor edi, edi
cmp edi, 0xffffffff
jne 0x418ac8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0xb
mov dword [ebp - 0x94], ebx
je 0x418ab8
cmp ebx, 0x2732
jle 0x418a5c
cmp ebx, 0x2734
jle 0x418ab8
mov eax, dword [ebp - 0x98]
call fcn.00418ffb
push eax
lea eax, [ebp - 0x88]
push eax
push str.Failed_to_connect_to__s:__s
call fcn.00410a0f
add esp, 0xc
mov dword [esi + 0x8318], ebx
push dword [ebp - 0x8c]
lea esi, [ebp - 0x94]
call fcn.00418830
test edi, edi
pop ecx
jne 0x418ae0
test al, al
je 0x418af7
mov eax, dword [ebp - 0x9c]
mov esi, dword [ebp - 0x90]
push str.connected_n
mov byte [eax], 1
call fcn.004109a6
pop ecx
jmp 0x418ad8
mov eax, dword [ebp + 8]
mov edi, dword [ebp - 0x8c]
call fcn.0041869c
mov edi, eax
cmp edi, 1
jne 0x418a82
mov eax, esi
cmp dword [eax + 0x2d8], 2
jne 0x418a82
mov eax, dword [ebp - 0x8c]
jmp 0x418b36
cmp edi, 1
jne 0x418af7
mov esi, dword [ebp - 0x90]
push str.Timeout_n
call fcn.004109a6
jmp 0x418b26
mov ebx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x90]
mov dword [eax + 0x8318], ebx
mov eax, dword [ebp - 0x98]
call fcn.00418ffb
mov esi, dword [ebp - 0x90]
push eax
push 0x444690
call fcn.004109a6
pop ecx
pop ecx
push dword [ebp - 0x8c]
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00425c5a
leave
ret
Function at 0x419196
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, eax
mov ebx, dword [edi + 0x16c]
push 0x5c
push dword [ebx]
call fcn.00435240
mov esi, dword [edi]
and dword [ebp - 0x10], 0
and dword [ebp - 0xc], 0
pop ecx
pop ecx
mov dword [ebp - 8], eax
call fcn.0041d4a9
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x80]
mov dword [edi + 0x200], eax
mov eax, dword [esi + 0x28]
mov dword [edi + 0x204], eax
lea eax, [esi + 0x2f4]
mov dword [edi + 0x1fc], eax
mov eax, dword [ebp - 8]
test eax, eax
mov dword [ebp - 0x14], edx
jne 0x4191fa
push 0x25
pop eax
jmp 0x4192d8
cmp byte [eax + 1], 0
je 0x4191f2
push 0x444c8c
push dword [ebx]
call fcn.00435f6a
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 8], eax
jne 0x419227
push dword [ebx]
push str.Cant_open__s_for_writing
call fcn.00410a0f
pop ecx
pop ecx
push 0x17
jmp 0x4191f4
mov eax, dword [esi + 0xa8]
cmp eax, 0xffffffff
mov ecx, dword [esi + 0xac]
jne 0x41923c
cmp ecx, eax
je 0x419247
push ecx
push eax
mov eax, esi
call fcn.0041ccbf
pop ecx
pop ecx
push 0x4000
lea ecx, [ebp - 4]
call fcn.0041454c
mov ebx, eax
test ebx, ebx
pop ecx
jne 0x4192cd
cmp dword [ebp - 4], eax
jbe 0x4192bb
push dword [ebp - 8]
lea eax, [esi + 0x2f4]
push dword [ebp - 4]
push 1
push eax
call fcn.0043581e
mov ecx, dword [ebp - 4]
add esp, 0x10
cmp eax, ecx
jne 0x4192b8
add dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x200], eax
adc dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
mov ecx, edi
mov dword [esi + 0x204], eax
call fcn.0041cced
test eax, eax
jne 0x4192ca
push dword [ebp - 0x14]
mov eax, esi
push dword [ebp - 0x18]
call fcn.00423104
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
je 0x419247
jmp 0x4192cd
push 0x37
pop ebx
test ebx, ebx
jne 0x4192cd
mov ecx, edi
call fcn.0041cced
test eax, eax
je 0x4192cd
push 0x2a
pop ebx
push dword [ebp - 8]
call fcn.004344bf
pop ecx
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret