joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411070
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push edi
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
test edi, edi
jge 0x4110af
push esi
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2733
je 0x4110aa
call esi
test eax, eax
je 0x4110b3
call esi
test eax, eax
jne 0x4110b3
pop esi
xor eax, eax
pop edi
ret
mov eax, edi
pop edi
ret
pop esi
mov eax, edi
pop edi
ret

Function at 0x4110c0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x3f8
mov eax, dword [0x436090]
mov ecx, dword [esp + 0x3fc]
push esi
mov dword [esp + 0x3f8], eax
push 0x5c
lea eax, [esp + 0xc]
push eax
push ecx
mov dword [esp + 0x10], 0
call fcn.004027f0
mov al, byte [esp + 0x14]
add esp, 0xc
test al, al
lea esi, [esp + 8]
je 0x411124
mov edi, edi
movsx edx, byte [esi]
push edx
call fcn.00423ced
mov cl, byte [esi + 1]
add esp, 4
test cl, cl
mov byte [esi], al
jne 0x41111c
cmp al, 0x2e
jne 0x41111c
mov byte [esi], 0
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x411100
lea eax, [esp + 4]
push eax
push str.SOFTWAREApple_Computer__Inc.BonjourDynDNSStateHostNames
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x41116f
mov esi, dword [esp + 0x404]
push 4
xor ecx, ecx
lea edx, [esp + 0x408]
push edx
test esi, esi
push 4
sete cl
push eax
mov eax, dword [esp + 0x14]
push 0x42f65c
push eax
mov dword [esp + 0x41c], ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 4]
test eax, eax
pop esi
je 0x41117f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x3f4]
call fcn.0042373b
add esp, 0x3f8
ret

Function at 0x411d50
Capabilities:
Get routing table

Disassembly:
push ecx
push ebx
push esi
xor ebx, ebx
push ebx
lea eax, [esp + 0xc]
push eax
push ebx
mov dword [esp + 0x14], 0
xor esi, esi
call sub.iphlpapi.dll_GetIpForwardTable
cmp eax, 0x7a
jne 0x411dca
mov ecx, dword [esp + 8]
push edi
push ecx
call fcn.00423687
mov edi, eax
add esp, 4
test edi, edi
je 0x411dc3
push ebx
lea edx, [esp + 0x10]
push edx
push edi
call sub.iphlpapi.dll_GetIpForwardTable
test eax, eax
jne 0x411dba
mov ecx, dword [edi]
test ecx, ecx
jbe 0x411dba
lea eax, [edi + 0x28]
lea ecx, [ecx]
mov edx, dword [eax - 0x24]
test edx, edx
jne 0x411db4
test esi, esi
je 0x411daf
cmp dword [eax], ebx
jae 0x411db4
mov esi, dword [eax - 0x14]
mov ebx, dword [eax]
add eax, 0x38
dec ecx
jne 0x411da0
push edi
call fcn.00423699
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
pop ecx
ret
mov eax, esi
pop esi
pop ebx
pop ecx
ret
Function at 0x411f10
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
mov dword [esi], 0x3ed
mov dword [eax], 0
xor edi, edi
jmp 0x411f30
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
test eax, eax
je 0x411f43
push eax
call fcn.00423699
add esp, 4
mov edx, dword [esi]
push edx
call fcn.00423687
mov ecx, dword [esp + 0x18]
add esp, 4
test eax, eax
mov dword [ecx], eax
je 0x411f7a
push esi
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x10]
push edx
push 0
push eax
push ebx
call ebp
inc edi
cmp eax, 0xea
jne 0x411f83
cmp edi, 0x64
jl 0x411f30
pop edi
pop ebp
pop ecx
ret
pop edi
mov eax, 0xfffefffd
pop ebp
pop ecx
ret
test eax, eax
jne 0x411fad
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x411fad
lea edx, [esp + 0x14]
push edx
push ecx
push eax
push eax
push 0x42f714
push ebx
mov dword [esp + 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor eax, eax
pop edi
pop ebp
pop ecx
ret
Function at 0x404570
Capabilities:
Delete file

Disassembly:
sub esp, 0x30
push ebx
mov ebx, dword [esp + 0x38]
push ebp
mov ebp, dword [sym.imp.MSVCR80.dll_remove]
push esi
push edi
xor edi, edi
push edi
mov ecx, ebx
call fcn.00406450
test eax, eax
jne 0x4045bf
push edi
mov ecx, ebx
call fcn.00406460
mov esi, eax
test esi, esi
je 0x4045bf
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.MSVCR80.dll__stat64i32]
add esp, 8
cmp eax, 0xffffffff
je 0x4045bf
push esi
call ebp
add esp, 4
push edi
mov ecx, ebx
call fcn.00406470
add edi, 1
cmp edi, 4
jl 0x404583
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
Function at 0x406c70
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x42567c]
xor eax, ebp
mov dword [ebp - 0x1c], eax
cmp dword [0x426490], 0
je 0x406cbf
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 2
call dword [0x426490]
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jle 0x406cb2
mov eax, dword [ebp - 0x18]
jmp 0x406e27
cmp dword [ebp - 0x18], 0
jge 0x406cbf
xor eax, eax
jmp 0x406e27
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.MSVCR80.dll_strcmp
add esp, 8
test eax, eax
jne 0x406cda
xor eax, eax
jmp 0x406e27
push 0x200
lea ecx, [ebp - 0x220]
push ecx
call dword [sym.imp.MSVCR80.dll__getcwd]
add esp, 8
mov edx, dword [ebp + 8]
push edx
call fcn.00406e40
add esp, 4
test eax, eax
je 0x406d09
mov eax, 0xf
jmp 0x406e27
push 0x800
call dword [sym.imp.MSVCR80.dll_malloc]
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x406d2a
mov eax, 0x14
jmp 0x406e27
push 0x41ec98
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCR80.dll_fopen]
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x406d5c
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
mov eax, 0xf
jmp 0x406e27
push 0x41ec9c
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.MSVCR80.dll_fopen]
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x406d9b
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 4
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
mov eax, 0x10
jmp 0x406e27
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCR80.dll_ftell]
add esp, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
push eax
push 1
push 0x800
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.MSVCR80.dll_fread]
add esp, 0x10
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCR80.dll_ftell]
add esp, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
push eax
push 1
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.MSVCR80.dll_fwrite]
add esp, 0x10
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.MSVCR80.dll_feof]
add esp, 4
test eax, eax
je 0x406d9b
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 4
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 4
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0041b6f2
mov esp, ebp
pop ebp
ret
Function at 0x4073a0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x42567c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x426490], 0
je 0x4073f6
push 0
mov eax, dword [ebp + 8]
push eax
push 5
call dword [0x426490]
add esp, 0xc
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0
jle 0x4073e9
mov eax, dword [ebp - 0x20c]
jmp 0x407467
cmp dword [ebp - 0x20c], 0
jge 0x4073f6
xor eax, eax
jmp 0x407467
mov ecx, dword [ebp + 8]
push ecx
call fcn.00406ab0
add esp, 4
test eax, eax
je 0x40740d
mov eax, 0x17
jmp 0x407467
mov edx, dword [ebp + 8]
push edx
call sub.MSVCR80.dll_strlen
add esp, 4
cmp eax, 0x200
jb 0x407427
mov eax, 5
jmp 0x407467
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x208]
push ecx
call sub.MSVCR80.dll_strcpy
add esp, 8
lea edx, [ebp - 0x208]
push edx
call fcn.004071e0
add esp, 4
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.MSVCR80.dll__mkdir]
add esp, 4
cmp eax, 0xffffffff
jne 0x407465
mov eax, 0xd
jmp 0x407467
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b6f2
mov esp, ebp
pop ebp
ret

Function at 0x407580
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x42567c]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [0x426490], 0
je 0x4075d9
push 0
mov eax, dword [ebp + 8]
push eax
push 6
call dword [0x426490]
add esp, 0xc
mov dword [ebp - 0x40c], eax
cmp dword [ebp - 0x40c], 0
jle 0x4075c9
mov eax, dword [ebp - 0x40c]
jmp 0x4076cd
cmp dword [ebp - 0x40c], 0
jge 0x4075d9
xor eax, eax
jmp 0x4076cd
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.00406ab0
add esp, 4
test eax, eax
je 0x407606
push 0x200
lea edx, [ebp - 0x208]
push edx
call fcn.00407480
add esp, 8
jmp 0x407638
mov eax, dword [ebp + 8]
push eax
call sub.MSVCR80.dll_strlen
add esp, 4
cmp eax, 0x200
jb 0x407625
mov eax, 5
jmp 0x4076cd
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x208]
push edx
call sub.MSVCR80.dll_strcpy
add esp, 8
lea eax, [ebp - 0x208]
push eax
call fcn.004071e0
add esp, 4
lea ecx, [ebp - 0x208]
push ecx
call fcn.00407100
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x407664
mov eax, dword [ebp - 4]
jmp 0x4076cd
push 0x41ecc8
lea edx, [ebp - 0x208]
push edx
push 0x41eccc
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0x10
lea ecx, [ebp - 0x408]
push ecx
call fcn.00406f50
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4076a2
mov eax, dword [ebp - 4]
jmp 0x4076cd
lea edx, [ebp - 0x208]
push edx
call dword [sym.imp.MSVCR80.dll__rmdir]
add esp, 4
test eax, eax
je 0x4076ca
call dword [sym.imp.MSVCR80.dll__errno]
mov eax, dword [eax]
push eax
call fcn.00406b00
add esp, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041b6f2
mov esp, ebp
pop ebp
ret
Function at 0x40b5a0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WSOCK32.dll_send]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x10]
je 0x40b5ce
mov dword [ebp - 8], 0xfffffe6d
jmp 0x40b5d5
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x40b650
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x404
push 0
mov eax, dword [ebp + 0xc]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0
push 0x400
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WSOCK32.dll_recv]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x400], eax
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x400], 0xffffffff
jne 0x40b6b6
call fcn.0040b870
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x40b6aa
mov eax, dword [ebp - 8]
imul eax, eax, 0xffffffff
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 8]
mov dword [ecx + 0x400], edx
push 0
mov eax, dword [0x427900]
push eax
call dword [0x4245d4]
add esp, 8
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x400], 0
jg 0x40b6dc
mov dword [ebp - 4], 0xfffffe6c
jmp 0x40b6e3
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x40b6f0
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0x10
push 0
mov eax, dword [ebp + 0x10]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
jmp 0x40b71e
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
movsx ecx, byte [eax]
test ecx, ecx
je 0x40b74c
mov edx, dword [ebp - 8]
movsx eax, byte [edx]
push eax
push str.0123456789.
call dword [sym.imp.MSVCR80.dll_strchr]
add esp, 8
test eax, eax
jne 0x40b74a
mov dword [ebp - 4], 1
jmp 0x40b74c
jmp 0x40b715
cmp dword [ebp - 4], 0
je 0x40b78e
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40b76c
mov eax, 0xfffffe0b
jmp 0x40b7dc
mov edx, dword [ebp - 0xc]
movsx eax, word [edx + 0xa]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 0x10]
add ecx, 4
push ecx
call sub.MSVCR80.dll_memcpy
add esp, 0xc
jmp 0x40b7c0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov dword [ebp - 0x10], eax
push 4
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0x10]
add ecx, 4
push ecx
call sub.MSVCR80.dll_memcpy
add esp, 0xc
cmp dword [ebp - 0x10], 0xffff
jne 0x40b7c0
mov eax, 0xfffffe09
jmp 0x40b7dc
mov edx, dword [ebp + 0x10]
mov word [edx], 2
mov ax, word [ebp + 0xc]
push eax
call dword [sym.imp.WSOCK32.dll_htons]
mov ecx, dword [ebp + 0x10]
mov word [ecx + 2], ax
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x40b800
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 0
push 1
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0
jge 0x40b823
mov eax, 0xfffffe6f
jmp 0x40b844
push 0x10
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WSOCK32.dll_connect]
test eax, eax
je 0x40b842
mov eax, 0xfffffe6e
jmp 0x40b844
xor eax, eax
pop ebp
ret

Function at 0x40b890
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x4278fc], 0
je 0x40b8a8
mov dword [ebp - 4], 0
jmp 0x40b90f
push 0x428210
push 0x202
call dword [sym.imp.WSOCK32.dll_WSAStartup]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40b8e1
mov eax, dword [ebp - 8]
push eax
push str.WSAStartup_error__d
push 0x428028
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0xc
mov dword [ebp - 4], 0xfffffb49
jmp 0x40b90f
mov dword [ebp - 4], 0
mov dword [0x4278fc], 1
push 0x428315
push 0x428214
push str.DLL_s___STATUS_s
push 0x428028
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0x10
cmp dword [ebp + 8], 0
je 0x40b91e
mov ecx, dword [ebp + 8]
mov dword [ecx], 0x428028
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x412810
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov dword [ecx], 0
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x412863
mov ecx, dword [ebp + 0x10]
push ecx
push str.PC_user
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.MSVCR80.dll_strncpy]
add esp, 0xc
mov eax, dword [ebp + 0xc]
add eax, dword [ebp + 0x10]
mov byte [eax - 1], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x412870
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
mov eax, dword [0x42567c]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
xor eax, eax
je 0x4128ab
push 0x42108c
lea ecx, [ebp - 0xc]
push ecx
call sub.MSVCR80.dll_strcpy
add esp, 8
jmp 0x41293b
push 0x421090
lea edx, [ebp - 0xc]
push edx
call sub.MSVCR80.dll_strcpy
add esp, 8
mov byte [ebp - 0xd], 0
mov byte [ebp - 0xe], 0
mov byte [ebp - 0xc], 0x41
jmp 0x4128d2
mov al, byte [ebp - 0xc]
add al, 1
mov byte [ebp - 0xc], al
movsx ecx, byte [ebp - 0xc]
cmp ecx, 0x5a
jg 0x412925
movsx edx, byte [ebp - 0xe]
test edx, edx
jne 0x412925
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0xd4], ecx
cmp dword [ebp - 0xd4], 2
je 0x412915
cmp dword [ebp - 0xd4], 3
je 0x41290d
jmp 0x412923
mov dl, byte [ebp - 0xc]
mov byte [ebp - 0xe], dl
jmp 0x412923
movsx eax, byte [ebp - 0xd]
test eax, eax
jne 0x412923
mov cl, byte [ebp - 0xc]
mov byte [ebp - 0xd], cl
jmp 0x4128ca
movsx edx, byte [ebp - 0xe]
test edx, edx
jne 0x412935
mov al, byte [ebp - 0xd]
mov byte [ebp - 0xc], al
jmp 0x41293b
mov cl, byte [ebp - 0xe]
mov byte [ebp - 0xc], cl
movsx edx, byte [ebp - 0xc]
test edx, edx
jne 0x412953
mov dword [ebp - 8], 1
mov dword [ebp - 4], 0xfffffc19
jmp 0x412999
push 0x50
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x7c]
push edx
lea eax, [ebp - 0x74]
push eax
push 0x50
lea ecx, [ebp - 0xd0]
push ecx
lea edx, [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0
jne 0x412993
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 1
jmp 0x412999
mov eax, dword [ebp - 0x74]
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
jne 0x4129a5
cmp dword [ebp - 4], 0
jl 0x4129b1
cmp dword [ebp - 8], 0
je 0x4129b9
cmp dword [ebp - 4], 0
jle 0x4129b9
mov ecx, dword [ebp - 4]
neg ecx
mov dword [ebp - 4], ecx
cmp dword [0x42a86c], 0
je 0x412a21
cmp dword [0x424748], 0
jle 0x412a21
cmp dword [0x42a878], 0
je 0x4129e9
mov edx, dword [ebp - 4]
mov dword [0x42a87c], edx
mov dword [0x42a878], 0
jmp 0x4129fe
mov eax, dword [ebp - 4]
cmp eax, dword [0x42a87c]
je 0x4129fe
mov dword [0x424748], 0
mov ecx, dword [0x424748]
sub ecx, 1
mov dword [0x424748], ecx
jne 0x412a21
lea edx, [ebp - 4]
push edx
push 0x42a874
call dword [0x42a86c]
add esp, 8
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0041b6f2
mov esp, ebp
pop ebp
ret

Function at 0x412ab0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [0x424874], 0
jle 0x412ac6
mov eax, dword [0x424874]
jmp 0x412ade
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x10]
mov dword [0x424874], ecx
mov eax, dword [0x424874]
mov esp, ebp
pop ebp
ret
Function at 0x412d60
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 8], 0
push closesocket
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x412d93
call dword [sym.imp.KERNEL32.dll_GetLastError]
imul eax, eax, 0xffffffff
mov dword [ebp - 8], eax
jmp 0x412dee
push 4
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x412dba
call dword [sym.imp.KERNEL32.dll_GetLastError]
imul eax, eax, 0xffffffff
mov dword [ebp - 8], eax
jmp 0x412dee
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x412ddf
call dword [sym.imp.KERNEL32.dll_GetLastError]
imul eax, eax, 0xffffffff
mov dword [ebp - 8], eax
jmp 0x412dee
mov ecx, dword [ebp - 0x24]
and ecx, 4
je 0x412dee
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x413cb0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0x42150c
mov eax, dword [ebp + 8]
push eax
call sub.MSVCR80.dll_strcmp
add esp, 8
test eax, eax
jne 0x413cd5
call fcn.00414500
jmp 0x413dba
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR80.dll_getenv]
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x413cf3
mov eax, dword [ebp - 4]
jmp 0x413dba
cmp dword [0x42aa78], 0
jne 0x413d01
call fcn.00413dc0
push 0x421510
mov edx, dword [0x42aa78]
push edx
call fcn.00416fa0
add esp, 8
mov word [ebp - 8], ax
movsx eax, word [ebp - 8]
test eax, eax
jge 0x413d28
xor eax, eax
jmp 0x413dba
mov ecx, dword [ebp + 8]
push ecx
mov dx, word [ebp - 8]
push edx
mov eax, dword [0x42aa78]
push eax
call fcn.00417660
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x413db7
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
jmp 0x413d59
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
movsx ecx, byte [eax]
test ecx, ecx
je 0x413d65
jmp 0x413d50
mov edx, dword [ebp - 0xc]
sub edx, 1
mov dword [ebp - 0xc], edx
jmp 0x413d79
mov eax, dword [ebp - 0xc]
sub eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 4]
jb 0x413d98
mov edx, dword [ebp - 0xc]
movsx eax, byte [edx]
cmp eax, 0x20
jg 0x413d98
mov ecx, dword [ebp - 0xc]
movsx edx, byte [ecx]
test edx, edx
jl 0x413d98
jmp 0x413d70
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
movsx edx, byte [ecx]
test edx, edx
je 0x413db7
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov byte [ecx], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x414cd0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0x421514
mov eax, dword [ebp + 0xc]
push eax
call sub.MSVCR80.dll_strcmp
add esp, 8
test eax, eax
jne 0x414d12
push str.WNCTMPDIR
call dword [sym.imp.MSVCR80.dll_getenv]
add esp, 4
test eax, eax
je 0x414d10
push str.from_environment_variable_WNCTMPDIR
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 8
xor eax, eax
jmp 0x414d50
jmp 0x414d39
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.MSVCR80.dll_getenv]
add esp, 4
test eax, eax
je 0x414d39
push str.from_environment
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 8
xor eax, eax
jmp 0x414d50
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [0x42aa78]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00416f10
add esp, 0xc
pop ebp
ret

Function at 0x414dd0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x42567c]
xor eax, ebp
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], 0
jne 0x414df0
xor eax, eax
jmp 0x414f28
mov eax, dword [ebp + 8]
push eax
push 0x421560
lea ecx, [ebp - 0x190]
push ecx
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0xc
lea edx, [ebp - 0x190]
push edx
call dword [sym.imp.MSVCR80.dll_getenv]
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x414e2a
mov eax, dword [ebp - 4]
jmp 0x414f28
cmp dword [0x42aa78], 0
jne 0x414e38
call fcn.00413dc0
push 0x421568
mov eax, dword [0x42aa78]
push eax
call fcn.00416fa0
add esp, 8
mov word [ebp - 8], ax
movsx ecx, word [ebp - 8]
test ecx, ecx
jge 0x414e5e
xor eax, eax
jmp 0x414f28
mov edx, dword [ebp + 8]
push edx
mov ax, word [ebp - 8]
push eax
mov ecx, dword [0x42aa78]
push ecx
call fcn.00417660
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x414f25
mov edx, dword [ebp - 4]
mov dword [ebp - 0x194], edx
jmp 0x414e9d
mov eax, dword [ebp - 0x194]
add eax, 1
mov dword [ebp - 0x194], eax
mov ecx, dword [ebp - 0x194]
movsx edx, byte [ecx]
test edx, edx
je 0x414eac
jmp 0x414e8e
mov eax, dword [ebp - 0x194]
sub eax, 1
mov dword [ebp - 0x194], eax
jmp 0x414ecc
mov ecx, dword [ebp - 0x194]
sub ecx, 1
mov dword [ebp - 0x194], ecx
mov edx, dword [ebp - 0x194]
cmp edx, dword [ebp - 4]
jb 0x414ef4
mov eax, dword [ebp - 0x194]
movsx ecx, byte [eax]
cmp ecx, 0x20
jg 0x414ef4
mov edx, dword [ebp - 0x194]
movsx eax, byte [edx]
test eax, eax
jl 0x414ef4
jmp 0x414ebd
mov ecx, dword [ebp - 0x194]
add ecx, 1
mov dword [ebp - 0x194], ecx
mov edx, dword [ebp - 0x194]
movsx eax, byte [edx]
test eax, eax
je 0x414f25
mov ecx, dword [ebp - 0x194]
mov dword [ebp - 0x198], ecx
mov edx, dword [ebp - 0x198]
mov byte [edx], 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0041b6f2
mov esp, ebp
pop ebp
ret