joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100de9f0
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], vtable.CmdShell.0
test eax, eax
je 0x100dea0a
push eax
call edi
mov eax, dword [esi + 4]
test eax, eax
je 0x100dea14
push eax
call edi
mov eax, dword [esi + 0xc]
test eax, eax
je 0x100dea1e
push eax
call edi
mov eax, dword [esi + 0x10]
test eax, eax
je 0x100dea28
push eax
call edi
mov eax, dword [esi + 0x18]
test eax, eax
je 0x100dea3e
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esi + 0x18]
push eax
call edi
mov esi, dword [esi + 0x20]
sub esi, 0x10
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100dea5d
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
pop edi
pop esi
ret

Function at 0x100deb00
Capabilities:
Read file on windows
Read pipe

Disassembly:
mov eax, 0x1018
call fcn.100b4600
mov eax, dword [0x102ac760]
xor eax, esp
mov dword [esp + 0x1014], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edi, dword [esp + 0x1028]
cmp dword [esi + 0xc], ebx
je 0x100deb7f
mov eax, dword [esi + 0x18]
cmp eax, ebx
je 0x100deb7f
push ebx
push eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [esi + 0x28], eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esi + 0xc]
lea edx, [esp + 0x14]
push edx
push 0x1000
lea eax, [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
jne 0x100deb9b
mov eax, dword [esi + 0x18]
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
xor al, al
mov ecx, dword [esp + 0x1020]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100b2738
add esp, 0x1018
ret 4
cmp dword [esp + 0xc], ebx
jbe 0x100deb7f
mov eax, dword [esi + 0xc]
push ebx
lea ecx, [esp + 0x10]
push ecx
push 0x1000
lea edx, [esp + 0x28]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100deb7f
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x100deb7f
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, edi
mov byte [esp + eax + 0x24], bl
call fcn.10008c00
mov al, 1
jmp 0x100deb81

Function at 0x100debe0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x14], 0
je 0x100dec32
push ebx
mov ebx, dword [esp + 0xc]
push edi
lea edi, [esi + 0x20]
push ebx
mov ecx, edi
call fcn.100033f0
mov ecx, edi
call fcn.100315f0
mov ecx, eax
call fcn.10031650
mov eax, ebx
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100dec10
push 0
lea ecx, [esp + 0x14]
push ecx
sub eax, edx
mov edx, dword [esi + 8]
push eax
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
mov byte [esi + 0x1c], 1
pop ebx
pop esi
ret 4
Function at 0x100df5b0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
xor eax, eax
push edi
push 0x44
push eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x20]
push eax
mov esi, ecx
call fcn.100b2d30
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 4]
or dword [esp + 0x50], 0x100
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x6c]
add esp, 0xc
mov dword [esp + 0x50], ecx
xor edx, edx
push eax
lea ecx, [esp + 0x64]
mov dword [esp + 0x1c], 0x44
mov word [esp + 0x4c], dx
call fcn.10002e70
mov edi, dword [esp + 0x60]
cmp dword [edi - 4], 1
jle 0x100df62b
mov ecx, dword [edi - 0xc]
push ecx
lea ecx, [esp + 0x64]
call fcn.10005350
mov edi, dword [esp + 0x60]
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0x8000000
push 1
push 0
push 0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x100df677
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100df66d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
xor al, al
pop esi
add esp, 0x54
ret 4
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push edx
mov dword [esi + 0x18], ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100df6a5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
mov al, 1
pop esi
add esp, 0x54
ret 4

Function at 0x100df6b0
Capabilities:
Create pipe
Create two anonymous pipes

Disassembly:
sub esp, 0xc
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreatePipe]
push esi
push edi
push 0
mov esi, ecx
lea eax, [esp + 0x10]
push eax
lea ecx, [esi + 0x10]
push ecx
lea edi, [esi + 0xc]
push edi
mov dword [esp + 0x1c], 0xc
mov dword [esp + 0x24], 1
mov dword [esp + 0x20], 0
call ebp
test eax, eax
je 0x100df73a
mov edx, dword [edi]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetHandleInformation]
push 0
push 1
push edx
call ebx
test eax, eax
je 0x100df739
push 0
lea eax, [esp + 0x14]
push eax
lea edi, [esi + 8]
push edi
lea ecx, [esi + 4]
push ecx
call ebp
test eax, eax
je 0x100df739
mov edx, dword [edi]
push 0
push 1
push edx
call ebx
test eax, eax
je 0x100df739
mov eax, dword [esp + 0x20]
push eax
mov ecx, esi
call fcn.100df5b0
test al, al
je 0x100df739
mov byte [esi + 0x14], 1
mov byte [esi + 0x1c], 1
pop ebx
pop edi
pop esi
pop ebp
add esp, 0xc
ret 4
Function at 0x100e0290
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebp
push esi
push edi
mov edi, ecx
call ebx
mov esi, dword [esp + 0x14]
mov ebp, eax
cmp esi, 0xffffffff
je 0x100e02b1
call ebx
sub eax, ebp
cmp eax, esi
ja 0x100e02cf
mov eax, dword [edi + 0x2c]
cmp eax, 3
je 0x100e02c5
cmp eax, 4
je 0x100e02cf
call fcn.100d89f0
jmp 0x100e02a4
lea eax, [edi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
ret 4
lea esi, [edi + 0x30]
mov ecx, esi
call fcn.10011690
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x100e8ea0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ecx
cmp dword [ecx + 0x60], 3
push ebx
push esi
push edi
je 0x100e8eb3
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
test byte [0x102b1ae0], 1
jne 0x100e8eda
or dword [0x102b1ae0], 1
mov ecx, 0x102b1ad8
call fcn.100eef40
push 0x10112dc0
call fcn.100b3915
add esp, 4
push ecx
mov ecx, esp
push 0x102852cc
call fcn.10002e70
mov ecx, 0x102b1ad8
call fcn.100eefb0
mov bl, byte [esp + 0x14]
test bl, bl
je 0x100e9001
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xea60
ja 0x100e9001
jmp 0x100e8f20
mov eax, dword [0x102b0b9c]
mov edx, dword [eax + 0xc]
mov ecx, 0x102b0b9c
call edx
push 0
push 1
push 1
add eax, 0x10
push 0
mov dword [esp + 0x24], eax
push 0x4e20
lea eax, [esp + 0x28]
push eax
push str.shell_mount
call fcn.100d5e00
add esp, 0x1c
test eax, eax
jle 0x100e8fbd
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jl 0x100e8f7d
push str._cache
push eax
call fcn.100b2ecd
add esp, 8
test eax, eax
je 0x100e8f7d
sub eax, dword [esp + 0x14]
sar eax, 1
jns 0x100e8ff8
push 0
push 0x1388
call fcn.100d8a10
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100e8fac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call esi
sub eax, edi
cmp eax, 0xea60
jbe 0x100e8f20
jmp 0x100e9001
call fcn.100e1230
add eax, 4
push 0x102852cc
push eax
call fcn.100059e0
add esp, 8
test al, al
je 0x100e8fe3
call fcn.100e1230
mov ecx, eax
call fcn.100eef30
lea ecx, [esp + 0x14]
call fcn.10003610
mov eax, 2
pop edi
pop esi
pop ebx
pop ecx
ret 4
lea ecx, [esp + 0x14]
call fcn.10003610
push 1
push 0
push ecx
mov ecx, esp
push str._tmp_extendedcommand
call fcn.10002e70
call fcn.100d7570
add esp, 0xc
mov edi, eax
mov esi, 2
test bl, bl
je 0x100e9040
push 1
push 0
push ecx
mov ecx, esp
push str._cache_recovery_extendedcommand
call fcn.10002e70
call fcn.100d7570
add esp, 0xc
mov esi, eax
test byte [0x102b1ae0], 1
jne 0x100e9067
or dword [0x102b1ae0], 1
mov ecx, 0x102b1ad8
call fcn.100eef40
push 0x10112dc0
call fcn.100b3915
add esp, 4
push 0x102852cc
push 0x102b1adc
call fcn.100059e0
add esp, 8
test al, al
je 0x100e90ae
test byte [0x102b1ae0], 1
jne 0x100e90a4
or dword [0x102b1ae0], 1
mov ecx, 0x102b1ad8
call fcn.100eef40
push 0x10112dc0
call fcn.100b3915
add esp, 4
mov ecx, 0x102b1ad8
call fcn.100eef30
test edi, edi
je 0x100e90d1
test esi, esi
je 0x100e90d1
cmp edi, 1
je 0x100e8fec
cmp esi, 1
je 0x100e8fec
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 4
Function at 0x100f0270
Capabilities:
Delete file

Disassembly:
sub esp, 8
push esi
push edi
mov esi, ecx
push 4
mov dword [esi + 0x14], 0
call fcn.100f0330
lea eax, [esp + 8]
push 0x1027e65c
push eax
call fcn.10077b2d
mov ecx, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esp, 8
push ecx
call edi
push str..tdl
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
call fcn.10008a30
mov ecx, dword [eax]
add esp, 0xc
push ecx
call edi
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100f02e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi + 0xc]
push esi
call fcn.100fa060
mov ecx, dword [esp + 8]
mov edx, dword [esi + 0x10]
push ecx
mov ecx, dword [esi + 0xc]
push edx
call fcn.100f99a0
mov ecx, dword [esi + 0xc]
push 0
push 1
call fcn.100f9970
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
pop edi
pop esi
test edx, edx
jg 0x100f0328
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esp, 8
ret

Function at 0x100f0330
Capabilities:
Create process on windows

Disassembly:
push edi
mov edi, ecx
call fcn.100e2da0
mov ecx, dword [eax]
call fcn.100e10f0
test eax, eax
je 0x100f045e
push esi
mov esi, dword [esp + 0xc]
cmp esi, 9
ja case.0x100f0355.3
jmp dword [esi*4 + 0x100f0464]
mov ecx, edi
call fcn.100f0270
jmp case.0x100f0355.3
call fcn.100e2da0
mov ecx, dword [eax]
call fcn.100e10f0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
push 0
call eax
jmp case.0x100f0355.3
call fcn.100e2da0
mov ecx, dword [eax]
call fcn.100e10f0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
push 3
call eax
jmp case.0x100f0355.3
call fcn.100e2da0
mov ecx, dword [eax]
call fcn.100e10f0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
push 6
call eax
jmp case.0x100f0355.3
call fcn.100e2da0
mov ecx, dword [eax]
call fcn.100e10f0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x38]
push 0x10285b48
call eax
push 0
push 0
push 0
push str.http:__www.shuame.com
push 0x1011401c
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, esi
sub eax, 5
pop esi
je 0x100f0440
sub eax, 1
je 0x100f0412
sub eax, 1
jne 0x100f045e
call fcn.100e2da0
mov ecx, dword [eax]
call fcn.100e10f0
mov edx, dword [eax]
pop edi
mov dword [esp + 4], 2
mov ecx, eax
mov eax, dword [edx + 0x30]
jmp eax
mov eax, dword [edi + 0x18]
push eax
call fcn.100ec980
mov ecx, eax
call fcn.100ec870
call fcn.100e2da0
mov ecx, dword [eax]
call fcn.100e10f0
mov edx, dword [eax]
pop edi
mov dword [esp + 4], 1
mov ecx, eax
mov eax, dword [edx + 0x30]
jmp eax
call fcn.100e2da0
mov ecx, dword [eax]
call fcn.100e10f0
mov edx, dword [eax]
pop edi
mov dword [esp + 4], 5
mov ecx, eax
mov eax, dword [edx + 0x30]
jmp eax
pop edi
ret 4
Function at 0x100f0880
Capabilities:
Delete file

Disassembly:
sub esp, 0x10
push ebx
mov ebx, ecx
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
add eax, 0xfffffffa
cmp eax, 5
ja case.default.0x100f0899
push esi
jmp dword [eax*4 + 0x100f0a80]
lea eax, [esp + 8]
push 0x1027e65c
push eax
call fcn.10077b2d
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.101015b0
add esp, 0x10
mov ecx, eax
call fcn.100310f0
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.10003c40
mov esi, eax
mov eax, dword [esp + 0x20]
add esi, 0x10
add eax, 0xfffffff0
add esp, 4
mov dword [esp + 0x10], esi
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100f08fb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100f091b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
lea ecx, [ebx + 0x55b4]
call fcn.100310f0
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.10003c40
lea ecx, [esp + 0x14]
mov edi, eax
push ecx
lea edx, [esp + 0x1c]
add edi, 0x10
push edx
mov dword [esp + 0x1c], edi
call fcn.100e7e80
add esp, 0xc
test al, al
je 0x100f0995
lea eax, [esp + 0x18]
push 0x1027e65c
push eax
call fcn.10077b2d
mov ecx, dword [eax]
add esp, 8
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x18]
call fcn.10003610
call fcn.100e2da0
mov ecx, dword [eax]
call fcn.100e10f0
test eax, eax
je 0x100f09cc
call fcn.100e2da0
mov ecx, dword [eax]
call fcn.100e10f0
push 2
jmp 0x100f09c3
call fcn.100e2da0
mov ecx, dword [eax]
call fcn.100e10f0
test eax, eax
je 0x100f09cc
mov eax, dword [ebx + 0x18]
push eax
call fcn.100ec980
mov ecx, eax
call fcn.100ec870
call fcn.100e2da0
mov ecx, dword [eax]
call fcn.100e10f0
push 1
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
call eax
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
pop edi
test edx, edx
jg 0x100f09e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg case.0x100f0899.7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop esi
pop ebx
add esp, 0x10
ret 4
mov esi, dword [ecx + 4]
test esi, esi
jbe 0x100f0a21
mov eax, dword [ecx + 8]
imul eax, eax, 0x64
xor edx, edx
div esi
mov dword [ebx + 0x14], eax
call fcn.100e2da0
mov ecx, dword [eax]
call fcn.100e10f0
test eax, eax
je case.0x100f0899.7
call fcn.100e2da0
mov ecx, dword [eax]
call fcn.100e10f0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
push 5
call eax
pop esi
pop ebx
add esp, 0x10
ret 4
call fcn.100e2da0
mov ecx, dword [eax]
call fcn.100e10f0
test eax, eax
je case.0x100f0899.7
call fcn.100e2da0
mov ecx, dword [eax]
call fcn.100e10f0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
push 2
call eax
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x100f08a0
Capabilities:
Delete file

Disassembly:
sub esp, 0x10
push ebx
mov ebx, ecx
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
add eax, 0xfffffffa
cmp eax, 5
ja case.default.0x100f0899
push esi
jmp dword [eax*4 + 0x100f0a80]
lea eax, [esp + 8]
push 0x1027e65c
push eax
call fcn.10077b2d
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.101015b0
add esp, 0x10
mov ecx, eax
call fcn.100310f0
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.10003c40
mov esi, eax
mov eax, dword [esp + 0x20]
add esi, 0x10
add eax, 0xfffffff0
add esp, 4
mov dword [esp + 0x10], esi
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100f08fb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100f091b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
lea ecx, [ebx + 0x55b4]
call fcn.100310f0
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.10003c40
lea ecx, [esp + 0x14]
mov edi, eax
push ecx
lea edx, [esp + 0x1c]
add edi, 0x10
push edx
mov dword [esp + 0x1c], edi
call fcn.100e7e80
add esp, 0xc
test al, al
je 0x100f0995
lea eax, [esp + 0x18]
push 0x1027e65c
push eax
call fcn.10077b2d
mov ecx, dword [eax]
add esp, 8
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x18]
call fcn.10003610
call fcn.100e2da0
mov ecx, dword [eax]
call fcn.100e10f0
test eax, eax
je 0x100f09cc
call fcn.100e2da0
mov ecx, dword [eax]
call fcn.100e10f0
push 2
jmp 0x100f09c3
call fcn.100e2da0
mov ecx, dword [eax]
call fcn.100e10f0
test eax, eax
je 0x100f09cc
mov eax, dword [ebx + 0x18]
push eax
call fcn.100ec980
mov ecx, eax
call fcn.100ec870
call fcn.100e2da0
mov ecx, dword [eax]
call fcn.100e10f0
push 1
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
call eax
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
pop edi
test edx, edx
jg 0x100f09e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg case.0x100f0899.7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop esi
pop ebx
add esp, 0x10
ret 4
mov esi, dword [ecx + 4]
test esi, esi
jbe 0x100f0a21
mov eax, dword [ecx + 8]
imul eax, eax, 0x64
xor edx, edx
div esi
mov dword [ebx + 0x14], eax
call fcn.100e2da0
mov ecx, dword [eax]
call fcn.100e10f0
test eax, eax
je case.0x100f0899.7
call fcn.100e2da0
mov ecx, dword [eax]
call fcn.100e10f0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
push 5
call eax
pop esi
pop ebx
add esp, 0x10
ret 4
call fcn.100e2da0
mov ecx, dword [eax]
call fcn.100e10f0
test eax, eax
je case.0x100f0899.7
call fcn.100e2da0
mov ecx, dword [eax]
call fcn.100e10f0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
push 2
call eax
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x100f5f51
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x100f5f82
call fcn.100bb883
mov dword [eax], esi
call fcn.100bb870
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.100b231c
add esp, 0x14
push 0x16
pop eax
jmp 0x100f5fd7
test dword [ebp + 0xc], 0xfffffff9
jne 0x100f5f5e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x100f5faf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.100bb896
pop ecx
call fcn.100bb870
mov eax, dword [eax]
jmp 0x100f5fd7
test al, 0x10
jne 0x100f5fd5
test al, 1
je 0x100f5fd5
test byte [ebp + 0xc], 2
je 0x100f5fd5
call fcn.100bb883
mov dword [eax], 5
call fcn.100bb870
mov dword [eax], 0xd
jmp 0x100f5fa6
xor eax, eax
pop esi
pop ebp
ret

Function at 0x100f9b80
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x110], 0
cmp dword [ebp - 0x110], 0x40
jae 0x100f9bce
mov eax, dword [ebp - 0x110]
mov ecx, dword [ebp - 0x11c]
mov edx, dword [ecx + 4]
mov dword [ebp + eax*4 - 0x10c], edx
mov eax, dword [ebp - 0x110]
add eax, 1
mov dword [ebp - 0x110], eax
xor ecx, ecx
jne 0x100f9ba0
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, 0x3e8
div ecx
mov dword [ebp - 0x118], eax
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, 0x3e8
div ecx
mov dword [ebp - 0x114], edx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x120], edx
cmp dword [ebp - 0x120], 1
je 0x100f9c1c
cmp dword [ebp - 0x120], 2
je 0x100f9c45
cmp dword [ebp - 0x120], 4
je 0x100f9c6e
jmp 0x100f9c97
lea eax, [ebp - 0x118]
push eax
push 0
push 0
lea ecx, [ebp - 0x110]
push ecx
mov edx, dword [ebp - 0x11c]
mov eax, dword [edx + 4]
add eax, 1
push eax
call sub.WS2_32.dll_select
mov dword [ebp - 4], eax
jmp 0x100f9c9b
lea ecx, [ebp - 0x118]
push ecx
push 0
lea edx, [ebp - 0x110]
push edx
push 0
mov eax, dword [ebp - 0x11c]
mov ecx, dword [eax + 4]
add ecx, 1
push ecx
call sub.WS2_32.dll_select
mov dword [ebp - 4], eax
jmp 0x100f9c9b
lea edx, [ebp - 0x118]
push edx
lea eax, [ebp - 0x110]
push eax
push 0
push 0
mov ecx, dword [ebp - 0x11c]
mov edx, dword [ecx + 4]
add edx, 1
push edx
call sub.WS2_32.dll_select
mov dword [ebp - 4], eax
jmp 0x100f9c9b
xor al, al
jmp 0x100f9cc1
cmp dword [ebp - 4], 0
jle 0x100f9cbf
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp - 0x11c]
mov edx, dword [ecx + 4]
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x100f9cbf
mov al, 1
jmp 0x100f9cc1
xor al, al
mov esp, ebp
pop ebp
ret 8
Function at 0x100f9df0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x102ac760]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, byte [ebp + 8]
and eax, 0xff
movzx ecx, al
movzx edx, byte [ebp + 0xc]
and edx, 0xff
movzx eax, dl
shl eax, 8
or ecx, eax
mov word [ebp - 0x19c], cx
lea ecx, [ebp - 0x198]
push ecx
movzx edx, word [ebp - 0x19c]
push edx
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x100f9e44
xor al, al
jmp 0x100f9e80
movzx eax, word [ebp - 0x198]
and eax, 0xff
movzx ecx, al
movzx edx, byte [ebp + 8]
cmp ecx, edx
je 0x100f9e7e
movzx eax, word [ebp - 0x198]
shr eax, 8
and eax, 0xff
movzx ecx, al
movzx edx, byte [ebp + 0xc]
cmp ecx, edx
je 0x100f9e7e
call fcn.100f9dd0
xor al, al
jmp 0x100f9e80
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100b2738
mov esp, ebp
pop ebp
ret

Function at 0x100f9e90
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
call fcn.100f9b40
movzx eax, al
test eax, eax
jne 0x100f9eaa
xor al, al
jmp 0x100f9ee6
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0xffffffff
jne 0x100f9ec8
xor al, al
jmp 0x100f9ee6
push 0x10
mov ecx, dword [ebp + 8]
call fcn.1000c300
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call sub.WS2_32.dll_connect
neg eax
sbb eax, eax
add eax, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x100f9ef0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x102ac760]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x118], ecx
mov eax, dword [ebp + 8]
push eax
call fcn.100f9d90
add esp, 4
movzx ecx, al
test ecx, ecx
je 0x100f9f2d
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x118]
call fcn.100f9cf0
jmp 0x100f9f8b
push 0
push 0
push 0x104
lea eax, [ebp - 0x110]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x100f9f55
xor al, al
jmp 0x100f9f8b
lea edx, [ebp - 0x110]
push edx
call sub.WS2_32.dll_gethostbyname
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
jne 0x100f9f74
xor al, al
jmp 0x100f9f8b
mov eax, dword [ebp - 0x114]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x118]
mov ecx, dword [edx]
mov dword [eax], ecx
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100b2738
mov esp, ebp
pop ebp
ret 4
Function at 0x100fd130
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x102ac760]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x100fd158
mov eax, 1
jmp 0x100fd1b7
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x210]
push edx
call fcn.1001b740
add esp, 8
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
jne 0x100fd18b
xor eax, eax
jmp 0x100fd1b7
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x100fd1ab
lea edx, [ebp - 0x210]
push edx
call fcn.100fd130
add esp, 4
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100b2738
mov esp, ebp
pop ebp
ret