joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d6b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b1d28
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4d8c20]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x44], 0
je 0x41d86c
cmp byte [ebx + 0x49], 0
je 0x41d86c
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x41d89b
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x41d725
lea eax, [ebp - 0x2c]
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x41d742
lea edx, [ebp - 0x2c]
mov eax, edx
mov ecx, dword [ebx + 0x44]
mov esi, dword [ecx]
lea edi, [ebp - 0x30]
push edi
mov edi, dword [ebp - 0x1c]
add edi, edx
push edi
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x41d789
dec eax
je 0x41d78d
sub eax, 2
je 0x41d85a
cmp dword [ebp - 0x18], 0x10
jb 0x41d89b
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00475dcb
add esp, 4
xor al, al
jmp 0x41d86e
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x41d79d
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x41d7ca
cmp edi, 0x10
jae 0x41d7ac
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x54]
push ecx
push esi
push 1
push eax
call fcn.004771f3
add esp, 0x10
cmp esi, eax
jne 0x41d889
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x41d89f
test esi, esi
jne 0x41d736
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x41d8a7
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x41d8a7
cmp edi, esi
jae 0x41d843
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.0040479c
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x41d736
mov ecx, eax
cmp edi, 0x10
jae 0x41d81f
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x41d83a
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x41d730
test esi, esi
jne 0x41d815
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x41d852
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x41d730
cmp dword [ebp - 0x18], 0x10
jb 0x41d86c
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00475dcb
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004751dc
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x18], 0x10
jb 0x41d89b
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00475dcb
add esp, 4
xor al, al
jmp 0x41d86e
cmp edi, 0x10
jb 0x41d86c
push eax
jmp 0x41d864
push str.string_too_long
call fcn.0048f68a
int3
Function at 0x420a80
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b11fb
mov eax, dword fs:[0]
push eax
sub esp, 0x310
mov eax, dword [0x4d8c20]
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 ebx, ecx
push 0
push 2
mov dword [ebp - 4], 0
or esi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, esi
jne 0x420b81
lea esi, [ebp - 0x30]
call fcn.0041ab40
mov ebx, eax
push 0x15
push str.netboxprocess.cpp
lea esi, [ebp - 0x31c]
mov byte [ebp - 4], 1
call fcn.00414f70
mov esi, eax
mov byte [ebp - 4], 2
test esi, esi
je 0x420b43
lea edi, [esi + 0x10]
test edi, edi
je 0x420b04
lea eax, [esi + 0x20]
jmp 0x420b06
xor eax, eax
push str.ERROR:
push eax
call fcn.00407256
add esp, 8
test edi, edi
je 0x420b1d
lea eax, [esi + 0x20]
jmp 0x420b1f
xor eax, eax
push str.failed_to_CreateToolhelp32Snapshot_error:
push eax
call fcn.00407256
add esp, 8
test edi, edi
je 0x420b36
lea eax, [esi + 0x20]
jmp 0x420b38
xor eax, eax
push eax
mov ecx, ebx
call fcn.0040741c
add esp, 4
lea ecx, [ebp - 0x31c]
mov byte [ebp - 4], 1
call fcn.00415130
mov esi, 8
cmp dword [ebp - 0x1c], esi
jb 0x420b68
mov eax, dword [ebp - 0x30]
push eax
call fcn.00475dcb
add esp, 4
cmp dword [ebp + 0x1c], esi
jb 0x420b79
mov ecx, dword [ebp + 8]
push ecx
call fcn.00475dcb
add esp, 4
or eax, 0xffffffff
jmp 0x420c15
push 0x228
lea edx, [ebp - 0x260]
push 0
push edx
call fcn.0047f860
add esp, 0xc
lea eax, [ebp - 0x264]
push eax
push edi
mov dword [ebp - 0x264], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x420bfa
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x420bbf
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x240]
push ecx
call fcn.00476387
add esp, 8
test eax, eax
jne 0x420be8
mov edx, dword [ebp - 0x25c]
push edx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x420bfa
lea eax, [ebp - 0x264]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x420bb3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x1c], 8
jb 0x420c13
mov ecx, dword [ebp + 8]
push ecx
call fcn.00475dcb
add esp, 4
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 - 0x14]
xor ecx, ebp
call fcn.004751dc
mov esp, ebp
pop ebp
ret
Function at 0x423f60
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4d8c20]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x4de52c], 0
jne 0x42400b
xor eax, eax
push 0x208
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov word [ebp - 0x210], ax
call fcn.0047f860
add esp, 0xc
push 0x104
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x423fc4
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004751dc
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x210]
push 0x4bfa7c
push eax
call fcn.00477495
add esp, 8
test eax, eax
je 0x423fe2
xor ecx, ecx
mov word [eax + 2], cx
push 0
push 0
push 0
push 0
push 0x4de528
push 0
push 0
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x423fb4
mov byte [0x4de52c], 1
mov eax, dword [0x4de528]
mov ecx, dword [ebp - 4]
mov dword [esi], eax
xor ecx, ebp
mov al, 1
call fcn.004751dc
mov esp, ebp
pop ebp
ret

Function at 0x424030
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4d8c20]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, 1
test byte [0x4de580], al
jne 0x42407c
or dword [0x4de580], eax
xor eax, eax
push 0x4b3490
mov dword [0x4de578], 7
mov dword [0x4de574], 0
mov word [0x4de564], ax
call fcn.00475bb7
add esp, 4
cmp dword [0x4de574], 0
jne 0x4240d0
xor eax, eax
lea edx, [ebp - 0x28]
mov dword [ebp - 0x22], eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
mov dword [ebp - 0x12], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
push edx
lea eax, [ebp - 0x24]
xor ecx, ecx
push eax
mov word [ebp - 0x24], cx
mov dword [ebp - 0x28], 0xf
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x4240d0
mov ecx, dword [ebp - 0x28]
lea edx, [ebp + ecx*2 - 0x24]
push edx
lea eax, [ebp - 0x24]
push eax
call fcn.004248d0
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 0x4de564
call fcn.004751dc
mov esp, ebp
pop ebp
ret
Function at 0x4240f0
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ae0b8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4d8c20]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
xor esi, esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
lea ecx, [esp + 0x1c]
xor eax, eax
push ecx
push eax
mov dword [esp + 0x48], esi
mov eax, 0x400
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], esi
call fcn.00424680
cmp ebx, esi
je 0x424227
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
sub edx, edi
lea eax, [esp + 0x20]
push eax
mov eax, dword [ebp + 8]
sar edx, 1
lea ecx, [esp + 0x18]
push ecx
push edi
mov dword [esp + 0x20], edx
lea edx, [esp + 0x24]
push edx
push ebx
push eax
push esi
mov dword [esp + 0x34], 0x44
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov esi, eax
test esi, esi
jne 0x424202
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x424200
cmp dword [esp + 0x18], 0x44
jbe 0x4241bc
lea ecx, [esp + 0x24]
call fcn.00414620
xor al, al
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x14]
cmp eax, 0x400
jbe 0x4241e1
push eax
lea eax, [esp + 0x20]
lea esi, [esp + 0x28]
mov dword [esp + 0x20], 0
call fcn.00424630
mov edi, dword [esp + 0x24]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x18]
push edx
push edi
lea eax, [esp + 0x24]
push eax
push ebx
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov esi, eax
test esi, esi
setne bl
test edi, edi
je 0x424212
push edi
call fcn.00475dcb
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x24]
cmp eax, esi
je 0x424238
push eax
call fcn.00475dcb
add esp, 4
xor al, al
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x424b50
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
je 0x424ba5
cmp byte [eax], 0
je 0x424ba5
cmp dword [esi + 0x14], 8
jb 0x424b66
mov esi, dword [esi]
test esi, esi
je 0x424ba5
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x424ba5
test al, 0x10
jne 0x424ba5
push 0
push 0x4000000
push 3
push 0
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x424b9e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
ret
Function at 0x42f480
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ade20
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4d8c20]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
lea edx, [esp + 0x14]
push edx
xor ebx, ebx
xor edi, edi
call eax
mov dword [esp + 0x30], ebx
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x42f577
lea esp, [esp]
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x42f4df
cmp eax, ecx
je 0x42f577
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
lea eax, [esp + 0x1c]
push eax
inc edi
call edx
mov byte [esp + 0x30], 1
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [eax + 4], ebx
mov dword [eax], ebx
mov esi, dword [esp + 0x18]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
cmp esi, ebx
je 0x42f535
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x42f535
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x42f535
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov byte [esp + 0x30], bl
mov esi, dword [esp + 0x20]
cmp esi, ebx
je 0x42f56b
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x42f56b
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x42f56b
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
jne 0x42f4d0
mov dword [esp + 0x30], 0xffffffff
mov esi, dword [esp + 0x18]
cmp esi, ebx
je 0x42f5b1
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x42f5b1
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x42f5b1
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov eax, edi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x431ad0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b0dc0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push edi
mov eax, dword [0x4d8c20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x431bf4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x431bf4
test al, 0x10
jne 0x431bf4
call fcn.00430b10
mov edi, eax
test edi, edi
je 0x431bf4
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], edi
call fcn.004362b0
push edi
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.0042be70
add esp, 0xc
mov dword [ebp - 4], 0
test esi, esi
je 0x431b6a
cmp byte [esi], 0
je 0x431b6a
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x431b57
sub eax, edx
push eax
push esi
lea ecx, [edi + 0x14]
call fcn.004040a8
mov eax, dword [ebp + 8]
push 1
xor ecx, ecx
call fcn.0043b5f2
add esp, 4
mov dword [edi + 0xc], eax
test eax, eax
je 0x431be5
mov ecx, dword [edi + 0x10]
push ecx
lea edx, [ebp - 0x20]
push edx
mov ecx, eax
call fcn.00430b50
add esp, 8
mov byte [ebp - 4], 1
call fcn.00433ab0
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 0
call fcn.00422dc0
cmp dword [edi], 0
je 0x431be5
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov dword [ebx], ecx
mov edx, dword [ebx + 4]
mov dword [ebx + 4], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], 0xffffffff
call fcn.00422dc0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.00422dc0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x434770
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aed53
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4d8c20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, edx
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
jb 0x4347ac
mov eax, dword [esi]
jmp 0x4347ae
mov eax, esi
test eax, eax
je 0x43482f
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43482f
test al, 0x10
je 0x43482f
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4347e2
mov eax, dword [ecx]
mov edx, dword [eax + 0x24]
call edx
test al, al
jne 0x43482f
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
cmp eax, edi
jne 0x43482f
push 0x54
call fcn.00475e26
add esp, 4
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x434829
mov edx, dword [ebp + 8]
push edi
sub esp, 8
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [ebp + 0xc]
mov dword [ecx + 4], edx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x14], esp
test ecx, ecx
je 0x43481e
add ecx, 4
mov edx, 1
lock xadd dword [ecx], edx
push esi
push eax
call fcn.004312c0
mov edi, eax
jmp 0x434831
xor eax, eax
mov edi, eax
jmp 0x434831
xor edi, edi
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x434869
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x434869
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x434869
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
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 0x43a380
Capabilities:
Hash data with md5

Disassembly:
push esi
push 0x58
lea esi, [edi + 8]
push 0
push esi
mov dword [edi], vtable.hash::hash_CTX_MD5_impl.0
call fcn.0047f860
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [edi + 4], 1
mov eax, edi
pop esi
ret
Function at 0x43a4f0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ad5a8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4d8c20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x60
call fcn.00475e26
mov edi, eax
add esp, 4
test edi, edi
je 0x43a56d
push 0x58
lea esi, [edi + 8]
push 0
push esi
mov dword [edi], vtable.hash::hash_CTX_MD5_impl.0
call fcn.0047f860
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
add esp, 0xc
mov dword [edi + 4], 1
jmp 0x43a56f
xor edi, edi
test edi, edi
je 0x43a58b
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x43ad8b
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx]
mov edx, eax
xor edx, dword [ebp + 8]
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edi + edx*4]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edi + edx*4]
pop esi
mov dword [ecx + 8], eax
mov eax, dword [ebp + 8]
pop ebp
ret
Function at 0x43e7c0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x4d8c20]
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 0x43e815
mov eax, dword [esp]
cmp al, 2
jne 0x43e80f
shr eax, 8
cmp al, 2
jne 0x43e80f
xor eax, eax
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.004751dc
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x194]
xor ecx, esp
mov eax, 2
call fcn.004751dc
mov esp, ebp
pop ebp
ret
Function at 0x4404c0
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x4404e2
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x4404d6
xor eax, eax
pop edi
ret
mov eax, dword [eax + 8]
push eax
push edi
push 1
push ebx
call ecx
jmp 0x440512
cmp dword [esi + 8], 0
jne 0x440505
mov ecx, dword [eax + 8]
push 0x4c00b0
push ecx
call fcn.004a2747
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x440505
or eax, 0xffffffff
pop edi
ret
mov edx, dword [esi + 8]
push edx
push edi
push 1
push ebx
call fcn.004a31aa
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x440534
mov eax, dword [esi + 8]
test eax, eax
je 0x44052e
push eax
call fcn.004772da
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, edi
pop edi
ret

Function at 0x448960
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4d8c20]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [esi + 0x454], eax
push 4
lea ecx, [ebp - 0x14]
push ecx
setne al
push 8
push 0xffff
push edi
mov dword [ebp - 0x14], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x4489b3
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.0044b0a0
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004751dc
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x458]
mov dword [ebp - 0x10], 1
call fcn.004554d0
imul eax, eax, 0x3e8
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x45c]
call fcn.004554d0
imul eax, eax, 0x3e8
push 0
push 0
lea edx, [ebp - 0x18]
push edx
push 0
push 0
push 0xc
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x448a1d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.0044b0a0
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004751dc
mov esp, ebp
pop ebp
ret
Function at 0x449040
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4d8c20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
cmp dword [esi + 0x1bc], 0
mov ebx, dword [esi]
push edi
mov edi, ecx
mov dword [ebp - 0x10c], esi
mov dword [ebp - 0x114], ebx
jne 0x4491ee
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x88]
push ecx
push edi
mov dword [ebp - 0x110], 0x80
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x4490ca
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push esi
call fcn.0046a2a0
add esp, 4
push eax
push edi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.0044b120
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004751dc
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x110]
push edx
lea eax, [ebp - 0x108]
push eax
push edi
mov dword [ebp - 0x110], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x44911f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push esi
call fcn.0046a2a0
add esp, 4
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.0044b120
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004751dc
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0xa6]
lea ebx, [esi + 0xd4]
lea edi, [ebp - 0x88]
mov dword [ebp - 0x118], eax
call fcn.00448ff0
test eax, eax
jne 0x449178
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call fcn.0046a2a0
mov ecx, dword [ebp - 0x114]
add esp, 4
push eax
push edi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ecx
call fcn.0044b120
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004751dc
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10c]
lea edi, [esi + 0x48]
mov esi, dword [ebp - 0x118]
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea ebx, [eax + 0x108]
add eax, 0xd8
lea edi, [ebp - 0x108]
call fcn.00448ff0
test eax, eax
jne 0x4491e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x10c]
mov edi, eax
push edx
call fcn.0046a2a0
add esp, 4
push eax
mov eax, dword [ebp - 0x114]
push edi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push eax
call fcn.0044b120
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004751dc
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x10c]
mov eax, esi
call fcn.00448fa0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004751dc
mov esp, ebp
pop ebp
ret