joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402160
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x40216f
xor eax, eax
pop esi
ret 0xc
mov eax, dword [0x66a4a0]
test eax, eax
je 0x40217d
call fcn.00402010
mov edx, dword [esp + 0x10]
cmp edx, 8
mov eax, dword [esp + 8]
not eax
jb 0x402271
push ebx
push edi
mov edi, edx
shr edi, 3
xor ecx, ecx
mov cl, byte [esi]
mov ebx, eax
shr ebx, 8
sub edx, 8
xor ecx, eax
and ecx, 0xff
mov eax, dword [ecx*4 + 0x677ba0]
xor eax, ebx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x677ba0]
shr eax, 8
xor ecx, eax
xor eax, eax
mov al, byte [esi + 1]
inc esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x677ba0]
shr ecx, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x677ba0]
shr eax, 8
xor ecx, eax
xor eax, eax
mov al, byte [esi + 1]
inc esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x677ba0]
shr ecx, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x677ba0]
shr eax, 8
xor ecx, eax
xor eax, eax
mov al, byte [esi + 1]
inc esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x677ba0]
shr ecx, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x677ba0]
shr eax, 8
xor eax, ecx
inc esi
dec edi
jne 0x402197
pop edi
pop ebx
test edx, edx
je 0x402291
xor ecx, ecx
mov cl, byte [esi]
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x677ba0]
shr eax, 8
xor eax, ecx
inc esi
dec edx
jne 0x402275
not eax
pop esi
ret 0xc
Function at 0x40a480
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40a495
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40a4d6
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40a4d2
nop word [eax + eax]
cmp esi, edx
jae 0x40a4d6
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x40a4c0
cmp esi, edx
jb 0x40a4db
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
Function at 0x40b550
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x66c488]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov dword [ebp - 0x14], ebx
mov edi, dword [esi]
mov edx, edi
mov eax, dword [esi + 4]
shl eax, 3
shr edx, 0x1d
or edx, eax
lea ecx, [edi*8]
mov eax, ecx
mov byte [ebp - 0xc], cl
shr eax, 8
and edi, 0x3f
mov byte [ebp - 0xb], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp - 0xa], al
mov eax, edx
shr eax, 8
mov byte [ebp - 7], al
mov eax, edx
shr ecx, 0x18
shr eax, 0x10
mov byte [ebp - 9], cl
mov ecx, 0x78
mov byte [ebp - 6], al
sub ecx, edi
mov eax, 0x38
mov byte [ebp - 8], dl
shr edx, 0x18
sub eax, edi
cmp edi, 0x38
mov byte [ebp - 5], dl
cmovb ecx, eax
test ecx, ecx
jle 0x40b5dd
push ecx
mov edx, 0x63e7f0
mov ecx, esi
call fcn.0040b4a0
add esp, 4
mov eax, dword [esi]
lea edi, [ebp - 0xc]
mov edx, eax
mov dword [ebp - 0x10], 0x40
mov ecx, 8
and edx, 0x3f
sub dword [ebp - 0x10], edx
add eax, ecx
mov dword [esi], eax
cmp eax, ecx
jae 0x40b601
inc dword [esi + 4]
test edx, edx
je 0x40b671
mov eax, dword [ebp - 0x10]
cmp eax, 8
jg 0x40b671
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [esi + 0x18]
add eax, edx
push eax
call fcn.005b3c60
add esp, 0xc
lea edx, [esi + 0x18]
mov ecx, esi
call fcn.0040ac80
mov ecx, 8
lea edi, [ebp - 0xc]
sub ecx, dword [ebp - 0x10]
xor edx, edx
add edi, dword [ebp - 0x10]
mov dword [ebp - 0x18], edx
cmp ecx, 0x40
jl 0x40b66d
mov ebx, ecx
shr ebx, 6
mov eax, ebx
neg eax
shl eax, 6
add ecx, eax
mov dword [ebp - 0x10], ecx
mov edx, edi
mov ecx, esi
call fcn.0040ac80
add edi, 0x40
sub ebx, 1
jne 0x40b653
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
test ecx, ecx
jle 0x40b681
push ecx
lea eax, [esi + 0x18]
add eax, edx
push edi
push eax
call fcn.005b3c60
add esp, 0xc
movzx eax, byte [esi + 8]
mov byte [ebx], al
movzx eax, byte [esi + 9]
mov byte [ebx + 1], al
movzx eax, byte [esi + 0xa]
mov byte [ebx + 2], al
movzx eax, byte [esi + 0xb]
mov byte [ebx + 3], al
movzx eax, byte [esi + 0xc]
mov byte [ebx + 4], al
movzx eax, byte [esi + 0xd]
mov byte [ebx + 5], al
movzx eax, byte [esi + 0xe]
mov byte [ebx + 6], al
movzx eax, byte [esi + 0xf]
mov ecx, dword [ebp - 4]
mov byte [ebx + 7], al
xor ecx, ebp
movzx eax, byte [esi + 0x10]
mov byte [ebx + 8], al
movzx eax, byte [esi + 0x11]
mov byte [ebx + 9], al
movzx eax, byte [esi + 0x12]
mov byte [ebx + 0xa], al
movzx eax, byte [esi + 0x13]
mov byte [ebx + 0xb], al
movzx eax, byte [esi + 0x14]
mov byte [ebx + 0xc], al
movzx eax, byte [esi + 0x15]
mov byte [ebx + 0xd], al
movzx eax, byte [esi + 0x16]
mov byte [ebx + 0xe], al
movzx eax, byte [esi + 0x17]
pop edi
pop esi
mov byte [ebx + 0xf], al
pop ebx
call fcn.005b07f1
mov esp, ebp
pop ebp
ret
Function at 0x40b710
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1020c
call fcn.005b0c70
mov eax, dword [0x66c488]
xor eax, esp
mov dword [esp + 0x10208], eax
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0xc], eax
lea eax, [esp + 0xe8]
push 0
push eax
push ebx
movlpd qword [esp + 0xf4], xmm0
movlpd qword [esp + 0xfc], xmm0
movlpd qword [esp + 0x104], xmm0
call fcn.0047dabf
test eax, eax
jne 0x40b78d
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10208]
xor ecx, esp
call fcn.005b07f1
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x40b79a
mov eax, dword [esp + 0x100]
mov dword [edi], eax
test esi, esi
je 0x40b7a4
mov dword [esi], 0
push 0x63e7e8
push ebx
call fcn.005c546e
mov edi, eax
add esp, 8
test edi, edi
je 0x40b773
push edi
push 0xffff
lea eax, [esp + 0x218]
mov dword [esp + 0x18], 0
push 1
push eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0x67452301
mov dword [esp + 0x2c], 0xefcdab89
mov dword [esp + 0x30], 0x98badcfe
mov dword [esp + 0x34], 0x10325476
call fcn.005c5698
add esp, 0x10
test eax, eax
je 0x40b83e
test esi, esi
je 0x40b80a
add dword [esi], eax
test eax, eax
jle 0x40b822
push eax
lea edx, [esp + 0x214]
lea ecx, [esp + 0x14]
call fcn.0040b4a0
add esp, 4
push edi
push 0xffff
lea eax, [esp + 0x218]
push 1
push eax
call fcn.005c5698
add esp, 0x10
test eax, eax
jne 0x40b804
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
call fcn.0040b550
push edi
call fcn.005c5773
add esp, 4
push edi
test eax, eax
je 0x40b87b
call fcn.005c30de
add esp, 4
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10208]
xor ecx, esp
call fcn.005b07f1
mov esp, ebp
pop ebp
ret
call fcn.005c30de
mov ecx, dword [esp + 0x10218]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005b07f1
mov esp, ebp
pop ebp
ret
Function at 0x41a610
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.0047ea44
Function at 0x41c870
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x66c488]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, ecx
test edi, edi
jne 0x41c8a4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b07f1
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
push 6
push 1
push 2
mov dword [esi + 8], eax
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x41c88f
xorps xmm0, xmm0
mov dword [esi + 0x40c], 0
mov eax, 2
movups xmmword [ebp - 0x14], xmm0
push ebx
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push 0x10
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x41c88f
mov ecx, dword [ebp - 4]
mov dword [esi + 0x420], edi
xor ecx, ebp
pop edi
mov dword [esi + 0x418], eax
mov dword [esi + 0x414], eax
mov eax, 1
mov dword [esi + 0x410], 1
pop esi
pop ebx
call fcn.005b07f1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41c9a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e2d3b
mov eax, dword fs:[0]
push eax
mov eax, 0x2024
call fcn.005b0c70
mov eax, dword [0x66c488]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
push 0x2000
lea eax, [esi + 0xc]
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x41cb48
mov dword [esi + 0x40c], eax
cmp eax, 0x2000
jge 0x41cb48
lea ecx, [ebp - 0x2030]
xor ebx, ebx
xor edi, edi
call fcn.0041c790
mov dword [ebp - 4], edi
cmp dword [esi + 0x40c], edi
jle 0x41cb3d
push 0x2000
lea eax, [ebp - 0x2020]
push 0
push eax
call fcn.005b41e0
lea eax, [ebp - 0x2020]
add esp, 0xc
mov dword [ebp - 0x2030], eax
mov eax, 0xfaaf
mov word [ebp - 0x2020], ax
lea eax, [ebp - 0x201e]
mov dword [ebp - 0x202c], eax
lea eax, [ebp - 0x201d]
mov dword [ebp - 0x2028], eax
lea eax, [ebp - 0x201b]
mov dword [ebp - 0x2024], eax
lea eax, [ebp - 0x2019]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], eax
mov ax, word [esi + 0x40c]
sub ax, di
movzx edi, ax
mov eax, 0x2000
cmp di, ax
ja 0x41cb18
push eax
lea eax, [ebp - 0x2020]
push 0
push eax
call fcn.005b41e0
lea eax, [ebp - 0x2020]
mov dword [ebp - 0x2030], eax
mov eax, 0xfaaf
mov word [ebp - 0x2020], ax
lea eax, [ebp - 0x201e]
mov dword [ebp - 0x202c], eax
lea eax, [ebp - 0x201d]
mov dword [ebp - 0x2028], eax
lea eax, [ebp - 0x201b]
mov dword [ebp - 0x2024], eax
lea eax, [ebp - 0x2019]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], eax
lea eax, [esi + 0xc]
add eax, ebx
push edi
push eax
lea eax, [ebp - 0x2020]
push eax
call fcn.005b3c60
add esp, 0x18
mov eax, dword [esi]
lea ecx, [ebp - 0x2030]
push ecx
mov ecx, esi
call dword [eax + 0xc]
mov edi, eax
sub dword [esi + 0x40c], edi
add ebx, edi
cmp dword [esi + 0x40c], 0
jg 0x41ca20
lea ecx, [ebp - 0x2030]
call fcn.00416730
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005b07f1
mov esp, ebp
pop ebp
ret
Function at 0x4219e0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e1a90
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x66c488]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push fcn.00410030
push 5
push 0x28
lea eax, [esi + 0x30]
push eax
call fcn.005b0f1c
mov eax, dword [esi + 0x2c]
lea edi, [esi + 0x18]
cmp eax, 0x10
jb 0x421a2e
inc eax
mov ecx, edi
push eax
push dword [edi]
call fcn.0042ecd0
mov dword [edi + 0x14], 0xf
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], 0
jb 0x421a44
mov edi, dword [edi]
mov byte [edi], 0
mov eax, dword [esi + 0x14]
cmp eax, 0x10
jb 0x421a5a
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.0042ecd0
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x421a84
mov eax, dword [esi]
mov byte [eax], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov byte [esi], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x427930
Capabilities:
Copy file
Delete file

Disassembly:
push esi
push edi
push 0
push str.UserFileList.dat
push str.FileList.dat
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x4279bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [edi + 0x260]
mov esi, eax
call fcn.0042d340
push esi
push 0x8200000a
push dword [eax]
push str.launcher_error_:__s___0x_p____d
push 0x674ec4
call fcn.00414540
mov eax, dword [edi + 0x260]
add esp, 0x18
mov dword [edi + 0x268], eax
mov eax, dword [edi + 0x3c4]
mov dword [edi + 0x260], 0x10
mov dword [edi + 0x26c], 0x8200000a
mov dword [edi + 0x270], esi
test eax, eax
je 0x4279b7
push dword [edi + 0x3c8]
push 0x8200000a
call eax
add esp, 8
pop edi
xor eax, eax
pop esi
ret
push str.FileList.dat
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x427a3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [edi + 0x260]
mov esi, eax
call fcn.0042d340
push esi
push 0x8200000b
push dword [eax]
push str.launcher_error_:__s___0x_p____d
push 0x674ec4
call fcn.00414540
mov eax, dword [edi + 0x260]
add esp, 0x18
mov dword [edi + 0x268], eax
mov eax, dword [edi + 0x3c4]
mov dword [edi + 0x260], 0x10
mov dword [edi + 0x26c], 0x8200000b
mov dword [edi + 0x270], esi
test eax, eax
je 0x4279b7
push dword [edi + 0x3c8]
push 0x8200000b
call eax
add esp, 8
xor eax, eax
pop edi
pop esi
ret
push 0xc
mov ecx, edi
call fcn.0042d1d0
pop edi
mov eax, 1
pop esi
ret
Function at 0x427ac0
Capabilities:
Check os version
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x66c488]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x4c]
push edi
push eax
push 0xa
mov edi, ecx
mov dword [ebp - 0x54], 1
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x58], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x427b49
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Get_Process_Token_error_:__d
push 0x674ec4
call fcn.00414540
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x4c]
add esp, 0xc
push eax
call esi
lea eax, [ebp - 0x50]
push eax
call esi
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b07f1
mov esp, ebp
pop ebp
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x427c43
push dword [esi + 8]
push dword [esi + 4]
push str.My_Pc_OS_:v_d._d
push 0x674ec4
call fcn.00414540
add esp, 0x10
cmp dword [esi + 4], 6
jb 0x427c3c
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x58]
push eax
push 4
lea eax, [ebp - 0x5c]
push eax
push 0x12
push dword [ebp - 0x4c]
call esi
test eax, eax
jne 0x427bc3
mov eax, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x50]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x427ba8
push eax
call edi
test esi, esi
je 0x427baf
push esi
call edi
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b07f1
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x58]
mov dword [ebp - 0x58], 0x44
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0x1a
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
je 0x427c10
cmp dword [ebp - 0x5c], 3
jne 0x427c31
lea eax, [ebp - 0x58]
push eax
push 4
lea eax, [ebp - 0x50]
push eax
push 0x13
push dword [ebp - 0x4c]
call esi
test eax, eax
je 0x427c10
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x427c3c
push dword [ebp - 0x50]
mov ecx, edi
push dword [ebp - 0x4c]
call fcn.00427fe0
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b07f1
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
mov dword [ebp - 0x54], eax
jmp 0x427c43
mov dword [ebp - 0x54], 1
mov eax, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x50]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x427c56
push eax
call edi
test esi, esi
je 0x427c5d
push esi
call edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x54]
xor ecx, ebp
pop edi
pop esi
call fcn.005b07f1
mov esp, ebp
pop ebp
ret 4
Function at 0x428600
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x66c488]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
push 0xffffffffffffffff
mov dword [edi + 0x3d4], 0
call fcn.0046a3b0
mov ecx, dword [edi + 0x120]
test ecx, ecx
je 0x428642
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi + 0x120], 0
mov esi, dword [edi + 0x220]
test esi, esi
je 0x428668
mov ecx, esi
call fcn.0040ca70
push 0x28
push esi
call fcn.005b0802
add esp, 8
mov dword [edi + 0x220], 0
mov esi, dword [edi + 0x224]
test esi, esi
je 0x42868e
mov ecx, esi
call fcn.0040ca70
push 0x28
push esi
call fcn.005b0802
add esp, 8
mov dword [edi + 0x224], 0
mov ecx, dword [edi + 0x120]
test ecx, ecx
je 0x4286a8
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi + 0x120], 0
mov ecx, dword [edi + 0x11c]
call fcn.0046b670
mov ecx, dword [edi + 0xc]
mov dword [edi + 0x11c], 0
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [edi + 0x228]
test ecx, ecx
je 0x4286d4
call fcn.0040c860
mov esi, dword [edi + 0x228]
test esi, esi
je 0x4286fa
mov ecx, esi
call fcn.00426d00
push 0x2c
push esi
call fcn.005b0802
add esp, 8
mov dword [edi + 0x228], 0
lea eax, [edi + 0x39c]
push eax
call fcn.004259f0
mov ecx, dword [edi + 0xc]
add esp, 4
test ecx, ecx
je 0x42871d
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi + 0xc], 0
push 0xffffffffffffffff
push 0
lea ecx, [edi + 0x36c]
call fcn.004872cd
push 0xffffffffffffffff
push 0
lea ecx, [edi + 0x380]
call fcn.004872cd
mov eax, dword [edi + 0x22c]
mov ecx, dword [eax]
mov dword [eax], eax
mov eax, dword [edi + 0x22c]
mov dword [eax + 4], eax
mov dword [edi + 0x230], 0
cmp ecx, dword [edi + 0x22c]
je 0x428775
mov esi, dword [ecx]
push ecx
call fcn.0046c5f0
add esp, 4
mov ecx, esi
cmp esi, dword [edi + 0x22c]
jne 0x428760
mov eax, dword [edi + 0x238]
mov ecx, dword [eax]
mov dword [eax], eax
mov eax, dword [edi + 0x238]
mov dword [eax + 4], eax
mov dword [edi + 0x23c], 0
cmp ecx, dword [edi + 0x238]
je 0x4287b5
nop word [eax + eax]
mov esi, dword [ecx]
push ecx
call fcn.0046c5f0
add esp, 4
mov ecx, esi
cmp esi, dword [edi + 0x238]
jne 0x4287a0
push 0
lea eax, [ebp - 0x12c]
xorps xmm0, xmm0
push eax
push str.FileList.dat
movlpd qword [ebp - 0x12c], xmm0
movlpd qword [ebp - 0x124], xmm0
movlpd qword [ebp - 0x11c], xmm0
call fcn.0047dabf
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x4287f4
push str.FileList.dat
call esi
cmp dword [edi + 0x3d8], 1
jne 0x428804
push str.UserFileList.dat
call esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005b07f1
mov esp, ebp
pop ebp
ret
Function at 0x428820
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x66c488]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov ecx, dword [esi + 0x120]
call fcn.00434700
mov ecx, dword [esi + 0x120]
cmp dword [ecx + 0x10], 0
je 0x4288ef
mov eax, dword [esi + 0x260]
xorps xmm0, xmm0
movq qword [ebp - 0x10], xmm0
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x26c]
mov dword [ebp - 8], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push 0xc
push eax
mov dword [ebp - 0x10], 0x6040008
call fcn.004347b0
cmp eax, 0xc
je 0x4288ab
push dword [esi + 0x260]
call fcn.0042d340
push dword [esi + 0x26c]
push dword [eax]
push str.failed_error_msg_send__s_0x_p
push 0x674ec4
call fcn.00414540
add esp, 0x14
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ebx, eax
call edi
sub eax, ebx
cmp eax, 0xbb8
jae 0x4288d9
mov ecx, dword [esi + 0x120]
cmp dword [ecx + 0x14], 0
jne 0x4288d9
call edi
sub eax, ebx
cmp eax, 0xbb8
jb 0x4288c2
mov ecx, dword [esi + 0x120]
mov eax, dword [ecx]
call dword [eax + 0xc]
push 0
mov ecx, esi
call fcn.0042d1d0
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005b07f1
mov esp, ebp
pop ebp
ret
Function at 0x4342e0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x66c488]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
push 6
push 1
push 2
mov dword [esi + 0x1c], eax
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x18], eax
cmp eax, 0xffffffff
jne 0x434328
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b07f1
mov esp, ebp
pop ebp
ret 0x14
xorps xmm0, xmm0
mov dword [esi + 0x420], 0
mov eax, 2
mov dword [esi + 0x10], 0
movups xmmword [ebp - 0x14], xmm0
push edi
mov dword [esi + 0x14], 0
mov dword [esi + 0x43c], 0
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push 0x10
push eax
push dword [esi + 0x18]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x434314
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
mov dword [esi + 4], eax
xor ecx, ebp
mov eax, dword [ebp + 0x14]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0xc], eax
mov eax, 1
pop edi
pop esi
call fcn.005b07f1
mov esp, ebp
pop ebp
ret 0x14

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

Disassembly:
push ebx
push esi
mov esi, ecx
push 0
push 0x400
lea ebx, [esi + 0x20]
push ebx
push dword [esi + 0x18]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x43444e
mov dword [esi + 0x420], eax
cmp eax, 0x400
jge 0x43444e
push edi
xor edi, edi
test eax, eax
jle 0x43444d
mov edx, dword [esi]
lea eax, [ebx + edi]
push eax
mov ecx, esi
call dword [edx + 0x10]
sub dword [esi + 0x420], eax
add edi, eax
cmp dword [esi + 0x420], 0
jg 0x434431
pop edi
pop esi
pop ebx
ret

Function at 0x437790
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e4e98
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x66c488]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
call dword [eax + 0x24]
mov esi, eax
mov dword [ebp - 0x10], esi
push dword [ebp + 0x14]
mov eax, dword [edi]
mov ecx, edi
push dword [ebp + 0x10]
mov dword [ebp - 4], 0
push esi
call dword [eax + 0x28]
push dword [ebp + 0xc]
mov eax, dword [esi]
mov ecx, esi
push dword [ebp + 8]
call dword [eax + 0xc]
mov eax, dword [edi]
mov ecx, edi
push esi
mov eax, dword [eax + 0x30]
call eax
mov edx, dword [esi]
mov ecx, esi
push 1
mov bl, al
call dword [edx]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10