joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100107c5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x100107d4
pop dword [ebp - 0x28]
mov eax, 0x100107d4
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0xe3599bfc
add dword [ebp - 0x38], 0x6af8a94f
mov dword [ebp - 0x34], 0xe28910da
sub dword [ebp - 0x34], 0xb055c495
mov dword [ebp - 0x30], 0x151014b4
sub dword [ebp - 0x30], 0xc8c3d086
mov dword [ebp - 0x2c], 0xb936a4ed
add dword [ebp - 0x2c], 0x46c95b13
lea eax, [ebp - 0x38]
push eax
mov eax, 0xb4d45e7c
add eax, 0x5b2d9254
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0x4c5e894
add dword [ebp - 0x38], 0x6fac80c2
mov dword [ebp - 0x34], 0x9c2292f1
add dword [ebp - 0x34], 0xa549ce84
mov dword [ebp - 0x30], 0xcd6d79bc
sub dword [ebp - 0x30], 0x69fe0d50
mov dword [ebp - 0x2c], 0x26c3070e
sub dword [ebp - 0x2c], 0x26c3070e
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, 0x689df903
sub eax, 0x589c084f
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x3b7df
push 0
call eax
mov ecx, 0xc1376f57
add ecx, 0x3ec8d5ef
mov ebx, eax
mov esi, 0x87aecfb0
add esi, 0x88542e50
add esi, dword [ebp - 0x28]
mov edx, 0x73ff2473
add edx, 0x56406c7f
sub dword [ebp - 0x18], ecx
mov edi, dword [esi]
xor dword [ebp - 0x1c], 0x3303a5f0
xor edi, edx
add dword [ebp - 0x18], edx
mov dword [ebx], edi
xor dword [ebp - 0x18], edi
add ebx, 0x7378fa24
sub ebx, 0x7378fa20
add esi, 4
loop 0x100108f1
add eax, 0x107eb
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xfd4c78dd
sub ecx, 0xed4c78dd
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
jmp 0x438010
push 0x14
push 0x456b80
call fcn.00438030
push 1
call fcn.00437bfb
pop ecx
test al, al
jne 0x437ec7
push 7
call fcn.00438302
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.00437bc6
mov byte [ebp - 0x24], al
mov eax, dword [0x8844dc]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x437ec0
test eax, eax
jne 0x437f31
mov dword [0x8844dc], ecx
push 0x44937c
push 0x449364
call fcn.0043e972
pop ecx
pop ecx
test eax, eax
je 0x437f14
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x43800a
push 0x449360
push 0x44930c
call fcn.0043e916
pop ecx
pop ecx
mov dword [0x8844dc], 2
jmp 0x437f36
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.00437d55
pop ecx
call fcn.004385a9
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x437f66
push esi
call fcn.00437ccb
pop ecx
test al, al
je 0x437f66
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.0043801f
call esi
call fcn.004385af
mov esi, eax
cmp dword [esi], edi
je 0x437f84
push esi
call fcn.00437ccb
pop ecx
test al, al
je 0x437f84
push dword [esi]
call fcn.0043ddb6
pop ecx
call fcn.0043841d
movzx eax, ax
push eax
call fcn.0043e8c3
push eax
push edi
push 0x400000
call main
mov esi, eax
call fcn.0043dcc5
test al, al
jne 0x437faf
push esi
call fcn.0043ddee
test bl, bl
jne 0x437fb8
call fcn.0043dd91
push edi
push 1
call fcn.00437d72
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x43800a
call fcn.00438076
ret
call fcn.004384a5
jmp 0x437ea8
Function at 0x401c67
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
shr edi, 2
xor ebx, ebx
mov eax, edi
mov dword [ebp - 4], 1
shr eax, 1
mov ecx, ebx
add eax, 3
mov dword [esi], eax
add esi, 0x10
test edi, edi
je 0x401c9e
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [esi + ecx*4], eax
inc ecx
cmp ecx, edi
jb 0x401c91
mov edx, dword [esi + edi*4 - 4]
imul eax, edi, 0xc
add eax, 0x70
add eax, esi
mov dword [ebp + 8], eax
test ebx, ebx
jne 0x401d0c
movzx eax, dl
mov ebx, dword [ebp - 4]
push 0x1b
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x18
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx edx, byte [eax + str.cw]
xor edx, ebx
add ebx, ebx
or edx, ecx
test ebx, 0x100
pop eax
cmovne ebx, eax
mov dword [ebp - 4], ebx
mov ebx, edi
jmp 0x401d59
cmp ebx, 4
jne 0x401d5c
cmp edi, 6
jbe 0x401d5c
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
or ecx, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx edx, byte [eax + str.cw]
or edx, ecx
mov eax, dword [ebp + 8]
xor edx, dword [esi]
dec ebx
mov dword [esi + edi*4], edx
add esi, 4
cmp esi, eax
jne 0x401cad
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x402b94
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jae 0x402ba8
xor eax, eax
jmp 0x402bb7
lea ecx, [ebp - 0x10]
call fcn.00402b77
neg eax
sbb eax, eax
and eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x402bbb
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x459008]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x402c04
push str.SetDefaultDllDirectories
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402c04
push 0xc00
call eax
test eax, eax
jne 0x402c9f
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x402c9f
cmp eax, 0x104
ja 0x402c9f
push 0x5c
pop ecx
cmp word [ebp + eax*2 - 0x2d6], cx
je 0x402c3b
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
cmp byte [str.userenv], 0
push esi
mov esi, str.userenv
je 0x402c9e
push ebx
push edi
lea edi, [ebp - 0x2d4]
push 0x6c
lea edi, [edi + eax*2]
pop ebx
mov ecx, edi
jmp 0x402c65
movzx eax, al
mov word [ecx], ax
add ecx, 2
mov al, byte [esi]
inc esi
test al, al
jne 0x402c5c
push 0x2e
pop eax
push 0x64
mov word [ecx], ax
pop eax
mov word [ecx + 2], ax
xor eax, eax
push 8
push eax
mov word [ecx + 8], ax
lea eax, [ebp - 0x2d4]
push eax
mov word [ecx + 4], bx
mov word [ecx + 6], bx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp byte [esi], 0
jne 0x402c58
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004377a2
mov esp, ebp
pop ebp
ret
Function at 0x406c51
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
xor edx, edx
xor eax, eax
push ebx
push esi
mov esi, ecx
inc eax
push edi
push 0x20
pop ecx
or dword [esi + 0x90], 0xffffffff
or dword [esi + 0x94], 0xffffffff
mov dword [esi + 0x30], eax
mov dword [esi + 0x44], eax
mov eax, dword [esi + 4]
cmp eax, ecx
mov dword [ebp - 4], esi
cmova eax, ecx
mov dword [esi + 0x78], edx
mov dword [esi + 0x54], eax
mov eax, dword [esi]
mov dword [esi + 0x7c], edx
mov dword [esi + 0x34], edx
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], edx
mov dword [esi + 0x40], edx
mov dword [esi + 0x70], edx
mov dword [esi + 0x88], edx
mov dword [esi + 0x68], edx
mov dword [esi + 0x6c], edx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], edx
mov dword [esi + 0x50], edx
mov dword [esi + 0x60], edx
mov dword [esi + 0x64], edx
mov dword [esi + 0x80], edx
mov dword [esi + 0x84], edx
mov dword [esi + 0x58], edx
cmp eax, dword [esi + 0x20]
je 0x406d01
lea edi, [esi + 0xc8]
mov ebx, ecx
cmp dword [edi + 8], edx
je 0x406ce0
mov ecx, edi
call fcn.00405d53
xor edx, edx
add edi, 0x28
sub ebx, 1
jne 0x406cd2
cmp dword [esi + 0x5c], ebx
je 0x406cfc
mov eax, dword [esi + 0x14]
push dword [esi + 0x5c]
push eax
call dword [eax + 4]
xor edx, edx
mov dword [esi + 0x5c], edx
mov eax, dword [esi]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x10]
mov dword [esi + 0x98], eax
mov dword [esi + 0x9c], edx
mov dword [esi + 0xa0], edx
mov dword [esi + 0xa4], edx
mov dword [esi + 0xa8], edx
mov dword [esi + 0xac], edx
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x24], edx
mov dword [esi + 0x28], edx
lea eax, [ecx + 5]
imul ebx, eax, 0x28
lea eax, [ecx + 1]
mov dword [esi + 0x58], eax
add ebx, esi
mov ecx, ebx
call fcn.00405d36
mov edi, eax
test edi, edi
jne 0x406d93
lea ecx, [ebx + 0x20]
call fcn.004089ba
mov edi, eax
test edi, edi
jne 0x406d93
lea ecx, [ebx + 0x1c]
call fcn.004089ba
mov edi, eax
test edi, edi
jne 0x406d93
push ebx
call fcn.00406a04
mov edi, eax
test edi, edi
je 0x406d93
and dword [esi + 0x44], 0
lea ebx, [esi + 0xc8]
push 0x20
pop esi
mov ecx, ebx
call fcn.00405d77
add ebx, 0x28
sub esi, 1
jne 0x406d81
mov esi, dword [ebp - 4]
movzx eax, di
or eax, 0x80070000
test edi, edi
cmovle eax, edi
test eax, eax
je 0x406da7
mov dword [esi + 0x40], eax
xor edx, edx
cmp dword [esi + 0x38], edx
jne 0x406dbb
cmp dword [esi + 0x40], edx
jne 0x406dbb
cmp dword [esi + 0x3c], edx
jne 0x406dbb
mov dword [esi + 0x44], edx
xor ecx, ecx
cmp dword [esi + 0x44], edx
pop edi
pop esi
cmovne eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4080a6
Capabilities:
Hash data using sha256

Disassembly:
and dword [ecx + 8], 0
and dword [ecx + 0xc], 0
mov dword [ecx + 0x20], 0x6a09e667
mov dword [ecx + 0x24], 0xbb67ae85
mov dword [ecx + 0x28], 0x3c6ef372
mov dword [ecx + 0x2c], 0xa54ff53a
mov dword [ecx + 0x30], 0x510e527f
mov dword [ecx + 0x34], 0x9b05688c
mov dword [ecx + 0x38], 0x1f83d9ab
mov dword [ecx + 0x3c], 0x5be0cd19
ret

Function at 0x4080e7
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [0x8831a8]
mov dword [ecx], eax
jmp fcn.004080a6
Function at 0x408579
Capabilities:
Hash data using sha256

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
push 0x38
pop eax
mov esi, dword [edi + 8]
and esi, 0x3f
mov byte [esi + edi + 0x40], 0x80
inc esi
cmp esi, eax
jbe 0x4085bc
push 0x40
pop ecx
cmp esi, ecx
je 0x4085ad
sub ecx, esi
lea eax, [edi + 0x40]
push ecx
add eax, esi
push 0
push eax
call fcn.00438c60
add esp, 0xc
push 1
lea edx, [edi + 0x40]
lea ecx, [edi + 0x20]
call dword [edi]
push 0x38
xor esi, esi
pop eax
sub eax, esi
push eax
lea eax, [edi + 0x40]
add eax, esi
push 0
push eax
call fcn.00438c60
mov ecx, dword [edi + 8]
lea esi, [edi + 0x20]
mov eax, dword [edi + 0xc]
lea edx, [edi + 0x40]
shld eax, ecx, 3
add esp, 0xc
shl ecx, 3
bswap ecx
bswap eax
mov dword [edi + 0x7c], ecx
mov ecx, esi
push 1
mov dword [edi + 0x78], eax
call dword [edi]
push 4
pop edx
mov ecx, dword [esi + 4]
mov eax, dword [esi]
lea esi, [esi + 8]
bswap eax
mov dword [ebx], eax
lea ebx, [ebx + 8]
bswap ecx
mov dword [ebx - 4], ecx
sub edx, 1
jne 0x4085f5
mov ecx, edi
pop edi
pop esi
pop ebx
jmp fcn.004080a6

Function at 0x40a61a
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
mov edi, edx
mov ebx, ecx
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40a678
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x40a669
push dword [ebp + 8]
push edi
push eax
call fcn.004386e0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push ebx
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x40a669
xor esi, esi
mov bl, 1
jmp 0x40a66b
xor bl, bl
test esi, esi
je 0x40a67a
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x40a67a
xor bl, bl
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret 4

Function at 0x40a683
Capabilities:
Open clipboard

Disassembly:
push 0x20
mov eax, 0x445c7e
call fcn.00444f69
mov esi, edx
and dword [ebp - 4], 0
push ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
setne bl
mov byte [ebp - 0xd], bl
test bl, bl
je 0x40a74a
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x40a74a
mov eax, dword [esi + 4]
mov edx, dword [esi]
lea eax, [eax*2 + 2]
push eax
push 0xd
pop ecx
call fcn.0040a61a
push 0
mov edx, esi
lea ecx, [ebp - 0x20]
mov bh, al
call fcn.00409d3e
xor eax, eax
inc eax
mov byte [ebp - 4], al
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
inc ecx
push ecx
mov ecx, eax
call fcn.0040a61a
push 1
test al, al
movzx ecx, bh
pop edi
cmovne ecx, edi
mov edx, esi
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x2c]
push edi
call fcn.00409d3e
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.00409179
push dword [ebp - 0x2c]
call fcn.004377b3
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
inc eax
pop ecx
push eax
push 7
pop ecx
call fcn.0040a61a
mov ecx, dword [ebp - 0x14]
test al, al
push dword [ebp - 0x20]
movzx ecx, cl
cmovne ecx, edi
mov dword [ebp - 0x14], ecx
call fcn.004377b3
pop ecx
jmp 0x40a74e
mov byte [ebp - 0x14], 0
test bl, bl
je 0x40a758
call dword [sym.imp.USER32.dll_CloseClipboard]
mov al, byte [ebp - 0x14]
call fcn.00444f32
ret
Function at 0x40b139
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x884bd1], 0
push esi
mov esi, edx
jne 0x40b171
mov edx, ecx
lea ecx, [ebp - 0xc]
call fcn.004099e8
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004377b3
pop ecx
test esi, esi
je 0x40b17d
mov al, 1
jmp 0x40b17f
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jmp 0x40b16b
xor al, al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40b184
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x884bd1], 0
jne 0x40b1ba
mov edx, ecx
lea ecx, [ebp - 0xc]
push esi
call fcn.004099e8
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004377b3
pop ecx
test esi, esi
pop esi
je 0x40b1c5
mov al, 1
jmp 0x40b1c7
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jmp 0x40b1b4
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x40b234
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x884bd1], 0
jne 0x40b26c
mov edx, ecx
lea ecx, [ebp - 0xc]
push esi
call fcn.004099e8
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004377b3
pop ecx
test esi, esi
pop esi
je 0x40b279
mov al, 1
jmp 0x40b27b
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jmp 0x40b266
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x40b27f
Capabilities:
Create directory

Disassembly:
push 0x44
mov eax, 0x445d83
call fcn.00444f69
mov edi, ecx
cmp byte [0x884bd1], 0
jne 0x40b2be
mov edx, edi
lea ecx, [ebp - 0x18]
call fcn.004099e8
xor ebx, ebx
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x18]
mov esi, eax
call fcn.004377b3
pop ecx
test esi, esi
je 0x40b2cc
mov al, 1
jmp 0x40b312
xor ebx, ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jmp 0x40b2b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40b2dd
xor al, al
jmp 0x40b312
lea ecx, [ebp - 0x50]
call fcn.0040b712
lea ecx, [ebp - 0x28]
call fcn.004093d0
push ebx
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], ebx
call fcn.0040bad8
test al, al
je 0x40b307
mov ebx, dword [ebp - 0x30]
shr ebx, 4
and bl, 1
push dword [ebp - 0x28]
call fcn.004377b3
pop ecx
mov al, bl
call fcn.00444f32
ret
Function at 0x40b467
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
call fcn.0040ba91
cmp eax, 0xffffffff
je 0x40b494
mov edx, eax
and dl, 0x11
cmp dl, 1
jne 0x40b494
and eax, 0xfffffffe
mov ecx, esi
mov edx, eax
call fcn.0040b139
test al, al
je 0x40b4cd
cmp byte [0x884bd1], 0
jne 0x40b4c2
mov edx, esi
lea ecx, [ebp - 0xc]
call fcn.004099e8
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004377b3
pop ecx
test esi, esi
je 0x40b4cd
mov al, 1
jmp 0x40b4cf
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jmp 0x40b4bc
xor al, al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40ba91
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x884bd1], 0
jne 0x40bac3
mov edx, ecx
lea ecx, [ebp - 0xc]
push esi
call fcn.004099e8
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004377b3
pop ecx
mov eax, esi
pop esi
jmp 0x40bad4
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, eax
mov eax, ecx
mov esp, ebp
pop ebp
ret
Function at 0x40c0f6
Capabilities:
Get disk information

Disassembly:
push 0x30
mov eax, 0x445ef5
call fcn.00444f69
mov ebx, ecx
mov dword [ebp - 0x10], ebx
call fcn.00408bfc
cmp byte [0x884bd1], 0
jne 0x40c1e2
mov ecx, ebx
call fcn.00408bfc
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov edi, eax
mov dword [ebp - 0x1c], edi
test edi, edi
jne 0x40c13a
xor al, al
jmp 0x40c2ab
push edi
call fcn.004378bb
mov esi, eax
pop ecx
mov dword [ebp - 0x24], esi
push esi
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
je 0x40c2a2
cmp edi, dword [ebp - 0x1c]
ja 0x40c2a2
lea ecx, [ebp - 0x30]
call fcn.00409105
mov byte [ebp - 4], 1
test edi, edi
je 0x40c1db
xor eax, eax
mov dword [ebp - 0x18], edi
inc eax
mov ecx, edi
mov dword [ebp - 0x14], eax
cmp byte [esi + eax - 1], 0
jne 0x40c1cc
lea eax, [ebx + esi]
push eax
lea ecx, [ebp - 0x30]
call fcn.00409127
mov ebx, dword [ebp - 0x14]
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x3c]
call fcn.00409a60
mov edi, eax
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00408ca7
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00408c68
mov byte [ebp - 4], 1
push dword [ebp - 0x3c]
call fcn.004377b3
pop ecx
mov ecx, dword [ebp - 0x18]
mov eax, ebx
inc eax
sub ecx, 1
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
jne 0x40c182
mov edi, dword [ebp - 0x20]
cmp ebx, edi
jmp 0x40c296
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
je 0x40c133
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004378bb
mov esi, eax
pop ecx
mov dword [ebp - 0x24], esi
push esi
push edi
mov dword [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, eax
test edi, edi
je 0x40c2a2
cmp edi, dword [ebp - 0x20]
ja 0x40c2a2
lea ecx, [ebp - 0x30]
call fcn.004093d0
mov byte [ebp - 4], 4
mov edx, ebx
mov dword [ebp - 0x1c], edx
mov ecx, ebx
mov dword [ebp - 0x14], ecx
test edi, edi
je 0x40c294
push 2
pop eax
mov dword [ebp - 0x18], eax
cmp word [esi + eax - 2], bx
jne 0x40c283
lea eax, [edx + esi]
push eax
lea ecx, [ebp - 0x30]
call fcn.004094ae
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x1c], eax
call fcn.00408ca7
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x30]
push eax
call fcn.00408c68
mov eax, dword [ebp - 0x18]
mov edx, eax
mov ecx, dword [ebp - 0x14]
inc ecx
add eax, 2
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], eax
cmp ecx, edi
jb 0x40c24d
mov edx, dword [ebp - 0x1c]
cmp edx, edi
push dword [ebp - 0x30]
sete bl
call fcn.004377b3
pop ecx
push esi
call fcn.004377b3
mov al, bl
pop ecx
call fcn.00444f32
ret
Function at 0x40fdfe
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
lea eax, [esp + 8]
push ebx
push esi
push edi
push eax
lea eax, [esp + 0x14]
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
xor ebx, ebx
test eax, eax
je 0x40fe46
cmp dword [esp + 0x10], ebx
je 0x40fe46
mov edx, ebx
mov ecx, ebx
mov eax, dword [esp + 0x10]
shr eax, cl
and eax, 1
add edx, eax
inc ecx
cmp ecx, 0x20
jb 0x40fe33
jmp 0x40fe55
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [esp + 0x30]
mov eax, 0x40000000
mov dword [esi], edx
lea ecx, [esp + 0x10]
mov dword [esi + 4], edx
mov byte [esi + 8], bl
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ebx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ebx
call fcn.0040d68c
mov byte [esi + 9], al
test al, al
je 0x40fed2
mov edi, dword [esp + 0x14]
mov eax, 0x70000000
mov ebx, dword [esp + 0x10]
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], edi
test edi, edi
jne 0x40fea7
cmp ebx, eax
jbe 0x40feab
mov ebx, eax
xor edi, edi
push ecx
push ecx
push edi
push ebx
call fcn.0040fdad
shrd ebx, edi, 5
push 0
push 0x11
shr edi, 5
push edi
push ebx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
call fcn.00445240
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4142a6
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov esi, ecx
xor ebx, ebx
push dword [ebp + 8]
mov byte [eax], bl
lea ecx, [esi - 4]
call fcn.00413f22
mov edi, ebx
cmp dword [esi + 0x78], ebx
jbe 0x41433a
cmp edi, dword [esi + 0x60]
je 0x414334
mov eax, dword [esi + 0x74]
mov eax, dword [eax + edi*4]
mov dword [ebp + 0xc], eax
lea ecx, [eax + 4]
call fcn.00408a53
mov ecx, eax
test ecx, ecx
jne 0x4143b2
mov ecx, dword [ebp + 0xc]
add ecx, 8
call fcn.00408a53
mov ecx, eax
test ecx, ecx
jne 0x4143b2
mov eax, dword [ebp + 0xc]
mov byte [eax + 0x10], bl
cmp dword [eax + 0xc], ebx
jne 0x414334
lea ecx, [ebp + 8]
push ecx
push ebx
push eax
push 0x417488
push ebx
push ebx
call fcn.0043d585
mov ecx, dword [ebp + 0xc]
add esp, 0x18
mov dword [ecx + 0xc], eax
test eax, eax
jne 0x414334
call fcn.0040896c
mov ecx, eax
test ecx, ecx
jne 0x4143b2
inc edi
cmp edi, dword [esi + 0x78]
jb 0x4142ca
mov edi, ebx
cmp dword [esi + 0x78], ebx
jbe 0x414363
cmp edi, dword [esi + 0x60]
je 0x41435d
mov eax, dword [esi + 0x74]
mov ecx, dword [eax + edi*4]
mov byte [ecx + 0x10], bl
add ecx, 4
call fcn.004089ba
mov ecx, eax
test ecx, ecx
jne 0x4143b2
inc edi
cmp edi, dword [esi + 0x78]
jb 0x414341
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0x74]
push dword [ebp + 0x10]
mov ecx, dword [ecx + eax*4]
call fcn.00413b3d
mov edi, ebx
cmp dword [esi + 0x78], ebx
jbe 0x4143c4
cmp ebx, dword [esi + 0x60]
je 0x414393
mov eax, dword [esi + 0x74]
mov ecx, dword [eax + ebx*4]
mov ecx, dword [ecx + 8]
call fcn.0040899e
test edi, edi
cmove edi, eax
inc ebx
cmp ebx, dword [esi + 0x78]
jb 0x41437b
push 0
pop ebx
test edi, edi
je 0x4143c4
movzx eax, di
or eax, 0x80070000
test edi, edi
cmovle eax, edi
jmp 0x41446e
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
jmp 0x41446e
push 0x80004004
lea ecx, [esi - 4]
call fcn.00414276
test eax, eax
jne 0x41446e
push 0x8007000e
lea ecx, [esi - 4]
call fcn.00414276
test eax, eax
jne 0x41446e
mov edi, dword [esi + 0x78]
mov ecx, ebx
test edi, edi
je 0x41441e
mov edx, dword [esi + 0x74]
mov eax, dword [edx]
mov eax, dword [eax + 0x6c]
test eax, eax
je 0x414416
cmp eax, 0x20000010
je 0x414416
cmp eax, 1
je 0x414416
cmp eax, 0x80004005
jne 0x41446e
inc ecx
add edx, 4
cmp ecx, edi
jb 0x4143fa
push 1
lea ecx, [esi - 4]
call fcn.00414276
test eax, eax
jne 0x41446e
mov ecx, ebx
test edi, edi
je 0x41446c
mov edx, dword [esi + 0x74]
mov eax, dword [edx]
mov eax, dword [eax + 0x6c]
test eax, eax
je 0x414445
cmp eax, 0x20000010
jne 0x41446e
inc ecx
add edx, 4
cmp ecx, edi
jb 0x414435
test edi, edi
je 0x41446c
mov eax, dword [esi + 0x74]
push dword [ebp + 0x14]
mov ecx, dword [eax + ebx*4]
add ecx, 0x18
call fcn.0041369b
test eax, eax
jne 0x41446e
inc ebx
cmp ebx, dword [esi + 0x78]
jb 0x414451
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10