joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d7ff0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x1028
call fcn.004ebbf0
mov eax, dword [0x528af4]
xor eax, esp
mov dword [esp + 0x1024], eax
push esi
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], 0x52800
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push 0xc
push 0
lea eax, [esp + 0xc]
push eax
push str.VerInfo
push str.General
call fcn.0049fd50
push 1
push 0x800
lea eax, [esp + 0x30]
push eax
call fcn.004783d0
push 0x800
lea eax, [esp + 0x2c]
push eax
call fcn.00477290
push 0x800
push str.version.dat
lea eax, [esp + 0x30]
push eax
call fcn.0048e6d0
push 0x50db48
lea eax, [esp + 0x2c]
mov dword [esp + 0x14], 0
push eax
call fcn.0046a5a0
mov esi, eax
test esi, esi
je 0x4d809d
push esi
push 0xc
lea eax, [esp + 0x18]
push 1
push eax
call fcn.004f63b2
push esi
call fcn.004f2a17
add esp, 0x14
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x1c]
cmp ecx, eax
je 0x4d8166
mov ecx, dword [esp + 0x10]
push 0xc
cmp ecx, eax
je 0x4d8132
lea eax, [esp + 0x20]
push eax
push str.VerInfo
push str.General
call fcn.004a0910
call fcn.004a06b0
test al, al
jne 0x4d8101
push 0x50bd80
lea eax, [esp + 0x2c]
push eax
call fcn.0046a5a0
mov esi, eax
test esi, esi
je 0x4d8101
push esi
push 0xc
lea eax, [esp + 0x24]
push 1
push eax
call fcn.004f2dfc
push esi
call fcn.004f2a17
add esp, 0x14
call fcn.004a06c0
movzx eax, al
neg eax
pop esi
sbb eax, eax
and eax, 0xfffffe98
add eax, 0x168
mov dword [0x539a28], eax
mov ecx, dword [esp + 0x1024]
xor ecx, esp
call fcn.004ebbd8
add esp, 0x1028
ret
mov eax, dword [esp + 0x18]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x14]
push eax
push str.VerInfo
push str.General
mov dword [esp + 0x14], ecx
call fcn.004a0910
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x1c]
cmp ecx, eax
jne 0x4d81b6
cmp dword [esp + 0x10], eax
je 0x4d81b6
mov eax, dword [esp + 8]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
call fcn.004a06b0
test al, al
jne 0x4d81b6
push 0x50bd80
lea eax, [esp + 0x2c]
push eax
call fcn.0046a5a0
mov esi, eax
test esi, esi
je 0x4d81b6
push esi
push 0xc
lea eax, [esp + 0xc]
push 1
push eax
call fcn.004f2dfc
push esi
call fcn.004f2a17
add esp, 0x14
mov eax, dword [esp + 0x24]
xor ecx, ecx
sub ecx, ecx
push 0
sbb eax, dword [esp + 0x10]
sub ecx, dword [esp + 0xc]
push 0x989680
sbb eax, 0
add ecx, dword [esp + 0x28]
adc eax, 0
push eax
push ecx
call fcn.004ebd50
push 0
push 0xe10
push edx
push eax
call fcn.004ebd50
push 0
push 0x18
push edx
push eax
call fcn.004ebd50
mov dword [0x539a28], eax
test eax, eax
jns 0x4d820a
mov dword [0x539a28], 0x168
mov ecx, dword [esp + 0x1028]
pop esi
xor ecx, esp
call fcn.004ebbd8
add esp, 0x1028
ret
Function at 0x4d8e70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x509a36
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x528af4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x5ccfa8]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x5a43dc]
cmp eax, dword [ecx + 4]
jle 0x4d8ef9
push 0x5a43dc
call fcn.004ec5e9
add esp, 4
cmp dword [0x5a43dc], 0xffffffff
jne 0x4d8ef9
mov dword [ebp - 4], 0
mov ecx, 0x5a42da
call fcn.0048b930
mov byte [ebp - 4], 0
push 0x50a240
call fcn.004ec35b
mov dword [ebp - 4], 0xffffffff
push 0x5a43dc
call fcn.004ec5aa
add esp, 8
mov esi, dword [ebp + 8]
mov ecx, 0x5a02b8
push 1
push esi
call fcn.004da5d0
mov bl, byte [ebp + 0xc]
push 0
push 0x5a02b8
test bl, bl
sete al
movzx eax, al
push eax
push 0
push 0
push esi
push 0
call fcn.004db670
test al, al
jne 0x4d8f76
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x5a02c0]
mov esi, eax
cmp edx, 0xffffffff
je 0x4d8f50
push edx
call dword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
mov dword [0x5a02c0], 0xffffffff
mov ecx, 0x5a42da
call fcn.0048b950
cmp esi, 0x4c7
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test bl, bl
je 0x4d8f93
push 0x5a02b8
push 0x10000
push 0x4d94a0
call fcn.004f31e1
add esp, 0xc
jmp 0x4d8fb8
mov eax, dword [0x5a02c0]
cmp eax, 0xffffffff
je 0x4d8fae
push eax
call dword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
mov dword [0x5a02c0], 0xffffffff
mov ecx, 0x5a42da
call fcn.0048b950
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4d9fb0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x509b1c
mov eax, dword fs:[0]
push eax
mov eax, 0x1004
call fcn.004ebbf0
mov eax, dword [0x528af4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
test esi, esi
je 0x4da025
push 0x514e68
push esi
call fcn.004772e0
test al, al
jne 0x4da000
push esi
call fcn.004da340
test al, al
je 0x4da025
push 0x30
push 0x65
call fcn.00488530
push eax
push 0x596
call fcn.00488530
push eax
push dword [0x538900]
call fcn.004c4910
jmp 0x4da17a
cmp byte [0x53898c], 0
jne 0x4da061
push 0
push 0
push 1
push 0
push 0
push esi
push 0
call fcn.004db670
test al, al
jne 0x4da17a
push esi
push 0x201
call fcn.00488530
push eax
call fcn.004cf640
add esp, 8
jmp 0x4da17a
push 1
call fcn.004bf7c0
push 1
push 0x800
push 0x545e9e
push str.Rar_EX
call fcn.004c3dd0
test al, al
je 0x4da17a
push 0x800
push 0x54f29a
mov ecx, 0x55a850
call fcn.00404e00
mov eax, dword [0x55a854]
mov ecx, 0x55029c
push 0x50ba14
mov dword [0x54c248], eax
call fcn.0048e7f0
push 0x800
lea eax, [ebp - 0x1010]
mov dword [0x54b238], 4
push eax
push esi
push 0x545e9e
call fcn.004789f0
push 0
push 0
mov ecx, 0x55a850
call fcn.004049a0
cmp byte [0x53898f], 0
jne 0x4da17a
mov eax, dword fs:[0x2c]
mov ecx, dword [0x5ccfa8]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x5a8504]
cmp eax, dword [ecx + 4]
jle 0x4da150
push 0x5a8504
call fcn.004ec5e9
add esp, 4
cmp dword [0x5a8504], 0xffffffff
jne 0x4da150
mov dword [ebp - 4], 0
mov ecx, 0x5a43e0
call fcn.004d8c10
push 0x50a2e0
call fcn.004ec35b
mov dword [ebp - 4], 0xffffffff
push 0x5a8504
call fcn.004ec5aa
add esp, 8
push 0
lea eax, [ebp - 0x1010]
mov ecx, 0x5a43e0
push eax
call fcn.004da5d0
push 0x5a43e0
push 0x10000
push 0x4d94a0
call fcn.004f31e1
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ebbd8
mov esp, ebp
pop ebp
ret 4
Function at 0x4da3e0
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x6060]
mov eax, 0x6060
call fcn.004ebbf0
push 0xffffffffffffffff
push 0x509b60
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x528af4]
xor eax, ebp
mov dword [ebp + 0x605c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x6070]
mov ebx, dword [ebp + 0x6068]
mov esi, dword [ebp + 0x606c]
push eax
call fcn.00478eb0
mov edx, esi
mov edi, eax
lea eax, [edx + 2]
lea ebx, [ebx]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x4da440
mov ecx, edi
sub edx, eax
sar edx, 1
lea eax, [ecx + 2]
mov dword [ebp - 0x10], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4da457
sub ecx, dword [ebp - 0x10]
lea eax, [edx + 1]
sar ecx, 1
add eax, ecx
cmp eax, 0x1000
jb 0x4da47a
xor al, al
jmp 0x4da5a3
push 0x1000
lea eax, [ebp + 0x5c]
push eax
push edi
push esi
call fcn.004789f0
lea ecx, [ebp]
call fcn.0048e750
mov dword [ebp - 4], 0
lea eax, [ebp + 0x205c]
push 0x1000
push 0x50b8c4
push eax
push str.ViewerIgnoreModifications
push str.Viewer
call fcn.0049fec0
cmp word [ebp + 0x205c], 0
je 0x4da4d7
push 0
push 0
lea eax, [ebp]
push eax
lea eax, [ebp + 0x205c]
push eax
call fcn.004a7cf0
push 0x800
lea eax, [ebp + 0x405c]
push eax
lea ecx, [ebp]
call fcn.0048e8f0
test al, al
je 0x4da588
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea esp, [esp]
push 0x800
lea eax, [ebp + 0x505c]
push eax
lea eax, [ebp + 0x405c]
push eax
call edi
lea eax, [ebp + 0x505e]
push 0x514cc0
push eax
call fcn.004ee823
mov esi, eax
add esp, 8
test esi, esi
je 0x4da556
xor eax, eax
mov word [esi], ax
add esi, 4
cmp word [esi], ax
jne 0x4da541
mov esi, 0x50ba14
push 4
push ebx
lea eax, [ebp + 0x505c]
push eax
call fcn.0046c8e0
test al, al
je 0x4da56c
jmp 0x4da55c
lea esi, [ebp + 0x505c]
push 4
lea eax, [ebp + 0x5c]
push eax
push esi
call fcn.0046c8e0
test al, al
jne 0x4da5c8
push 0x800
lea eax, [ebp + 0x405c]
push eax
lea ecx, [ebp]
call fcn.0048e8f0
test al, al
jne 0x4da500
xor bl, bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp]
test eax, eax
je 0x4da5a1
push eax
call fcn.004f252e
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x605c]
xor ecx, ebp
call fcn.004ebbd8
lea esp, [ebp + 0x6060]
pop ebp
ret 0xc
mov bl, 1
jmp 0x4da58a
Function at 0x4db670
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x2044
call fcn.004ebbf0
mov eax, dword [0x528af4]
xor eax, esp
mov dword [esp + 0x2040], eax
mov eax, dword [esp + 0x2054]
push ebx
mov ebx, dword [esp + 0x2064]
push ebp
mov ebp, dword [esp + 0x2058]
push esi
mov esi, dword [esp + 0x2058]
push edi
mov edi, dword [esp + 0x206c]
push 0x3c
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
push 0
push eax
call fcn.004ee100
add esp, 0xc
mov dword [esp + 0x14], 0x3c
cmp byte [esp + 0x2068], 0
mov dword [esp + 0x18], 0x500
jne 0x4db6e6
mov dword [esp + 0x18], 0x540
push esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ebx
call fcn.00478260
test eax, eax
je 0x4db705
cmp word [eax], 0x2e
jne 0x4db712
cmp word [eax + 2], 0
jne 0x4db712
or dword [esp + 0x18], 1
mov dword [esp + 0x3c], 0x50bc14
mov eax, dword [esp + 0x10]
push esi
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], eax
call fcn.00478eb0
cmp eax, esi
jne 0x4db748
push esi
push str.._s
lea eax, [esp + 0x58]
push 0x1000
push eax
call fcn.004028e0
lea eax, [esp + 0x60]
add esp, 0x10
mov dword [esp + 0x24], eax
mov ebp, dword [sym.imp.SHELL32.dll_ShellExecuteExW]
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x34], 1
mov byte [0x53898d], 1
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x4db7a2
call ebx
cmp eax, 0x4c7
jne 0x4db78a
test edi, edi
je 0x4db783
mov dword [edi], 0
mov al, 1
jmp 0x4db851
cmp dword [esp + 0x20], 0
je 0x4db7a2
lea eax, [esp + 0x14]
mov dword [esp + 0x20], 0
push eax
call ebp
mov esi, eax
mov byte [0x53898d], 0
test esi, esi
je 0x4db84f
call ebx
cmp eax, 0x483
je 0x4db84f
cmp byte [esp + 0x2068], 0
jne 0x4db84b
mov edx, dword [esp + 0x4c]
test edx, edx
je 0x4db802
mov ecx, dword [0x59c188]
mov eax, dword [esp + 0x34]
mov dword [ecx*4 + 0x59c148], eax
lea eax, [ecx + 1]
mov dword [ecx*4 + 0x59c108], edx
and eax, 0x8000000f
jns 0x4db7fb
dec eax
or eax, 0xfffffff0
inc eax
mov dword [0x59c188], eax
jmp 0x4db845
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor esi, esi
lea ebx, [ebx]
mov eax, dword [esi + 0x59c148]
cmp eax, dword [esp + 0x34]
jne 0x4db83d
push 0
push dword [esi + 0x59c108]
call ebx
cmp eax, 0x102
jne 0x4db839
mov edx, dword [esi + 0x59c108]
mov dword [esp + 0x4c], edx
jmp 0x4db83d
mov edx, dword [esp + 0x4c]
add esi, 4
cmp esi, 0x40
jl 0x4db810
test edi, edi
je 0x4db84b
mov dword [edi], edx
mov al, 1
jmp 0x4db851
xor al, al
mov ecx, dword [esp + 0x2050]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004ebbd8
add esp, 0x2044
ret 0x1c

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

Disassembly:
push esi
push 0x538a18
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4dbd18
push 0x40
push 0x2bc
call fcn.00488530
push eax
push 0x2bd
call fcn.00488530
push eax
push dword [0x538900]
call fcn.004c4910
pop esi
ret
push 0
push 0x538a18
mov ecx, esi
call fcn.004da6f0
pop esi
ret
Function at 0x4e26e0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebx
push esi
push 0x5cc430
mov esi, ecx
call fcn.0045e620
mov ebx, dword [esp + 0xc]
mov dword [esi + 4], 0x12345678
mov dword [esi + 8], 0x23456789
mov dword [esi + 0xc], 0x34567890
mov cl, byte [ebx]
test cl, cl
je 0x4e2765
mov eax, dword [esi + 4]
mov edx, 0x34567890
push edi
mov edi, dword [esi + 8]
lea esp, [esp]
movsx ecx, cl
lea ebx, [ebx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5cc430]
movzx ecx, al
add ecx, edi
mov dword [esi + 4], eax
imul edi, ecx, 0x8088405
inc edi
mov ecx, edi
mov dword [esi + 8], edi
shr ecx, 0x18
xor ecx, edx
shr edx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x5cc430]
mov dword [esi + 0xc], edx
mov cl, byte [ebx]
test cl, cl
jne 0x4e2720
pop edi
pop esi
pop ebx
ret 4

Function at 0x4e2770
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
cmp byte [0x548fb0], 0
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
je 0x4e2814
push ebx
mov ebx, edx
imul ebx, eax
push ebp
mov ebp, esi
test ebx, ebx
je 0x4e2812
push edi
jmp 0x4e27a0
movsx eax, byte [ebp]
lea ebp, [ebp + 1]
xor eax, dword [ecx + 4]
mov edx, dword [ecx + 4]
mov esi, dword [ecx + 0xc]
mov edi, esi
movzx eax, al
and edi, 0xfffd
shr edx, 8
or edi, 2
mov eax, dword [eax*4 + 0x5cc430]
xor eax, edx
mov dword [ecx + 4], eax
movzx eax, al
add eax, dword [ecx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [ecx + 8], eax
shr eax, 0x18
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [eax*4 + 0x5cc430]
mov eax, edi
xor eax, 1
mov dword [ecx + 0xc], esi
imul eax, edi
shr eax, 8
xor byte [ebp - 1], al
sub ebx, 1
jne 0x4e27a0
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
pop edi
pop ebp
pop ebx
push 0
push eax
push edx
push esi
call fcn.004e1130
pop esi
ret 0xc
Function at 0x4ea8c0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x50
mov eax, dword [0x528af4]
xor eax, esp
mov dword [esp + 0x4c], eax
push esi
mov esi, dword [esp + 0x58]
push edi
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4ea90a
test al, 0x10
jne 0x4ea8f5
and eax, 0xffffffdf
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4ea90a
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.004ebbd8
add esp, 0x50
ret 4
mov eax, dword [edi + 0x64b3fc]
lea ecx, [esp + 8]
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0x10
mov dword [esp + 8], eax
mov dword [esp + 0xc], esi
mov dword [esp + 0x48], 2
call fcn.00490250
mov ecx, dword [esp + 0x54]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.004ebbd8
add esp, 0x50
ret 4

Function at 0x4fbfa9
Capabilities:
Read file on windows

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

Function at 0x4fdbb9
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004fd879
Function at 0x4058b1
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
push esi
lea ecx, [ebp - 0x18]
call fcn.0040174b
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push 1
push eax
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.0040174e
mov esi, eax
test esi, esi
je 0x405967
lea eax, [ebp - 0x324]
push 0
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x11c]
push eax
push dword [ebp + 8]
call fcn.004074db
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.00407380
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.00407380
lea eax, [ebp - 0x11c]
push 0x40f1d8
push eax
call fcn.00407380
lea eax, [ebp - 0x11c]
push 0x40f1dc
push eax
call fcn.00407380
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push esi
call fcn.00407196
mov esi, eax
add esp, 0x40
test esi, esi
lea ecx, [ebp - 0x18]
jne 0x40596b
call fcn.00401808
xor eax, eax
jmp 0x4059bf
call fcn.00401808
push dword [ebp - 4]
lea eax, [ebp - 0x11c]
push esi
push eax
call fcn.00403cbb
push esi
call fcn.0040780b
add esp, 0x10
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.004046b3
pop ecx
test eax, eax
pop ecx
je 0x4059bd
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x11c]
push eax
call fcn.00403dfa
pop ecx
push 1
pop esi
mov eax, esi
pop esi
leave
ret

Function at 0x405e9a
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
and byte [ebp - 0x10c], 0
push ebx
lea eax, [ebp - 0x10c]
push 0x104
push eax
push 1
push str._84
call fcn.00403434
pop ecx
pop ecx
push eax
push 0x40f244
push closesocket
call fcn.004044c0
lea eax, [ebp - 0x10c]
push eax
call fcn.00405c5a
movsx eax, byte [ebp - 0x10c]
mov bl, byte [ebp - 0x10a]
push eax
call fcn.004076ee
add esp, 0x1c
and dword [ebp - 8], 0
mov byte [ebp - 1], al
mov al, byte [ebp - 8]
add al, 0x61
cmp al, byte [ebp - 1]
je 0x405f44
and byte [ebp - 0x10a], 0
mov byte [ebp - 0x10c], al
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
mov byte [ebp - 0x10a], bl
jne 0x405f44
push dword [ebp + 8]
lea eax, [ebp - 0x10c]
push 0x405e42
push eax
call fcn.00403e11
add esp, 0xc
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x1a
jl 0x405efe
xor eax, eax
pop ebx
leave
ret 4
Function at 0x401150
Capabilities:
Delete file
Get common file path
Print debug messages

Disassembly:
sub esp, 0x500
lea eax, [esp]
push ebx
push esi
push edi
push 0xff
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, str.ClientLog
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00401100
mov edx, dword [esp + 0x514]
lea ecx, [esp + 0x518]
mov esi, eax
push ecx
lea eax, [esp + 0x114]
push edx
push eax
call fcn.00406d19
add esp, 0x10
cmp esi, 0x19000
jle 0x4011e2
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [esp + 0xc]
push 0x41c0d8
push edx
jmp 0x4011ec
lea eax, [esp + 0xc]
push 0x41c0d4
push eax
call fcn.00406cca
mov esi, eax
add esp, 8
test esi, esi
jne 0x401204
pop edi
pop esi
pop ebx
add esp, 0x500
ret
lea ecx, [esp + 0x10c]
push ecx
push 0
call fcn.00401060
add esp, 4
push eax
push 0
call fcn.004010b0
add esp, 4
push eax
push str.__s__s___s
push esi
call fcn.00406cdd
push esi
call fcn.00406b63
add esp, 0x18
lea edx, [esp + 0x10c]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x500
ret
Function at 0x4012e0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x40e3db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x420
mov al, byte [esp + 7]
push ebx
push ebp
push esi
xor ebp, ebp
push edi
push ebp
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], ebp
mov byte [esp + 0x1c], al
call fcn.00401940
mov cx, word [0x41c0f4]
mov ebx, dword [esp + 0x444]
mov dl, byte [0x41c0f6]
mov word [esp + 0x10], cx
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x12c]
cmp ebx, ebp
mov dword [esp + 0x438], ebp
mov byte [esp + 0x12], dl
rep stosd dword es:[edi], eax
je 0x401490
lea eax, [esp + 0x12c]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
je 0x401490
lea ebp, [esp + 0x12c]
mov cl, byte [ebp]
lea edx, [esp + 0x28]
push 0x103
lea eax, [esp + 0x14]
push edx
push eax
mov byte [esp + 0x1c], cl
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
je 0x4013c0
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
cmp esi, 0x104
jae 0x4013c0
lea ecx, [esp + 0x28]
push esi
push ecx
push ebx
call fcn.0040e140
add esp, 0xc
test eax, eax
je 0x4013d8
mov dl, byte [ebp]
inc ebp
test dl, dl
je 0x4013d0
mov al, byte [ebp]
inc ebp
test al, al
jne 0x4013c8
cmp byte [ebp], 0
je 0x40143f
jmp 0x401375
add esi, ebx
lea ecx, [esp + 0x10]
push esi
push ecx
lea edx, [esp + 0x238]
push str._s_s
push edx
call fcn.0040682e
lea edi, [esp + 0x240]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
lea ecx, [esp + 0x1c]
push ebp
call fcn.004019b0
test al, al
je 0x40143f
mov edi, dword [esp + 0x1c]
mov ecx, ebp
mov eax, ecx
lea esi, [esp + 0x230]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x20], ebp
mov byte [ecx + ebp], 0
mov esi, dword [esp + 0x440]
mov dl, byte [esp + 0x18]
xor edi, edi
lea ecx, [esp + 0x18]
mov byte [esi], dl
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov eax, dword [0x40f1f8]
push eax
push edi
push ecx
mov ecx, esi
call fcn.00401740
mov ecx, dword [esp + 0x1c]
cmp ecx, edi
je 0x4014ce
mov al, byte [ecx - 1]
test al, al
je 0x401484
cmp al, 0xff
je 0x401484
dec al
mov byte [ecx - 1], al
jmp 0x4014ce
dec ecx
push ecx
call fcn.00406280
add esp, 4
jmp 0x4014ce
mov esi, dword [esp + 0x440]
mov dl, byte [esp + 0x18]
push ebp
mov ecx, esi
mov byte [esi], dl
call fcn.00401940
mov eax, dword [0x40f1f8]
lea ecx, [esp + 0x18]
push eax
push ebp
push ecx
mov ecx, esi
call fcn.00401740
push 1
lea ecx, [esp + 0x1c]
mov dword [esp + 0x43c], 0xffffffff
call fcn.00401940
mov ecx, dword [esp + 0x430]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x42c
ret
Function at 0x4014f0
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x1c
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x401573
lea ecx, [esp + 4]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x401530
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x1c
ret
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
push 0
push 0
lea edx, [esp + 0x14]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 8]
push 0x10
push edx
push 0
push eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x1c
ret

Function at 0x401cf0
Capabilities:
Get routing table

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
xor esi, esi
push 1
push eax
push esi
mov dword [esp + 0x10], esi
call sub.iphlpapi.dll_GetIpForwardTable
cmp eax, 0x7a
jne 0x401d38
mov ecx, dword [esp + 4]
push ecx
call fcn.004072c6
add esp, 4
lea edx, [esp + 4]
mov esi, eax
push 1
push edx
push esi
call sub.iphlpapi.dll_GetIpForwardTable
test eax, eax
je 0x401d38
push esi
call fcn.00406280
add esp, 4
xor eax, eax
pop esi
pop ecx
ret
mov eax, esi
pop esi
pop ecx
ret