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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x10], 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
jne 0x40198b
cmp dword [ebp - 8], 0x3e5
je 0x40198b
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx + 0x15]
test edx, edx
je 0x401980
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x6f
mov ecx, dword [ebp - 0x30]
call fcn.00401d00
mov dword [ebp - 0x28], 0xffffffff
jmp 0x4019fc
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x102
jne 0x4019b0
mov dword [ebp - 0x28], 0
jmp 0x4019fc
push 1
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4019fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x30]
movzx ecx, byte [eax + 0x15]
test ecx, ecx
je 0x4019f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x6f
mov ecx, dword [ebp - 0x30]
call fcn.00401d00
mov dword [ebp - 0x28], 0xffffffff
cmp dword [ebp - 0x10], 0
je 0x401a0c
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x28], 0
ja 0x401a1f
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x30]
mov eax, dword [edx + 8]
call eax
mov eax, dword [ebp - 0x28]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x401a30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 4], 0
jne 0x401ace
cmp dword [ebp - 0x10], 0x3e5
je 0x401ace
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + 0x15]
test edx, edx
je 0x401ac0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x70
mov ecx, dword [ebp - 0x2c]
call fcn.00401d00
mov dword [ebp - 0x14], 0xffffffff
jmp 0x401b4d
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x102
jne 0x401b0a
mov edx, dword [ebp - 0x2c]
movzx eax, byte [edx + 0x15]
test eax, eax
je 0x401aff
push 0
push 0x71
mov ecx, dword [ebp - 0x2c]
call fcn.00401d00
mov dword [ebp - 0x14], 0
jmp 0x401b4d
push 0
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401b4d
mov edx, dword [ebp - 0x2c]
movzx eax, byte [edx + 0x15]
test eax, eax
je 0x401b46
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x70
mov ecx, dword [ebp - 0x2c]
call fcn.00401d00
mov dword [ebp - 0x14], 0xffffffff
cmp dword [ebp - 0xc], 0
je 0x401b5d
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], 0
ja 0x401b70
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [eax + 8]
call edx
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40dcb0
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x58
push 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.0059e3c0
add esp, 0xc
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [ecx + 0xc], edx
push 0
push 0
push 0
push 0
push str.gSOAP
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0
jne 0x40dd03
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x16138], eax
xor eax, eax
jmp 0x40de00
push 4
mov edx, dword [ebp + 8]
push edx
push 0x2d
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40dd4b
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 8]
mov dword [edx + 0x16138], eax
xor eax, eax
jmp 0x40de00
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x34]
push ecx
push 3
push 0x5ee6f0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0040f070
add esp, 0x14
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x2c]
push edx
push 6
push str.receive
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040f070
add esp, 0x14
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x30]
push eax
push 5
push str.send
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040f070
add esp, 0x14
push 0
push 0xffffffffffffffff
push 0x40ef20
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
mov edx, dword [ebp + 8]
mov dword [edx + 0x2ff8], 0x40de80
mov eax, dword [ebp + 8]
mov dword [eax + 0x2fd0], 0x40e180
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x3004], 0x40e320
mov edx, dword [ebp + 8]
mov dword [edx + 0x3008], 0x40edf0
mov eax, dword [ebp + 8]
mov dword [eax + 0x3000], 0x40eed0
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x45de70
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x66e8b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x1613c], 1
cmp dword [0x672f18], 0
je 0x45de9f
xor eax, eax
jmp 0x45dec5
lea ecx, [ebp - 0x198]
push ecx
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x45deb9
or eax, 0xffffffff
jmp 0x45dec5
mov dword [0x672f18], 1
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059e318
mov esp, ebp
pop ebp
ret
Function at 0x46f260
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 0x10], 0
jne 0x46f291
mov eax, dword [ebp + 0x14]
add eax, 2
cdq
mov ecx, 3
idiv ecx
lea edx, [eax*4 + 1]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00460250
add esp, 8
mov dword [ebp + 0x10], eax
cmp dword [ebp + 0x10], 0
jne 0x46f2ab
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x16138], 0x10
xor eax, eax
jmp 0x46f422
mov edx, dword [ebp + 0x10]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x10]
mov byte [eax], 0
cmp dword [ebp + 0xc], 0
jne 0x46f2c5
mov eax, dword [ebp - 4]
jmp 0x46f422
jmp 0x46f2d9
mov ecx, dword [ebp + 0x14]
sub ecx, 3
mov dword [ebp + 0x14], ecx
mov edx, dword [ebp + 0xc]
add edx, 3
mov dword [ebp + 0xc], edx
cmp dword [ebp + 0x14], 2
jle 0x46f351
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
shl edx, 8
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 1]
or edx, ecx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 0xc]
shl edx, 8
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 2]
or edx, ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], 4
jmp 0x46f31e
mov edx, dword [ebp - 0xc]
shr edx, 6
mov dword [ebp - 0xc], edx
cmp dword [ebp - 8], 0
jle 0x46f343
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
and ecx, 0x3f
mov edx, dword [ebp + 0x10]
add edx, dword [ebp - 8]
mov al, byte [ecx + 0x5f42b0]
mov byte [edx], al
jmp 0x46f315
mov ecx, dword [ebp + 0x10]
add ecx, 4
mov dword [ebp + 0x10], ecx
jmp 0x46f2c7
mov edx, dword [ebp + 0x10]
mov byte [edx], 0
cmp dword [ebp + 0x14], 0
jle 0x46f41f
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
jmp 0x46f37a
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0x14]
jge 0x46f39e
mov edx, dword [ebp - 0xc]
shl edx, 8
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
or edx, ecx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
jmp 0x46f371
jmp 0x46f3a9
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 3
jge 0x46f3ba
mov ecx, dword [ebp - 0xc]
shl ecx, 8
mov dword [ebp - 0xc], ecx
jmp 0x46f3a0
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
jmp 0x46f3ce
mov eax, dword [ebp - 0xc]
shr eax, 6
mov dword [ebp - 0xc], eax
cmp dword [ebp - 8], 0
jle 0x46f3f3
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0xc]
and edx, 0x3f
mov eax, dword [ebp + 0x10]
add eax, dword [ebp - 8]
mov cl, byte [edx + 0x5f42b0]
mov byte [eax], cl
jmp 0x46f3c5
mov dword [ebp - 8], 3
jmp 0x46f405
mov edx, dword [ebp - 8]
sub edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x14]
jle 0x46f418
mov ecx, dword [ebp + 0x10]
add ecx, dword [ebp - 8]
mov byte [ecx], 0x3d
jmp 0x46f3fc
mov edx, dword [ebp + 0x10]
mov byte [edx + 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x476270
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dc788
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x66e8b0]
xor eax, ebp
mov dword [ebp - 0x18], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x68], ecx
mov eax, dword [ebp - 0x68]
cmp dword [eax + 0x3c], 0
je 0x4762b0
mov ecx, dword [ebp - 0x68]
movzx edx, byte [ecx + 0x41]
test edx, edx
jne 0x4762bc
mov al, 1
jmp 0x47645f
mov dword [ebp - 0x10], 8
call fcn.0040feb0
push eax
mov eax, dword [ebp - 0x68]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x68]
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 0x3c], eax
call fcn.0040feb0
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.0040fe90
add esp, 8
movzx eax, al
test eax, eax
je 0x4762ff
xor al, al
jmp 0x47645f
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.00472980
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x48]
push edx
lea ecx, [ebp - 0x34]
call fcn.00474100
mov ecx, eax
call fcn.00474130
mov esi, eax
lea ecx, [ebp - 0x34]
call fcn.004109a0
add esi, eax
push esi
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x34]
call fcn.00474100
mov ecx, eax
call fcn.00474130
push eax
mov ecx, dword [ebp - 0x68]
add ecx, 0x44
push ecx
mov edx, dword [ebp - 0x68]
mov ecx, dword [edx + 0x3c]
call fcn.004778e0
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x47637a
cmp dword [ebp - 0x6c], 1
je 0x476381
cmp dword [ebp - 0x6c], 3
je 0x47641b
jmp 0x476433
mov eax, dword [ebp - 0x68]
mov byte [eax + 0x41], 0
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x34]
call fcn.00474100
mov ecx, eax
call fcn.00474130
mov edx, dword [ebp - 0x14]
sub edx, eax
mov dword [ebp - 0x38], edx
je 0x4763e4
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 1
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x34]
call fcn.00474100
mov ecx, eax
call fcn.00474130
push eax
call fcn.005a6403
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x4763e4
mov byte [ebp - 0x61], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00409d00
mov al, byte [ebp - 0x61]
jmp 0x47645f
mov ecx, dword [ebp - 0x68]
movzx edx, byte [ecx + 0x41]
test edx, edx
jne 0x476407
mov byte [ebp - 0x62], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00409d00
mov al, byte [ebp - 0x62]
jmp 0x47645f
cmp dword [ebp - 0x38], 0
jne 0x476419
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.00474c60
jmp 0x47644b
mov byte [ebp - 0x63], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00409d00
mov al, byte [ebp - 0x63]
jmp 0x47645f
mov byte [ebp - 0x64], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00409d00
mov al, byte [ebp - 0x64]
jmp 0x47645f
jmp 0x476312
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0059e318
mov esp, ebp
pop ebp
ret
Function at 0x478f50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dc97a
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x66e8b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x140], ecx
mov dword [ebp - 0x13c], 0
mov al, byte [0x5f747b]
mov byte [ebp - 0x11c], al
push 0x103
push 0
lea ecx, [ebp - 0x11b]
push ecx
call fcn.0059e3c0
add esp, 0xc
lea edx, [ebp - 0x11c]
push edx
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x138]
call fcn.00409ec0
mov dword [ebp - 4], 1
push 0x5f747c
lea ecx, [ebp - 0x138]
call fcn.00472a00
lea ecx, [ebp - 0x138]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00409cc0
mov edx, dword [ebp - 0x13c]
or edx, 1
mov dword [ebp - 0x13c], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x138]
call fcn.00409d00
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0059e318
mov esp, ebp
pop ebp
ret 4

Function at 0x479040
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dc9cc
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x66e8b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x140], ecx
mov dword [ebp - 0x13c], 0
mov al, byte [0x5f747e]
mov byte [ebp - 0x11c], al
push 0x103
push 0
lea ecx, [ebp - 0x11b]
push ecx
call fcn.0059e3c0
add esp, 0xc
lea edx, [ebp - 0x11c]
push edx
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x138]
call fcn.00409ec0
mov dword [ebp - 4], 1
push 0x5f7480
lea ecx, [ebp - 0x138]
call fcn.00472a00
lea ecx, [ebp - 0x138]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00409cc0
mov edx, dword [ebp - 0x13c]
or edx, 1
mov dword [ebp - 0x13c], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x138]
call fcn.00409d00
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0059e318
mov esp, ebp
pop ebp
ret 4
Function at 0x479bb0
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 0xc], 0
je 0x479bc4
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
jne 0x479bd1
mov ecx, dword [ebp + 0x14]
mov dword [ecx], 0
mov al, 1
jmp 0x479c3e
mov edx, dword [ebp + 0xc]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov dword [ebp - 0xc], ecx
movzx edx, byte [ebp + 8]
test edx, edx
je 0x479c07
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0
push str.DONT_REMOVE
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.CRYPT32.dll_CryptProtectData]
mov dword [ebp - 4], eax
jmp 0x479c22
lea edx, [ebp - 0x14]
push edx
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x479c2c
xor al, al
jmp 0x479c3e
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x10]
mov dword [ecx], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x47f1f0
Capabilities:
Monitor local ipv4 address changes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov byte [ebp - 1], 1
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0xcc], 0
jne 0x47f257
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0xc8], eax
mov edx, dword [ebp - 0xc]
add edx, 0xb8
push edx
mov eax, dword [ebp - 0xc]
add eax, 0xcc
push eax
call sub.IPHLPAPI.DLL_NotifyAddrChange
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x47f257
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x47f257
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0xcc], 0
mov byte [ebp - 1], 0
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret

Function at 0x47fa70
Capabilities:
Monitor local ipv4 address changes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc8]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x47facf
mov edx, dword [ebp - 4]
mov byte [edx + 0xd0], 1
mov eax, dword [ebp - 4]
add eax, 0xb8
push eax
mov ecx, dword [ebp - 4]
add ecx, 0xcc
push ecx
call sub.IPHLPAPI.DLL_NotifyAddrChange
test eax, eax
je 0x47facd
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x47facd
mov edx, dword [ebp - 4]
mov dword [edx + 0xcc], 0
jmp 0x47fad9
mov eax, dword [ebp - 4]
mov byte [eax + 0xd0], 0
mov ecx, dword [ebp - 4]
mov al, byte [ecx + 0xd0]
mov esp, ebp
pop ebp
ret
Function at 0x480410
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 8], 2
jne 0x480453
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WSOCK32.dll_send]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x48044d
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WSOCK32.dll_closesocket]
xor al, al
jmp 0x480455
mov al, 1
jmp 0x480455
xor al, al
mov esp, ebp
pop ebp
ret 0xc

Function at 0x480460
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 8], 2
jne 0x4804e8
mov ecx, dword [ebp + 0x14]
mov dword [ecx], 0
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
cmp eax, dword [ebp + 0x10]
jge 0x4804e6
push 0
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
sub edx, dword [ecx]
push edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WSOCK32.dll_recv]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4804c3
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WSOCK32.dll_closesocket]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], 0xffffffff
xor al, al
jmp 0x4804f7
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
add eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
cmp dword [ebp - 4], 0
jne 0x4804e4
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WSOCK32.dll_closesocket]
xor al, al
jmp 0x4804f7
jmp 0x48047b
jmp 0x4804f5
mov eax, dword [ebp + 0x14]
mov dword [eax], 0xffffffff
xor al, al
jmp 0x4804f7
mov al, 1
mov esp, ebp
pop ebp
ret 0x10
Function at 0x480550
Capabilities:
Create tcp socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x66e8b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x3c], ecx
mov byte [ebp - 1], 1
mov eax, dword [ebp - 0x3c]
cmp dword [eax + 8], 0
jne 0x480579
mov byte [ebp - 1], 0
jmp 0x480701
mov ecx, dword [ebp - 0x3c]
cmp dword [ecx + 8], 2
jne 0x48058b
mov byte [ebp - 1], 1
jmp 0x480701
mov edx, dword [ebp - 0x3c]
cmp dword [edx + 8], 1
jne 0x480701
push 6
push 1
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov ecx, dword [ebp - 0x3c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x3c]
cmp dword [edx + 4], 0xffffffff
jne 0x4805bc
mov byte [ebp - 1], 0
jmp 0x480701
mov dword [ebp - 8], 1
push 4
lea eax, [ebp - 8]
push eax
push 0xfffffffffffffffb
push 0xffff
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.WSOCK32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x4805f8
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.WSOCK32.dll_closesocket]
mov byte [ebp - 1], 0
jmp 0x480701
xor edx, edx
mov word [ebp - 0x38], dx
xor eax, eax
mov word [ebp - 0x36], ax
push 4
lea ecx, [ebp - 0x38]
push ecx
push 0x80
push 0xffff
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.WSOCK32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x48063c
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.WSOCK32.dll_closesocket]
mov byte [ebp - 1], 0
jmp 0x480701
mov eax, 2
mov word [ebp - 0x34], ax
mov dword [ebp - 0x30], 0
mov ecx, dword [ebp - 0x3c]
movzx edx, word [ecx]
push edx
call dword [sym.imp.WSOCK32.dll_htons]
mov word [ebp - 0x32], ax
push 8
push 0
lea eax, [ebp - 0x2c]
push eax
call fcn.0059e3c0
add esp, 0xc
push 0x10
lea ecx, [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.WSOCK32.dll_bind]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x48069c
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.WSOCK32.dll_closesocket]
mov byte [ebp - 1], 0
jmp 0x480701
push accept
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.WSOCK32.dll_listen]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x4806ca
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.WSOCK32.dll_closesocket]
mov byte [ebp - 1], 0
jmp 0x480701
mov dword [ebp - 0x24], 0x10
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.WSOCK32.dll_getsockname]
movzx edx, word [ebp - 0x1e]
push edx
call dword [sym.imp.WSOCK32.dll_ntohs]
movzx eax, ax
mov ecx, dword [ebp - 0x3c]
mov dword [ecx], eax
xor edx, edx
jne 0x480598
movzx eax, byte [ebp - 1]
test eax, eax
je 0x480713
mov ecx, dword [ebp - 0x3c]
mov dword [ecx + 8], 2
mov al, byte [ebp - 1]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0059e318
mov esp, ebp
pop ebp
ret