joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5db7a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x6c
call fcn.00671aa0
mov eax, dword [0x778400]
xor eax, esp
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x74]
push ebx
mov dword [esp + 4], eax
xor ebx, ebx
mov eax, dword [esp + 0x7c]
push ebp
mov ebp, dword [esp + 0x78]
push esi
mov dword [esp + 0x14], eax
xor esi, esi
mov dword [eax], ebx
lea eax, [esp + 0x1c]
push edi
mov edi, dword [esp + 0x8c]
push eax
call fcn.00595a80
lea eax, [esp + 0x24]
push ebp
push eax
call fcn.005958e0
add esp, 0xc
test eax, eax
je 0x5db8a2
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.005955c0
add esp, 0xc
test eax, eax
je 0x5db8a2
lea eax, [esp + 0x20]
push eax
call fcn.00595820
mov esi, dword [ebp]
add esp, 4
test byte [esi + 0xc], 4
je 0x5db8c0
push edi
call fcn.00596210
push ebx
push edi
mov dword [esp + 0x28], eax
call fcn.005b6fd0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x5db8a2
push esi
call fcn.005dc160
add esp, 4
test eax, eax
jle 0x5db8a2
push dword [ebp]
push ebx
push 1
push 0xf8
push 0xffffffffffffffff
push esi
call fcn.005b6d80
add esp, 0x18
test eax, eax
jle 0x5db8a2
push dword [esp + 0x14]
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x1c]
push esi
call fcn.005dc070
add esp, 0x14
test eax, eax
jle 0x5db8a2
mov ecx, dword [esp + 0x18]
mov ebx, 1
mov eax, dword [esp + 0x1c]
mov dword [ecx], eax
push esi
call fcn.005b6f70
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0066c98d
add esp, 0x6c
ret
xor eax, eax
lea ecx, [esi + 0x2c]
mov edx, dword [ecx]
test edx, edx
je 0x5db8d8
cmp dword [edi], edx
je 0x5db902
inc eax
add ecx, 4
cmp eax, 4
jl 0x5db8c5
push 0x7b
push str..cryptoevpp_sign.c
push 0x6e
push 0x6b
push 6
call fcn.005aa1d0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0066c98d
add esp, 0x6c
ret
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x5db936
push 0x80
push str..cryptoevpp_sign.c
push 0x68
push 0x6b
push 6
call fcn.005aa1d0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0066c98d
add esp, 0x6c
ret
push dword [edi + 0x14]
mov ecx, dword [esp + 0x1c]
push ecx
push dword [esp + 0x18]
lea ecx, [esp + 0x44]
push dword [esp + 0x20]
push ecx
push dword [esi]
call eax
mov ecx, dword [esp + 0x90]
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0066c98d
add esp, 0x6c
ret
Function at 0x5edf10
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x76f6b0]
mov edi, eax
add esp, 4
test edi, edi
jne 0x5edf3d
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x5edf84
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call eax
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
mov eax, dword [esi + 8]
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], ebx
jmp 0x5edf8a
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [edi + 4]
mov eax, dword [esi]
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [ebp + 0x10]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x5edfea
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
lea ebx, [ebx]
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
dec dword [ebp + 0x10]
jne 0x5edfb0
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x5ee017
nop
mov eax, dword [esi + 4]
push 1
push 0x7165b0
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x7165b1
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x5edff0
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x604d50
Capabilities:
Encode data using base64

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
xor ebx, ebx
test esi, esi
jle 0x604e3c
push edi
mov edi, dword [esp + 0x14]
inc edi
lea ebx, [ebx]
movzx edx, byte [edi - 1]
cmp esi, 3
jl 0x604dce
movzx ecx, byte [edi]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 1]
shl edx, 8
or edx, ecx
mov ecx, edx
shr ecx, 0x12
and ecx, 0x3f
movzx ecx, byte [ecx + 0x7193f0]
mov byte [eax], cl
mov ecx, edx
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + 0x7193f0]
mov byte [eax + 1], cl
mov ecx, edx
shr ecx, 6
and ecx, 0x3f
and edx, 0x3f
movzx ecx, byte [ecx + 0x7193f0]
mov byte [eax + 2], cl
movzx ecx, byte [edx + 0x7193f0]
mov byte [eax + 3], cl
jmp 0x604e1f
shl edx, 0x10
cmp esi, 2
jne 0x604dde
movzx ecx, byte [edi]
shl ecx, 8
or edx, ecx
mov ecx, edx
shr ecx, 0x12
and ecx, 0x3f
movzx ecx, byte [ecx + 0x7193f0]
mov byte [eax], cl
mov ecx, edx
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + 0x7193f0]
mov byte [eax + 1], cl
cmp esi, 1
jne 0x604e0b
lea ecx, [esi + 0x3c]
jmp 0x604e18
shr edx, 6
and edx, 0x3f
movzx ecx, byte [edx + 0x7193f0]
mov byte [eax + 2], cl
mov byte [eax + 3], 0x3d
sub esi, 3
add eax, 4
add ebx, 4
add edi, 3
test esi, esi
jg 0x604d70
pop edi
mov byte [eax], 0
mov eax, ebx
pop esi
pop ebx
ret
mov byte [eax], bl
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x609210
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x8c
call fcn.00671aa0
mov eax, dword [0x778400]
xor eax, esp
mov dword [esp + 0x88], eax
mov edx, dword [esp + 0xa0]
xor eax, eax
push ebx
mov ebx, dword [esp + 0x9c]
push ebp
mov ebp, dword [esp + 0x9c]
push esi
mov esi, dword [esp + 0x9c]
push edi
mov edi, dword [esp + 0xac]
mov dword [esp + 0x10], edx
test edi, edi
je 0x609276
cmp edi, dword [esi]
je 0x60926d
test ebp, ebp
je 0x6092f0
test ebx, ebx
js 0x6092f0
mov eax, 1
mov dword [esi], edi
jmp 0x60927c
mov edi, dword [esi]
test edi, edi
je 0x6092f0
test ebp, ebp
je 0x60940b
push edi
call fcn.005b6d40
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, 0x80
jle 0x6092b0
push str.j____int_sizeof_ctx__key_
push 0x74
push str..cryptohmachmac.c
call fcn.005b31b0
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, ebx
jge 0x60930b
push dword [esp + 0x10]
lea eax, [esi + 4]
push edi
push eax
call fcn.00595660
add esp, 0xc
test eax, eax
je 0x6092f0
push ebx
push ebp
lea ebx, [esi + 4]
push ebx
call fcn.00595810
add esp, 0xc
test eax, eax
je 0x6092f0
lea ebp, [esi + 0x4c]
push ebp
lea eax, [esi + 0x50]
push eax
push ebx
call fcn.005955c0
add esp, 0xc
test eax, eax
jne 0x609327
xor eax, eax
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0066c98d
add esp, 0x8c
ret
cmp ebx, 0x80
ja 0x6092f0
push ebx
lea eax, [esi + 0x50]
push ebp
push eax
call fcn.0066e160
lea ebp, [esi + 0x4c]
add esp, 0xc
mov dword [ebp], ebx
mov ecx, dword [ebp]
cmp ecx, 0x80
je 0x60934a
mov eax, 0x80
sub eax, ecx
push eax
lea eax, [esi + 0x50]
add eax, ecx
push 0
push eax
call fcn.0066eb10
add esp, 0xc
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov al, byte [esi + ecx + 0x50]
xor al, 0x36
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x80
jl 0x609350
push edx
lea ebx, [esi + 0x1c]
push edi
push ebx
call fcn.00595660
add esp, 0xc
test eax, eax
je 0x6092f0
push edi
call fcn.005b6d40
push eax
lea eax, [esp + 0x20]
push eax
push ebx
call fcn.00595810
add esp, 0x10
test eax, eax
je 0x6092f0
xor ecx, ecx
jmp 0x6093a0
mov al, byte [esi + ecx + 0x50]
xor al, 0x5c
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x80
jl 0x6093a0
push dword [esp + 0x10]
lea ebx, [esi + 0x34]
push edi
push ebx
call fcn.00595660
add esp, 0xc
test eax, eax
je 0x6092f0
push edi
call fcn.005b6d40
push eax
lea eax, [esp + 0x20]
push eax
push ebx
call fcn.00595810
add esp, 0x10
test eax, eax
je 0x6092f0
lea eax, [esi + 0x1c]
push eax
lea eax, [esi + 4]
push eax
call fcn.005958e0
add esp, 8
test eax, eax
je 0x6092f0
mov eax, 1
jmp 0x6092f2
test eax, eax
je 0x6093e9
jmp 0x60934e
Function at 0x609db0
Capabilities:
Resolve dns

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov esi, dword [esp + 0x10]
mov ebp, 1
push edi
push ebx
push esi
call fcn.0060a270
mov edi, eax
add esp, 8
test edi, edi
jns 0x609dee
push 0x88
push str..crypto_bio_b_sock.c
push 0x6c
push 0x6a
push 0x20
call fcn.005aa1d0
add esp, 0x14
jmp 0x609eaf
call fcn.0060a1a0
cmp eax, 1
jne 0x609ebf
test edi, edi
jle 0x609e07
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret
push 0xa1
push str..crypto_bio_b_sock.c
push 0x16
push 9
call fcn.005b2e90
add esp, 0x10
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
jne 0x609e44
push 0xa7
push str..crypto_bio_b_sock.c
push 0x66
push 0x6a
push 0x20
call fcn.005aa1d0
add esp, 0x14
jmp 0x609e95
cmp word [ecx + 8], 2
je 0x609e65
push 0xae
push str..crypto_bio_b_sock.c
push 0x6b
push 0x6a
push 0x20
call fcn.005aa1d0
add esp, 0x14
jmp 0x609e95
mov eax, dword [ecx + 0xc]
xor ebp, ebp
mov eax, dword [eax]
movzx eax, byte [eax]
mov byte [ebx], al
mov eax, dword [ecx + 0xc]
mov eax, dword [eax]
movzx eax, byte [eax + 1]
mov byte [ebx + 1], al
mov eax, dword [ecx + 0xc]
mov eax, dword [eax]
movzx eax, byte [eax + 2]
mov byte [ebx + 2], al
mov eax, dword [ecx + 0xc]
mov eax, dword [eax]
movzx eax, byte [eax + 3]
mov byte [ebx + 3], al
push 0xb7
push str..crypto_bio_b_sock.c
push 0x16
push 0xa
call fcn.005b2e90
add esp, 0x10
test ebp, ebp
je 0x609ec6
push esi
push str.host
push 2
call fcn.005a9930
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x60a220
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [esp + 8]
push esi
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 0x8004667e
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov esi, eax
test esi, esi
jns 0x60a260
push 0x248
push str..crypto_bio_b_sock.c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 5
push 2
call fcn.005aa1d0
add esp, 0x14
xor eax, eax
test esi, esi
pop esi
sete al
ret
Function at 0x633a50
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0xc]
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push edi
mov eax, dword [ebp + 4]
cmp eax, dword [ecx + 4]
jge 0x633a67
mov ebx, ecx
jmp 0x633a6b
mov ebx, ebp
mov ebp, ecx
mov edi, dword [esp + 0x10]
mov eax, dword [ebx + 4]
cmp eax, dword [edi + 8]
jg 0x633a7b
mov eax, edi
jmp 0x633a85
push eax
push edi
call fcn.00592410
add esp, 8
test eax, eax
jne 0x633a8d
pop edi
pop ebp
pop ebx
ret
push esi
xor esi, esi
cmp dword [ebp + 4], esi
jle 0x633aab
mov eax, dword [ebx]
mov ecx, dword [ebp]
mov edx, dword [eax + esi*4]
mov eax, dword [edi]
xor edx, dword [ecx + esi*4]
mov dword [eax + esi*4], edx
inc esi
cmp esi, dword [ebp + 4]
jl 0x633a95
cmp esi, dword [ebx + 4]
jge 0x633ac0
mov eax, dword [ebx]
mov ecx, dword [edi]
mov eax, dword [eax + esi*4]
mov dword [ecx + esi*4], eax
inc esi
cmp esi, dword [ebx + 4]
jl 0x633ab0
mov ecx, dword [ebx + 4]
mov dword [edi + 4], ecx
pop esi
test ecx, ecx
jle 0x633ae4
mov edx, dword [edi]
add edx, 0xfffffffc
lea edx, [edx + ecx*4]
mov eax, dword [edx]
lea edx, [edx - 4]
test eax, eax
jne 0x633ae1
dec ecx
test ecx, ecx
jg 0x633ad3
mov dword [edi + 4], ecx
cmp dword [edi + 4], 0
jne 0x633af1
mov dword [edi + 0xc], 0
pop edi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x634ad0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
push ebp
xor edi, edi
call fcn.005bed00
push ebp
call fcn.005bec20
mov esi, eax
add esp, 8
test esi, esi
je 0x634cd9
push ebx
mov ebx, dword [esp + 0x18]
mov eax, dword [ebx + 4]
add eax, eax
cmp eax, dword [esi + 8]
jg 0x634b05
mov eax, esi
jmp 0x634b0f
push eax
push esi
call fcn.00592410
add esp, 8
test eax, eax
je 0x634cd8
mov ebp, dword [ebx + 4]
dec ebp
js 0x634c88
mov eax, dword [ebx]
mov edx, dword [eax + ebp*4]
mov ecx, edx
shr ecx, 1
mov eax, edx
and eax, 0x20000
and ecx, 0x8000
or ecx, eax
mov eax, edx
and eax, 0x40000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x80000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x100000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x200000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x400000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x800000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x1000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x2000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x4000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x8000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x10000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x20000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x40000000
shr ecx, 1
or ecx, eax
and edx, reloc.WS2_32.dll_accept
mov eax, dword [esi]
shr ecx, 1
or ecx, edx
shr ecx, 1
mov dword [eax + ebp*8 + 4], ecx
mov eax, dword [ebx]
mov ecx, dword [eax + ebp*4]
mov edx, ecx
and edx, 0x8000
mov eax, ecx
add edx, edx
and eax, 0x4000
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x2000
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x1000
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x800
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x400
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x200
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x100
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x80
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x40
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x20
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x10
or edx, eax
mov eax, ecx
add edx, edx
and eax, 8
or edx, eax
mov eax, ecx
add edx, edx
and eax, 4
or edx, eax
mov eax, ecx
add edx, edx
and eax, 2
or edx, eax
and ecx, 1
mov eax, dword [esi]
add edx, edx
or edx, ecx
mov dword [eax + ebp*8], edx
dec ebp
jns 0x634b21
mov eax, dword [ebx + 4]
add eax, eax
mov dword [esi + 4], eax
test eax, eax
jle 0x634cb1
mov ecx, dword [esi]
lea edx, [eax - 1]
lea edx, [ecx + edx*4]
lea esp, [esp]
mov ecx, dword [edx]
lea edx, [edx - 4]
test ecx, ecx
jne 0x634cae
dec eax
test eax, eax
jg 0x634ca0
mov dword [esi + 4], eax
cmp dword [esi + 4], edi
jne 0x634cb9
mov dword [esi + 0xc], edi
push dword [esp + 0x1c]
push esi
push dword [esp + 0x1c]
call fcn.00633b90
mov ebp, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
mov ecx, 1
cmovne edi, ecx
pop ebx
push ebp
call fcn.005bebb0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x6452d0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, eax
test esi, esi
jne 0x6452f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
lea eax, [esi + 1]
je 0x6452f7
mov eax, esi
pop esi
pop ebp
ret

Function at 0x645300
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
sub esp, 0x108
mov ecx, edx
push ebx
push esi
push edi
mov ebx, 1
lea esi, [ecx + 1]
mov edi, edx
jmp 0x645320
mov al, byte [ecx]
inc ecx
test al, al
jne 0x645320
sub ecx, esi
cmp ecx, 0x104
jbe 0x64533a
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [edx], 0
je 0x6453c8
push 0x2f
push edi
call fcn.006732c0
mov esi, eax
add esp, 8
test esi, esi
jne 0x645365
push 0x5c
push edi
call fcn.006732c0
mov esi, eax
add esp, 8
test esi, esi
je 0x6453c8
mov edi, esi
sub edi, dword [ebp + 8]
test edi, edi
jle 0x6453bb
push 0x105
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.0066eb10
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call fcn.006733f0
add esp, 0x18
lea eax, [ebp - 0x108]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebx, eax
test ebx, ebx
jne 0x6453bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x6453bb
mov ebx, 1
cmp byte [esi + 1], 0
lea edi, [esi + 1]
jne 0x645343
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x645520
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x6455ea
mov ecx, esi
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x645540
sub ecx, edx
cmp ecx, 2
jb 0x6455ea
push 0x105
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.0066eb10
push 0x104
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.006733f0
lea ecx, [ebp - 0x108]
add esp, 0x18
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x645583
sub ecx, edx
cmp ecx, 2
jne 0x6455b8
cmp byte [ebp - 0x107], 0x3a
jne 0x6455ea
push edi
lea edi, [ebp - 0x108]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x6455a2
mov ax, word [0x6e7b18]
mov word [edi], ax
pop edi
jmp 0x6455ca
cmp byte [ebp + ecx - 0x109], 0x2f
jne 0x6455ca
mov byte [ebp + ecx - 0x109], 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x6455ea
test al, 0x10
je 0x6455ea
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x645640
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
pop ebp
ret
Function at 0x645cd0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
push dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x645d45
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x645d0d
push esi
call fcn.00653980
add esp, 4
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
push 0x104
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x645d45
push dword [ebp + 0x10]
lea eax, [ebp - 0x208]
push eax
push esi
call fcn.00677ff6
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x645cfa
mov byte [esi], 0
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x646860
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
lea eax, [ebp - 0x104]
push ebx
push esi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x104]
push eax
call fcn.00653980
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
add esp, 4
call ebx
mov esi, dword [ebp + 8]
push eax
lea eax, [ebp - 0x104]
push eax
push str._s_x_
push esi
call fcn.0066d97a
push esi
call fcn.00645520
add esp, 0x14
test eax, eax
je 0x6468e7
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, edi
push 0
call edi
call ebx
push eax
lea eax, [ebp - 0x104]
push eax
push str._s_x_
push esi
call fcn.0066d97a
push esi
call fcn.00645520
add esp, 0x14
test eax, eax
jne 0x6468c0
pop edi
push esi
call fcn.00645300
add esp, 4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x646a80
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6b300a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
mov dword [ebp - 0x18], 0
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
push 0x288
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 1
call fcn.0066e7a4
add esp, 4
mov dword [ebp - 0x14], 0x288
mov esi, eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], esi
push eax
push esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x646b07
push esi
call fcn.0066d775
push dword [ebp - 0x14]
call fcn.0066e7a4
add esp, 8
mov dword [ebp - 0x10], eax
mov esi, eax
lea eax, [ebp - 0x14]
push eax
push esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x646be2
push ebx
xor ebx, ebx
cmp dword [ebp - 0x10], ebx
je 0x646bc3
cmp ebx, 3
jge 0x646bc3
cmp dword [edi + 0x10], 0
je 0x646b42
push 1
push 0x6e7bb8
mov ecx, edi
call fcn.00418620
movzx eax, byte [esi + 0x199]
push eax
movzx eax, byte [esi + 0x198]
push eax
movzx eax, byte [esi + 0x197]
push eax
movzx eax, byte [esi + 0x196]
push eax
movzx eax, byte [esi + 0x195]
push eax
movzx eax, byte [esi + 0x194]
push eax
lea eax, [ebp - 0x11c]
push str._02x__02x__02x__02x__02x__02x
push eax
call fcn.0066d97a
add esp, 0x20
cmp byte [ebp - 0x11c], 0
jne 0x646b93
xor eax, eax
jmp 0x646ba9
lea eax, [ebp - 0x11c]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x646ba0
sub eax, edx
push eax
lea eax, [ebp - 0x11c]
mov ecx, edi
push eax
call fcn.00418620
mov esi, dword [esi]
inc ebx
test esi, esi
jne 0x646b25
mov esi, dword [ebp - 0x10]
pop ebx
push esi
call fcn.0066d775
mov ecx, dword [ebp - 0xc]
add esp, 4
mov eax, edi
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push str.failed_to_call_GetAdaptersInfo_n
call fcn.00654020
add esp, 4
jmp 0x646bc7
Function at 0x648de0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
lea eax, [ebp - 0x104]
push 0x103
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x648e84
cmp eax, 0x103
ja 0x648e84
lea eax, [ebp - 0x104]
push eax
call fcn.00653980
lea ecx, [ebp - 0x104]
add esp, 4
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x648e22
sub ecx, edx
push esi
push edi
cmp byte [ebp + ecx - 0x105], 0x2f
je 0x648e53
lea edi, [ebp - 0x104]
dec edi
mov edi, edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x648e40
mov ax, word [0x6e7b18]
mov word [edi], ax
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x104]
mov esi, dword [ebp + 8]
push str.wininit.ini
push eax
push 0x6ec3f4
push edi
push esi
call fcn.00673108
add esp, 0x14
mov byte [esi + edi - 1], 0
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x6498d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6b32b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x2c], 0xf
mov dword [edi + 0x28], 0
mov dword [ebp - 4], 0
mov byte [edi + 0x18], 0
mov dword [edi + 0x44], 0xf
mov dword [edi + 0x40], 0
mov byte [edi + 0x30], 0
mov dword [edi + 0x5c], 0xf
mov dword [edi + 0x58], 0
mov byte [edi + 0x48], 0
mov dword [edi + 0x74], 0xf
mov dword [edi + 0x70], 0
mov byte [edi + 0x60], 0
mov dword [edi + 0x78], 0
mov dword [edi + 0x7c], 0
mov dword [edi + 0x80], 0
mov dword [edi + 0xa0], 0xf
mov dword [edi + 0x9c], 0
mov byte [edi + 0x8c], 0
mov byte [ebp - 4], 6
call fcn.0051eed0
push 6
push 0x73dbe0
lea ecx, [edi + 0x30]
mov dword [edi], eax
mov byte [edi + 4], 0
mov dword [edi + 0x14], 0
call fcn.00419c50
mov ecx, dword [ebp - 0xc]
mov eax, edi
mov dword [edi + 0x84], 0
mov dword [edi + 0x88], 0
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret