joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ead9
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
push edi
mov esi, eax
mov ecx, 0x4db494
call fcn.004016a0
lea edi, [ebp - 4]
call fcn.0041ea40
mov edi, esi
call fcn.0040206d
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040151c
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
xor ebx, ebx
cmp eax, ebx
jne 0x41ebeb
lea eax, [ebp - 4]
call fcn.0041ebf2
call fcn.0040206d
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040151c
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
je 0x41eb55
call fcn.00422f55
test eax, eax
mov eax, 0x4b9770
jne 0x41eb4c
mov eax, str.Program_Files
push eax
push esi
call fcn.00405235
jmp 0x41ebd4
lea eax, [ebp - 4]
call fcn.0041ec84
call fcn.0040206d
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040151c
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
cmp ecx, ebx
jne 0x41eb39
push 0x206
lea eax, [ebp - 0x20e]
push ebx
push eax
mov word [ebp - 0x210], bx
call fcn.004883c0
add esp, 0xc
push str.programfiles
call fcn.0048b0b2
pop ecx
push eax
push esi
call fcn.00401aed
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
jne 0x41ebd4
push ebx
push 0x26
lea eax, [ebp - 0x210]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp eax, ebx
je 0x41ebc9
lea eax, [ebp - 0x210]
push eax
jmp 0x41ebce
push str.c:Program_Files
push esi
call fcn.00401aed
mov eax, esi
call fcn.00405111
call fcn.0042271d
push str.kingsoftkingsoft_antivirus_
push esi
call fcn.00405235
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x41ed16
Capabilities:
Create thread

Disassembly:
push edi
push 0x3c
lea eax, [esi + 4]
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
push str.Global48411015_6EB4_4469_8D21_A8A9C8B7FB0D
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.DLL_CreateEventW]
cmp eax, edi
mov dword [esi + 8], eax
je 0x41ed53
push edi
push edi
push esi
push 0x41ed8d
push edi
push edi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
cmp eax, edi
mov dword [esi + 0xc], eax
je 0x41ed53
inc edi
mov eax, edi
pop edi
ret
Function at 0x41edd9
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 8], 0
and word [ebp - 0x18], 0
push esi
push edi
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 7
call fcn.00423f92
push str.kpacket_info.dat
lea eax, [ebp - 0x1c]
push eax
call fcn.0040103b
mov eax, dword [ebp - 0x18]
push 8
pop esi
cmp dword [ebp - 4], esi
jae 0x41ee15
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp dword [ebp - 4], esi
mov eax, dword [ebp - 0x18]
jae 0x41ee27
lea eax, [ebp - 0x18]
push eax
push str.http:__download.duba.net_2011_lf_detect360.ini
call fcn.00482df4
mov edi, eax
test edi, edi
mov eax, dword [ebp - 0x18]
pop ecx
pop ecx
je 0x41ee5b
cmp dword [ebp - 4], esi
jae 0x41ee45
lea eax, [ebp - 0x18]
push edi
push eax
push str.KInsall::Is360AvInstalled_download_fail__file:_ws__nStatus:_d
mov esi, 0x4dc90c
call fcn.0044866c
add esp, 0xc
jmp 0x41ee6b
cmp dword [ebp - 4], esi
jae 0x41ee63
lea eax, [ebp - 0x18]
push eax
call fcn.0041ee7d
mov edi, eax
push 0
push 1
lea esi, [ebp - 0x1c]
call fcn.0040114b
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x41f026
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
push str.cmd.exe
lea eax, [ebp - 4]
call fcn.00401989
push dword [ebp + 8]
lea eax, [ebp + 8]
call fcn.00401989
push dword [ebp + 0xc]
lea eax, [ebp + 0xc]
call fcn.00401989
mov edi, 0x4b9a60
mov esi, 0x4b9a64
push edi
push esi
lea eax, [ebp + 0xc]
push eax
call fcn.00404f9c
test eax, eax
jne 0x41f05c
push edi
push esi
lea eax, [ebp + 8]
push eax
call fcn.00404f9c
test eax, eax
jne 0x41f06b
push 0x3c
pop esi
push esi
xor edi, edi
lea eax, [ebp - 0x40]
push edi
push eax
call fcn.004883c0
mov ebx, dword [ebp + 0xc]
add esp, 0xc
mov dword [ebp - 0x40], esi
mov esi, dword [ebp - 4]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x24], edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x34], str.open
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x3c], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp dword [ebp - 8], 0
mov dword [ebp + 8], eax
je 0x41f0d6
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
and dword [ebp - 8], 0
lea eax, [ebx - 0x10]
call fcn.0040151c
lea eax, [edi - 0x10]
call fcn.0040151c
lea eax, [esi - 0x10]
call fcn.0040151c
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x41f0f8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
push edi
mov edi, eax
mov eax, dword [0x4db494]
mov ecx, 0x4db494
call dword [eax + 0xc]
mov esi, eax
add esi, 0x10
xor ebx, ebx
cmp dword [edi + 0x28], ebx
mov dword [ebp - 4], esi
je 0x41f14a
push dword [edi + 0x24]
push dword [edi + 0x20]
lea edi, [ebp - 8]
call fcn.0042471b
pop ecx
mov eax, edi
pop ecx
lea edi, [ebp - 4]
call fcn.0040206d
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040151c
mov esi, dword [ebp - 4]
cmp dword [esi - 0xc], ebx
jne 0x41f182
push str.InstallLocation
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall360SD
lea edi, [ebp - 8]
call fcn.0042471b
pop ecx
pop ecx
lea edi, [ebp - 4]
call fcn.0040206d
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040151c
mov esi, dword [ebp - 4]
cmp dword [esi - 0xc], ebx
je 0x41f20d
push str.uninst.exe
lea eax, [ebp - 4]
push eax
call fcn.00405235
push 0x4b6ec0
lea eax, [ebp - 0xc]
push str.cmd.exe__c__
push eax
lea eax, [ebp - 4]
call fcn.0041f309
pop ecx
pop ecx
lea ecx, [ebp - 8]
call fcn.0041dccb
pop ecx
lea edi, [ebp - 4]
call fcn.0040206d
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040151c
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0040151c
push 0x206
lea eax, [ebp - 0x212]
push ebx
push eax
mov word [ebp - 0x214], bx
call fcn.004883c0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
mov esi, dword [ebp - 4]
push esi
lea eax, [ebp - 0x214]
push eax
call fcn.0041f026
lea eax, [esi - 0x10]
call fcn.0040151c
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret

Function at 0x41f3c5
Capabilities:
Set registry value

Disassembly:
push edi
xor edi, edi
cmp dword [esi], edi
je 0x41f3f3
push dword [esp + 0xc]
call fcn.004886c1
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x10]
push 1
push edi
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x41f3f3
inc edi
mov eax, edi
pop edi
ret 8

Function at 0x41fb2d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41fb44
test al, 0x10
jne 0x41fb44
xor eax, eax
inc eax
ret
xor eax, eax
ret

Function at 0x41fbbd
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x41fc39
cmp dword [ebp + 0xc], edi
je 0x41fc39
push dword [ebp + 8]
call fcn.0041fb2d
test al, al
pop ecx
je 0x41fc39
push esi
push 0x1fe
lea eax, [ebp - 0x1fe]
push edi
push eax
mov esi, 0x80004005
mov word [ebp - 0x200], di
call fcn.004883c0
add esp, 0xc
push dword [ebp + 8]
lea eax, [ebp - 0x200]
push 0x100
push eax
push edi
push dword [ebp + 0xc]
push str.SPCfg
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
test eax, eax
je 0x41fc34
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x200]
call fcn.004010df
xor esi, esi
mov eax, esi
pop esi
jmp 0x41fc3e
mov eax, 0x80004005
pop edi
leave
ret
Function at 0x41fe5c
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
cmp dword [ebp + 8], 0
push esi
mov esi, eax
jne 0x41fe78
mov eax, 0x80004005
jmp 0x41fef9
push dword [ebp + 8]
call fcn.0041fb2d
test al, al
pop ecx
je 0x41fe6e
and word [ebp - 0x800], 0
push edi
push 0x7fe
lea eax, [ebp - 0x7fe]
push 0
push eax
mov edi, 0x80004005
call fcn.004883c0
add esp, 0xc
push dword [ebp + 8]
lea eax, [ebp - 0x800]
push 0x400
push eax
push 0
mov eax, str.SPRoot
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
test eax, eax
je 0x41fef6
lea eax, [ebp - 0x800]
call fcn.004010df
mov eax, dword [esi + 0x14]
lea edi, [eax - 1]
mov eax, esi
call fcn.004267e5
cmp word [eax], 0x5c
je 0x41fef4
push 0x4b9a60
push esi
call fcn.0040103b
xor edi, edi
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x41ff71
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x41ffed
cmp dword [ebp + 0xc], edi
je 0x41ffed
push dword [ebp + 8]
call fcn.0041fb2d
test al, al
pop ecx
je 0x41ffed
push esi
push 0x7fe
lea eax, [ebp - 0x7fe]
push edi
push eax
mov esi, 0x80004005
mov word [ebp - 0x800], di
call fcn.004883c0
add esp, 0xc
push dword [ebp + 8]
lea eax, [ebp - 0x800]
push 0x400
push eax
push edi
push dword [ebp + 0xc]
push str.ProductInfo
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
test eax, eax
je 0x41ffe8
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x800]
call fcn.004010df
xor esi, esi
mov eax, esi
pop esi
jmp 0x41fff2
mov eax, 0x80004005
pop edi
leave
ret

Function at 0x4201c2
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, eax
xor eax, eax
cmp dword [esp + 8], eax
je 0x42021a
push edi
movzx ecx, byte [esi]
mov dx, ax
dec dword [esp + 0xc]
shr dx, 0xc
movzx edx, dl
shl eax, 4
mov edi, ecx
shr edi, 4
xor edx, edi
xor ax, word [edx*2 + 0x4bab80]
and ecx, 0xf
movzx eax, ax
mov dx, ax
shr dx, 0xc
movzx edx, dl
shl eax, 4
xor edx, ecx
xor ax, word [edx*2 + 0x4bab80]
inc esi
cmp dword [esp + 0xc], 0
movzx eax, ax
jne 0x4201ce
pop edi
pop esi
ret
Function at 0x4203c7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x4203dc
xor eax, eax
jmp 0x42048f
push 0x28
push esi
push edi
call fcn.004883c0
add esp, 0xc
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
call fcn.0040a50a
push esi
lea ecx, [ebp - 0x1c]
call fcn.004447e9
cmp eax, esi
je 0x42041b
cmp byte [eax], 0
mov ecx, eax
je 0x42041b
mov al, byte [ecx]
cmp al, 0x41
jl 0x420415
cmp al, 0x5a
jg 0x420415
add al, 0x20
mov byte [ecx], al
inc ecx
cmp byte [ecx], 0
jne 0x420407
push ebx
push dword [ebp - 8]
lea ecx, [ebp - 0x1c]
push esi
call fcn.004447e9
call fcn.004201c2
pop ecx
mov ecx, dword [ebp - 8]
push 0x25
movzx ebx, ax
pop eax
cmp ecx, eax
mov dword [ebp + 8], ecx
jbe 0x420441
mov dword [ebp + 8], eax
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
push 0
lea esi, [edi + 3]
call fcn.004447e9
push eax
push esi
call fcn.00489cd0
mov ecx, dword [ebp + 8]
mov al, cl
add esp, 0xc
add al, 2
test esi, esi
mov word [edi + 1], bx
mov byte [edi], al
pop ebx
je 0x420480
test ecx, ecx
je 0x420480
xor eax, eax
test ecx, ecx
jbe 0x420480
xor byte [eax + esi], 0x5a
inc eax
cmp eax, ecx
jb 0x420477
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.0040a3be
xor eax, eax
inc eax
pop esi
leave
ret

Function at 0x420591
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, eax
xor ebx, ebx
mov eax, str.Global_
lea esi, [ebp - 0x1c]
mov dword [ebp - 4], 7
mov dword [ebp - 8], ebx
mov word [ebp - 0x18], bx
call fcn.004010df
cmp dword [0x4db250], 8
mov eax, dword [0x4db23c]
jae 0x4205cc
mov eax, 0x4db23c
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0040103b
cmp dword [ebp - 4], 8
mov eax, dword [ebp - 0x18]
jae 0x4205e2
lea eax, [ebp - 0x18]
cmp dword [edi + 4], ebx
jne 0x42061e
push eax
push ebx
push 4
call dword [sym.imp.KERNEL32.DLL_OpenFileMappingW]
cmp eax, ebx
mov dword [edi], eax
jne 0x4205fb
xor edi, edi
jmp 0x420621
push 0x3fe0
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
cmp eax, ebx
jne 0x42061b
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [edi], ebx
jmp 0x4205f7
mov dword [edi + 4], eax
xor edi, edi
inc edi
push ebx
push 1
lea esi, [ebp - 0x1c]
call fcn.0040114b
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x420633
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [eax + 4]
sub esp, 0x34
push ebx
xor ecx, ecx
cmp eax, ecx
push esi
push edi
jne 0x420649
xor eax, eax
jmp 0x4206a8
cmp dword [ebp + 8], ecx
lea esi, [eax + 0x20]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
je 0x4206a5
cmp esi, ecx
je 0x4206a5
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp + 8]
call fcn.00420492
pop ecx
lea eax, [ebp - 0x30]
push eax
lea edi, [ebp - 8]
lea ebx, [ebp - 4]
mov eax, esi
call fcn.004204db
cmp dword [ebp - 4], 0
pop ecx
je 0x4206a5
mov eax, dword [ebp - 8]
mov esi, dword [ebp + 0xc]
push 0x10
add eax, 0x2c
push eax
push esi
call fcn.00489cd0
add esp, 0xc
test esi, esi
je 0x4206a5
xor eax, eax
xor byte [eax + esi], 0x7a
inc eax
cmp eax, 0x10
jb 0x42069b
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4206fc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
push esi
push edi
xor edi, edi
push 0x206
mov esi, eax
lea eax, [ebp - 0x312]
push edi
push eax
mov word [ebp - 0x314], di
call fcn.004883c0
add esp, 0xc
cmp dword [esi + 0x18], 8
jb 0x420732
mov esi, dword [esi + 4]
jmp 0x420735
add esi, 4
cmp dword [0x4dcfe0], 8
mov eax, dword [0x4dcfcc]
jae 0x420748
mov eax, 0x4dcfcc
push esi
push eax
push 0x4babd8
lea eax, [ebp - 0x314]
push 0x104
push eax
call fcn.0042ab04
add esp, 0x14
lea eax, [ebp - 4]
push eax
push 0x20219
push edi
lea eax, [ebp - 0x314]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x42078d
mov eax, 0xe00c0012
jmp 0x420808
push ebx
mov esi, 0xfe
push esi
lea eax, [ebp - 0x10a]
push edi
push eax
mov dword [ebp - 8], edi
mov word [ebp - 0x10c], di
call fcn.004883c0
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 8]
push eax
push edi
push str.Name
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
cmp ebx, edi
jne 0x4207f7
cmp dword [ebp - 8], 1
jne 0x4207f7
mov esi, dword [ebp + 8]
mov eax, str..Pipe_
call fcn.004010df
lea eax, [ebp - 0x10c]
push eax
push esi
call fcn.0040103b
jmp 0x4207fc
mov ebx, 0xe00c001f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret 4

Function at 0x420b6a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
jmp 0x420b9c
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x10]
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x420ba8
add esi, dword [ebp - 4]
cmp dword [ebp + 0x10], esi
jne 0x420b73
xor eax, eax
pop esi
leave
ret 0xc
mov eax, 0xe00c0009
jmp 0x420ba3
Function at 0x420baf
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
jmp 0x420be1
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x10]
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x420bed
add esi, dword [ebp - 4]
cmp dword [ebp + 0x10], esi
jne 0x420bb8
xor eax, eax
pop esi
leave
ret 0xc
mov eax, 0xe00c000b
jmp 0x420be8
Function at 0x422084
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov edi, eax
add edi, 4
mov eax, dword [edi]
xor esi, esi
cmp eax, esi
mov dword [ebp - 0xc], edi
je 0x4220a6
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov dword [edi], esi
push 0x20
lea eax, [ebp - 0x40]
push esi
push eax
call fcn.004883c0
add esp, 0xc
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x34], esi
call dword [section..data]
cmp dword [ebp + 8], esi
mov edi, dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov dword [ebp - 8], eax
mov dword [ebp - 4], esi
mov ebx, SysReAllocString
je 0x422105
push dword [ebp + 8]
call edi
push esi
inc eax
cdq
push 2
push edx
push eax
call fcn.0049b740
mov ecx, eax
add eax, ebx
adc edx, esi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
jne 0x422105
cmp eax, 0xffffffff
jbe 0x42210a
mov dword [ebp + 8], esi
jmp 0x422149
cmp ecx, 0x400
jg 0x422129
push ecx
call fcn.0043802d
test al, al
pop ecx
je 0x422129
mov eax, dword [ebp - 0x18]
call fcn.00499db0
mov eax, esp
jmp 0x422134
push dword [ebp - 0x18]
lea esi, [ebp - 4]
call fcn.00437ff5
push dword [ebp - 8]
mov esi, eax
push dword [ebp - 0x18]
push dword [ebp + 8]
call fcn.0043809f
mov dword [ebp + 8], eax
xor esi, esi
cmp dword [ebp + 0xc], esi
je 0x42216f
push dword [ebp + 0xc]
call edi
push esi
inc eax
cdq
push 2
push edx
push eax
call fcn.0049b740
mov edi, eax
add eax, ebx
adc edx, esi
mov dword [ebp - 0x1c], edx
jne 0x42216f
cmp eax, 0xffffffff
jbe 0x422173
xor eax, eax
jmp 0x4221aa
cmp edi, 0x400
jg 0x422191
push edi
call fcn.0043802d
test al, al
pop ecx
je 0x422191
mov eax, edi
call fcn.00499db0
mov eax, esp
jmp 0x42219a
push edi
lea esi, [ebp - 4]
call fcn.00437ff5
push dword [ebp - 8]
mov esi, eax
push edi
push dword [ebp + 0xc]
call fcn.0043809f
xor esi, esi
cmp dword [ebp + 8], esi
je 0x4221e2
cmp eax, esi
je 0x4221e2
push dword [ebp - 0xc]
lea ecx, [ebp - 0x40]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
cmp dword [ebp - 4], esi
mov ebx, eax
je 0x4221de
mov eax, dword [ebp - 4]
mov edi, dword [eax]
push eax
mov dword [ebp - 4], edi
call fcn.00488d99
cmp edi, esi
pop ecx
jne 0x4221cb
mov eax, ebx
jmp 0x422205
push 8
call dword [sym.imp.WS2_32.dll_WSASetLastError]
cmp dword [ebp - 4], esi
je 0x422202
mov eax, dword [ebp - 4]
mov edi, dword [eax]
push eax
mov dword [ebp - 4], edi
call fcn.00488d99
cmp edi, esi
pop ecx
jne 0x4221ef
or eax, 0xffffffff
lea esp, [ebp - 0x50]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x422333
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
xor ebx, ebx
cmp byte [esi + 0x44], bl
je 0x422345
mov al, 1
jmp 0x4223b7
mov eax, dword [esi + 0x40]
cmp eax, 0xffffffff
mov byte [ebp - 1], 1
jne 0x422355
xor al, al
jmp 0x4223b7
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_WSAConnect]
test eax, eax
je 0x4223b1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x4223ab
push dword [esi + 0x4c]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x4223ae
push 0x2c
lea eax, [ebp - 0x30]
push ebx
push eax
call fcn.004883c0
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
push ebx
push dword [esi + 0x40]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x4223b1
mov dword [esi + 0x48], eax
mov byte [ebp - 1], bl
mov al, byte [ebp - 1]
mov byte [esi + 0x44], al
pop ebx
leave
ret 8

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
push dword [esi + 0x4c]
mov edi, dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push dword [esi + 0xc]
call edi
test eax, eax
je 0x4223e3
mov dword [esi + 0x48], 0x2749
xor al, al
jmp 0x42248a
push ebx
xor ebx, ebx
push ebx
push dword [esi + 8]
call edi
cmp eax, 0x102
jne 0x422401
mov dword [esi + 0x48], 0x2734
xor al, al
jmp 0x422489
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
lea eax, [esi + 0x28]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [esi + 8]
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
push ebx
lea eax, [ebp - 0x18]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x40]
call dword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
je 0x422449
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x42247b
push dword [esi + 0x4c]
push dword [esi + 8]
call edi
test eax, eax
jne 0x42247e
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [ebp + 0x10]
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0x40]
mov dword [ebp + 0xc], ebx
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
je 0x422475
mov bl, 1
jmp 0x42247e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi + 0x48], eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov al, bl
pop ebx
pop edi
leave
ret 0xc
Function at 0x42248f
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push dword [esi + 0x4c]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
je 0x4224b3
mov dword [esi + 0x48], 0x2749
xor al, al
jmp 0x42257b
push ebx
xor ebx, ebx
push ebx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp eax, 0x80
jne 0x4224d5
mov dword [esi + 0x48], 0x2734
xor al, al
jmp 0x42257a
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [edi]
push 0x14
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x20]
push ebx
push eax
mov dword [edi], ebx
mov dword [ebp - 4], ebx
call fcn.004883c0
lea eax, [esi + 0x10]
add esp, 0xc
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [esi + 4]
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
push ebx
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 4]
push eax
push edi
push 1
lea eax, [ebp - 0xc]
push eax
push dword [esi + 0x40]
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x422538
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x42256c
push dword [esi + 0x4c]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x42256f
lea eax, [ebp - 4]
push eax
push ebx
push edi
lea eax, [ebp - 0x20]
push eax
push dword [esi + 0x40]
mov dword [ebp - 4], ebx
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
je 0x422566
mov bl, 1
jmp 0x42256f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi + 0x48], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov al, bl
pop ebx
leave
ret 4

Function at 0x42291d
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 4]
call fcn.00401989
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x422952
xor esi, esi
inc esi
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040151c
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
mov esi, dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x42293d
mov edi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call edi
mov ebx, 0xb7
cmp eax, ebx
je 0x42293d
lea eax, [ebp - 4]
call fcn.00422761
mov eax, dword [ebp - 4]
cmp dword [eax - 0xc], 0
jne 0x422989
xor esi, esi
jmp 0x422940
push eax
call fcn.0042291d
test eax, eax
pop ecx
je 0x422985
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x42293d
call edi
cmp eax, ebx
jne 0x422985
jmp 0x42293d