joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43d7e0
Capabilities:
Parse credit card information

Disassembly:
push ebx
mov bl, dl
push esi
mov esi, ecx
cmp bl, 0x20
je case.default.0x43d81f
cmp bl, 0xd
je case.default.0x43d81f
cmp bl, 0xa
je case.default.0x43d81f
cmp bl, 9
je case.default.0x43d81f
cmp bl, 0xc
je case.default.0x43d81f
lea eax, [esi - 0x14]
cmp eax, 0xb
ja case.default.0x43d81f
jmp dword [eax*4 + 0x43da08]
cmp bl, 0x2f
je 0x43d847
cmp bl, 0x2a
je 0x43d847
or bl, 0x20
sub bl, 0x61
cmp bl, 0x19
ja case.default.0x43d81f
pop esi
mov eax, 0x15
pop ebx
ret
pop esi
mov eax, 0x1b
pop ebx
ret
mov al, bl
or al, 0x20
sub al, 0x61
cmp al, 0x19
ja 0x43d85e
mov eax, esi
pop esi
pop ebx
ret
cmp bl, 0x3a
jne case.default.0x43d81f
pop esi
mov eax, 0x16
pop ebx
ret
cmp bl, 0x2f
jne case.default.0x43d81f
pop esi
mov eax, 0x17
pop ebx
ret
cmp bl, 0x2f
jne case.default.0x43d81f
pop esi
mov eax, 0x18
pop ebx
ret
cmp bl, 0x40
je case.default.0x43d81f
cmp bl, 0x2f
je 0x43d847
cmp bl, 0x3f
je 0x43d962
cmp bl, 0x40
jne 0x43d8b5
pop esi
mov eax, 0x1a
pop ebx
ret
mov al, bl
or al, 0x20
cmp al, 0x61
jb 0x43d8c1
cmp al, 0x7a
jbe 0x43d92e
cmp bl, 0x30
jl 0x43d8cb
cmp bl, 0x39
jle 0x43d92e
cmp bl, 0x2d
je 0x43d92e
cmp bl, 0x5f
je 0x43d92e
cmp bl, 0x2e
je 0x43d92e
cmp bl, 0x21
je 0x43d92e
cmp bl, 0x7e
je 0x43d92e
cmp bl, 0x2a
je 0x43d92e
cmp bl, 0x27
je 0x43d92e
cmp bl, 0x28
je 0x43d92e
cmp bl, 0x29
je 0x43d92e
cmp bl, 0x25
je 0x43d92e
cmp bl, 0x3b
je 0x43d92e
cmp bl, 0x3a
je 0x43d92e
cmp bl, 0x26
je 0x43d92e
cmp bl, 0x3d
je 0x43d92e
cmp bl, 0x2b
je 0x43d92e
cmp bl, 0x24
je 0x43d92e
cmp bl, 0x2c
je 0x43d92e
cmp bl, 0x5b
je 0x43d92e
cmp bl, 0x5d
jne case.default.0x43d81f
pop esi
mov eax, 0x19
pop ebx
ret
movzx edx, bl
mov eax, 1
mov ecx, edx
shr edx, 3
and ecx, 7
shl eax, cl
test byte [edx + 0x4b86e0], al
jne 0x43d859
cmp bl, 0x23
je 0x43d96a
cmp bl, 0x3f
jne case.default.0x43d81f
pop esi
mov eax, 0x1c
pop ebx
ret
pop esi
mov eax, 0x1e
pop ebx
ret
movzx edx, bl
mov eax, 1
mov ecx, edx
shr edx, 3
and ecx, 7
shl eax, cl
test byte [edx + 0x4b86e0], al
jne 0x43d996
cmp bl, 0x23
je 0x43d96a
cmp bl, 0x3f
jne case.default.0x43d81f
pop esi
mov eax, 0x1d
pop ebx
ret
movzx edx, bl
mov eax, 1
mov ecx, edx
shr edx, 3
and ecx, 7
shl eax, cl
test byte [edx + 0x4b86e0], al
jne 0x43d9c6
cmp bl, 0x23
je 0x43d859
cmp bl, 0x3f
jne case.default.0x43d81f
pop esi
mov eax, 0x1f
pop ebx
ret
movzx edx, bl
mov eax, 1
mov ecx, edx
shr edx, 3
and ecx, 7
shl eax, cl
test byte [edx + 0x4b86e0], al
jne 0x43d859
cmp bl, 0x23
je 0x43d859
cmp bl, 0x3f
je 0x43d859
pop esi
mov eax, 1
pop ebx
ret
Function at 0x442890
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a492b
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4d0070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov ecx, esi
mov dword [edi], eax
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 0x1010000
mov dword [edi + 0x18], 0
mov word [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
call fcn.00443290
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], vtable.boost::xpressive::detail::actionable.0
mov dword [edi + 0x38], 0
mov dword [ebp - 4], 0
lea eax, [edi + 0x38]
mov dword [edi + 0x3c], eax
xorps xmm0, xmm0
lea eax, [esi + 0x44]
mov dword [edi + 0x40], eax
mov eax, dword [ebp + 8]
movq qword [edi + 0x44], xmm0
mov ecx, dword [edi + 0x30]
add ecx, 4
mov dword [edi + 0x4c], eax
call fcn.00442a80
push esi
push dword [ebp + 0x14]
mov ecx, edi
call fcn.00442b10
mov ecx, dword [edi + 0x30]
lea eax, [esi + 0x34]
push eax
add ecx, 0x14
call fcn.00442ac0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14

Function at 0x461080
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp byte [esp + 0xc], 0
push ebx
movzx ebx, byte [esp + 8]
push esi
push edi
movzx edi, byte [esp + 0x14]
mov esi, ecx
jne 0x461133
mov eax, edi
sub eax, ebx
cmp eax, 0x100
jg 0x461133
push dword [esp + 0x1c]
call fcn.0045d840
test al, al
je 0x461155
cmp ebx, edi
jg 0x461155
lea eax, [esi + 8]
push ebp
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x14], eax
nop
cmp byte [esp + 0x20], 0
mov cl, bl
je 0x4610fb
mov eax, dword [ebp + 0x208]
mov edx, dword [eax]
cmp edx, vtable.std::ctype_char_.0
jne 0x46115b
add eax, 8
push eax
movzx eax, cl
push eax
call fcn.00464532
add esp, 8
mov cl, al
movzx esi, cl
mov ecx, dword [esp + 0x14]
mov eax, esi
shr eax, 6
and esi, 0x3f
lea edx, [ecx + eax*8]
xor eax, eax
xor ecx, ecx
bts eax, esi
cmp esi, 0x20
cmovae ecx, eax
xor eax, ecx
cmp esi, 0x40
cmovae ecx, eax
or dword [edx], eax
or dword [edx + 4], ecx
inc ebx
cmp ebx, edi
jle 0x4610d0
pop ebp
pop edi
pop esi
pop ebx
ret 0x14
mov byte [esi], 0
lea eax, [esi + 0x20]
mov ecx, 3
nop
sub ecx, 1
mov dword [eax], 0xffffffff
mov dword [eax + 4], 0xffffffff
lea eax, [eax - 8]
jns 0x461140
pop edi
pop esi
pop ebx
ret 0x14
push ecx
mov ecx, eax
mov eax, dword [edx + 0x10]
call eax
jmp 0x4610f9

Function at 0x46923d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x48f059
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0048eed8
Function at 0x403070
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x403093
call fcn.00406700
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4064e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp + 8]
push 0
push eax
push esi
call fcn.00404e10
add esp, 4
push eax
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x7f
call fcn.00406520
add esp, 4
pop esi
pop ebp
ret

Function at 0x406520
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4104d8]
push esi
mov esi, dword [ebp + 8]
test eax, eax
je 0x406536
push esi
call eax
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x406870
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push esi
push str.SHELL
call fcn.00405420
add esp, 4
test eax, eax
jne 0x406913
push str.COMSPEC
call fcn.00405420
add esp, 4
test eax, eax
jne 0x406913
push str.ComSpec
call fcn.00405420
add esp, 4
test eax, eax
jne 0x406913
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, 0x80000000
push 0x104
je 0x4068eb
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [ebp - 0x108]
push ecx
push str._s_command.com
push 0x4104e0
call fcn.00404c00
add esp, 0xc
jmp 0x406921
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x108]
push eax
push str._s_cmd.exe
push 0x4104e0
call fcn.00404c00
add esp, 0xc
jmp 0x406921
push eax
push 0x4104e0
call fcn.00403010
add esp, 8
push 0x4104e0
call fcn.00405e50
add esp, 4
mov esi, eax
push 0x40ec34
push esi
call fcn.0040a9c0
add esp, 8
test eax, eax
je 0x40697f
push str.sh.exe
push esi
call fcn.0040a9c0
add esp, 8
test eax, eax
je 0x40697f
push 0x40ec28
push esi
call fcn.0040a9c0
add esp, 8
test eax, eax
je 0x40697f
push str.rsh.exe
push esi
call fcn.0040a9c0
add esp, 8
mov byte [0x40ec1c], 0x2f
test eax, eax
jne 0x406986
mov byte [0x40ec1c], 0x2d
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4069f0
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x1400
lea eax, [ebp - 8]
push 0
lea ecx, [ebp - 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x406a21
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x414fe4], eax
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
push esi
push edx
call fcn.0040a5d0
mov esi, dword [ebp + 8]
add esp, 4
mov dword [esi], eax
mov eax, dword [ebp - 8]
push eax
call fcn.0040a5d0
add esp, 4
mov dword [esi + 4], eax
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x409530
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
xor edi, edi
mov al, byte [esi]
mov ecx, esi
test al, al
je 0x409564
cmp al, 0x3f
je 0x409754
cmp al, 0x2a
je 0x409754
mov al, byte [ecx + 1]
inc ecx
inc ebx
test al, al
jne 0x40954b
push 0x140
lea eax, [ebp - 0x140]
push 0
push eax
call fcn.004082b0
add esp, 0xc
lea ecx, [ebp - 0x140]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x4095de
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4095ce
test bl, 0x10
je 0x4095ce
push 0x140
lea edx, [ebp - 0x140]
push 0
push edx
call fcn.004082b0
add esp, 0xc
mov dword [ebp - 0x140], ebx
mov edi, 1
jmp 0x409709
mov dword [0x414fe4], edi
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [0x414dcc]
test eax, eax
je 0x409709
push 5
push esi
call fcn.00409770
add esp, 8
cmp eax, 3
jne 0x409628
cmp ebx, 5
jl 0x409628
mov cl, byte [esi]
cmp cl, 0x2f
je 0x409613
cmp cl, 0x5c
jne 0x409628
mov cl, byte [esi + 1]
cmp cl, 0x2f
je 0x4096da
cmp cl, 0x5c
je 0x4096da
cmp eax, 4
jne 0x40965d
cmp ebx, 6
jl 0x40965d
mov cl, byte [esi]
cmp cl, 0x2f
je 0x40963e
cmp cl, 0x5c
jne 0x40965d
mov cl, byte [esi + 1]
cmp cl, 0x2f
je 0x40964b
cmp cl, 0x5c
jne 0x40965d
mov cl, byte [ebx + esi - 1]
cmp cl, 0x2f
je 0x4096da
cmp cl, 0x5c
je 0x4096da
cmp eax, 1
mov dl, 0x3a
jne 0x40967b
cmp ebx, 3
jl 0x40967b
cmp byte [esi + 1], dl
jne 0x40967b
mov cl, byte [esi + 2]
cmp cl, 0x2f
je 0x4096da
cmp cl, 0x5c
je 0x4096da
cmp eax, 2
jne 0x4096a5
cmp ebx, 5
jl 0x4096a5
cmp byte [esi + 1], dl
jne 0x4096a5
mov cl, byte [esi + 2]
cmp cl, 0x2f
je 0x409697
cmp cl, 0x5c
jne 0x4096a5
mov cl, byte [ebx + esi - 1]
cmp cl, 0x2f
je 0x4096da
cmp cl, 0x5c
je 0x4096da
cmp eax, 1
jne 0x4096ba
cmp ebx, eax
jne 0x4096ba
mov cl, byte [esi]
cmp cl, 0x2f
je 0x4096da
cmp cl, 0x5c
je 0x4096da
cmp eax, 2
jne 0x409709
cmp ebx, 3
jl 0x409709
mov al, byte [esi]
cmp al, 0x2f
je 0x4096ce
cmp al, 0x5c
jne 0x409709
mov al, byte [ebx + esi - 1]
cmp al, 0x2f
je 0x4096da
cmp al, 0x5c
jne 0x409709
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x409709
test bl, 0x10
je 0x409709
push 0x140
lea eax, [ebp - 0x140]
push 0
push eax
call fcn.004082b0
add esp, 0xc
mov dword [ebp - 0x140], ebx
mov ebx, dword [ebp + 0xc]
lea ecx, [ebp - 0x140]
push ebx
push ecx
push esi
call fcn.00408e60
mov eax, dword [0x414dc8]
add esp, 0xc
test eax, eax
je 0x40974b
test byte [ebx], 0x10
je 0x40974b
push esi
call fcn.00404e10
mov cl, byte [eax + esi - 1]
add esp, 4
cmp cl, 0x2f
je 0x40974b
cmp cl, 0x5c
je 0x40974b
mov byte [eax + esi], 0x5c
mov byte [eax + esi + 1], 0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov dword [0x414fe4], 2
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4097a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [ebp + 8]
mov cl, byte [eax + 1]
mov al, byte [eax]
cmp cl, 0x3a
jne 0x4097de
cmp al, 0x61
jb 0x4097ca
cmp al, 0x7a
ja 0x4097ca
and eax, 0xff
sub eax, 0x60
mov esp, ebp
pop ebp
ret
cmp al, 0x41
jb 0x40983d
cmp al, 0x5a
ja 0x40983d
and eax, 0xff
sub eax, 0x40
mov esp, ebp
pop ebp
ret
cmp al, 0x2f
je 0x4097e6
cmp al, 0x5c
jne 0x4097f0
cmp cl, 0x2f
je 0x40983d
cmp cl, 0x5c
je 0x40983d
lea eax, [ebp - 0x104]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
cmp eax, 0x104
jbe 0x409812
call fcn.00406700
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x104]
cmp ah, 0x3a
jne 0x40983d
and eax, 0xff
test byte [eax*2 + str._________], 1
je 0x409836
xor ecx, ecx
mov cl, byte [eax + 0x40eac0]
mov eax, ecx
add eax, 0xffffffc0
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x409b60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
test ecx, ecx
jl 0x409bd7
cmp ecx, dword [0x414fe8]
jge 0x409bd7
mov eax, dword [0x414ff0]
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x409bd7
cmp eax, 0xffffffff
jne 0x409b96
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push edx
push eax
push ecx
call fcn.0040bd70
add esp, 0xc
pop ebp
ret
mov edx, dword [ebp + 0x10]
lea ecx, [ebp + 0x10]
push 0
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x409bd2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x409bc1
cmp eax, 0xe9
jne 0x409bcb
push 0xd
call fcn.0040bd30
add esp, 4
call fcn.00406700
pop ebp
ret
mov eax, dword [ebp + 0x10]
pop ebp
ret
mov dword [0x414fe4], 6
or eax, 0xffffffff
pop ebp
ret

Function at 0x409c50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
jl 0x409d2b
cmp eax, dword [0x414fe8]
jge 0x409d2b
mov edx, dword [0x414ff0]
mov ecx, dword [edx + eax*4]
test ecx, ecx
je 0x409d2b
cmp ecx, 0xffffffff
jne 0x409c93
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ecx
push edx
push eax
call fcn.0040bd60
add esp, 0xc
pop ebp
ret
lea ecx, [ebp + 0x10]
push 0
push ecx
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
mov dword [0x414fd4], 0
mov edx, dword [edx + eax*4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
mov eax, dword [ebp + 0x10]
jne 0x409cf9
mov ecx, dword [0x414fd4]
test ecx, ecx
je 0x409cdf
mov dword [0x414fd4], 0
mov dword [0x414fe4], 0xfffffff7
or eax, 0xffffffff
pop ebp
ret
test eax, eax
ja 0x409d38
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x409cf2
xor eax, eax
pop ebp
ret
call fcn.00406700
pop ebp
ret
test eax, eax
jne 0x409d38
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x414fd4]
test eax, eax
je 0x409d26
mov dword [0x414fd4], 0
mov dword [0x414fe4], 0xfffffff7
or eax, 0xffffffff
pop ebp
ret
mov eax, dword [ebp + 0x10]
pop ebp
ret
mov dword [0x414fe4], 6
or eax, 0xffffffff
pop ebp
ret
Function at 0x40b650
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 8]
push esi
xor ebx, ebx
push eax
push 0x413350
mov byte [ebp - 0x10], bl
mov byte [ebp - 0xf], bl
mov byte [ebp - 0xe], bl
mov byte [ebp - 0xd], bl
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov dword [ebp - 8], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x40b68c
mov byte [0x413350], bl
cmp dword [0x413360], ebx
jne 0x40b747
call fcn.0040b560
test eax, eax
jge 0x40b6aa
or eax, 0xffffffff
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 4]
lea edx, [ebp - 0x10]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 1
push edx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, ebx
jne 0x40b6eb
push 0xe
call fcn.00404c40
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x40b706
push 0xe
push ebx
push esi
call fcn.004082b0
add esp, 0xc
mov byte [esi], 1
mov byte [esi + 1], 1
jmp 0x40b706
mov eax, dword [ebp - 4]
push eax
mov esi, eax
call fcn.0040b600
add esp, 4
mov dword [ebp - 4], eax
push esi
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov esi, dword [ebp - 4]
mov eax, dword [0x413360]
mov dword [eax], esi
mov ecx, dword [0x413360]
mov dword [ecx + 4], 5
mov edx, dword [0x413360]
mov dword [edx + 0xc], ebx
mov eax, dword [0x413360]
mov dword [eax + 0x10], 0x410314
mov ecx, dword [0x413360]
mov dword [ecx + 8], str._unavail_
mov eax, dword [0x413364]
inc eax
mov dword [0x413364], eax
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40b980
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
test esi, esi
mov byte [ebp - 8], 0
mov byte [ebp - 7], 0
mov byte [ebp - 6], 0
mov byte [ebp - 5], 0
mov byte [ebp - 4], 0
mov byte [ebp - 3], 5
je 0x40ba58
push esi
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x40ba58
call fcn.0040b650
cmp eax, 0xffffffff
je 0x40ba58
push esi
call dword [sym.imp.ADVAPI32.dll_GetSidIdentifierAuthority]
lea ecx, [ebp - 8]
push 6
push ecx
push eax
call fcn.0040adc0
add esp, 0xc
test eax, eax
je 0x40b9e7
xor edi, edi
jmp 0x40b9ea
mov edi, dword [ebp + 8]
mov eax, dword [0x413364]
xor ebx, ebx
test eax, eax
jle 0x40ba58
xor esi, esi
mov edx, dword [0x413360]
mov eax, dword [edx + esi]
test eax, eax
je 0x40ba58
mov ecx, dword [ebp + 0xc]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
cmp eax, 1
jne 0x40ba38
mov edx, dword [0x413360]
mov eax, dword [edx + esi + 0xc]
cmp edi, eax
je 0x40ba4f
test edi, edi
je 0x40ba38
test eax, eax
je 0x40ba38
push eax
push edi
call fcn.0040a9c0
add esp, 8
test eax, eax
je 0x40ba4f
mov eax, dword [0x413364]
inc ebx
add esi, 0x14
cmp ebx, eax
jl 0x40b9f7
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40bb60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov ecx, dword [ebp + 8]
mov al, byte [ecx]
mov edx, eax
and edx, 0xff
test byte [edx*2 + 0x40e8bb], 8
je 0x40bb93
cmp byte [ecx + 1], 0x3a
jne 0x40bb93
push eax
call fcn.0040bc90
add esp, 4
mov esp, ebp
pop ebp
ret
cmp al, 0x2f
je 0x40bb9b
cmp al, 0x5c
jne 0x40bba6
mov al, byte [ecx + 1]
cmp al, 0x2f
je 0x40bc15
cmp al, 0x5c
je 0x40bc15
lea eax, [ebp - 0x108]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jne 0x40bbc0
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x108]
mov ecx, eax
and ecx, 0xff
test byte [ecx*2 + 0x40e8bb], 8
je 0x40bbea
cmp ah, 0x3a
jne 0x40bbea
push eax
call fcn.0040bc90
add esp, 4
mov esp, ebp
pop ebp
ret
cmp al, 0x2f
je 0x40bbf2
cmp al, 0x5c
jne 0x40bbfc
cmp ah, 0x2f
je 0x40bc02
cmp ah, 0x5c
je 0x40bc02
xor eax, eax
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x108]
push edx
call fcn.0040bc30
add esp, 4
mov esp, ebp
pop ebp
ret
push ecx
call fcn.0040bc30
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x40bc90
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov al, byte [ebp + 8]
mov cl, byte [0x40f210]
cmp cl, al
mov dword [ebp - 4], 0x105
jne 0x40bcb6
mov eax, dword [0x413370]
mov esp, ebp
pop ebp
ret
push 0x40f210
mov byte [0x40f210], al
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 4
je 0x40bcdb
mov dword [0x413370], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 4]
lea ecx, [ebp - 0x10c]
push eax
push ecx
push 0x40f210
call sub.MPR.dll_WNetGetConnectionA
test eax, eax
je 0x40bd04
mov dword [0x413370], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x10c]
push edx
call fcn.0040bc30
add esp, 4
mov dword [0x413370], eax
mov esp, ebp
pop ebp
ret

Function at 0x40bec0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x354
call fcn.00404c40
mov esi, eax
add esp, 4
test esi, esi
jne 0x40bee8
mov dword [0x414fe4], 8
pop edi
pop esi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 8]
push eax
call fcn.00404e10
mov edi, eax
add esp, 4
cmp edi, 0x100
jle 0x40bf18
push esi
mov dword [0x414fe4], 0xfffffffe
call fcn.00404d70
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
mov ecx, dword [ebp + 8]
lea ebx, [esi + 0x24c]
push ecx
push ebx
call fcn.00403010
add esp, 8
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x40bf50
push esi
mov dword [0x414fe4], 3
call fcn.00404d70
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp edi, 2
jne 0x40bf5e
mov edx, dword [ebp + 8]
cmp byte [edx + 1], 0x3a
je 0x40bf87
xor eax, eax
mov al, byte [edi + esi + 0x24b]
cmp eax, 0x2f
je 0x40bf87
cmp eax, 0x5c
je 0x40bf87
lea eax, [edi + esi + 0x24c]
push 0x40f214
push eax
call fcn.00403010
add esp, 8
inc edi
mov dword [esi + 0x350], edi
mov dword [esi + 0x144], 0
mov dword [esi], 0xffffffff
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40c010
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 0x144]
test eax, eax
jne 0x40c08b
mov eax, dword [esi + 0x350]
push 4
push 0x40f218
lea edi, [eax + esi + 0x24c]
push edi
call fcn.00408280
add esp, 0xc
lea eax, [esi + 4]
lea ebx, [esi + 0x24c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esi], eax
mov byte [edi], 0
cmp dword [esi], 0xffffffff
jne 0x40c063
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ebp
ret
push ebx
call fcn.0040c630
and eax, 0x80
add esp, 4
mov dword [esi + 0x248], eax
mov eax, dword [esi + 0x144]
inc eax
mov dword [esi + 0x144], eax
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
mov edx, dword [esi]
lea ecx, [esi + 4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40c0a4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ebp
ret
mov eax, dword [esi + 0x144]
pop edi
inc eax
mov dword [esi + 0x144], eax
pop esi
xor eax, eax
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebp
ret

Function at 0x40c630
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
push esi
push eax
call fcn.0040c710
mov esi, eax
add esp, 4
test esi, esi
jne 0x40c653
mov eax, 0xf9
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x20]
push 0x19
lea edx, [ebp + 8]
push ecx
lea eax, [ebp - 4]
push edx
push eax
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
push esi
jne 0x40c685
call fcn.00404d70
add esp, 4
mov eax, 0xf9
pop esi
mov esp, ebp
pop ebp
ret
call fcn.00404d70
mov al, byte [ebp + 8]
add esp, 4
test al, 2
je 0x40c69b
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x20]
push str.AS400
push ecx
call fcn.00402f20
add esp, 8
test eax, eax
jne 0x40c6b5
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 4]
xor eax, eax
cmp esi, 0xc
pop esi
setne al
dec eax
and eax, 0xf9
mov esp, ebp
pop ebp
ret

Function at 0x40c8c0
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push esi
push edi
push 0
push 0
call ebx
mov edi, eax
lea eax, [edi + 1]
push eax
call fcn.00404c40
mov esi, eax
add esp, 4
test esi, esi
jne 0x40c8f4
mov dword [0x414fe4], 8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
ret
push esi
push edi
call ebx
xor ecx, ecx
push esi
mov cl, byte [esi]
mov edi, ecx
call fcn.00404d70
add esp, 4
cmp edi, 0x61
jl 0x40c914
cmp edi, 0x7a
jg 0x40c914
sub edi, 0x20
lea eax, [edi - 0x41]
pop edi
pop esi
pop ebx
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x7f8d33ca
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
mov ecx, 0x33112bab
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219