joyce8/EMBER2024-capa huggingface dataset:
Function at 0x11b52f60
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x210]
test ebx, ebx
jne 0x11b52f7c
xor eax, eax
pop ebx
add esp, 0x208
ret
push ebp
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], 0
push 0x103
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x14]
push ebx
push eax
mov ebp, 1
call fcn.11b30ba4
mov edi, 0x5c
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.11b3128c
lea edx, [esp + 0x24]
mov esi, eax
push edx
call fcn.11b30f25
add esp, 0x18
cmp eax, 2
jbe 0x11b53001
cmp word [esp + 0x10], di
jne 0x11b53001
cmp word [esp + 0x12], di
jne 0x11b53001
lea eax, [esp + 0x14]
push edi
push eax
call fcn.11b3128c
add esp, 8
test eax, eax
je 0x11b53089
add eax, 2
push edi
push eax
call fcn.11b3128c
add esp, 8
mov esi, eax
test esi, esi
je 0x11b53089
lea ecx, [esp + 0x10]
mov word [esi], 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov edi, ebx
and edi, 0x10
jne 0x11b53049
test bl, 1
je 0x11b53038
mov edx, ebx
lea eax, [esp + 0x10]
and edx, 0xfffffffe
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebp, eax
test ebp, ebp
je 0x11b530bf
cmp ebx, 0xffffffff
je 0x11b53052
test edi, edi
jne 0x11b53061
lea edx, [esp + 0x10]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
test ebp, ebp
je 0x11b530bf
mov word [esi], 0x5c
add esi, 2
push 0x5c
push esi
call fcn.11b3128c
mov esi, eax
add esp, 8
test esi, esi
jne 0x11b53009
test ebp, ebp
je 0x11b530bf
mov ebx, dword [esp + 0x21c]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x11b530b4
test al, 0x10
jne 0x11b530bf
test al, 1
je 0x11b530a7
and al, 0xfe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebp, eax
test ebp, ebp
je 0x11b530bf
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x11b57270
Capabilities:
Get disk information

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x11b5b4a0
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
push edi
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.11b1db70
mov edi, dword [esp + 0x3c]
push 0xffffffffffffffff
push 0
mov ecx, edi
call fcn.11b1db70
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebp, eax
mov eax, dword [0x11b722a0]
test eax, eax
je 0x11b57328
cmp ebp, eax
jne 0x11b57328
mov eax, dword [0x11b722a4]
test eax, eax
je 0x11b57328
cmp ebx, eax
jb 0x11b57328
add eax, 0x493e0
cmp eax, ebx
jb 0x11b57328
mov ebp, dword [0x11b722a8]
push 1
inc ebp
push 0x11b721c0
lea ecx, [esp + 0x18]
mov dword [0x11b722a8], ebp
call fcn.11b247c0
push 0x11b721f0
mov ecx, esi
mov dword [esp + 0x34], 0
call fcn.11b1dd50
push 0x11b721e0
mov ecx, edi
call fcn.11b1dd50
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x10]
jmp 0x11b5739e
push edi
push esi
mov dword [0x11b722a8], 0
call fcn.11b576a0
add esp, 8
lea ecx, [esp + 0x1c]
push 1
push 0x11b721c0
call fcn.11b247c0
push 0xffffffffffffffff
push 0
mov ecx, 0x11b721f0
mov dword [esp + 0x38], 1
mov dword [0x11b722a0], ebp
mov dword [0x11b722a4], ebx
call fcn.11b1db70
push esi
mov ecx, 0x11b721f0
call fcn.11b1dd50
push 0xffffffffffffffff
push 0
mov ecx, 0x11b721e0
call fcn.11b1db70
push edi
mov ecx, 0x11b721e0
call fcn.11b1dd50
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.11b24820
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x11b576a0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x11b5b506
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
push ebx
push ebp
push esi
mov esi, dword [esp + 0x240]
push edi
xor ebx, ebx
push 0xffffffffffffffff
push ebx
mov ecx, esi
call fcn.11b1db70
mov ebp, dword [esp + 0x248]
push 0xffffffffffffffff
push ebx
mov ecx, ebp
call fcn.11b1db70
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x10], 1
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
test ecx, edx
je 0x11b577d9
mov edx, dword [0x11b6cf30]
mov cx, word [0x11b6cf34]
mov dword [esp + 0x18], edx
add word [esp + 0x18], ax
lea edx, [esp + 0x18]
mov word [esp + 0x1c], cx
push edx
lea ecx, [esp + 0x28]
mov word [esp + 0x22], bx
call fcn.11b179e0
mov eax, dword [esi + 4]
lea ecx, [esp + 0x24]
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x244], ebx
call fcn.11b1e110
mov edx, dword [0x11b5c714]
mov dword [esp + 0x14], edx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x2e]
mov word [esp + 0x2c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x2c]
push 0x104
lea ecx, [esp + 0x1c]
push eax
push ecx
mov byte [esp + 0x248], 1
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x14]
push edx
mov word [esp + 0x236], bx
call fcn.11b18400
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, ebp
call fcn.11b1e110
lea ecx, [esp + 0x14]
mov byte [esp + 0x23c], bl
call fcn.11b18180
lea ecx, [esp + 0x24]
mov dword [esp + 0x23c], 0xffffffff
call fcn.11b18180
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
inc eax
shl edx, 1
cmp eax, 0x1a
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], edx
jb 0x11b576fb
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x230
ret

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x4ffa17ab
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x2f654f2c
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x401039
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
push edi
xor edi, edi
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], eax
jbe 0x401103
push ebx
mov ebx, dword [ebp + 8]
mov dl, byte [edi + ebx]
mov cl, dl
shr cl, 2
movzx ecx, cl
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc edi
and dl, 3
mov byte [eax + esi], cl
cmp edi, dword [ebp + 0xc]
jae 0x4010e8
mov cl, byte [edi + ebx]
shl dl, 4
mov bl, cl
shr bl, 4
add dl, bl
movzx edx, dl
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc edi
and cl, 0xf
mov byte [eax + esi + 1], dl
cmp edi, dword [ebp + 0xc]
jae 0x4010d1
mov edx, dword [ebp + 8]
mov dl, byte [edi + edx]
add dword [ebp - 4], 3
shl cl, 2
mov bl, dl
shr bl, 6
add cl, bl
movzx ecx, cl
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + esi + 2], cl
movzx ecx, dl
and ecx, 0x3f
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + esi + 3], cl
mov ecx, dword [ebp - 4]
inc edi
add eax, 4
cmp ecx, dword [ebp + 0xc]
jb 0x40104f
jmp 0x401102
shl cl, 2
movzx ecx, cl
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + esi + 2], cl
mov byte [eax + esi + 3], 0x3d
jmp 0x4010ff
shl dl, 4
movzx ecx, dl
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + esi + 1], cl
mov word [eax + esi + 2], 0x3d3d
add eax, 4
pop ebx
mov byte [eax + esi], 0
pop edi
leave
ret
Function at 0x40b8c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x4bcad4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push 0x27
lea eax, [ebp - 0x2c]
push ebx
push eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
call fcn.00477750
add esp, 0xc
push ebx
push 0x80
push 3
push ebx
push 3
push 0xc0000000
push str..PHYSICALDRIVE0
mov dword [ebp - 0x38], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40b926
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004751f1
mov esp, ebp
pop ebp
ret
push ebx
lea ecx, [ebp - 0x38]
push ecx
push 4
lea edx, [ebp - 0x34]
push edx
push 4
mov eax, edx
push eax
push 0x8000e00c
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x40b94e
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40b9b4
mov ecx, 4
lea edx, [ebp - 0x34]
or eax, 0xffffffff
push edi
lea ebx, [ebx]
movsx edi, byte [edx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4ae510]
dec ecx
inc edx
cmp ecx, ebx
jne 0x40b960
push ebx
lea ecx, [ebp - 0x38]
push ecx
push 0x2b
lea edx, [ebp - 0x30]
push edx
not eax
push 0x2b
mov dword [ebp - 0x2c], eax
mov eax, edx
push eax
push 0x8000e014
push esi
mov dword [ebp - 0x30], 0x2b
mov word [ebp - 7], 0x43
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
pop edi
test eax, eax
je 0x40b946
cmp byte [ebp - 6], bl
setne bl
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004751f1
mov esp, ebp
pop ebp
ret
Function at 0x40ba60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 3
push 0xc0000000
push str..ControlDevice
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40baad
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor bl, bl
jmp 0x40bb34
push edi
lea eax, [ebp - 0x10]
push eax
push 4
lea ecx, [ebp - 4]
push ecx
push 4
mov edx, ecx
push edx
push 0x22400c
push esi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x40bada
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor bl, bl
jmp 0x40bae0
cmp dword [ebp - 4], edi
setne bl
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x40bb34
lea eax, [ebp - 8]
push eax
push 0x20019
push edi
push str.SYSTEMCurrentControlSetiCafe8
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40bb0d
xor bl, bl
jmp 0x40bb34
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0xc]
push edx
push edi
push edi
push str.Admin
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40bb2e
xor bl, bl
jmp 0x40bb34
cmp dword [ebp - 0xc], edi
setne bl
mov eax, dword [ebp - 8]
cmp eax, edi
je 0x40bb42
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40bb50
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x4bcad4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x40bb7c
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004751f1
mov esp, ebp
pop ebp
ret
push edi
push 0x1ff
lea eax, [ebp - 0x203]
push 0
push eax
mov byte [ebp - 0x204], 0
call fcn.00477750
push esi
lea ecx, [ebp - 0x204]
push 0x200
push ecx
call fcn.00478374
add esp, 0x18
cmp byte [ebp - 0x204], 0
lea edx, [ebp - 0x204]
je 0x40bc28
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x204]
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40bbd0
sub eax, esi
mov ecx, edx
lea esi, [ebp - 0x204]
sub ecx, esi
cmp ecx, eax
jge 0x40bc28
push 0x5c
push edx
call fcn.00477ef0
mov esi, eax
lea edx, [ebp - 0x204]
add esp, 8
cmp esi, edx
jbe 0x40bc04
cmp byte [esi - 1], 0x3a
je 0x40bc60
lea eax, [ebp - 0x204]
cmp esi, eax
jne 0x40bc3a
cmp byte [esi + 1], 0x5c
jne 0x40bc3a
push 0x5c
add esi, 2
push esi
call fcn.00477ef0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40bc60
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004751f1
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x40bc7f
push 0
lea ecx, [ebp - 0x204]
push ecx
mov byte [esi], 0
call edi
test eax, eax
jne 0x40bc5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40bcbf
mov byte [esi], 0x5c
cmp byte [esi + 1], 0
lea edx, [esi + 1]
jne 0x40bbc1
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004751f1
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x204]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40bc88
sub eax, edx
cmp byte [ebp + eax - 0x205], 0x3a
je 0x40bc28
push 0
lea edx, [ebp - 0x204]
push edx
call edi
test eax, eax
jne 0x40bc28
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40bc28
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor al, al
pop esi
call fcn.004751f1
mov esp, ebp
pop ebp
ret

Function at 0x40c070
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add ecx, 4
pop ebp
jmp fcn.0040bf70
Function at 0x40c250
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48fe68
mov eax, dword fs:[0]
push eax
sub esp, 0x348
mov eax, dword [0x4bcad4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
push 0x1ff
lea eax, [ebp - 0x20f]
push ebx
push eax
mov dword [ebp - 4], ebx
mov byte [ebp - 0x210], bl
call fcn.00477750
push edi
push str._s
lea ecx, [ebp - 0x210]
push 0x200
push ecx
call fcn.004779e1
push 0x13c
lea edx, [ebp - 0x34c]
push ebx
push edx
mov dword [ebp - 0x350], ebx
call fcn.00477750
add esp, 0x28
lea eax, [ebp - 0x350]
push eax
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40c30f
mov ecx, dword [ebp + 0x20]
mov dword [ebp - 4], eax
cmp ecx, ebx
je 0x40c308
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
lea eax, [ebp + 0x10]
cmp ecx, eax
setne al
movzx eax, al
push eax
call edx
xor al, al
jmp 0x40c428
lea eax, [ebp - 0x350]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x40c3fe
mov ebx, dword [ebp + 0xc]
jmp 0x40c330
lea ecx, [ebp - 0x324]
push 0x497abc
push ecx
call fcn.00483a1a
add esp, 8
test eax, eax
je 0x40c3e8
lea edx, [ebp - 0x324]
push 0x497ab8
push edx
call fcn.00483a1a
add esp, 8
test eax, eax
je 0x40c3e8
test dword [ebp - 0x350], 0x10104
jne 0x40c3e8
lea eax, [ebp - 0x324]
push eax
push edi
push 0x497ab0
lea ecx, [ebp - 0x210]
push 0x200
push ecx
call fcn.004779e1
add esp, 0x14
test byte [ebp - 0x350], 0x10
je 0x40c3c8
test bl, bl
je 0x40c3e8
sub esp, 0x18
lea edx, [ebp + 0x10]
mov ecx, esp
mov dword [ebp - 0x354], esp
push edx
call fcn.0040bf00
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.0040c250
add esp, 0x20
jmp 0x40c3e4
mov ecx, dword [ebp + 0x20]
test ecx, ecx
je 0x40c444
mov edx, dword [ecx]
mov edx, dword [edx + 4]
lea eax, [ebp - 0x350]
push eax
lea eax, [ebp - 0x210]
push eax
call edx
test al, al
je 0x40c3fe
lea eax, [ebp - 0x350]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40c330
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x20]
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x40c426
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
lea eax, [ebp + 0x10]
cmp ecx, eax
setne al
movzx eax, al
push eax
call edx
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004751f1
mov esp, ebp
pop ebp
ret
call fcn.00474ea0
int3
Function at 0x40dff0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
xor eax, eax
push ebx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x24]
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [ebp - 0x24], 9
mov al, 1
je 0x40e02b
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40e080
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x490198
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4bcad4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
mov dword [ebp - 0x10], ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetComputerNameExA]
push ebx
push 1
mov dword [ebp - 0x10], ebx
call edi
test eax, eax
jne 0x40e14a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x40e14a
mov ecx, dword [ebp - 0x10]
inc ecx
push 0x4bf581
push ecx
call fcn.00479d17
mov esi, eax
add esp, 8
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], ebx
cmp esi, ebx
je 0x40e136
mov edx, dword [ebp - 0x10]
inc edx
push edx
push ebx
push esi
call fcn.00477750
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push esi
push 1
call edi
test eax, eax
je 0x40e136
mov edi, dword [ebp + 8]
push esi
mov ecx, edi
call fcn.00401205
push esi
call fcn.004777ca
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x40e14a
push esi
call fcn.004777ca
add esp, 4
mov esi, dword [ebp + 8]
push ebx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
push 0x4ad620
mov ecx, esi
mov byte [esi], bl
call fcn.00401602
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40e180
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x490198
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4bcad4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
mov edi, dword [sym.imp.ADVAPI32.dll_GetUserNameA]
push eax
push ebx
mov dword [ebp - 0x10], ebx
call edi
test eax, eax
jne 0x40e240
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40e240
mov ecx, dword [ebp - 0x10]
inc ecx
push 0x4bf581
push ecx
call fcn.00479d17
mov esi, eax
add esp, 8
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], ebx
cmp esi, ebx
je 0x40e22c
mov edx, dword [ebp - 0x10]
inc edx
push edx
push ebx
push esi
call fcn.00477750
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push esi
call edi
test eax, eax
je 0x40e22c
mov edi, dword [ebp + 8]
push esi
mov ecx, edi
call fcn.00401205
push esi
call fcn.004777ca
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x40e240
push esi
call fcn.004777ca
add esp, 4
mov esi, dword [ebp + 8]
push ebx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
push 0x4ad620
mov ecx, esi
mov byte [esi], bl
call fcn.00401602
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40e270
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4bcad4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov dword [ebp - 0x10c], 0
mov byte [ebp - 0x108], 0
call fcn.00477750
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push str._SystemDrive_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [ebp - 0x108]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40e2e0
sub eax, edx
push eax
lea edx, [ebp - 0x108]
push edx
mov ecx, esi
call fcn.00401602
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004751f1
mov esp, ebp
pop ebp
ret

Function at 0x40e310
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4bcad4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov dword [ebp - 0x10c], 0
mov byte [ebp - 0x108], 0
call fcn.00477750
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x108]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40e380
sub eax, edx
push eax
lea edx, [ebp - 0x108]
push edx
mov ecx, esi
call fcn.00401602
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004751f1
mov esp, ebp
pop ebp
ret
Function at 0x40e3b0
Capabilities:
Get system information on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4901cb
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x4bcad4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x113]
push ebx
push eax
mov dword [ebp - 0x140], ebx
mov byte [ebp - 0x114], bl
call fcn.00477750
xor eax, eax
add esp, 0xc
lea ecx, [ebp - 0x138]
push ecx
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x118], eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [ebp - 0x138], 9
push 0x103
jne 0x40e485
lea edx, [ebp - 0x114]
push edx
push str._ProgramFiles_x86__
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x40e4b9
push 0x104
push str.Internet_Exploreriexplore.exe
push 0x104
lea eax, [ebp - 0x114]
push eax
jmp 0x40e4b1
lea ecx, [ebp - 0x114]
push ecx
push str._ProgramFiles_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x40e4b9
push 0x104
push str.Internet_Exploreriexplore.exe
push 0x104
lea edx, [ebp - 0x114]
push edx
call fcn.00479c57
add esp, 0x10
lea eax, [ebp - 0x114]
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], ebx
mov byte [ebp - 0x130], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40e4d8
sub eax, edx
push eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x130]
call fcn.00401602
lea ecx, [ebp - 0x130]
push ecx
mov dword [ebp - 4], ebx
call fcn.004148d0
add esp, 4
cmp dword [ebp - 0x11c], 0x10
mov byte [ebp - 0x139], al
mov dword [ebp - 4], 0xffffffff
jb 0x40e52b
mov edx, dword [ebp - 0x130]
push edx
call fcn.004777ca
add esp, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
cmp byte [ebp - 0x139], bl
je 0x40e55b
lea eax, [ebp - 0x114]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40e548
sub eax, edx
push eax
lea eax, [ebp - 0x114]
push eax
jmp 0x40e561
push ebx
push 0x4ad620
mov ecx, esi
call fcn.00401602
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004751f1
mov esp, ebp
pop ebp
ret