joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4011f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401209
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40121d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40123e
cmp esi, eax
jae 0x401217
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401230
cmp esi, eax
jae 0x401217
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x402210
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45c5d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.00401e50
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.00401790
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4022a2
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x404580
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x45c8ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x840
mov eax, dword [0x479a50]
push esi
lea ecx, [esp + 8]
mov dword [esp + 0x840], eax
call fcn.004309df
mov esi, dword [esp + 0x854]
push esi
lea eax, [esp + 0x434]
push str._s.
push eax
mov dword [esp + 0x858], 0
call fcn.00438911
add esp, 0xc
push 0
lea ecx, [esp + 0x434]
push ecx
lea ecx, [esp + 0x10]
call fcn.00430a57
test eax, eax
je 0x4046b7
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
lea esp, [esp]
lea ecx, [esp + 0x10]
call fcn.00430861
lea ecx, [esp + 0x10]
mov edi, eax
call fcn.004309a6
test eax, eax
jne 0x4046ad
lea edx, [esp + 0xc]
push edx
lea ecx, [esp + 0x14]
call fcn.00430c7f
mov ecx, dword [eax]
lea edx, [esp + 0x28]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x404630
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404658
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
push 0x10
lea ecx, [esp + 0x14]
call dword [eax + 0x38]
test eax, eax
lea ecx, [esp + 0x28]
push ecx
push esi
push str._s_s
je 0x404693
lea edx, [esp + 0x23c]
push edx
call fcn.00438911
lea eax, [esp + 0x240]
push eax
call fcn.00404580
add esp, 0x14
jmp 0x4046ad
lea edx, [esp + 0x64c]
push edx
call fcn.00438911
add esp, 0x10
lea eax, [esp + 0x640]
push eax
call ebx
test edi, edi
jne 0x404600
pop edi
pop ebx
lea ecx, [esp + 8]
call fcn.00430791
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
pop esi
lea ecx, [esp + 4]
mov dword [esp + 0x848], 0xffffffff
jne 0x4046e4
call fcn.00430a03
xor eax, eax
jmp 0x4046ee
call fcn.00430a03
mov eax, 1
mov ecx, dword [esp + 0x840]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x83c]
call fcn.00438707
add esp, 0x84c
ret
Function at 0x406170
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45c958
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov al, byte [esp + 0x24]
mov byte [esp + 0x24], al
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
push 1
lea edx, [esp + 0x28]
push edx
push ecx
push eax
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x28], edi
call fcn.00401e50
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.00401790
mov edi, dword [esp + 0x34]
add eax, 0x10
add esp, 0x18
mov dword [edi], eax
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406206
mov ecx, dword [esi]
mov eax, dword [ecx]
push esi
call dword [eax + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x407740
Capabilities:
Check if file exists
Move file

Disassembly:
sub esp, 0x61c
mov eax, dword [0x479a50]
push esi
push edi
mov edi, dword [esp + 0x628]
mov dword [esp + 0x620], eax
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407760
sub eax, edx
cmp eax, 0x208
ja 0x40785e
mov esi, dword [esp + 0x62c]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407780
sub eax, edx
cmp eax, 0x208
ja 0x40785e
lea edx, [esp + 8]
mov eax, edi
sub edx, edi
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4077a0
lea edx, [esp + 0x210]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4077b5
mov esi, dword [sym.imp.SHLWAPI.dll_StrTrimA]
push 0x460c40
lea eax, [esp + 0xc]
push eax
call esi
push 0x460c40
lea ecx, [esp + 0x214]
push ecx
call esi
lea edx, [esp + 0x210]
push edx
lea eax, [esp + 0xc]
push eax
call fcn.004404f7
add esp, 8
test eax, eax
je 0x40785e
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40785e
push 0x208
lea edx, [esp + 0x41c]
push edx
lea eax, [esp + 0x218]
push eax
call fcn.004044e0
lea ecx, [esp + 0x424]
push ecx
call fcn.00404ab0
add esp, 0x10
test eax, eax
je 0x40785e
lea edx, [esp + 0x210]
push edx
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
pop edi
pop esi
mov ecx, dword [esp + 0x618]
call fcn.00438707
add esp, 0x61c
ret
mov ecx, dword [esp + 0x620]
pop edi
xor eax, eax
pop esi
call fcn.00438707
add esp, 0x61c
ret
Function at 0x407880
Capabilities:
Check if file exists
Copy file

Disassembly:
sub esp, 0x61c
mov eax, dword [0x479a50]
push esi
push edi
mov edi, dword [esp + 0x628]
mov dword [esp + 0x620], eax
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4078a0
sub eax, edx
cmp eax, 0x208
ja 0x4079a0
mov esi, dword [esp + 0x62c]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4078c0
sub eax, edx
cmp eax, 0x208
ja 0x4079a0
lea edx, [esp + 8]
mov eax, edi
sub edx, edi
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4078e0
lea edx, [esp + 0x210]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4078f5
mov esi, dword [sym.imp.SHLWAPI.dll_StrTrimA]
push 0x460c40
lea eax, [esp + 0xc]
push eax
call esi
push 0x460c40
lea ecx, [esp + 0x214]
push ecx
call esi
lea edx, [esp + 0x210]
push edx
lea eax, [esp + 0xc]
push eax
call fcn.004404f7
add esp, 8
test eax, eax
je 0x4079a0
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4079a0
push 0x208
lea edx, [esp + 0x41c]
push edx
lea eax, [esp + 0x218]
push eax
call fcn.004044e0
lea ecx, [esp + 0x424]
push ecx
call fcn.00404ab0
add esp, 0x10
test eax, eax
je 0x4079a0
push 0
lea edx, [esp + 0x214]
push edx
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
pop edi
pop esi
mov ecx, dword [esp + 0x618]
call fcn.00438707
add esp, 0x61c
ret
mov ecx, dword [esp + 0x620]
pop edi
xor eax, eax
pop esi
call fcn.00438707
add esp, 0x61c
ret

Function at 0x4079e0
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x134
mov eax, dword [0x479a50]
push ebx
push esi
mov esi, dword [esp + 0x140]
xor ebx, ebx
push esi
mov dword [esp + 0x13c], eax
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0x10
jne 0x407a3c
lea eax, [esp + 8]
push eax
push esi
call fcn.00404830
add esp, 8
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
pop esi
pop ebx
mov ecx, dword [esp + 0x130]
call fcn.00438707
add esp, 0x134
ret
mov eax, esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x407a60
sub eax, edx
cmp eax, 0x104
jae 0x407a1f
lea ecx, [esp + 0x10]
push ecx
push esi
call fcn.004513da
test eax, eax
je 0x407a1f
mov ecx, dword [esp + 0x138]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
pop esi
pop ebx
call fcn.00438707
add esp, 0x134
ret
Function at 0x40aa90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45cc90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
mov esi, ecx
mov dword [esp + 4], esi
call fcn.004511c9
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi], eax
lea eax, [esp + 8]
push eax
mov dword [esp + 0x24], 0
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ecx, dword [esp + 0x28]
push 8
push 0
push ecx
lea edx, [esp + 0x14]
push edx
mov byte [esp + 0x30], 1
call dword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
test eax, eax
jge 0x40aaf6
push eax
call fcn.00401130
mov eax, dword [esp + 0x10]
push eax
mov ecx, esi
call fcn.0040a4e0
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ecx, dword [esp + 0x18]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 4

Function at 0x410960
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45d4fc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea edi, [esi + 4]
call fcn.004511c9
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
xor ebx, ebx
mov dword [esp + 0x1c], ebx
lea ebp, [esi + 8]
call fcn.004511c9
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp], eax
mov eax, 0xa
mov dword [esi + 0x10], 0x461438
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], 0x461444
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], eax
push str.MutexProgress
push ebx
push ebx
mov byte [esp + 0x28], 3
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push ebx
push 0x46076a
mov ecx, edi
mov dword [esi + 0xc], eax
call fcn.00401bb0
push ebx
push 0x46076a
mov ecx, ebp
call fcn.00401bb0
mov byte [esi], bl
mov dword [esi + 0x50], 5
mov dword [esi + 0x54], 1
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
call fcn.004224e0
mov ecx, dword [esp + 0x14]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x412150
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x45d677
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea edi, [esi + 0x18]
call fcn.004511c9
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov dword [esp + 0x1c], 0
lea ebp, [esi + 0x1c]
call fcn.004511c9
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp], eax
mov byte [esp + 0x1c], 1
lea ebx, [esi + 0x20]
call fcn.004511c9
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov byte [esp + 0x1c], 2
call fcn.004511c9
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x24], eax
mov byte [esp + 0x1c], 3
call fcn.004511c9
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x28], eax
xor eax, eax
push eax
push 0x46076a
mov ecx, edi
mov byte [esp + 0x24], 4
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov byte [esi + 0x30], 1
mov dword [esi + 0x2c], 1
call fcn.00401bb0
xor edi, edi
push edi
push 0x46076a
mov ecx, ebp
call fcn.00401bb0
push edi
push 0x46076a
mov ecx, ebx
call fcn.00401bb0
push edi
push 0x46076a
lea ecx, [esi + 0x24]
call fcn.00401bb0
push edi
push 0x46076a
lea ecx, [esi + 0x28]
call fcn.00401bb0
mov dword [esi + 0x10], 0x400
mov dword [esi + 0x14], edi
mov dword [esi + 0xc], edi
mov dword [esi + 8], 1
mov ecx, dword [esp + 0x14]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x416c50
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x45dd00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
mov eax, dword [ecx + 0x184]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
je 0x416cf8
cmp eax, dword [esp + 0x38]
jne 0x416cf8
mov eax, dword [ecx + 0x1c]
mov esi, dword [esp + 0x34]
mov dword [esp + 0x38], eax
mov eax, esi
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], ebx
mov byte [esp + 0xc], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x416ca0
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x10]
call fcn.004023c0
push 0x461dc0
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x10]
push edx
mov byte [esp + 0x38], 1
call fcn.00415530
mov eax, dword [esp + 0x2c]
add esp, 0xc
cmp eax, 0x10
jb 0x416ce6
mov eax, dword [esp + 0xc]
push eax
call fcn.0044c5a2
add esp, 4
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], ebx
mov byte [esp + 0xc], bl
jmp 0x416d0d
mov esi, dword [esp + 0x34]
push 1
push ebx
push ebx
push esi
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea eax, [esi - 0x10]
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop esi
pop ebx
jg 0x416d31
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x1c]
mov al, 1
mov dword fs:[0], ecx
add esp, 0x28
ret 8
Function at 0x417dd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45deae
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.004511c9
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi], eax
xor edi, edi
mov dword [esp + 0x14], edi
call fcn.004511c9
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 4], eax
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 8], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x2c], edi
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x41ce60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x14c
mov eax, dword [0x479a50]
push esi
mov esi, dword [esp + 0x154]
mov dword [esp + 0x14c], eax
push edi
mov edi, dword [esp + 0x15c]
xor eax, eax
mov ecx, edi
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
push esi
mov dword [ecx + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41ceae
lea edx, [esp + 0x10]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x41cec7
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x148]
call fcn.00438707
add esp, 0x14c
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
lea edx, [esp + 8]
mov dword [esp + 8], eax
push edx
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x14], ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
push edi
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov ecx, dword [esp + 0x150]
pop edi
mov al, 1
pop esi
call fcn.00438707
add esp, 0x14c
ret 8
Function at 0x41d4f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x210
mov eax, dword [0x479a50]
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x214], eax
mov eax, dword [esi + 4]
test eax, eax
push edi
je 0x41d516
push 0
push eax
call fcn.0042ac60
mov edi, dword [esp + 0x220]
xor eax, eax
test edi, edi
mov dword [esi + 4], 0
lea ebp, [esi + 8]
mov byte [ebp], 0
lea ecx, [esi + 0x110]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
je 0x41d628
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x41d628
push 0
lea edx, [esp + 0x14]
push edx
push 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x41d628
push ebx
mov bl, byte [esp + 0x22c]
test bl, bl
je 0x41d58b
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41d58b
xor bl, bl
neg bl
lea ecx, [esp + 0x14]
sbb ebx, ebx
and ebx, 2
push ebx
push ecx
call fcn.00429f90
test eax, eax
mov dword [esi + 4], eax
pop ebx
je 0x41d606
mov edi, dword [esp + 0x224]
test edi, edi
jne 0x41d5e3
push edi
push edi
lea edx, [esp + 0x11c]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.0043bd5d
push edi
push edi
lea edx, [esp + 0x130]
push edx
lea eax, [esp + 0x2c]
push eax
push ebp
call fcn.0043bccd
add esp, 0x28
jmp 0x41d5fe
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x41d5fe
push 0
push 0
push edi
push 0
push ebp
call fcn.0043bccd
add esp, 0x14
push ebp
mov ecx, esi
call fcn.0041cd00
mov ecx, dword [esi + 4]
pop edi
xor eax, eax
test ecx, ecx
pop esi
setne al
pop ebp
mov ecx, dword [esp + 0x20c]
call fcn.00438707
add esp, 0x210
ret 0xc
mov ecx, dword [esp + 0x218]
pop edi
pop esi
xor al, al
pop ebp
call fcn.00438707
add esp, 0x210
ret 0xc
Function at 0x4224e0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x19c
mov eax, dword [0x479a50]
push edi
mov dword [esp + 0x19c], eax
xor eax, eax
mov ecx, 0x64
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x422544
mov ecx, dword [0x47d614]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
mov dword [ecx + 4], eax
or eax, 0xffffffff
mov ecx, dword [esp + 0x19c]
call fcn.00438707
pop edi
mov esp, ebp
pop ebp
ret
mov ax, word [esp + 8]
cmp al, 2
jne 0x422564
cmp ah, al
jne 0x422564
xor eax, eax
mov ecx, dword [esp + 0x19c]
call fcn.00438707
pop edi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword fs:[0x2c]
mov edx, dword [0x47d614]
mov ecx, dword [eax + edx*4]
mov dword [ecx + 4], 0x276c
mov ecx, dword [esp + 0x19c]
or eax, 0xffffffff
call fcn.00438707
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4225f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x40
push edi
xor edi, edi
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, edi
mov dword [esp + 4], eax
jne 0x42262c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x47d614]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
mov dword [ecx + 4], eax
or eax, 0xffffffff
pop edi
add esp, 0x40
ret
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_WSAEventSelect]
push ebp
push esi
mov esi, dword [esp + 0x54]
push 0x21
push eax
push esi
call ebx
cmp eax, 0xffffffff
je 0x42272d
mov ebp, dword [esp + 0x5c]
jmp 0x422650
xor edi, edi
mov edx, dword [esp + 0x60]
push 1
push edx
push 1
lea eax, [esp + 0x1c]
push eax
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
test eax, eax
jne 0x422724
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x24]
push ecx
push edx
push esi
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
cmp eax, 0xffffffff
je 0x422724
mov eax, dword [esp + 0x24]
cmp eax, 0x20
je 0x42279f
cmp eax, 1
jne 0x4226a4
cmp dword [esp + 0x28], edi
jne 0x42279f
mov eax, dword [esp + 0x10]
push edi
push eax
push esi
call ebx
mov edx, dword [esp + 0x58]
push edi
xor ecx, ecx
push edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x30], edx
push 1
lea edx, [esp + 0x30]
push edx
push esi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], ebp
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
jne 0x4226ef
mov edi, dword [esp + 0x14]
jmp 0x4226f9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
neg edi
test edi, edi
jge 0x42275f
neg edi
cmp edi, 0x2733
jne 0x422774
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x10]
push 0x21
push eax
push esi
call ebx
cmp eax, 0xffffffff
jne 0x42264e
jmp 0x42272d
mov eax, dword [esp + 0x10]
push edi
push eax
push esi
call ebx
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [0x47d614]
mov ecx, dword fs:[0x2c]
mov edx, dword [ecx + edx*4]
pop esi
pop ebp
pop ebx
mov dword [edx + 4], eax
or eax, 0xffffffff
pop edi
add esp, 0x40
ret
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
pop ebx
mov eax, edi
pop edi
add esp, 0x40
ret
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword fs:[0x2c]
mov edx, dword [0x47d614]
mov ecx, dword [eax + edx*4]
pop esi
pop ebp
pop ebx
mov dword [ecx + 4], edi
or eax, 0xffffffff
pop edi
add esp, 0x40
ret
mov edx, dword [esp + 0x10]
push edi
push edx
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [0x47d614]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
pop esi
pop ebp
pop ebx
mov dword [ecx + 4], eax
or eax, 0xffffffff
pop edi
add esp, 0x40
ret