joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
jmp 0x43de52
push 0x14
push 0x4600d0
call fcn.0043d270
push 1
call fcn.0043da38
pop ecx
test al, al
jne 0x43dd09
push 7
call fcn.0043e460
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.0043da03
mov byte [ebp - 0x24], al
mov eax, dword [0x466064]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x43dd02
test eax, eax
jne 0x43dd73
mov dword [0x466064], ecx
push 0x451424
push 0x451408
call fcn.004452d2
pop ecx
pop ecx
test eax, eax
je 0x43dd56
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x43de4c
push 0x451404
push 0x4513b0
call fcn.0044528d
pop ecx
pop ecx
mov dword [0x466064], 2
jmp 0x43dd78
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.0043db92
pop ecx
call fcn.0043e74f
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x43dda8
push esi
call fcn.0043db08
pop ecx
test al, al
je 0x43dda8
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.0043e1d7
call esi
call fcn.0043e755
mov esi, eax
cmp dword [esi], edi
je 0x43ddc6
push esi
call fcn.0043db08
pop ecx
test al, al
je 0x43ddc6
push dword [esi]
call fcn.004447d3
pop ecx
call fcn.0043e57b
movzx eax, ax
push eax
call fcn.0044523a
push eax
push edi
push 0x400000
call main
mov esi, eax
call fcn.0043e5ae
test al, al
jne 0x43ddf1
push esi
call fcn.004447f9
test bl, bl
jne 0x43ddfa
call fcn.004447ae
push edi
push 1
call fcn.0043dbaf
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x43de4c
call fcn.0043d2b6
ret
call fcn.0043e647
jmp 0x43dcea

Function at 0x4022d3
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, ecx
shr edi, 2
xor ebp, ebp
mov eax, edi
xor ebx, ebx
shr eax, 1
inc ebp
add eax, 3
mov ecx, ebx
mov dword [esi], eax
add esi, 0x10
test edi, edi
je 0x402304
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [esi + ecx*4], eax
inc ecx
cmp ecx, edi
jb 0x4022f7
mov edx, dword [esi + edi*4 - 4]
imul eax, edi, 0xc
add eax, 0x70
add eax, esi
mov dword [esp + 0x14], eax
test ebx, ebx
jne 0x40236d
movzx eax, dl
mov ebx, edi
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, ebp
add ebp, ebp
or edx, ecx
test ebp, 0x100
pop eax
cmovne ebp, eax
jmp 0x4023ba
cmp ebx, 4
jne 0x4023be
cmp edi, 6
jbe 0x4023be
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 [esp + 0x14]
xor edx, dword [esi]
dec ebx
mov dword [esi + edi*4], edx
add esi, 4
cmp esi, eax
jne 0x402314
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x403be2
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jae 0x403bf6
xor eax, eax
jmp 0x403c13
call fcn.00403a82
push 7
pop edx
cmp eax, edx
jb 0x403bf2
lea ecx, [ebp - 0x10]
call fcn.00403a6a
mov eax, dword [ebp - 0xc]
shr eax, 0x1d
and eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x403c71
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jae 0x403c85
xor eax, eax
jmp 0x403c95
lea eax, [ebp - 0x10]
push eax
call fcn.00403c56
neg eax
sbb eax, eax
and eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x403e4f
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x462044]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x403e98
push str.SetDefaultDllDirectories
push 0x451610
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x403e98
push 0xc00
call eax
test eax, eax
jne 0x403f33
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x403f33
cmp eax, 0x104
ja 0x403f33
push 0x5c
pop ecx
cmp word [ebp + eax*2 - 0x2d6], cx
je 0x403ecf
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
cmp byte [str.userenv], 0
push esi
mov esi, str.userenv
je 0x403f32
push ebx
push edi
lea edi, [ebp - 0x2d4]
push 0x6c
lea edi, [edi + eax*2]
pop ebx
mov ecx, edi
jmp 0x403ef9
movzx eax, al
mov word [ecx], ax
add ecx, 2
mov al, byte [esi]
inc esi
test al, al
jne 0x403ef0
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 0x403eec
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043d1f0
mov esp, ebp
pop ebp
ret
Function at 0x4077e7
Capabilities:
Resolve function by parsing pe exports

Disassembly:
xor ecx, ecx
xor eax, eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
inc eax
push edi
push 0x20
pop ebp
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, ebp
mov dword [esi + 0x78], ecx
cmova eax, ebp
mov dword [esi + 0x7c], ecx
mov dword [esi + 0x54], eax
mov eax, dword [esi]
mov dword [esi + 0x34], ecx
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], ecx
mov dword [esi + 0x40], ecx
mov dword [esi + 0x70], ecx
mov dword [esi + 0x88], ecx
mov dword [esi + 0x68], ecx
mov dword [esi + 0x6c], ecx
mov dword [esi + 0x48], ecx
mov dword [esi + 0x4c], ecx
mov dword [esi + 0x50], ecx
mov dword [esi + 0x60], ecx
mov dword [esi + 0x64], ecx
mov dword [esi + 0x80], ecx
mov dword [esi + 0x84], ecx
mov dword [esi + 0x58], ecx
cmp eax, dword [esi + 0x20]
je 0x407890
lea edi, [esi + 0xc8]
mov ebx, ebp
cmp dword [edi + 8], ecx
je 0x407871
push edi
call fcn.0040770d
xor ecx, ecx
add edi, 0x28
sub ebx, 1
jne 0x407864
cmp dword [esi + 0x5c], ebx
je 0x40788b
mov eax, dword [esi + 0x14]
push dword [esi + 0x5c]
push eax
call dword [eax + 4]
and dword [esi + 0x5c], ebx
mov eax, dword [esi]
mov dword [esi + 0x20], eax
push dword [esi + 0x10]
lea eax, [esi + 0x98]
push eax
call fcn.00407611
mov ecx, dword [esi + 0x58]
and dword [esi + 0x24], 0
and dword [esi + 0x28], 0
lea eax, [ecx + 5]
imul ebx, eax, 0x28
lea eax, [ecx + 1]
mov dword [esi + 0x58], eax
add ebx, esi
push ebx
call fcn.00407bd4
mov edi, eax
test edi, edi
jne 0x407906
lea eax, [ebx + 0x20]
push eax
call fcn.0040a35f
mov edi, eax
test edi, edi
jne 0x407906
lea eax, [ebx + 0x1c]
push eax
call fcn.0040a35f
mov edi, eax
test edi, edi
jne 0x407906
push ebx
call fcn.00407ac8
mov edi, eax
test edi, edi
je 0x407906
and dword [esi + 0x44], 0
lea ebx, [esi + 0xc8]
push ebx
call fcn.00407b58
add ebx, 0x28
sub ebp, 1
jne 0x4078f8
movzx eax, di
or eax, 0x80070000
test edi, edi
cmovle eax, edi
test eax, eax
je 0x40791a
mov dword [esi + 0x40], eax
xor edx, edx
cmp dword [esi + 0x38], edx
jne 0x40792e
cmp dword [esi + 0x40], edx
jne 0x40792e
cmp dword [esi + 0x3c], edx
jne 0x40792e
mov dword [esi + 0x44], edx
pop edi
xor ecx, ecx
cmp dword [esi + 0x44], edx
pop esi
pop ebp
cmovne eax, ecx
pop ebx
ret 4
Function at 0x409a5b
Capabilities:
Hash data using sha256

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

Function at 0x40a2bc
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push eax
call fcn.00444003
mov ecx, dword [ebp + 8]
add esp, 0x18
push eax
mov dword [ecx], eax
call fcn.0040a4e8
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40e3b3
Capabilities:
Open clipboard

Disassembly:
push 0x18
mov eax, 0x44d23a
call fcn.0043d4af
push dword [ebp + 8]
and dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
setne al
mov byte [ebp + 0xb], al
test al, al
je 0x40e471
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x40e471
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 4]
lea eax, [eax*2 + 2]
push eax
push dword [esi]
push 0xd
call fcn.0040e48a
push 0
mov bl, al
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.0040cfcb
mov ecx, dword [ebp - 0x14]
xor eax, eax
inc eax
inc ecx
push ecx
push dword [ebp - 0x18]
mov byte [ebp - 4], al
push eax
call fcn.0040e48a
push 1
pop edi
push edi
test al, al
movzx ebx, bl
push esi
lea eax, [ebp - 0x24]
cmovne ebx, edi
push eax
call fcn.0040cfcb
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0040b7ce
push dword [ebp - 0x24]
call fcn.0043d465
mov eax, dword [ebp - 0x14]
pop ecx
inc eax
push eax
push dword [ebp - 0x18]
push 7
call fcn.0040e48a
push dword [ebp - 0x18]
test al, al
movzx ebx, bl
cmovne ebx, edi
call fcn.0043d465
pop ecx
jmp 0x40e473
xor bl, bl
lea ecx, [ebp + 0xb]
call fcn.0040e385
mov al, bl
call fcn.0043d478
ret 8

Function at 0x40e48a
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push dword [ebp + 0x10]
xor ebx, ebx
lea ecx, [ebp - 4]
push 0x2002
mov dword [ebp - 4], ebx
call fcn.0041250e
test al, al
je 0x40e4e3
push esi
mov esi, dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x40e4e2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.0043e8a0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x40e4e2
mov dword [ebp - 4], ebx
mov bl, 1
pop esi
lea ecx, [ebp - 4]
call fcn.0041252f
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40fb92
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x465d34], 0
jne 0x40fbcd
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040cb7a
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0043d465
pop ecx
test esi, esi
pop esi
je 0x40fbdd
mov al, 1
jmp 0x40fbdf
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jmp 0x40fbc7
xor al, al
mov esp, ebp
pop ebp
ret 8

Function at 0x40fcbc
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x465d34], 0
jne 0x40fcf4
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040cb7a
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0043d465
pop ecx
test esi, esi
pop esi
je 0x40fd01
mov al, 1
jmp 0x40fd03
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jmp 0x40fcee
xor al, al
mov esp, ebp
pop ebp
ret 4

Function at 0x40fd09
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x465d34], 0
jne 0x40fd43
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040cb7a
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0043d465
pop ecx
test esi, esi
pop esi
je 0x40fd52
mov al, 1
jmp 0x40fd54
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jmp 0x40fd3d
xor al, al
mov esp, ebp
pop ebp
ret 4

Function at 0x40fe9a
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00410955
cmp eax, 0xffffffff
je 0x40fec7
mov ecx, eax
and cl, 0x11
cmp cl, 1
jne 0x40fec7
and eax, 0xfffffffe
push eax
push esi
call fcn.0040fb92
test al, al
je 0x40feff
cmp byte [0x465d34], 0
push esi
jne 0x40fef5
lea eax, [ebp - 0xc]
push eax
call fcn.0040cb7a
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0043d465
pop ecx
test esi, esi
je 0x40feff
mov al, 1
jmp 0x40ff01
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jmp 0x40feef
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4101bc
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x344
lea ebp, [esp - 4]
mov eax, dword [0x462044]
xor eax, ebp
mov dword [ebp + 0x344], eax
push 0x1c
mov eax, 0x44d54f
call fcn.0043d4af
mov esi, dword [ebp + 0x350]
xor ebx, ebx
xor ecx, ecx
mov dword [ebp - 0x10], esi
mov edi, 0x114
mov eax, dword [esi]
mov dword [esi + 4], ebx
mov word [eax], cx
cmp byte [0x465d34], cl
jne 0x410255
lea eax, [ebp + 0x22c]
mov byte [ebp + 0x22c], bl
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x41024e
cmp eax, edi
jae 0x41024e
lea eax, [ebp + 0x22c]
mov byte [ebp + 0x340], bl
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040cb2a
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.0040c216
push dword [ebp - 0x28]
call fcn.0043d465
mov al, 1
jmp 0x4102eb
xor al, al
jmp 0x4102ec
xor eax, eax
mov word [ebp], ax
lea eax, [ebp]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
test esi, esi
je 0x41024e
cmp esi, edi
jae 0x410289
mov ecx, dword [ebp - 0x10]
xor eax, eax
mov word [ebp + 0x228], ax
lea eax, [ebp]
push eax
call fcn.0040c1b9
mov al, 1
jmp 0x4102ec
lea ecx, [ebp - 0x1c]
call fcn.0040c03a
mov dword [ebp - 4], 1
cmp esi, dword [ebp - 0x14]
jbe 0x4102a6
push esi
lea ecx, [ebp - 0x1c]
call fcn.0040bd73
push dword [ebp - 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test edi, edi
je 0x4102e1
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
push eax
mov word [eax + esi*2], cx
call fcn.0040ce43
mov dword [ebp - 0x18], eax
cmp eax, edi
jne 0x4102e1
lea eax, [esi - 1]
cmp eax, edi
jne 0x4102e1
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push eax
call fcn.0040c216
mov bl, 1
push dword [ebp - 0x1c]
call fcn.0043d465
mov al, bl
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x344]
xor ecx, ebp
call fcn.0043d1f0
lea esp, [ebp + 0x348]
pop ebp
ret 4

Function at 0x410780
Capabilities:
Create directory

Disassembly:
push 0x44
mov eax, 0x44d658
call fcn.0043d4af
cmp byte [0x465d34], 0
mov edi, dword [ebp + 8]
jne 0x4107c0
push edi
lea eax, [ebp - 0x18]
push eax
call fcn.0040cb7a
xor ebx, ebx
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x18]
mov esi, eax
call fcn.0043d465
pop ecx
test esi, esi
je 0x4107ce
mov al, 1
jmp 0x410814
xor ebx, ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jmp 0x4107ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4107df
xor al, al
jmp 0x410814
lea ecx, [ebp - 0x50]
call fcn.004109a2
lea ecx, [ebp - 0x28]
call fcn.0040c03a
push ebx
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], ebx
call fcn.00410a6b
test al, al
je 0x410809
mov ebx, dword [ebp - 0x30]
shr ebx, 4
and bl, 1
push dword [ebp - 0x28]
call fcn.0043d465
pop ecx
mov al, bl
call fcn.0043d478
ret 4
Function at 0x410955
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x465d34], 0
jne 0x410989
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040cb7a
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0043d465
pop ecx
mov eax, esi
pop esi
jmp 0x41099c
push dword [ebp + 8]
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 4
Function at 0x4112a4
Capabilities:
Get disk information

Disassembly:
push 0x2c
mov eax, 0x44d77a
call fcn.0043d4af
mov ecx, dword [ebp + 8]
call fcn.0040aa64
cmp byte [0x465d34], 0
jne 0x411394
mov ecx, dword [ebp + 8]
call fcn.0040aa64
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov edi, eax
mov dword [ebp - 0x14], edi
test edi, edi
jne 0x4112e7
xor al, al
jmp 0x41144f
push edi
lea ecx, [ebp - 0x18]
call fcn.00425776
mov esi, dword [ebp - 0x18]
push esi
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov edi, eax
mov dword [ebp - 0x1c], edi
test edi, edi
je 0x411446
cmp edi, dword [ebp - 0x14]
ja 0x411446
lea ecx, [ebp - 0x2c]
call fcn.0040b6b2
mov byte [ebp - 4], 1
test edi, edi
je 0x41138a
xor eax, eax
mov dword [ebp - 0x14], edi
inc eax
mov ecx, edi
mov dword [ebp - 0x10], eax
cmp byte [esi + eax - 1], 0
jne 0x41137b
lea eax, [ebx + esi]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040b77e
mov ebx, dword [ebp - 0x10]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.0040cb52
mov edi, eax
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 2
call fcn.0040aae3
mov ecx, dword [ebp + 8]
push edi
call fcn.0040aa20
push dword [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.0043d465
pop ecx
mov ecx, dword [ebp - 0x14]
mov eax, ebx
inc eax
sub ecx, 1
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
jne 0x41132f
mov edi, dword [ebp - 0x1c]
push dword [ebp - 0x2c]
cmp ebx, edi
jmp 0x41143d
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, eax
mov dword [ebp - 0x18], edi
test edi, edi
je 0x4112e0
push edi
lea ecx, [ebp - 0x1c]
call fcn.0040e913
mov esi, dword [ebp - 0x1c]
push esi
push edi
mov dword [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, eax
test edi, edi
je 0x411446
cmp edi, dword [ebp - 0x18]
ja 0x411446
lea ecx, [ebp - 0x38]
call fcn.0040c03a
mov byte [ebp - 4], 4
mov edx, ebx
mov dword [ebp - 0x18], edx
mov eax, ebx
mov dword [ebp - 0x10], eax
test edi, edi
je 0x411438
push 2
pop ecx
mov dword [ebp - 0x14], ecx
cmp word [esi + ecx - 2], bx
jne 0x411427
lea eax, [edx + esi]
push eax
lea ecx, [ebp - 0x38]
call fcn.0040c1b9
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
inc eax
mov dword [ebp - 0x18], eax
call fcn.0040aae3
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x38]
push eax
call fcn.0040aa20
mov ecx, dword [ebp - 0x14]
mov edx, ecx
mov eax, dword [ebp - 0x10]
inc eax
add ecx, 2
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
cmp eax, edi
jb 0x4113f1
mov edx, dword [ebp - 0x18]
push dword [ebp - 0x38]
cmp edx, edi
sete bl
call fcn.0043d465
pop ecx
push esi
call fcn.0043d465
mov al, bl
pop ecx
call fcn.0043d478
ret 4
Function at 0x4116dd
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x411707
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x411707
xor al, al
jmp 0x41171b
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x41cc56
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
xor edi, edi
test esi, esi
je 0x41cc66
mov dword [esi], edi
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x41ccac
push edi
lea ecx, [ebp + 0x14]
push ecx
mov ecx, 0x8000
cmp eax, ecx
cmovae eax, ecx
push eax
push dword [ebp + 0xc]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x14]
add dword [ecx + 8], edx
adc dword [ecx + 0xc], edi
test esi, esi
je 0x41cca1
add dword [esi], edx
test eax, eax
jne 0x41ccac
call fcn.0041ccc8
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebp
ret 0x10
Function at 0x42593e
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44effd
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x462044]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esi + 0xa8]
call fcn.004259ed
lea ecx, [esi + 0x78]
call fcn.004259ed
push dword [esi + 0x30]
call fcn.0043d465
push dword [esi + 0x24]
call fcn.0043d465
push dword [esi + 0x18]
call fcn.0043d465
add esp, 0xc
and dword [ebp - 4], 0
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4259a2
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 8]
mov dword [ebp - 4], 1
test ecx, ecx
je 0x4259b6
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 4]
mov dword [ebp - 4], 2
test ecx, ecx
je 0x4259ca
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi]
mov dword [ebp - 4], 3
test ecx, ecx
je 0x4259dd
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x425a47
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44f018
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x462044]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00427ca9
lea ecx, [esi + 0x30]
call fcn.004259ed
push dword [esi + 0x24]
call fcn.0043d465
pop ecx
lea ecx, [esi + 0xc]
call fcn.0040e93e
mov ecx, esi
call fcn.00425904
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x429a65
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push 0x11
mov esi, ecx
call dword [sym.imp.USER32.dll_GetKeyState]
mov edx, dword [esp + 8]
shr eax, 0xf
and al, 1
movzx ecx, word [edx + 0xc]
cmp ecx, 8
je 0x429aa6
cmp ecx, 0x52
je 0x429a95
cmp ecx, 0x76
jne 0x429aa2
mov ecx, esi
call fcn.0042a22f
jmp 0x429aad
test al, al
je 0x429aa2
mov ecx, esi
call fcn.0042a0a0
jmp 0x429aad
xor al, al
jmp 0x429aaf
mov ecx, esi
call fcn.0042a12a
mov al, 1
pop esi
ret 4