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

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
xor dl, dl
mov ecx, dword [esp + 0x14]
push ebx
mov ebx, dword [esp + 0x10]
mov dword [esp + 8], eax
push ebp
push esi
push edi
test bl, 3
jne 0x5cbba1
test al, 3
jne 0x5cbba1
mov edi, ecx
mov dword [esp + 0x10], 0
shr edi, 2
xor esi, esi
test edi, edi
je 0x5cbb5c
cmp edi, 8
jb 0x5cbb25
mov ebp, dword [esp + 0x20]
mov edx, edi
mov dword [esp + 0x14], ebx
and edx, 0xfffffff8
add eax, 0x10
xorps xmm3, xmm3
sub dword [esp + 0x14], ebp
xorps xmm2, xmm2
mov ebp, dword [esp + 0x14]
movups xmm0, xmmword [eax - 0x10]
lea eax, [eax + 0x20]
movups xmm1, xmmword [ebx + esi*4]
add esi, 8
pxor xmm1, xmm0
por xmm3, xmm1
movups xmm1, xmmword [eax + ebp - 0x20]
movups xmm0, xmmword [eax - 0x20]
pxor xmm1, xmm0
por xmm2, xmm1
cmp esi, edx
jb 0x5cbad4
mov eax, dword [esp + 0x20]
por xmm2, xmm3
movaps xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movd dword [esp + 0x10], xmm2
cmp esi, edi
jae 0x5cbb60
mov ebp, ebx
lea edx, [eax + esi*4]
sub ebp, eax
mov dword [esp + 0x14], ebp
mov ebp, edi
mov ebx, dword [esp + 0x14]
sub ebp, esi
mov esi, edi
mov edi, dword [esp + 0x10]
mov eax, dword [edx + ebx]
lea edx, [edx + 4]
xor eax, dword [edx - 4]
or edi, eax
sub ebp, 1
jne 0x5cbb42
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x10], edi
jmp 0x5cbb64
xor edi, edi
jmp 0x5cbb64
mov edi, dword [esp + 0x10]
shl esi, 2
sub ecx, esi
jne 0x5cbb78
test edi, edi
pop edi
pop esi
pop ebp
sete al
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x10]
add ebx, esi
mov ebp, dword [esp + 0x20]
mov edx, eax
shr eax, 0x10
add ebp, esi
shr edx, 0x18
or dl, al
mov dword [esp + 0x14], ebp
mov eax, dword [esp + 0x10]
shr eax, 8
or dl, al
mov eax, ebp
or dl, byte [esp + 0x10]
xor edi, edi
test ecx, ecx
je 0x5cbc60
cmp ecx, 0x20
jb 0x5cbc3a
mov esi, ecx
xorps xmm3, xmm3
and esi, 0xffffffe0
xorps xmm2, xmm2
mov dword [esp + 0x1c], esi
mov esi, ebx
sub esi, dword [esp + 0x14]
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x10]
movups xmm0, xmmword [eax]
lea eax, [eax + 0x20]
movups xmm1, xmmword [eax + ebp - 0x20]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x10]
por xmm3, xmm1
movups xmm1, xmmword [ebx + edi + 0x10]
add edi, 0x20
pxor xmm1, xmm0
por xmm2, xmm1
cmp edi, esi
jb 0x5cbbd5
por xmm2, xmm3
movaps xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 2
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 1
por xmm2, xmm0
movd eax, xmm2
or dl, al
mov ebp, dword [esp + 0x14]
cmp edi, ecx
jae 0x5cbc60
sub ebx, ebp
lea esi, [edi + ebp]
sub ecx, edi
nop dword [eax]
mov al, byte [ebx + esi]
lea esi, [esi + 1]
xor al, byte [esi - 1]
or dl, al
sub ecx, 1
jne 0x5cbc50
pop edi
pop esi
test dl, dl
pop ebp
sete al
pop ebx
add esp, 8
ret
Function at 0x62656f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00626220

Function at 0x62657a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.006263aa
Function at 0x63c310
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6779d2
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x70ab0c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
call fcn.00529480
mov dword [edi], vtable.CSkyObject.0
mov dword [edi + 4], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0xf
mov byte [edi + 4], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0xf
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
lea esi, [edi + 0x134]
mov byte [ebp - 4], 1
push 0x2c
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.005c795a
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov dword [edi + 0x1bc], 0
mov dword [edi + 0x1c0], 0
mov dword [edi + 0x1c4], 0
mov dword [edi + 0x1c8], 0x3f800000
mov dword [edi + 0x1cc], 0x3f800000
mov dword [edi + 0x1d0], 0x3f800000
mov dword [edi + 0x1d8], 0
mov dword [edi + 0x1e8], 0
mov dword [edi + 0x1ec], 0xf
mov byte [edi + 0x1d8], 0
lea ecx, [edi + 0x1f4]
mov byte [ebp - 4], 3
call fcn.005395e0
mov dword [edi + 0x174], 0
mov dword [edi + 0x170], 0
mov dword [edi + 0x16c], 0
mov dword [edi + 0x168], 0
mov dword [edi + 0x160], 0
mov dword [edi + 0x15c], 0
mov dword [edi + 0x158], 0
mov dword [edi + 0x154], 0
mov dword [edi + 0x14c], 0
mov dword [edi + 0x148], 0
mov dword [edi + 0x144], 0
mov dword [edi + 0x140], 0
mov dword [edi + 0x178], 0x3f800000
mov dword [edi + 0x164], 0x3f800000
mov dword [edi + 0x150], 0x3f800000
mov dword [edi + 0x13c], 0x3f800000
mov dword [edi + 0x1b4], 0
mov dword [edi + 0x1b0], 0
mov dword [edi + 0x1ac], 0
mov dword [edi + 0x1a8], 0
mov dword [edi + 0x1a0], 0
mov dword [edi + 0x19c], 0
mov dword [edi + 0x198], 0
mov dword [edi + 0x194], 0
mov dword [edi + 0x18c], 0
mov dword [edi + 0x188], 0
mov dword [edi + 0x184], 0
mov dword [edi + 0x180], 0
mov dword [edi + 0x1b8], 0x3f800000
mov dword [edi + 0x1a4], 0x3f800000
mov dword [edi + 0x190], 0x3f800000
mov dword [edi + 0x17c], 0x3f800000
mov byte [ebp - 4], 4
mov dword [edi + 0xf8], 0
mov dword [edi + 0xf4], 0
mov dword [edi + 0xf0], 0
mov dword [edi + 0xec], 0
mov dword [edi + 0xe4], 0
mov dword [edi + 0xe0], 0
mov dword [edi + 0xdc], 0
mov dword [edi + 0xd8], 0
mov dword [edi + 0xd0], 0
mov dword [edi + 0xcc], 0
mov dword [edi + 0xc8], 0
mov dword [edi + 0xc4], 0
mov dword [edi + 0xfc], 0x3f800000
mov dword [edi + 0xe8], 0x3f800000
mov dword [edi + 0xd4], 0x3f800000
mov dword [edi + 0xc0], 0x3f800000
mov ecx, dword [0x79971c]
call fcn.00516b40
mov dword [edi + 0x130], eax
mov eax, edi
mov dword [edi + 0x128], 0
mov dword [edi + 0x12c], 0
mov word [edi + 0x1f0], 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 0x3000c2fb
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x3000e730
call fcn.3000c781
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x30012128
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x3000c09a
cmp eax, esi
jne 0x3000c08d
xor esi, esi
inc esi
mov ebx, esi
jmp 0x3000c09d
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x3000c074
xor esi, esi
inc esi
mov eax, dword [0x30012124]
cmp eax, esi
jne 0x3000c0b0
push 0x1f
call sub.MSVCR80.dll__amsg_exit
pop ecx
jmp 0x3000c0df
mov eax, dword [0x30012124]
test eax, eax
jne 0x3000c0d9
mov dword [0x30012124], esi
push 0x30001290
push 0x30001288
call fcn.301c6000
pop ecx
pop ecx
test eax, eax
je 0x3000c0df
jmp 0x3000c207
mov dword [0x30011ddc], esi
mov eax, dword [0x30012124]
cmp eax, esi
jne 0x3000c103
push 0x30001284
push 0x30001278
call sub.MSVCR80.dll__initterm
pop ecx
pop ecx
mov dword [0x30012124], 2
test ebx, ebx
jne 0x3000c10f
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x30012134], 0
je 0x3000c133
push 0x30012134
call fcn.3000c709
pop ecx
test eax, eax
je 0x3000c133
push 0
push 2
push 0
call dword [0x30012134]
mov eax, dword [sym.imp.MSVCR80.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x3000c18f
test al, al
je 0x3000c14d
cmp dword [ebp - 0x1c], 0
jne 0x3000c18f
mov al, byte [esi]
test al, al
je 0x3000c15d
cmp al, 0x20
ja 0x3000c15d
inc esi
mov dword [ebp - 0x20], esi
jmp 0x3000c14d
test byte [ebp - 0x3c], 1
je 0x3000c169
movzx eax, word [ebp - 0x38]
jmp 0x3000c16c
push 0xa
pop eax
push eax
push esi
push 0
push 0x30000000
call main
mov dword [0x30011dd8], eax
cmp dword [0x30011dcc], 0
jne 0x3000c1e3
push eax
call dword [sym.imp.MSVCR80.dll_exit]
cmp al, 0x22
jne 0x3000c19e
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR80.dll__ismbblead]
pop ecx
test eax, eax
je 0x3000c1b1
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x3000c13a
cmp dword [0x30011ddc], 0
jne 0x3000c1f2
call dword [sym.imp.MSVCR80.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x30011dd8]
jmp 0x3000c213
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.3000c7c6
ret
call fcn.3000bf21
jmp 0x3000c03a
Function at 0x40d7a0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42843c]
jne 0x40d7aa
repz ret
jmp fcn.00414980
Function at 0x41d2f0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x378
cmp dword [0x176b050], 0x37
jne 0x41d38c
push str.royotetazimiwefovulakubujuhabu_zotoredamojukimoyejiliwuyafuyopi_hetahefemabekepuvagulefeg
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea eax, [ebp - 0x378]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfoExW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
push 0
push 0
push 0
lea ecx, [ebp - 0x148]
push ecx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push str.penikecumovufavuvepotovoloses
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
push str.revozogadifaxemufiduladewocelude
push 0
push str.sizeribuyakoxizokuxinokev
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CompareStringW]
mov dword [ebp - 4], 0
mov eax, dword [0x176b054]
add dword [ebp - 4], eax
mov eax, 0x12336
add dword [ebp - 4], eax
mov eax, dword [0x1762a9c]
add eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
add ecx, dword [ebp + 8]
mov dl, byte [ecx]
mov byte [eax], dl
mov esp, ebp
pop ebp
ret 4
Function at 0x41da50
Capabilities:
Copy file
Read .ini file
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [0x176b050], 0x516
jne 0x41da74
push 0
push 0
call sub.KERNEL32.dll_Process32NextW
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
shr edx, 3
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], 0
jmp 0x41da95
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0xc]
jae 0x41db56
cmp dword [0x176b050], 0x29
jne 0x41dacf
push 0
push 0
push 0
push 0
push str.toseyexukigut
push str.ketokekuzapurovugutesomozigamas
call dword [sym.imp.KERNEL32.dll_CopyFileExA]
push 0
push str.kezahotu
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
mov edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
cmp dword [0x176b050], 0xe1b
jne 0x41daeb
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [ebp - 0x10]
shl eax, 1
mov dword [ebp - 0x10], eax
cmp dword [0x176b050], 0x1c
jne 0x41db3e
push str.vuhohezafozitobocuxipegu_jasapituguvojizoxiyeruxa_fux
push 0
lea ecx, [ebp - 0x428]
push ecx
push str.dugexemarohecutunixeya_mocetirebudecoxidu_madibopelijohe_nevidikameyalivece_yudinewufanucoyi
push str.nokimoza_wubarimakebiyi
push str.ziboza_gerugakugunekejurijo_xudahufapixiyudo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [ebp - 0x28], 0
xor edx, edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
lea eax, [edx + ecx*4]
push eax
call fcn.0041d660
jmp 0x41da8c
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41db60
Capabilities:
Accept command line arguments
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x21a0
call fcn.004108c0
mov dword [ebp - 4], 0
jmp 0x41db7f
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x32d05d76
jge 0x41dc19
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x176b050], 0xfc
jne 0x41dbb5
push str.pohebowofetakolijuwuxice_fovupokolevaw_deyinufiwucedivugitunucewa_guvoho_tarinemukawediwez
push 0
push str.zisunuxa_zujuhel_cuyijenuradocaniyi
push str.vemivayofojuk_tajab
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x176b050], 0x5e4
jne 0x41dc09
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0
lea ecx, [ebp - 0x858]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
lea edx, [ebp - 0x978]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfoExA]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_QueryMemoryResourceNotification]
cmp dword [ebp - 4], 0x9be51dc
jle 0x41dc14
jmp 0x41dc19
jmp 0x41db76
push 0x428fd0
mov eax, dword [0x176b050]
push eax
mov ecx, dword [0x1762a9c]
push ecx
call fcn.0041da50
mov dword [ebp - 0x97c], 0
jmp 0x41dc4b
mov edx, dword [ebp - 0x97c]
add edx, 1
mov dword [ebp - 0x97c], edx
cmp dword [ebp - 0x97c], 0x3e79e
jge 0x41dc80
cmp dword [0x176b050], 0x10
jne 0x41dc6d
lea eax, [ebp - 0x980]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp dword [ebp - 0x97c], 0x1e673
jne 0x41dc7e
call fcn.0041d2d0
jmp 0x41dc3c
mov dword [ebp - 0x984], 0
jmp 0x41dc9b
mov ecx, dword [ebp - 0x984]
add ecx, 1
mov dword [ebp - 0x984], ecx
cmp dword [ebp - 0x984], 0xdd9a7
jge 0x41dcc1
cmp dword [0x176b050], 0xc01
jne 0x41dcbf
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
jmp 0x41dc8c
jmp dword [0x1762a9c]
Function at 0x10005690
Capabilities:
Create directory

Disassembly:
sub esp, 0x144
mov eax, dword [0x100677a0]
xor eax, esp
mov dword [esp + 0x140], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x154]
mov eax, edi
mov ebp, ecx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x100056b5
sub eax, edx
lea esi, [eax + eax*4 + 5]
add esi, esi
push esi
call fcn.10038ffc
mov dword [ebp + 0x1c], eax
mov byte [eax + esi - 1], 0
mov eax, dword [ebp + 0x1c]
add esp, 4
test eax, eax
je 0x1000578a
push 0x20
push eax
call fcn.1003ac43
mov edx, dword [ebp + 0x1c]
add esp, 8
mov ecx, edi
mov al, byte [ecx]
mov byte [edx], al
add ecx, 1
add edx, 1
test al, al
jne 0x100056f2
mov eax, dword [ebp + 0x1c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10005706
sub eax, edx
lea esi, [eax + eax*4 + 5]
add esi, esi
push esi
call fcn.10038ffc
mov edi, eax
add esp, 4
test edi, edi
mov byte [edi + esi - 1], 0
je 0x10005772
push 0x20
push edi
call fcn.1003ac43
mov eax, dword [ebp + 0x1c]
add esp, 8
push edi
push eax
mov ecx, ebp
call fcn.100050d0
test al, al
je 0x10005769
lea ecx, [esp + 0xc]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x10005762
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x10005769
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call fcn.10038f4b
add esp, 4
mov edx, dword [ebp + 0x1c]
push 0x100556cc
push edx
call fcn.1003af00
mov dword [ebp + 0x20], eax
add esp, 8
mov al, 1
jmp 0x1000578c
xor al, al
mov ecx, dword [esp + 0x14c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.1003942d
add esp, 0x144
ret 4
call fcn.10005030
test al, al
jne 0x1000581c
ret 4
mov ecx, dword [ecx + 4]
jmp 0x10005690
Function at 0x10005810
Capabilities:
Create directory

Disassembly:
sub esp, 0x144
mov eax, dword [0x100677a0]
xor eax, esp
mov dword [esp + 0x140], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x154]
mov eax, edi
mov ebp, ecx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x100056b5
sub eax, edx
lea esi, [eax + eax*4 + 5]
add esi, esi
push esi
call fcn.10038ffc
mov dword [ebp + 0x1c], eax
mov byte [eax + esi - 1], 0
mov eax, dword [ebp + 0x1c]
add esp, 4
test eax, eax
je 0x1000578a
push 0x20
push eax
call fcn.1003ac43
mov edx, dword [ebp + 0x1c]
add esp, 8
mov ecx, edi
mov al, byte [ecx]
mov byte [edx], al
add ecx, 1
add edx, 1
test al, al
jne 0x100056f2
mov eax, dword [ebp + 0x1c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10005706
sub eax, edx
lea esi, [eax + eax*4 + 5]
add esi, esi
push esi
call fcn.10038ffc
mov edi, eax
add esp, 4
test edi, edi
mov byte [edi + esi - 1], 0
je 0x10005772
push 0x20
push edi
call fcn.1003ac43
mov eax, dword [ebp + 0x1c]
add esp, 8
push edi
push eax
mov ecx, ebp
call fcn.100050d0
test al, al
je 0x10005769
lea ecx, [esp + 0xc]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x10005762
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x10005769
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call fcn.10038f4b
add esp, 4
mov edx, dword [ebp + 0x1c]
push 0x100556cc
push edx
call fcn.1003af00
mov dword [ebp + 0x20], eax
add esp, 8
mov al, 1
jmp 0x1000578c
xor al, al
mov ecx, dword [esp + 0x14c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.1003942d
add esp, 0x144
ret 4
call fcn.10005030
test al, al
jne 0x1000581c
ret 4
mov ecx, dword [ecx + 4]
jmp 0x10005690

Function at 0x100059f0
Capabilities:
Access peb ldr_data
Create thread
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x10051a73
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100677a0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x18], esi
call fcn.100058a0
push 0
push 0
lea edi, [esi + 0x18]
push 1
mov ecx, edi
mov dword [esp + 0x30], 0
mov dword [esi], vtable.OsThread.0
call fcn.10005930
mov eax, dword [edi]
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x30]
mov edx, dword [eax + 4]
mov ecx, edi
mov byte [esp + 0x24], 1
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebp
mov dword [esi + 0x10], 0
call edx
lea eax, [esp + 0x14]
push eax
push 0
push esi
push 0x100059a0
push ebx
push 0
call fcn.1003b00d
mov ecx, dword [esp + 0x2c]
add esp, 0x18
mov ebx, eax
push ebp
push ebx
mov dword [esi + 0x14], ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push ebx
mov ecx, esi
call fcn.100058e0
mov ecx, edi
call fcn.10005910
test eax, eax
jne 0x10005a94
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
Function at 0x10005bea
Capabilities:
Set socket configuration

Disassembly:
mov ecx, dword [esp + 4]
mov al, byte [ecx]
push esi
xor esi, esi
test al, al
mov edx, ecx
je 0x10005c0a
cmp al, 0x2e
jne 0x10005bfe
inc esi
inc edx
mov al, byte [edx]
test al, al
jne 0x10005bf9
cmp esi, 3
je 0x10005c0e
xor eax, eax
jmp 0x10005c23
push ecx
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, 0xffffffff
je 0x10005c0a
mov ecx, dword [esp + 0xc]
mov dword [ecx], eax
xor eax, eax
inc eax
pop esi
ret 8

Function at 0x10005c8c
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x1c]
and dword [edi], 0
push dword [ebp + 8]
mov byte [eax], 0
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x10005d02
cmp word [ebx + 8], 2
jne 0x10005ce2
cmp word [ebx + 0xa], 4
jne 0x10005ce2
mov esi, dword [ebx + 0xc]
jmp 0x10005cdc
push dword [eax]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.10005c27
test eax, eax
mov dword [edi], eax
je 0x10005cfd
lea edi, [eax + 0x1c]
add esi, 4
mov eax, dword [esi]
test eax, eax
jne 0x10005cc0
push 0x400
push dword [ebx]
push 0x401
push dword [ebp + 0x18]
call fcn.1003b3ae
add esp, 0x10
xor eax, eax
jmp 0x10005d28
push 8
pop eax
jmp 0x10005d28
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov ecx, eax
mov eax, 0x2af9
sub ecx, eax
je 0x10005d28
dec ecx
je 0x10005d23
dec ecx
je 0x10005d1c
dec ecx
jmp 0x10005d28
mov eax, 0x2afb
jmp 0x10005d28
mov eax, 0x2afa
pop edi
pop esi
pop ebx
pop ebp
ret 0x18
Function at 0x10006324
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x1b0]
sub esp, 0x230
mov eax, dword [0x100677a0]
xor eax, ebp
mov dword [ebp + 0x1ac], eax
cmp dword [0x10068cc8], 0
mov dword [ebp - 0x80], str.getaddrinfo
mov dword [ebp - 0x7c], 0x10005ee3
mov dword [ebp - 0x78], str.getnameinfo
mov dword [ebp - 0x74], 0x1000616a
mov dword [ebp - 0x70], str.freeaddrinfo
mov dword [ebp - 0x6c], fcn.10005eaa
jne 0x1000648a
push 0x104
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x10006480
push ebx
push esi
push edi
lea eax, [ebp - 0x68]
push eax
mov esi, 0x10c
lea eax, [ebp + 0xa0]
push esi
push eax
call fcn.1003b1ec
push str.ws2_32
lea eax, [ebp + 0xa0]
push esi
push eax
call fcn.1003b6df
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x18
lea eax, [ebp + 0xa0]
push eax
call ebx
mov edi, eax
test edi, edi
je 0x100063ed
push str.getaddrinfo
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x100063e9
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
test edi, edi
jne 0x1000643f
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp + 0xa0]
push esi
push eax
call fcn.1003b1ec
push str.wship6
lea eax, [ebp + 0xa0]
push esi
push eax
call fcn.1003b6df
add esp, 0x18
lea eax, [ebp + 0xa0]
push eax
call ebx
mov edi, eax
test edi, edi
je 0x1000647d
push str.getaddrinfo
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x1000643b
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
test edi, edi
je 0x1000647d
xor esi, esi
push dword [ebp + esi*8 - 0x80]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [ebp + esi*8 - 0x7c], eax
je 0x1000645c
inc esi
cmp esi, 3
jl 0x10006441
jmp 0x10006465
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
test edi, edi
je 0x1000647d
xor eax, eax
mov ecx, dword [ebp + eax - 0x7c]
mov dword [eax + 0x100664f4], ecx
add eax, 8
cmp eax, 0x18
jl 0x1000646b
pop edi
pop esi
pop ebx
mov dword [0x10068cc8], 1
movzx eax, word [ebp + 0x1b8]
mov ecx, dword [ebp + 0x1ac]
mov eax, dword [eax*8 + 0x100664f4]
xor ecx, ebp
call fcn.1003942d
add ebp, 0x1b0
leave
ret 4