joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4050db
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x43c068]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x234], eax
push edi
test esi, esi
je 0x4051a7
push 0x228
xor edi, edi
lea eax, [ebp - 0x22c]
push edi
push eax
call fcn.00416590
add esp, 0xc
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4051a7
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x405167
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00418011
pop ecx
pop ecx
test eax, eax
je 0x40516d
lea eax, [ebp - 0x230]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x405146
jmp 0x40519c
push dword [ebp - 0x228]
push edi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push dword [ebp - 0x234]
mov esi, eax
push 0xf01ff
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x4051a9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413b09
leave
ret 8

Function at 0x4051bf
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x4051d1
push 0xd
pop eax
jmp 0x405203
mov ecx, edx
push ebx
push edi
xor ebx, ebx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4051da
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x405b40
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x204], edi
jne 0x405bb4
push dword [esi + 0x20c]
mov dword [esi + 0x204], 1
push edi
push edi
push 0xffffffffffffffff
mov dword [esi + 0x208], edi
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [esi + 0x210], eax
test eax, eax
je 0x405bad
mov ecx, esi
call fcn.004069b0
test eax, eax
je 0x405bad
push edi
push edi
push esi
push 0x40646a
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push edi
push eax
mov dword [esi + 0x214], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x405bad
xor eax, eax
inc eax
jmp 0x405bb6
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
xor eax, eax
pop edi
pop esi
ret

Function at 0x406855
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
je 0x40686a
cmp dword [ebp + 0x10], 0x6d
jne 0x4068d7
pop ebp
jmp fcn.004068db
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x28]
sub eax, 0
je 0x40689c
sub eax, 1
je 0x406892
sub eax, 1
je 0x4068d6
sub eax, 1
je 0x406888
int3
push ecx
push ecx
push esi
call fcn.004068db
jmp 0x4068d6
push ecx
push ecx
push esi
call fcn.00406920
jmp 0x4068d6
cmp dword [ebp + 0xc], 0
je 0x4068b0
push dword [ebp + 0xc]
push dword [esi + 0x18]
push dword [esi + 0x14]
call fcn.00406ad0
push esi
lea eax, [ebp + 0x10]
push eax
push dword [esi + 0x2c]
push dword [esi + 0x18]
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4068d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x4068d6
nop
pop esi
pop ebp
ret 0xc

Function at 0x4069b0
Capabilities:
Create thread

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x218], ebx
jne 0x406a1f
push 4
push dword [esi + 0x20c]
call fcn.004195ee
mov dword [esi + 0x218], eax
pop ecx
pop ecx
test eax, eax
je 0x406a1f
xor eax, eax
push edi
mov edi, eax
cmp dword [esi + 0x20c], eax
jbe 0x406a1a
push eax
push eax
push esi
push 0x4067df
push eax
push eax
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esi + 0x218]
mov dword [ecx + edi*4], eax
mov eax, dword [esi + 0x218]
cmp dword [eax + edi*4], 0
je 0x406a1a
xor ebx, ebx
inc ebx
inc edi
push 0
pop eax
cmp edi, dword [esi + 0x20c]
jb 0x4069e4
mov eax, ebx
pop edi
jmp 0x406a21
xor eax, eax
pop esi
pop ebx
ret
Function at 0x406a24
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x23c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp + 8]
lea ecx, [esi + 0x21c]
call fcn.00407b6d
test eax, eax
je 0x406ac1
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
mov ecx, eax
call fcn.00407507
mov ecx, eax
mov dword [ebp + 8], ecx
test ecx, ecx
je 0x406ac1
push edi
mov edi, dword [ebp + 0xc]
mov edi, dword [edi]
lea edx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x406a6a
lea esi, [ecx + 0x18]
sub edi, edx
push esi
inc edi
mov ecx, esi
push edi
call fcn.00406de9
mov eax, dword [ebp + 0xc]
push edi
push dword [eax]
push dword [esi]
call fcn.00415a90
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push edi
push dword [esi]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
test eax, eax
jne 0x406abc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x406ac8
xor eax, eax
inc eax
jmp 0x406aca
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
pop esi
pop ebx
leave
ret 8

Function at 0x40bab0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x43cc18], 0
push esi
mov esi, dword [ebp + 8]
jne 0x40bbbb
push 0x43cc1c
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x40bba9
test esi, esi
jne 0x40bb9e
push ebx
push edi
push str.advapi32.dll
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
je 0x40bb7e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptAcquireContextA
push esi
call edi
mov ebx, eax
test ebx, ebx
je 0x40bb7e
push str.CryptGenRandom
push esi
call edi
mov dword [ebp - 8], eax
test eax, eax
je 0x40bb7e
push str.CryptReleaseContext
push esi
call edi
mov edi, eax
test edi, edi
je 0x40bb7e
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp + 8]
push eax
call ebx
test eax, eax
je 0x40bb7e
lea eax, [ebp - 4]
push eax
push 4
push dword [ebp + 8]
call dword [ebp - 8]
push 0
push dword [ebp + 8]
mov esi, eax
call edi
test esi, esi
je 0x40bb7e
mov eax, dword [ebp - 4]
movzx esi, al
shl esi, 8
movzx eax, ah
or esi, eax
movzx eax, byte [ebp - 2]
shl esi, 8
or esi, eax
movzx eax, byte [ebp - 1]
shl esi, 8
or esi, eax
jmp 0x40bb92
push 0
call fcn.0041c966
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor esi, eax
test esi, esi
mov eax, 1
pop edi
cmove esi, eax
pop ebx
mov dword [0x43cc18], esi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_SwitchToThread]
nop
call esi
cmp dword [0x43cc18], 0
je 0x40bbb0
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40bbc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
add ecx, 0xdeadbeef
push ebx
mov ebx, dword [ebp + 8]
add ecx, edx
push esi
mov esi, ecx
mov dword [ebp + 0x10], esi
push edi
mov edi, ecx
cmp edx, 0xc
jbe switch.0x0040bccc
add edx, 0xfffffff3
mov eax, 0xaaaaaaab
mul edx
mov eax, edx
shr eax, 3
inc eax
mov dword [ebp - 4], eax
nop dword [eax + eax]
movzx esi, byte [ebx + 7]
movzx eax, byte [ebx + 6]
movzx edx, byte [ebx + 0xb]
shl esi, 8
add esi, eax
shl edx, 8
movzx eax, byte [ebx + 5]
shl esi, 8
add esi, eax
movzx eax, byte [ebx + 4]
add edi, eax
shl esi, 8
movzx eax, byte [ebx + 0xa]
add edi, esi
movzx esi, byte [ebx + 8]
add edx, eax
movzx eax, byte [ebx + 9]
add esi, ecx
shl edx, 8
add edx, eax
shl edx, 8
add esi, edx
mov edx, dword [ebp + 8]
mov ebx, esi
rol ebx, 4
movzx ecx, byte [edx + 3]
movzx eax, byte [edx + 2]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx + 1]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx]
shl ecx, 8
add ecx, eax
sub ecx, esi
add esi, edi
add ecx, dword [ebp + 0x10]
xor ebx, ecx
sub edi, ebx
mov eax, ebx
add ebx, esi
rol eax, 6
xor eax, edi
sub esi, eax
mov edx, eax
rol edx, 8
add eax, ebx
xor edx, esi
sub ebx, edx
mov esi, edx
rol esi, 0x10
add edx, eax
xor esi, ebx
mov ebx, dword [ebp + 8]
mov edi, esi
sub eax, esi
ror edi, 0xd
add esi, edx
xor edi, eax
mov dword [ebp + 0x10], esi
sub edx, edi
mov ecx, edi
rol ecx, 4
add ebx, 0xc
xor ecx, edx
mov dword [ebp + 8], ebx
mov edx, dword [ebp + 0xc]
add edi, esi
sub edx, 0xc
sub dword [ebp - 4], 1
mov dword [ebp + 0xc], edx
jne 0x40bc00
cmp edx, 0xc
ja 0x40bd38
jmp dword [edx*4 + 0x40bd88]
movzx eax, byte [ebx + 0xb]
shl eax, 0x18
add ecx, eax
movzx eax, byte [ebx + 0xa]
shl eax, 0x10
add ecx, eax
movzx eax, byte [ebx + 9]
shl eax, 8
add ecx, eax
movzx eax, byte [ebx + 8]
add ecx, eax
movzx eax, byte [ebx + 7]
shl eax, 0x18
add edi, eax
movzx eax, byte [ebx + 6]
shl eax, 0x10
add edi, eax
movzx eax, byte [ebx + 5]
shl eax, 8
add edi, eax
movzx eax, byte [ebx + 4]
add edi, eax
movzx eax, byte [ebx + 3]
shl eax, 0x18
add esi, eax
movzx eax, byte [ebx + 2]
shl eax, 0x10
add esi, eax
movzx eax, byte [ebx + 1]
shl eax, 8
add esi, eax
movzx eax, byte [ebx]
add esi, eax
mov dword [ebp + 0x10], esi
xor ecx, edi
mov eax, edi
rol eax, 0xe
sub ecx, eax
mov eax, ecx
mov esi, ecx
xor esi, dword [ebp + 0x10]
rol eax, 0xb
sub esi, eax
xor edi, esi
mov eax, esi
ror eax, 7
sub edi, eax
mov eax, edi
xor ecx, edi
rol eax, 0x10
sub ecx, eax
mov eax, ecx
mov edx, ecx
rol eax, 4
xor edx, esi
sub edx, eax
mov eax, edx
xor edi, edx
rol eax, 0xe
sub edi, eax
mov eax, edi
xor ecx, edi
ror eax, 8
sub ecx, eax
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40cea8
Capabilities:
Check if file exists

Disassembly:
push 0x218
mov eax, 0x42fd67
call fcn.004147f1
mov ebx, ecx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x224], ebx
call fcn.0040ea82
and dword [ebp - 4], 0
mov dword [ebx], vtable.CServerConnect.0
call fcn.0040204d
push eax
lea ecx, [ebx + 0x10]
call fcn.00401814
mov byte [ebp - 4], 1
call fcn.0040204d
push eax
lea ecx, [ebx + 0x14]
call fcn.00401814
mov byte [ebp - 4], 2
call fcn.0040204d
push eax
lea ecx, [ebx + 0x18]
call fcn.00401814
mov byte [ebp - 4], 3
call fcn.0040204d
push eax
lea ecx, [ebx + 0x1c]
call fcn.00401814
push 0
mov byte [ebp - 4], 4
call fcn.0041c966
push eax
call fcn.00420474
mov esi, 0x100
lea eax, [ebp - 0x110]
push esi
push 0
push eax
call fcn.00416590
lea eax, [ebp - 0x110]
push esi
push eax
call fcn.0040ff0b
add esp, 0x1c
lea eax, [ebp - 0x210]
mov dword [ebp - 0x214], eax
lea ecx, [ebp - 0x214]
lea eax, [ebp - 0x110]
push 3
push eax
call fcn.004014a9
push dword [ebp - 0x214]
mov byte [ebp - 4], 5
call fcn.00401941
pop ecx
push eax
push dword [ebp - 0x214]
lea ecx, [ebx + 0x10]
call fcn.00401d58
lea eax, [ebp - 0x210]
mov byte [ebp - 4], 4
cmp dword [ebp - 0x214], eax
je 0x40cfaa
push dword [ebp - 0x214]
call fcn.00417f89
pop ecx
xor eax, eax
lea ecx, [ebx + 0x14]
inc eax
xor esi, esi
push 0x16
push 0x431a94
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x38], esi
mov dword [ebx + 0x3c], esi
call fcn.00401d58
push 0x1b
push str.https:__read.soft.6789.net_
lea ecx, [ebx + 0x18]
call fcn.00401d58
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.0040db0f
push str.AppTest.txt
push eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 6
push eax
call fcn.0040392f
mov ecx, dword [ebp - 0x21c]
add esp, 0x14
mov byte [ebp - 4], 4
lea ecx, [ecx - 0x10]
call fcn.004020f1
push dword [ebp - 0x218]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 0x218]
mov esi, eax
lea ecx, [ecx - 0x10]
call fcn.004020f1
test esi, esi
je 0x40d04f
push 0x15
push str.http:__soft.6789.net_
lea ecx, [ebx + 0x14]
call fcn.00401d58
push 0x1a
push str.http:__read.soft.6789.net_
lea ecx, [ebx + 0x18]
call fcn.00401d58
xor edi, edi
lea esi, [ebx + 0x20]
push edi
push edi
push edi
push esi
mov dword [ebx + 0x28], edi
mov dword [ebx + 0x2c], edi
call fcn.004040d2
add esp, 0x10
test eax, eax
jne 0x40d06c
mov dword [esi], edi
mov dword [ebx + 0x40], edi
mov eax, ebx
mov dword [ebx + 0x44], edi
call fcn.004147ac
ret
Function at 0x40d989
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0xc
mov eax, 0x42fee3
call fcn.004147bd
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.00401a78
push dword [ebp - 0x10]
and dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40da1f
push eax
jmp 0x40da0e
call fcn.0040204d
push eax
lea ecx, [ebp - 0x14]
call fcn.00401814
inc edi
mov byte [ebp - 4], 1
push edi
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.00403d5b
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.0040352c
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.004020f1
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40da01
push esi
call fcn.0041f8a6
pop ecx
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 0
call fcn.004020f1
push edi
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.00404b56
mov edi, eax
cmp edi, 0xffffffff
jne 0x40d9b4
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.004020f1
call fcn.00414797
ret

Function at 0x40dcbc
Capabilities:
Get common file path

Disassembly:
push 4
mov eax, 0x42ffd2
call fcn.004147bd
call fcn.0040204d
push eax
lea ecx, [ebp - 0x10]
call fcn.00401814
xor esi, esi
lea ecx, [ebp - 0x10]
push esi
push 0x1a
push 0x200
mov dword [ebp - 4], esi
call fcn.00401bf2
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.00403500
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 0xc]
test eax, eax
jne 0x40dd21
mov ecx, dword [ebp + 8]
push 0x437db4
call fcn.00401a78
lea ecx, [esi - 0x10]
call fcn.004020f1
mov eax, dword [ebp + 8]
jmp 0x40dd7a
dec eax
lea ecx, [ebp - 0x10]
push eax
call fcn.00404e7f
cmp ax, 0x5c
je 0x40dd40
push 1
push 0x437eb8
lea ecx, [ebp - 0x10]
call fcn.00401571
push 8
push str.6789Zip_
lea ecx, [ebp - 0x10]
call fcn.00401571
cmp dword [ebp + 0xc], 0
mov esi, dword [ebp - 0x10]
je 0x40dd5f
push esi
call fcn.0040d989
pop ecx
lea edi, [esi - 0x10]
push edi
call fcn.00401217
mov esi, dword [ebp + 8]
add eax, 0x10
pop ecx
mov ecx, edi
mov dword [esi], eax
call fcn.004020f1
mov eax, esi
call fcn.00414797
ret
Function at 0x40ed3b
Capabilities:
Check if file exists
Delete file

Disassembly:
push 8
mov eax, 0x4301df
call fcn.004147bd
mov edi, ecx
push dword [ebp + 0x10]
mov eax, dword [edi]
push dword [ebp + 8]
call dword [eax + 4]
test eax, eax
je 0x40ee3f
call fcn.0040204d
push eax
lea ecx, [ebp + 0x10]
call fcn.00401814
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp + 0xc]
push ebx
mov byte [ebp - 4], 1
call fcn.00401941
pop ecx
push eax
push ebx
lea ecx, [ebp + 0x10]
call fcn.00401d58
push 0x5c
push dword [ebp + 0x10]
call fcn.0041577d
pop ecx
pop ecx
test eax, eax
jne 0x40eda2
or eax, 0xffffffff
jmp 0x40eda7
sub eax, dword [ebp + 0x10]
sar eax, 1
inc eax
lea ecx, [ebp + 0x10]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00403d5b
push eax
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 2
call fcn.0040352c
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 1
lea ecx, [ecx - 0x10]
call fcn.004020f1
mov esi, dword [ebp + 0x10]
push esi
call fcn.0040d989
pop ecx
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40eded
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
lea ecx, [ebp - 0x14]
push eax
push eax
push 0x80
push 2
push eax
push 0xc0000000
push ebx
call fcn.0040eae5
test eax, eax
js 0x40ee24
push 0
push dword [edi + 8]
lea ecx, [ebp - 0x14]
push dword [edi + 4]
call fcn.0040f72e
test eax, eax
js 0x40ee24
xor ebx, ebx
inc ebx
jmp 0x40ee26
xor ebx, ebx
cmp dword [ebp - 0x14], 0
je 0x40ee35
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esi - 0x10]
call fcn.004020f1
mov eax, ebx
call fcn.00414797
ret 0xc

Function at 0x40ee81
Capabilities:
Check if file exists

Disassembly:
push 8
mov eax, 0x430202
call fcn.004147bd
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.0040db0f
and dword [ebp - 4], 0
push str.AppTest.txt
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040392f
mov ecx, dword [ebp - 0x14]
add esp, 0x14
lea ecx, [ecx - 0x10]
call fcn.004020f1
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 0x10]
mov esi, eax
add ecx, 0xfffffff0
call fcn.004020f1
mov eax, esi
call fcn.00414797
ret
Function at 0x40fc03
Capabilities:
Get common file path
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x30fc
call fcn.00414980
mov eax, dword [0x43c068]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x104
lea eax, [ebp - 0x108]
push esi
xor ebx, ebx
mov edi, ecx
push ebx
push eax
call fcn.00416590
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00416590
add esp, 0x18
lea eax, [ebp - 0x108]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
movsx eax, byte [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push str.._c:
push eax
call fcn.0040ff68
add esp, 0xc
lea eax, [ebp - 0x20c]
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40fc92
mov al, 1
jmp 0x40fd9b
push 0x2710
lea eax, [ebp - 0x30ec]
mov dword [ebp - 0x30fc], ebx
push ebx
push eax
call fcn.00416590
push 0x3e8
lea eax, [ebp - 0x9dc]
push ebx
push eax
call fcn.00416590
push 0x3e8
lea eax, [ebp - 0x5f4]
push ebx
push eax
call fcn.00416590
add esp, 0x24
mov dword [ebp - 0x30f0], ebx
lea eax, [ebp - 0x30fc]
mov dword [ebp - 0x30f8], ebx
mov dword [ebp - 0x30f4], ebx
push ebx
push eax
push 0x2710
lea eax, [ebp - 0x30ec]
push eax
push 0xc
lea eax, [ebp - 0x30f8]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x40fd14
mov bl, 2
jmp 0x40fd92
lea eax, [ebp - 0x5f4]
push eax
push ebx
push dword [ebp - 0x30dc]
lea eax, [ebp - 0x30ec]
push eax
call fcn.0040fdaa
lea eax, [ebp - 0x9dc]
push eax
push 1
push dword [ebp - 0x30d4]
lea eax, [ebp - 0x30ec]
push eax
call fcn.0040fdaa
lea ecx, [ebp - 0x5f4]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40fd55
sub ecx, edx
lea eax, [ebp - 0x5f4]
push ecx
push eax
push edi
call fcn.00402a1e
lea ecx, [ebp - 0x9dc]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40fd78
sub ecx, edx
lea eax, [ebp - 0x9dc]
push ecx
push eax
push edi
call fcn.00402a1e
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413b09
leave
ret
Function at 0x40ff9e
Capabilities:
Create raw socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x43c068]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
lea eax, [ebp - 0x194]
push eax
xor edi, edi
push 0x101
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
call dword [sym.imp.WS2_32.dll_WSAStartup]
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push edi
push edi
push edi
xor ebx, ebx
mov word [esi + 8], ax
inc ebx
push ebx
push 3
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x41001b
push ebx
push dword [esi + 4]
push eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
push 0x2c
mov dword [esi + 0x10], ebx
call fcn.00417f7e
mov dword [esi + 0xc], eax
pop ecx
test eax, eax
jne 0x41001b
mov dword [esi + 0x10], edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413b09
leave
ret

Function at 0x41011c
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x43c068]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x64
mov dword [ebp - 0x7c], eax
xor edi, edi
lea eax, [ebp - 0x68]
push edi
push eax
call fcn.00416590
add esp, 0xc
test esi, esi
je 0x4101b5
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x4101b5
mov ecx, dword [esi + 0xc]
mov ecx, dword [ecx]
jmp 0x410197
movsx eax, word [esi + 0xa]
push eax
push ecx
lea eax, [ebp - 0x74]
push eax
call fcn.00415a90
add esp, 0xc
push dword [ebp - 0x74]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea eax, [ebp - 0x68]
push 0x431f60
push eax
call fcn.0040ff83
mov eax, dword [esi + 0xc]
add esp, 0xc
inc edi
mov ecx, dword [eax + edi*4]
test ecx, ecx
jne 0x410163
push dword [ebp + 0x10]
lea eax, [ebp - 0x68]
push dword [ebp - 0x7c]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push eax
mov ecx, ebx
call fcn.004101c8
jmp 0x4101b7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413b09
leave
ret 0xc
Function at 0x4101c8
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x43c068]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x10], 0
je 0x41037f
push 2
pop eax
mov word [ebp - 0x114], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x144], 0x10
call fcn.00410098
mov cx, word [0x43d598]
inc cx
mov dword [ebp - 0x14c], eax
push 0x2c
mov word [0x43d598], cx
push 0
push dword [edi + 0xc]
movzx eax, cx
mov dword [ebp - 0x148], eax
call fcn.00416590
mov esi, dword [edi + 0xc]
add esp, 0xc
mov ecx, edi
mov word [esi], 8
mov ax, word [edi + 8]
mov word [esi + 4], ax
mov eax, dword [ebp - 0x148]
mov word [esi + 6], ax
mov eax, dword [ebp - 0x14c]
push 0x2c
mov dword [esi + 8], eax
push dword [edi + 0xc]
call fcn.0041004a
mov word [esi + 2], ax
lea eax, [ebp - 0x114]
push dword [ebp - 0x144]
push eax
push 0
push 0x2c
push dword [edi + 0xc]
push dword [edi]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
je 0x41037f
test ebx, ebx
jne 0x4102a1
xor eax, eax
inc eax
jmp 0x410381
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.00416590
add esp, 0xc
lea esi, [edi + 4]
push 0
push 0x64
push 0
push esi
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
cmp eax, 0x102
je 0x410369
lea eax, [ebp - 0x140]
push eax
push dword [esi]
push dword [edi]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test byte [ebp - 0x140], 1
je 0x410369
mov ecx, edi
call fcn.00410098
mov esi, eax
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x114]
push eax
push 0
push 0x100
lea eax, [ebp - 0x104]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edx, eax
cmp edx, 0xffffffff
je 0x410366
mov cl, byte [ebp - 0x104]
and cl, 0xf
movzx ecx, cl
shl cx, 2
movzx eax, cx
movzx ecx, ax
mov dword [ebp - 0x150], eax
mov ax, word [ebp + ecx - 0x100]
cmp ax, word [edi + 8]
jne 0x410366
cmp byte [ebp + ecx - 0x104], 0
jne 0x410366
mov eax, dword [ebp - 0x148]
cmp word [ebp + ecx - 0xfe], ax
je 0x410392
lea esi, [edi + 4]
mov ecx, edi
call fcn.00410098
sub eax, dword [ebp - 0x14c]
cmp eax, dword [ebp + 0x10]
jb 0x4102ba
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413b09
leave
ret 0xc
sub esi, dword [ebp + ecx - 0xfc]
mov ecx, dword [ebp - 0x150]
movzx ecx, cx
sub edx, ecx
mov word [ebx], ax
movzx ecx, byte [ebp - 0xfc]
sub edx, 0xc
mov dword [ebx + 4], esi
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], ecx
jmp 0x410299
Function at 0x427d6a
Capabilities:
Set environment variable

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