joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401970
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x94
mov eax, dword [0x53bd24]
xor eax, esp
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x98]
push ebx
push ebp
mov ebp, dword [esp + 0xa4]
xor ebx, ebx
push esi
push edi
cmp dword [ebp + 0x14], ebx
je 0x401aaa
call fcn.004028f0
push 0x534374
push eax
call fcn.004d0459
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x401aaa
push 0x40
lea eax, [esp + 0x48]
push ebx
push eax
mov byte [esp + 0xa0], bl
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
call fcn.004d1130
xor eax, eax
add esp, 0xc
lea edi, [esp + 0x2c]
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x2c], 0x67452301
mov dword [esp + 0x30], 0xefcdab89
mov dword [esp + 0x34], 0x98badcfe
mov dword [esp + 0x38], 0x10325476
call fcn.00404a40
mov ecx, edi
call fcn.00404ac0
mov ebx, edi
call fcn.00404c20
mov edi, eax
mov eax, ebp
call fcn.004028f0
push eax
lea ecx, [esp + 0x14]
call fcn.00403a40
mov eax, dword [esp + 0x18]
mov ebp, 0x10
add esp, 4
cmp dword [esp + 0x28], ebp
jae 0x401a5b
lea eax, [esp + 0x14]
push 0x20
push edi
push eax
call fcn.004d024a
add esp, 0xc
test eax, eax
sete bl
cmp dword [esp + 0x28], ebp
jb 0x401a7f
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004cf201
add esp, 4
push esi
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
call fcn.004cfc3f
add esp, 4
test edi, edi
je 0x401aaa
push edi
call fcn.004cf69f
add esp, 4
mov ecx, dword [esp + 0xa0]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
xor ecx, esp
call fcn.004cf1f2
add esp, 0x94
ret 8

Function at 0x401ad0
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ecx
cmp dword [esi + 0x14], 0
jne 0x401ade
mov eax, 2
pop ecx
ret
test ebx, ebx
je 0x401ae8
cmp dword [edi + 0x14], 0
je 0x401ad7
cmp dword [esi + 0x18], 8
jb 0x401af3
mov eax, dword [esi + 4]
jmp 0x401af6
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401b23
test al, 0x20
je 0x401b23
mov eax, ebx
sub eax, 1
jne 0x401b1c
push edi
push esi
call fcn.00401970
test al, al
je 0x401b1c
xor eax, eax
pop ecx
ret
mov eax, 3
pop ecx
ret
mov eax, esi
call fcn.004028f0
push 0x53437c
push eax
call fcn.004d0459
add esp, 8
test eax, eax
je 0x401b5a
push eax
call fcn.004cfc3f
add esp, 4
mov eax, esi
call fcn.004028f0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, 4
pop ecx
ret
mov eax, 6
pop ecx
ret
Function at 0x401b70
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x14
mov eax, dword [esi + 0x28]
push ebx
push ebp
push edi
xor edi, edi
or eax, dword [esi + 0x2c]
mov dword [esp + 0xc], edi
jne 0x401b91
mov dword [esp + 0xc], 2
jmp 0x401c87
cmp dword [esi + 0x5c], edi
jne 0x401ba3
mov dword [esp + 0xc], 2
jmp 0x401c87
mov eax, dword [esp + 0x24]
call fcn.004028f0
push edi
push 0x80
push 2
push edi
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401bd7
mov dword [esp + 0xc], 5
jmp 0x401c87
mov ecx, dword [esi + 0x2c]
mov eax, dword [esi + 0x28]
push edi
push edi
push ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push edi
lea ecx, [esp + 0x14]
push ecx
push 4
lea edx, [esp + 0x20]
push edx
push ebx
mov dword [esp + 0x28], 0xedac
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401c71
mov eax, dword [esi + 0x58]
mov edi, dword [esi + 0x44]
mov byte [esp + 0x24], 0
mov eax, dword [eax]
mov ebp, dword [esi + 0x58]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x44]
test edi, edi
je 0x401c2b
cmp edi, eax
je 0x401c30
call fcn.004cf68f
cmp dword [esp + 0x1c], ebp
je 0x401c79
push 0
lea ecx, [esp + 0x14]
push ecx
push 1
lea edx, [esp + 0x30]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401c71
test edi, edi
jne 0x401c6d
call fcn.004cf68f
xor eax, eax
mov ebp, dword [esp + 0x1c]
cmp ebp, dword [eax + 0x14]
jne 0x401c68
call fcn.004cf68f
mov eax, dword [ebp]
jmp 0x401c19
mov eax, dword [edi]
jmp 0x401c5a
mov dword [esp + 0xc], 6
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0xc], 0
je 0x401c97
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x70
mov eax, 0xb
je 0x401c9b
mov eax, dword [esp + 0xc]
pop edi
pop ebp
pop ebx
add esp, 0x14
ret 4
Function at 0x401cb0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x34
mov eax, dword [edi + 0x2c]
push ebx
mov ebx, dword [edi + 0x28]
mov ecx, ebx
or ecx, eax
push ebp
push esi
mov dword [esp + 0x14], 0
jne 0x401cd8
mov eax, 2
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 4
mov edx, dword [esp + 0x44]
cmp dword [edx + 0x14], 0
je 0x401cca
mov ecx, ebx
and ecx, 0xfffff
xor edx, edx
or ecx, edx
je 0x401cf5
lea ecx, [edx + 1]
jmp 0x401cf7
xor ecx, ecx
shrd ebx, eax, 0x14
add ebx, ecx
push 0x54415c
push ebx
shr eax, 0x14
call fcn.004cf478
add esp, 8
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x401d1e
lea esi, [eax + 8]
jmp 0x401ed6
push ebx
push 0
push eax
call fcn.004d1130
mov eax, ebx
cdq
mov esi, eax
add esp, 0xc
add esi, dword [edi + 0x28]
mov ebp, edx
adc ebp, dword [edi + 0x2c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x44]
add esi, 4
mov dword [esp + 0x2c], edx
adc ebp, 0
mov byte [esp + 0x13], 1
call fcn.004028f0
push 0x534374
push eax
call fcn.004d0459
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
je 0x401dfc
push 2
push 0
push 0
push eax
call fcn.004d0344
mov eax, dword [esp + 0x28]
push eax
call fcn.004d0087
add esp, 0x14
cmp esi, eax
mov esi, dword [esp + 0x18]
jne 0x401de8
cmp ebp, edx
jne 0x401de8
mov ecx, dword [edi + 0x2c]
mov edx, dword [edi + 0x28]
push 0
push ecx
push edx
push esi
call fcn.004d0344
push esi
push 4
lea eax, [esp + 0x38]
push 1
push eax
mov dword [esp + 0x40], 0
call fcn.004cf94a
add esp, 0x20
cmp dword [esp + 0x20], 0xedac
jne 0x401de8
mov ecx, dword [esp + 0x1c]
push esi
push ebx
push 1
push ecx
mov byte [esp + 0x23], 0
call fcn.004cf94a
add esp, 0x10
cmp eax, ebx
je 0x401de8
mov dword [esp + 0x14], 7
push esi
call fcn.004cfc3f
add esp, 4
cmp dword [esp + 0x14], 0
jne 0x401ece
mov eax, dword [esp + 0x28]
xor esi, esi
xor ebp, ebp
mov dword [esp + 0x24], esi
cmp dword [esp + 0x2c], esi
jb 0x401eb7
ja 0x401e1c
test eax, eax
jbe 0x401eb7
push 0
push 0x100000
push esi
push ebp
mov dword [esp + 0x40], ebp
call fcn.004d3200
mov ecx, 0x100000
mov ebx, eax
add eax, ecx
mov dword [esp + 0x3c], edx
adc edx, 0
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ecx
cmp edx, dword [edi + 0x2c]
jb 0x401e5b
ja 0x401e52
cmp eax, dword [edi + 0x28]
jbe 0x401e5b
mov ecx, dword [edi + 0x28]
sub ecx, ebx
mov dword [esp + 0x34], ecx
mov edx, dword [esp + 0x1c]
cmp byte [edx + ebp], 0
jne 0x401e8e
mov ebx, dword [edi + 0x58]
mov eax, dword [ebx + 4]
push eax
push ebx
lea esi, [esp + 0x38]
call fcn.00402f50
lea ecx, [edi + 0x44]
mov esi, eax
call fcn.00402fa0
mov dword [ebx + 4], esi
mov ecx, dword [esi + 4]
mov dword [ecx], esi
mov esi, dword [esp + 0x24]
jmp 0x401e97
mov eax, ecx
cdq
add dword [edi + 0x30], eax
adc dword [edi + 0x34], edx
add ebp, 1
adc esi, 0
mov dword [esp + 0x24], esi
cmp esi, dword [esp + 0x2c]
jb 0x401e1c
ja 0x401eb7
cmp ebp, dword [esp + 0x28]
jb 0x401e1c
cmp byte [esp + 0x13], 0
je 0x401ece
mov edx, dword [esp + 0x44]
push edx
mov esi, edi
call fcn.00401b70
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
test eax, eax
je 0x401ee3
push eax
call fcn.004cf69f
add esp, 4
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 4
Function at 0x401f90
Capabilities:
Create thread

Disassembly:
push ecx
mov eax, dword [ebx + 0x78]
sub eax, dword [ebx + 0x74]
push ebp
push esi
push edi
mov dword [esp + 0xc], 0
test eax, 0xfffffffc
jne 0x401fb0
mov esi, 2
jmp 0x401fda
mov eax, dword [esp + 0x14]
call fcn.004028f0
push 0x534384
push eax
call fcn.004d0459
add esp, 8
mov dword [ebx + 0x38], eax
test eax, eax
jne 0x401ffa
mov dword [esp + 0xc], 5
mov esi, dword [esp + 0xc]
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x401ff1
push eax
call fcn.004cfc3f
add esp, 4
mov dword [ebx + 0x38], 0
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret 4
mov esi, dword [ebx + 0x74]
cmp esi, dword [ebx + 0x78]
jbe 0x402007
call fcn.004cf68f
mov edi, dword [ebx + 0x68]
mov ebp, esi
lea esp, [esp]
mov esi, dword [ebx + 0x78]
cmp dword [ebx + 0x74], esi
jbe 0x40201d
call fcn.004cf68f
mov eax, dword [ebx + 0x68]
test edi, edi
je 0x402028
cmp edi, eax
je 0x40202d
call fcn.004cf68f
cmp ebp, esi
je 0x4020a4
test edi, edi
jne 0x40209c
call fcn.004cf68f
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x402046
call fcn.004cf68f
mov esi, dword [ebp]
mov cl, byte [esi + 0x10]
test cl, cl
jne 0x40207f
mov eax, dword [esi + 8]
lea edx, [esi + 0xc]
push edx
push 0
push esi
push 0x403ce0
mov byte [eax + 4], cl
push 0
mov byte [esi + 0x10], 1
push 0
mov dword [esi + 0x14], 0
call fcn.004d0571
mov dword [esi + 4], eax
mov al, byte [esi + 0x10]
add esp, 0x18
test edi, edi
jne 0x4020a0
call fcn.004cf68f
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x402094
call fcn.004cf68f
add ebp, 4
jmp 0x402010
mov eax, dword [edi]
jmp 0x40203c
mov eax, dword [edi]
jmp 0x40208a
mov edi, dword [ebx + 0x74]
cmp edi, dword [ebx + 0x78]
jbe 0x4020b1
call fcn.004cf68f
mov esi, dword [ebx + 0x68]
mov ebp, dword [ebx + 0x78]
cmp dword [ebx + 0x74], ebp
jbe 0x4020c1
call fcn.004cf68f
mov eax, dword [ebx + 0x68]
test esi, esi
je 0x4020cc
cmp esi, eax
je 0x4020d1
call fcn.004cf68f
cmp edi, ebp
je 0x401fd6
test esi, esi
jne 0x40214b
call fcn.004cf68f
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x4020ee
call fcn.004cf68f
mov eax, dword [edi]
cmp dword [eax + 4], 0
je 0x402109
mov cl, byte [eax + 0x10]
test cl, cl
je 0x402109
mov edx, dword [eax + 4]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [esp + 0xc], 0
jne 0x40212e
test esi, esi
jne 0x40214f
call fcn.004cf68f
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x402125
call fcn.004cf68f
mov eax, dword [edi]
mov ecx, dword [eax + 0x14]
mov dword [esp + 0xc], ecx
test esi, esi
jne 0x402153
call fcn.004cf68f
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x402143
call fcn.004cf68f
add edi, 4
jmp 0x4020b4
mov eax, dword [esi]
jmp 0x4020e4
mov eax, dword [esi]
jmp 0x40211b
mov eax, dword [esi]
jmp 0x402139
Function at 0x402160
Capabilities:
Clear file content
Move file

Disassembly:
push ecx
cmp dword [ebx + 0x14], 0
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov esi, eax
jne 0x40217c
mov eax, 2
pop edi
pop esi
pop ebp
pop ecx
ret 4
cmp dword [ebp + 0x14], 0
je 0x402170
mov eax, dword [esi + 0x28]
or eax, dword [esi + 0x2c]
jne 0x40218e
xor esi, esi
jmp 0x4021fb
mov eax, ebx
call fcn.004028f0
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4021c1
mov eax, 5
pop edi
pop esi
pop ebp
pop ecx
ret 4
mov eax, dword [esi + 0x28]
mov esi, dword [esi + 0x2c]
push 0
push 0
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x4021dd
lea esi, [eax + 6]
jmp 0x4021f0
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xfffffffa
add esi, 6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x40221c
mov eax, ebp
call fcn.004028f0
mov edi, eax
mov eax, ebx
call fcn.004028f0
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x40221c
mov esi, 6
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret 4
Function at 0x402230
Capabilities:
Access peb ldr_data
Create thread
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ee308
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x53bd24]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov eax, dword [0x53bd24]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov edi, ecx
push 0xffffffffffffffff
mov esi, edx
push 0
lea ecx, [edi + 8]
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], ebx
call fcn.00402ea0
push esi
lea esi, [esp + 0x28]
call fcn.00403770
add esp, 4
xor ecx, ecx
mov dword [esp + 0x50], ecx
mov eax, dword [edi + 0x80]
mov esi, dword [eax + 0xc]
cmp esi, ecx
je 0x4022dc
mov al, byte [esi + 0x10]
test al, al
jne 0x4022dc
mov eax, dword [esi + 8]
lea edx, [esi + 0xc]
push edx
push ecx
push esi
push 0x403ce0
push ecx
mov byte [eax + 4], cl
mov byte [esi + 0x10], 1
push ecx
mov dword [esi + 0x14], ecx
call fcn.004d0571
mov dword [esi + 4], eax
mov al, byte [esi + 0x10]
add esp, 0x18
mov esi, dword [esp + 0x14]
mov edi, ebx
mov ebx, dword [ebp + 0xc]
call fcn.00401ad0
mov edi, eax
cmp edi, 4
je 0x402311
cmp dword [esp + 0x3c], 8
jb 0x402305
mov ecx, dword [esp + 0x28]
push ecx
call fcn.004cf201
add esp, 4
xor edx, edx
mov word [esp + 0x28], dx
jmp 0x4023ff
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
lea edi, [esi + 0x28]
push eax
call fcn.00401820
test eax, eax
jne 0x40236a
lea ecx, [esp + 0x24]
push ecx
mov edi, esi
call fcn.00401cb0
mov edi, eax
test edi, edi
jne 0x40234a
lea ecx, [esp + 0x24]
push ecx
mov ebx, esi
call fcn.00401f90
mov edi, eax
test edi, edi
je 0x4023a5
cmp dword [esp + 0x3c], 8
jb 0x40235e
mov edx, dword [esp + 0x28]
push edx
call fcn.004cf201
add esp, 4
xor eax, eax
mov word [esp + 0x28], ax
jmp 0x402403
mov dword [edi], 0
mov dword [edi + 4], 0
lea eax, [esp + 0x24]
mov edi, esi
call fcn.00401ef0
mov edi, eax
test edi, edi
je 0x4023a5
cmp dword [esp + 0x3c], 8
jb 0x40239c
mov ecx, dword [esp + 0x28]
push ecx
call fcn.004cf201
add esp, 4
xor edx, edx
mov word [esp + 0x28], dx
jmp 0x402403
mov eax, dword [esp + 0x14]
push eax
lea ebx, [esp + 0x28]
mov eax, esi
call fcn.00402160
mov ebx, dword [ebp + 0xc]
mov edi, eax
test ebx, ebx
je 0x402388
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x14]
call fcn.00401ad0
mov edi, eax
test edi, edi
je 0x4023e4
mov eax, esi
mov edi, 0xc
call fcn.004028f0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x3c], 8
jb 0x4023f8
mov eax, dword [esp + 0x28]
push eax
call fcn.004cf201
add esp, 4
xor ecx, ecx
mov word [esp + 0x28], cx
mov esi, dword [esp + 0x18]
mov edx, dword [esi + 0x80]
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 7
mov byte [edx + 4], 1
mov eax, edi
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004cf1f2
mov esp, ebp
pop ebp
ret 0xc
Function at 0x403770
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4ee0f8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x53bd24]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor edi, edi
xor eax, eax
push 0xffffffffffffffff
mov word [esp + 0x14], ax
mov eax, dword [esp + 0x3c]
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
call fcn.00402ea0
mov eax, str..eud
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4037d0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x10]
call fcn.004038b0
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push 0xffffffffffffffff
mov word [esi + 4], cx
push edi
mov ecx, esi
call fcn.00402ea0
cmp dword [esp + 0x24], 8
jb 0x403817
mov edx, dword [esp + 0x10]
push edx
call fcn.004cf201
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret

Function at 0x403c90
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 4], 0
mov dword [esi], vtable.CEudThread.0
je 0x403cc2
mov al, byte [esi + 0x10]
test al, al
je 0x403cc2
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
je 0x403cc2
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test byte [esp + 8], 1
je 0x403cd2
push esi
call fcn.004cf201
add esp, 4
mov eax, esi
pop esi
ret 4

Function at 0x404a40
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x40c
mov eax, dword [0x53bd24]
xor eax, esp
mov dword [esp + 0x404], eax
push esi
push 0x400
lea eax, [esp + 8]
push 1
push eax
call fcn.004cf94a
add esp, 0x10
test eax, eax
je 0x404a94
lea ecx, [ecx]
lea ecx, [esp]
push ecx
mov ecx, edi
call fcn.00404910
push esi
push 0x400
lea edx, [esp + 8]
push 1
push edx
call fcn.004cf94a
add esp, 0x10
test eax, eax
jne 0x404a70
push esi
call fcn.004cfc3f
mov ecx, dword [esp + 0x408]
add esp, 4
xor ecx, esp
call fcn.004cf1f2
add esp, 0x40c
ret

Function at 0x405d10
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x53bd24]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x405d62
mov eax, dword [esp]
cmp al, 2
jne 0x405d5c
shr eax, 8
cmp al, 2
jne 0x405d5c
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.004cf1f2
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.004cf1f2
add esp, 0x194
ret
Function at 0x405f50
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
xor ebp, ebp
mov dword [esp + 0xc], ebp
mov dword [esp + 8], ebp
cmp ebx, ebp
jne 0x405f70
lea eax, [ebp + 0x2b]
pop ebp
pop ebx
add esp, 0x14
ret
cmp dword [ebx + 0x40], ebp
je 0x405f8e
push str.easy_handled_already_used_in_multi_handle
push ebx
call fcn.00411180
add esp, 8
pop ebp
mov eax, 2
pop ebx
add esp, 0x14
ret
push edi
mov edi, dword [ebx + 0x44]
cmp edi, ebp
jne 0x405fb7
push 3
push 1
call fcn.0040e860
mov edi, eax
add esp, 8
cmp edi, ebp
jne 0x405fb4
pop edi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x14
ret
mov dword [ebx + 0x44], edi
mov eax, dword [ebx + 0x454]
push esi
push eax
push 6
push edi
call sym.EuDownload.exe_curl_multi_setopt
push ebx
push edi
call sym.EuDownload.exe_curl_multi_add_handle
mov esi, eax
add esp, 0x14
cmp esi, ebp
je 0x405ff7
push edi
call sym.EuDownload.exe_curl_multi_cleanup
add esp, 4
mov eax, esi
sub eax, 3
neg eax
pop esi
sbb eax, eax
pop edi
and eax, 0xffffffe7
pop ebp
add eax, 0x1b
pop ebx
add esp, 0x14
ret
mov dword [ebx + 0x40], edi
jmp 0x406004
mov ebx, dword [esp + 0x28]
test esi, esi
jne 0x4060e0
call fcn.00410cd0
lea ecx, [esp + 0x18]
push ecx
push 0x3e8
push esi
push esi
push edi
mov ebx, eax
mov ebp, edx
call sym.EuDownload.exe_curl_multi_wait
mov esi, eax
add esp, 0x14
test esi, esi
jne pe_overlay
mov eax, dword [esp + 0x18]
cmp eax, 0xffffffff
je 0x4060d4
cmp eax, esi
jne 0x40608f
call fcn.00410cd0
push ebp
push ebx
push edx
push eax
call fcn.00410d00
add esp, 0x10
cmp eax, 0xa
jg 0x40608f
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 2
mov dword [esp + 0x10], eax
jle 0x406093
cmp eax, 0xa
jge 0x40607f
lea ecx, [eax - 1]
mov eax, 1
shl eax, cl
push eax
call fcn.00406680
add esp, 4
jmp 0x406093
mov eax, 0x3e8
push eax
call fcn.00406680
add esp, 4
jmp 0x406093
mov dword [esp + 0x10], esi
lea edx, [esp + 0x1c]
push edx
push edi
call sym.EuDownload.exe_curl_multi_perform
mov esi, eax
add esp, 8
test esi, esi
jne pe_overlay
cmp dword [esp + 0x1c], eax
jne pe_overlay
lea eax, [esp + 0x20]
push eax
push edi
call sym.EuDownload.exe_curl_multi_info_read
add esp, 8
test eax, eax
je pe_overlay
mov ecx, dword [eax + 8]
mov dword [esp + 0x14], ecx
jmp 0x4060dc
mov dword [esp + 0x14], 0x38
mov ebx, dword [esp + 0x28]
push ebx
push edi
call sym.EuDownload.exe_curl_multi_remove_handle
mov eax, dword [esp + 0x1c]
add esp, 8
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x410e30
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x410e62
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x410fa0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x1a0]
test ecx, ecx
je 0x410fbb
mov edx, dword [esi + 0x12c]
push edx
push edi
push ebx
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
jl 0x410fef
cmp eax, 2
jg 0x410fef
mov ecx, dword [esi + 0x128]
push ecx
push 1
lea edx, [eax + eax*2 + 0x4efbc0]
push 2
push edx
call fcn.004cfb46
mov eax, dword [esi + 0x128]
push eax
push 1
push edi
push ebx
call fcn.004cfb46
add esp, 0x20
xor eax, eax
ret

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

Disassembly:
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + eax*4 + 0x134]
push edi
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [esp + 0x20]
mov edi, eax
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x41129d
push ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x411274
pop ebp
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
ret
push ebp
push esi
call fcn.004164b0
push eax
mov eax, dword [esi]
push str.Send_failure:__s
push eax
call fcn.00411180
mov ecx, dword [esi]
add esp, 0x14
mov dword [ecx + 0x85cc], ebp
mov dword [ebx], 0x37
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x412f20
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x14
xor eax, eax
cmp dword [esi + 0x448], eax
push 4
lea ecx, [esp + 4]
push ecx
setne al
push 8
push 0xffff
push edi
mov dword [esp + 0x14], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x412f5e
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.004110f0
add esp, 0xc
add esp, 0x14
ret
mov edx, dword [esi + 0x44c]
push edx
mov dword [esp + 0xc], 1
call fcn.00420fd0
imul eax, eax, 0x3e8
mov dword [esp + 4], eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x450]
push eax
call fcn.00420fd0
imul eax, eax, 0x3e8
add esp, 8
push 0
push 0
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0xc
lea edx, [esp + 0x20]
push edx
push 0x98000004
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x412fd7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.004110f0
add esp, 0x10
add esp, 0x14
ret