joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e163
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x610490]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x20], ecx
mov esi, edx
mov dword [ebp - 0x24], eax
push edi
mov edi, ebx
cmp dword [ecx + 0x10], ebx
je 0x41e292
cmp dword [esi + 0x10], ebx
je 0x41e292
cmp dword [esi + 0x14], 0x10
jb 0x41e1a1
mov eax, dword [esi]
jmp 0x41e1a3
mov eax, esi
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x41e292
push 0x61d034
push eax
call fcn.0055b673
mov dword [ebp - 0x1c], eax
pop ecx
pop ecx
test eax, eax
je 0x41e292
cmp dword [esi + 0x14], 0x10
jb 0x41e1d9
mov esi, dword [esi]
push eax
push dword [ebp - 0x18]
push dword [ebp - 8]
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
mov esi, dword [ebp - 0x1c]
test eax, eax
je 0x41e280
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push str.VarFileInfoTranslation
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x41e280
mov eax, dword [ebp - 0x14]
push 0x61d034
push 0x80
movzx ecx, word [eax]
movzx eax, word [eax + 2]
shl ecx, 0x10
or ecx, eax
mov dword [ebp - 0x18], ecx
call fcn.0055b673
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41e280
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x14], 0x10
jb 0x41e23e
mov eax, dword [eax]
push eax
push dword [ebp - 0x18]
push str.StringFileInfo_08lx_s
push 0x80
push edi
call fcn.0055a2cc
add esp, 0x14
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x41e27e
push dword [ebp - 0x10]
call fcn.004035ea
pop ecx
mov ecx, dword [ebp - 0x24]
push eax
push dword [ebp - 0x10]
call fcn.004042b9
mov bl, 1
push esi
call fcn.00431b6d
pop ecx
test edi, edi
je 0x41e292
push edi
call fcn.00431b6d
pop ecx
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005599c5
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41e42e
xor al, al
ret
shr al, 4
and al, 1
ret
Function at 0x41fab0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5984bc
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x610490]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov eax, dword [0x610490]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
mov edi, dword [ebp + 8]
or ebx, 0xffffffff
cmp edi, ebx
jne 0x41fafe
xor eax, eax
jmp 0x41fc7a
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x41fb28
mov edx, dword [esi + 0x30]
mov eax, dword [edx]
add eax, ecx
cmp ecx, eax
jae 0x41fb28
dec dword [edx]
mov edx, dword [esi + 0x20]
mov eax, dword [ebp + 8]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], al
jmp 0x41fc7a
cmp dword [esi + 0x50], 0
je 0x41fc78
mov ecx, esi
call fcn.004205f7
xor ecx, ecx
cmp dword [esi + 0x40], ecx
jne 0x41fb55
push dword [esi + 0x50]
push edi
call fcn.0041e2c9
test al, al
pop ecx
pop ecx
cmovne ebx, edi
jmp 0x41fc78
mov eax, dword [ebp + 8]
push ecx
mov dword [esp + 0x3c], ecx
mov byte [esp + 0x2c], cl
lea ecx, [esp + 0x2c]
push 8
mov byte [esp + 0x2c], al
mov dword [esp + 0x44], 0xf
call fcn.00404623
and dword [esp + 0x50], 0
lea eax, [esi + 0x48]
mov dword [esp + 0x18], eax
mov edi, dword [esp + 0x3c]
mov esi, dword [esi + 0x40]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x2c]
cmp edi, 0x10
lea edx, [esp + 0x2c]
mov edi, dword [esi]
cmovae ecx, dword [esp + 0x2c]
cmovae edx, dword [esp + 0x2c]
add eax, ecx
push eax
push edx
lea eax, [esp + 0x2c]
mov ecx, esi
push eax
lea eax, [esp + 0x35]
push eax
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x30]
call dword [edi + 0x1c]
test eax, eax
js 0x41fc6b
cmp eax, 1
jg 0x41fc4e
mov edi, dword [esp + 0x3c]
lea eax, [esp + 0x28]
mov ecx, dword [esp + 0x28]
cmp edi, 0x10
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
cmovae eax, ecx
sub edx, eax
mov dword [esp + 0x14], edx
je 0x41fc1b
push dword [esi + 0x50]
cmp edi, 0x10
lea eax, [esp + 0x2c]
push edx
cmovae eax, ecx
push 1
push eax
call fcn.0055c73b
mov edx, dword [esp + 0x24]
add esp, 0x10
cmp edx, eax
jne 0x41fc6b
mov edi, dword [esp + 0x3c]
lea eax, [esp + 0x24]
mov byte [esi + 0x45], 1
cmp dword [esp + 0x20], eax
jne 0x41fc49
test edx, edx
jne 0x41fb88
cmp dword [esp + 0x38], 0x20
jae 0x41fc6b
push edx
push 8
lea ecx, [esp + 0x30]
call fcn.0041a404
jmp 0x41fb84
mov ebx, dword [ebp + 8]
jmp 0x41fc6b
cmp eax, 3
jne 0x41fc6b
mov eax, dword [esp + 0x10]
push dword [eax + 0x50]
push dword [esp + 0x28]
call fcn.0041e2c9
test al, al
pop ecx
cmovne ebx, dword [ebp + 8]
pop ecx
push 0
push 1
lea ecx, [esp + 0x30]
call fcn.0040412f
mov eax, ebx
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.005599c5
mov esp, ebp
pop ebp
ret 4
Function at 0x420472
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x598f60
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x610490]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x610490]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x4205ac
cmp byte [ebx + 0x45], 0
je 0x4205ac
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x4204d2
xor al, al
jmp 0x4205ae
xor eax, eax
mov dword [esp + 0x2c], 0xf
push eax
push 8
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], eax
mov byte [esp + 0x20], al
call fcn.00404623
and dword [esp + 0x40], 0
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
cmp ecx, 0x10
lea eax, [esp + 0x14]
mov ecx, dword [ebx + 0x40]
lea edi, [esp + 0x18]
push eax
mov eax, dword [esp + 0x2c]
lea esi, [esp + 0x1c]
cmovae edi, edx
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x420537
dec eax
je 0x42053b
dec eax
dec eax
je 0x420599
xor bl, bl
jmp 0x42059b
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x18]
cmp ecx, 0x10
mov esi, dword [esp + 0x14]
cmovae eax, edx
sub esi, eax
je 0x42057a
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [esp + 0x1c]
push esi
cmovae eax, edx
push 1
push eax
call fcn.0055c73b
add esp, 0x10
cmp esi, eax
jne 0x420533
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
cmp byte [ebx + 0x45], 0
je 0x420599
test esi, esi
jne 0x4204fd
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.0041a404
jmp 0x4204f5
mov bl, 1
push 0
push 1
lea ecx, [esp + 0x20]
call fcn.0040412f
mov al, bl
jmp 0x4205ae
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.005599c5
mov esp, ebp
pop ebp
ret
Function at 0x421a0e
Capabilities:
Resolve dns

Disassembly:
push 0x3c
mov eax, 0x5991d7
call fcn.0055d8e8
mov eax, ecx
mov dword [ebp - 0x30], eax
and dword [ebp - 4], 0
call fcn.004136d1
xor bl, bl
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x421aa8
mov eax, dword [eax + 0xc]
and dword [ebp - 0x28], 0
cmp dword [eax], 0
je 0x421aaa
inc bl
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push 5
pop ecx
mov esi, eax
lea edi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x48]
call fcn.00403e94
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 1
call fcn.00418afa
push 0
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0
call fcn.0040412f
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
inc ecx
mov dword [ebp - 0x28], ecx
mov eax, dword [eax + 0xc]
lea eax, [eax + ecx*4]
cmp dword [eax], 0
jne 0x421a51
jmp 0x421aaa
xor bl, bl
push 0
push 1
lea ecx, [ebp + 8]
call fcn.0040412f
mov al, bl
call fcn.0055d897
ret

Function at 0x424348
Capabilities:
Set socket configuration

Disassembly:
push 0xa8
mov eax, 0x599590
call fcn.0055d8e8
mov esi, ecx
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x74]
xor ebx, ebx
mov dword [ebp - 0x84], ebx
call fcn.00407888
xor eax, eax
mov dword [ebp - 4], ebx
cmp byte [esi + 0x2a], al
push 4
setne al
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push 1
push 6
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0x20], 1
test eax, eax
je 0x4243a6
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x40]
mov dword [ebp - 0x18], eax
jmp 0x4243b4
mov dword [ebp - 0x1c], 0x124f80
mov dword [ebp - 0x18], 0x7d0
push ebx
push ebx
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], ebx
push eax
push 0xc
lea eax, [ebp - 0x80]
push eax
push 0xc
lea eax, [ebp - 0x20]
push eax
push 0x98000004
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
jne 0x424432
mov byte [ebp - 0x74], bl
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [ebp - 0x9c]
call fcn.00404abc
push eax
mov edx, str.setKeepAlive_WSAIoctl_error:
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xb4]
call fcn.00404c2b
pop ecx
push eax
lea ecx, [ebp - 0x70]
call fcn.00407163
push ebx
push 1
lea ecx, [ebp - 0xb4]
call fcn.0040412f
push ebx
push 1
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], bl
call fcn.0040412f
jmp 0x42444c
mov esi, 0x5e264d
mov byte [ebp - 0x74], 1
push esi
call fcn.004035ea
pop ecx
push eax
push esi
lea ecx, [ebp - 0x70]
call fcn.004042b9
lea eax, [ebp - 0x74]
mov ecx, edi
push eax
call fcn.0040d01d
lea ecx, [ebp - 0x74]
call fcn.00405438
mov eax, edi
call fcn.0055d897
ret 4
Function at 0x424469
Capabilities:
Set socket configuration

Disassembly:
push 0x10
mov eax, 0x5995d1
call fcn.0055d8e8
mov esi, ecx
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov ecx, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], ebx
call fcn.00407888
mov dword [ebp - 4], ebx
xor eax, eax
inc ebx
cmp byte [esi + 0x2a], al
push 4
setne al
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push ebx
push 6
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, 0x5e264d
mov byte [edi], bl
push esi
call fcn.004035ea
pop ecx
push eax
push esi
lea ecx, [edi + 4]
call fcn.004042b9
mov eax, edi
call fcn.0055d897
ret 4
Function at 0x4244d2
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x59962a
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x610490]
xor eax, esp
mov dword [esp + 0xc8], eax
push ebx
push esi
push edi
mov eax, dword [0x610490]
xor eax, esp
push eax
lea eax, [esp + 0xe0]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
lea ecx, [esp + 0x8c]
xor ebx, ebx
mov dword [esp + 0x28], ebx
mov byte [esi + 0x44], bl
call fcn.00407888
push ebx
push 1
push 2
pop eax
push eax
mov dword [esp + 0xf4], ebx
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0xc], eax
cmp eax, 0xffffffff
jne 0x4245b0
mov byte [esp + 0x8c], bl
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov dword [esp + 0xc0], eax
lea ecx, [esp + 0x10]
call fcn.00404abc
push eax
mov edx, str.create_socket_error:
mov byte [esp + 0xec], 1
lea ecx, [esp + 0x30]
call fcn.00404c2b
pop ecx
push eax
lea ecx, [esp + 0x94]
call fcn.00407163
push ebx
push 1
lea ecx, [esp + 0x34]
call fcn.0040412f
push ebx
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0xf0], bl
call fcn.0040412f
jmp 0x4246ff
lea eax, [esp + 0x44]
mov ecx, esi
push eax
call fcn.00424348
push eax
lea ecx, [esp + 0x90]
mov byte [esp + 0xec], 2
call fcn.004086ea
lea ecx, [esp + 0x44]
mov byte [esp + 0xe8], bl
call fcn.00405438
cmp byte [esp + 0x8c], 0
je 0x4246ff
lea eax, [esp + 0x44]
mov ecx, esi
push eax
call fcn.00424469
lea ecx, [esp + 0x44]
call fcn.00405438
push 0x10
call fcn.00431b37
pop ecx
mov ebx, eax
push 2
pop eax
mov word [ebx], ax
movzx ecx, word [esi + 0x28]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebx + 2], ax
lea eax, [esi + 0x10]
cmp dword [eax + 0x14], 0x10
jb 0x42462e
mov eax, dword [eax]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0x10
push ebx
mov dword [ebx + 4], eax
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x424678
mov byte [esp + 0x8c], 0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov dword [esp + 0xc0], eax
lea ecx, [esp + 0x2c]
call fcn.00404abc
mov byte [esp + 0xe8], 3
mov edx, str.bind_error:
jmp 0x4246b5
push 0x14
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x4246f8
mov byte [esp + 0x8c], 0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov dword [esp + 0xc0], eax
lea ecx, [esp + 0x2c]
call fcn.00404abc
mov byte [esp + 0xe8], 4
mov edx, str.listen_error:
push eax
lea ecx, [esp + 0x14]
call fcn.00404c2b
pop ecx
push eax
lea ecx, [esp + 0x94]
call fcn.00407163
push 0
push 1
lea ecx, [esp + 0x18]
call fcn.0040412f
push 0
push 1
lea ecx, [esp + 0x34]
mov byte [esp + 0xf0], 0
call fcn.0040412f
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_closesocket]
push ebx
call fcn.00431b6d
pop ecx
lea eax, [esp + 0x8c]
mov ecx, edi
push eax
call fcn.0040d01d
lea ecx, [esp + 0x8c]
call fcn.00405438
mov eax, edi
mov ecx, dword [esp + 0xe0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.005599c5
mov esp, ebp
pop ebp
ret 4
Function at 0x427ea0
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x599bce
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x610490]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push esi
push edi
mov eax, dword [0x610490]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov dword [esp + 0x14], ecx
mov ebx, dword [ebp + 8]
lea ecx, [esp + 0x4c]
and dword [esp + 0x18], 0
call fcn.00407888
and dword [esp + 0xb8], 0
push 0
push 2
pop eax
push eax
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
jne 0x427f77
mov byte [esp + 0x4c], 0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov dword [esp + 0x80], eax
lea ecx, [esp + 0x34]
call fcn.00404abc
push eax
mov edx, str.create_udp_socket_error:
mov byte [esp + 0xbc], 1
lea ecx, [esp + 0x20]
call fcn.00404c2b
pop ecx
push eax
lea ecx, [esp + 0x54]
call fcn.00407163
push 0
push 1
lea ecx, [esp + 0x24]
call fcn.0040412f
push 0
push 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0xc0], 0
call fcn.0040412f
jmp 0x428096
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [esp + 0x94]
push 4
push eax
push 0x1002
push 0xffff
push edi
mov dword [esp + 0xa8], 0x40000
call esi
push 4
lea eax, [esp + 0x98]
push eax
push 0x1001
push 0xffff
push edi
call esi
mov esi, dword [esp + 0x14]
push 2
pop eax
mov word [esp + 0x98], ax
movzx eax, word [esi + 0xa4]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x9a], ax
lea eax, [esi + 0x8c]
cmp dword [eax + 0x14], 0x10
jb 0x427fe9
mov eax, dword [eax]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0x9c], eax
lea eax, [esp + 0x98]
push 0x10
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x428077
mov byte [esp + 0x4c], 0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov dword [esp + 0x80], eax
lea ecx, [esp + 0x1c]
call fcn.00404abc
push eax
mov edx, str.bind_error:
mov byte [esp + 0xbc], 2
lea ecx, [esp + 0x38]
call fcn.00404c2b
pop ecx
push eax
lea ecx, [esp + 0x54]
call fcn.00407163
push 0
push 1
lea ecx, [esp + 0x3c]
call fcn.0040412f
push 0
push 1
lea ecx, [esp + 0x24]
mov byte [esp + 0xc0], 0
call fcn.0040412f
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x428096
mov dword [esi + 0x28], edi
mov esi, 0x5e264d
push esi
mov byte [esp + 0x50], 1
call fcn.004035ea
pop ecx
push eax
push esi
lea ecx, [esp + 0x58]
call fcn.004042b9
lea eax, [esp + 0x4c]
mov ecx, ebx
push eax
call fcn.0040d01d
lea ecx, [esp + 0x4c]
call fcn.00405438
mov eax, ebx
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.005599c5
mov esp, ebp
pop ebp
ret 4
Function at 0x42a610
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x610490]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
lea eax, [ebp - 0x1c]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x42a688
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], 1
push eax
push str.SeDebugPrivilege
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebp + 8]
neg eax
push esi
sbb eax, eax
push esi
and eax, 2
push 0x10
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x18]
push eax
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x1c]
neg eax
sbb esi, esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi + 1]
jmp 0x42a68a
xor eax, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
pop esi
call fcn.005599c5
mov esp, ebp
pop ebp
ret 4
Function at 0x42ad2c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x59a008
mov eax, dword fs:[0]
push eax
sub esp, 0x670
mov eax, dword [0x610490]
xor eax, esp
mov dword [esp + 0x668], eax
push ebx
push esi
push edi
mov eax, dword [0x610490]
xor eax, esp
push eax
lea eax, [esp + 0x680]
mov dword fs:[0], eax
mov ebx, edx
mov dword [esp + 0x1c], ebx
mov esi, ecx
mov dword [esp + 0x18], esi
and dword [esp + 0x20], 0
lea ecx, [esp + 0x3c]
push 0x5e264d
call fcn.00403e94
xor edi, edi
xor eax, eax
mov dword [esp + 0x688], edi
mov word [esp + 0x264], ax
test ebx, ebx
je 0x42aecc
lea eax, [esp + 0x264]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x42aecc
mov eax, dword [0x5e64ac]
mov ebx, edi
mov esi, dword [esp + 0x1c]
lea edi, [esp + 0x264]
mov dword [esp + 0x54], eax
mov ax, word [0x5e64b0]
mov word [esp + 0x58], ax
mov dword [esp + 0x14], edi
mov ax, word [edi]
mov word [esp + 0x54], ax
lea eax, [esp + 0x5c]
push 0x104
push eax
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
xor edx, edx
test eax, eax
je 0x42ae8f
lea edi, [esp + 0x5c]
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
cmp ax, dx
jne 0x42ae14
sub edi, ecx
sar edi, 1
cmp edi, 0x104
jae 0x42ae8b
push edi
lea eax, [esp + 0x60]
push eax
push esi
call fcn.0055cdd2
add esp, 0xc
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
je 0x42ae89
lea eax, [esi + edi*2]
push eax
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x474]
push 0x5e64b4
push eax
call fcn.0042b97e
add esp, 0x10
lea edx, [esp + 0x46c]
lea ecx, [esp + 0x24]
call fcn.00417cc3
push eax
lea ecx, [esp + 0x40]
call fcn.00407163
xor edi, edi
lea ecx, [esp + 0x24]
push edi
push 1
call fcn.0040412f
xor edx, edx
mov edi, dword [esp + 0x14]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x42ae8f
mov dword [esp + 0x14], edi
test ebx, ebx
jne 0x42aeab
cmp word [edi], dx
jne 0x42ade6
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x3c]
push eax
mov ecx, esi
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], edx
mov byte [esi], dl
call fcn.00403f05
xor edi, edi
push edi
jmp 0x42aee7
xor ebx, ebx
mov dword [esi + 0x14], 0xf
lea eax, [esp + 0x3c]
mov dword [esi + 0x10], ebx
push eax
mov ecx, esi
mov byte [esi], bl
call fcn.00403f05
push ebx
push 1
lea ecx, [esp + 0x44]
call fcn.0040412f
mov eax, esi
mov ecx, dword [esp + 0x680]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x668]
xor ecx, esp
call fcn.005599c5
mov esp, ebp
pop ebp
ret
Function at 0x42af18
Capabilities:
Get process image filename

Disassembly:
push 0x234
mov eax, 0x59a058
call fcn.0055d8e8
mov esi, edx
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0x5e264d
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x224], ebx
call fcn.00403e94
push esi
push ebx
mov dword [ebp - 4], ebx
push 0x410
mov dword [ebp - 0x224], 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x42afc9
xor eax, eax
push 0x208
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x21e]
push ebx
push eax
call fcn.0055dd80
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x104
push eax
push esi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
je 0x42afc2
lea edx, [ebp - 0x220]
lea ecx, [ebp - 0x240]
call fcn.0042ad2c
push eax
mov ecx, edi
call fcn.00407163
push ebx
push 1
lea ecx, [ebp - 0x240]
call fcn.0040412f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
call fcn.0055d897
ret

Function at 0x42afd1
Capabilities:
Enumerate processes

Disassembly:
push 0x284
mov eax, 0x59a09b
call fcn.0055d8e8
mov dword [ebp - 0x260], ecx
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [ecx]
push esi
push 2
mov dword [ecx + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push 0x5e264d
lea ecx, [ebp - 0x2c]
mov edi, eax
call fcn.00403e94
mov byte [ebp - 4], 1
cmp edi, 0xffffffff
je 0x42b0dc
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x25c], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x42b0cd
mov edx, dword [ebp - 0x254]
lea ecx, [ebp - 0x278]
call fcn.0042af18
push eax
lea ecx, [ebp - 0x2c]
call fcn.00407163
push esi
push 1
lea ecx, [ebp - 0x278]
call fcn.0040412f
lea edx, [ebp + 8]
lea ecx, [ebp - 0x290]
call fcn.00417d2a
mov esi, eax
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x278]
call fcn.00417d2a
mov edx, esi
mov ecx, eax
call fcn.004076e9
xor esi, esi
lea ecx, [ebp - 0x278]
push esi
push 1
mov bl, al
call fcn.0040412f
push esi
push 1
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 1
call fcn.0040412f
test bl, bl
je 0x42b0bf
mov ecx, dword [ebp - 0x260]
lea eax, [ebp - 0x254]
push eax
call fcn.0040a701
lea eax, [ebp - 0x25c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x42b032
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040412f
push esi
push 1
lea ecx, [ebp + 8]
call fcn.0040412f
call fcn.0055d897
ret