joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43b624
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
push edi
jne 0x43b656
mov ax, word [esi]
mov word [ebp - 0xc], ax
mov ax, word [esi + 2]
mov word [ebp - 0xa], ax
lea eax, [ebp - 0xc]
mov word [ebp - 8], 0x5c
mov word [ebp - 6], bx
mov dword [ebp + 0x10], eax
push 0x209
lea ecx, [ebp - 4]
call fcn.0043719c
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 4]
push 8
push edi
push str.Device_
mov word [eax], bx
call fcn.00432c59
add esp, 0xc
test al, al
jne 0x43b6af
push 0xc
push edi
push str.DosDevices_
call fcn.00432c59
add esp, 0xc
test al, al
jne 0x43b6af
cmp word [edi], bx
je 0x43b6b3
cmp word [edi + 2], bx
je 0x43b6b3
push 0x3a
lea eax, [edi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_StrChrW]
test eax, eax
je 0x43b6b3
or dword [ebp + 0x14], 1
push 0xb
push edi
push 0x49e530
call fcn.00432c59
mov ebx, dword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
add esp, 0xc
test al, al
je 0x43b6d7
and dword [ebp + 0x14], 0xfffffffe
cmp byte [ebp + 0x18], 0
jne 0x43b6fe
cmp byte [ebp + 0x18], 0
je 0x43b6e9
xor eax, eax
mov ax, word [esi]
push eax
call fcn.00434d61
pop ecx
push edi
push esi
push dword [ebp + 0x14]
call ebx
mov esi, eax
test esi, esi
jne 0x43b70f
cmp byte [ebp + 0x18], al
jl 0x43b75b
mov byte [ebp + 0x18], al
push 0x208
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
jmp 0x43b737
cmp byte [ebp + 0x18], 0
jle 0x43b75b
push 0x208
push dword [ebp - 4]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x43b75b
mov eax, dword [ebp + 0x14]
push edi
push dword [ebp + 0xc]
or eax, 0xe
push eax
call ebx
push dword [ebp - 4]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
cmp byte [ebp + 0x18], 0
mov esi, eax
jl 0x43b75b
test esi, esi
jne 0x43b75b
mov esi, dword [ebp + 0xc]
mov byte [ebp + 0x18], 0xff
jmp 0x43b6d7
lea ecx, [ebp - 4]
call fcn.00431c4c
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x43b76a
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
push esi
xor esi, esi
push esi
push 0x20000000
push 3
push esi
push 3
push 0x100080
push dword [ebp + 8]
lea ecx, [ebp - 4]
mov dword [ebp - 4], esi
call fcn.00404863
cmp dword [ebp - 4], esi
jne 0x43b79e
or esi, 0xffffffff
jmp 0x43b7d9
or dword [ebp - 0xc], 0xffffffff
push esi
lea eax, [ebp - 0x1a0]
push eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push 0x2d1080
push dword [ebp - 4]
mov dword [ebp - 0x1a0], esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x43b799
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x43b7d6
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov esi, dword [ebp - 0xc]
lea ecx, [ebp - 4]
call fcn.00402b75
mov eax, esi
pop esi
leave
ret
Function at 0x43bd1a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x20]
xor edx, edx
cmp ecx, edx
push ebx
push esi
push edi
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
ja 0x43bd47
cmp dword [ebp + 0x18], edx
jbe 0x43bd50
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], ecx
cmp eax, edx
jne 0x43bd5a
lea eax, [ebp - 0x14]
mov dword [ebp + 0x20], eax
mov edi, dword [ebp + 0x14]
cmp edi, edx
mov esi, dword [ebp + 8]
jg 0x43bd6e
push dword [esi]
call fcn.00434e93
pop ecx
mov edi, eax
mov eax, dword [ebp + 0x10]
shl eax, 7
lea eax, [eax + edi - 1]
xor edx, edx
div edi
mov ebx, eax
inc ebx
inc ebx
lea eax, [ebx + 2]
imul eax, edi
push eax
push 0
push dword [ebp + 0xc]
call fcn.004832e0
and dword [ebp + 0x14], 0
push 0
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [esi]
call fcn.00432bc3
add esp, 0x1c
push 0
lea eax, [ebp + 0x14]
push eax
push edi
push dword [ebp + 0xc]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor ecx, ecx
cmp dword [ebp + 0x1c], ecx
ja 0x43bde9
jb 0x43bdc7
cmp dword [ebp + 0x18], ecx
ja 0x43bde9
mov eax, 0x1c2
mov edx, dword [ebp + 0xc]
cmp byte [eax + edx], 0xee
jne 0x43bddf
mov edx, dword [eax + edx + 4]
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
add eax, 0x10
cmp eax, 0x1f2
jle 0x43bdcc
push ecx
push dword [ebp - 8]
mov eax, edi
push dword [ebp - 0xc]
cdq
push edx
push eax
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x1c], edx
call fcn.004833f0
add eax, dword [ebp + 0x24]
adc edx, dword [ebp + 0x28]
push edx
push eax
push dword [esi]
call fcn.00432bc3
add esp, 0x10
inc ebx
imul ebx, edi
push 0
lea eax, [ebp + 0x14]
push eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebx + edi]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 4], 0
lea eax, [ebx + edi*2 + 0x10000]
mov dword [ebp + 0xc], eax
je 0x43be9f
push edi
push 0
push eax
call fcn.004832e0
mov eax, dword [ebp + 0x20]
add esp, 0xc
cmp dword [eax + 4], 0
ja 0x43be69
jb 0x43be58
cmp dword [eax], 2
jae 0x43be69
mov ecx, dword [ebx + 0x220]
mov dword [eax], ecx
mov ecx, dword [ebx + 0x224]
mov dword [eax + 4], ecx
push 0
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [eax + 4]
push dword [eax]
call fcn.004833f0
add eax, dword [ebp + 0x24]
adc edx, dword [ebp + 0x28]
push edx
push eax
push dword [esi]
call fcn.00432bc3
add esp, 0x10
push 0
lea eax, [ebp + 0x14]
push eax
push edi
push dword [ebp + 0xc]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43c323
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x604
push ebx
push esi
push edi
push 0
mov ebx, 0x200
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004833f0
and dword [ebp - 4], 0
push 0
push edx
push eax
push dword [ebp + 8]
lea edi, [ebp - 0x404]
and edi, 0xfffffe00
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], edx
lea esi, [edi + 0x200]
call fcn.00432bc3
add esp, 0x10
cmp eax, dword [ebp + 0xc]
jne 0x43c419
cmp edx, dword [ebp + 0x10]
jne 0x43c419
push 0
lea eax, [ebp - 4]
push eax
push ebx
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43c419
push ebx
push esi
push edi
call fcn.00410b58
mov esi, dword [ebp + 0x18]
add esp, 0xc
cmp esi, 1
jne 0x43c3bf
push 0x10
push dword [ebp + 0x14]
lea eax, [edi + 0x3ce]
push eax
call fcn.00410b58
add esp, 0xc
dec esi
push 0
push dword [ebp + 0x10]
neg esi
push dword [ebp + 0xc]
sbb esi, esi
push dword [ebp + 8]
and esi, 0xffff55ab
add esi, 0xaa55
mov word [edi + 0x3fe], si
call fcn.00432bc3
add esp, 0x10
cmp eax, dword [ebp + 0xc]
jne 0x43c419
cmp edx, dword [ebp + 0x10]
jne 0x43c419
push ebx
lea esi, [edi + 0x200]
push esi
push edi
call fcn.00437452
add esp, 0xc
test eax, eax
jne 0x43c419
push eax
lea eax, [ebp - 4]
push eax
push ebx
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret
Function at 0x43c78f
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x134
mov ecx, edi
call fcn.004371c5
push 0xca
lea ecx, [ebp - 0x10]
call fcn.0043719c
mov eax, dword [ebp + 0x18]
movzx esi, byte [ebp + 0x18]
and eax, 0x100
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, dword [edi]
test esi, esi
sete bl
neg esi
sbb esi, esi
and esi, 0x19
cmp dword [ebp + 0x14], 0
mov dword [ebp - 4], eax
mov byte [ebp + 0x1b], 0
lea ebx, [ebx + ebx - 1]
mov edx, esi
je 0x43c864
cmp dword [ebp + 0x14], 1
not dword [ebp - 4]
jle 0x43c864
and dword [ebp - 4], 0xfffffffc
jmp 0x43c864
test edx, edx
jl 0x43c869
xor eax, eax
mov ecx, edx
inc eax
shl eax, cl
movsx esi, bl
mov cl, dl
add edx, esi
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
add cl, 0x41
test edx, eax
mov byte [ebp + 0x17], cl
je 0x43c861
cmp dword [ebp - 8], 0
je 0x43c833
movsx ax, cl
push eax
call fcn.00482b12
test eax, eax
pop ecx
je 0x43c861
mov cl, byte [ebp + 0x17]
cmp byte [ebp + 0x1b], 0
je 0x43c847
mov ax, word [ebp + 0xc]
test ax, ax
je 0x43c847
mov word [edi], ax
inc edi
inc edi
movsx ax, cl
mov word [edi], ax
inc edi
inc edi
cmp dword [ebp + 0x10], 0
mov byte [ebp + 0x1b], 1
je 0x43c861
mov word [edi], 0x3a
inc edi
inc edi
mov edx, dword [ebp - 0xc]
cmp edx, 0x1a
jl 0x43c7f9
mov eax, dword [ebp + 8]
and word [edi], 0
mov esi, dword [eax]
lea ecx, [ebp - 0x10]
call fcn.00431c4c
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x43c89f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
xor eax, eax
push esi
mov esi, dword [ebp + 8]
cmp byte [esi], 0x23
sete al
test eax, eax
mov dword [ebp - 4], eax
je 0x43c8b9
inc esi
cmp byte [esi], 0x23
mov byte [ebp + 0xb], 0
jne 0x43c8d8
mov al, byte [esi + 1]
test al, al
jne 0x43c8d0
xor eax, eax
jmp 0x43c95a
inc dword [ebp - 4]
inc esi
mov byte [ebp + 0xb], al
inc esi
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call edi
mov ebx, dword [ebp + 0xc]
lea eax, [eax + eax*2 + 3]
push eax
mov ecx, ebx
mov dword [ebp - 8], esi
call fcn.00437099
mov eax, dword [ebx]
xor cl, cl
mov byte [eax], 0
xor ebx, ebx
cmp byte [esi], cl
mov dword [ebp - 0xc], eax
je 0x43c920
mov dl, byte [esi]
cmp dl, 0x3d
jne 0x43c95d
test cl, cl
jle 0x43c917
mov byte [eax], bl
inc eax
xor ebx, ebx
xor cl, cl
inc esi
cmp byte [esi], 0
mov dword [ebp - 8], esi
jne 0x43c905
push dword [ebp - 0xc]
mov byte [eax], 0
call edi
xor ecx, ecx
cmp dword [ebp - 4], ecx
mov esi, eax
je 0x43c953
cmp esi, ecx
jle 0x43c953
mov eax, dword [ebp - 0xc]
lea edi, [ecx + eax]
mov eax, ecx
cdq
push 0x14
pop ebx
idiv ebx
mov al, byte [edx + 0x49cf2c]
xor al, byte [ebp + 0xb]
xor byte [edi], al
inc ecx
cmp ecx, esi
jl 0x43c935
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
pop edi
pop ebx
pop esi
leave
ret
cmp dl, 0x2b
jne 0x43c966
xor dl, dl
jmp 0x43c98c
cmp dl, 0x2f
jne 0x43c970
add dl, 0xd2
jmp 0x43c98c
cmp dl, 0x39
ja 0x43c97a
add dl, 0xd2
jmp 0x43c98c
cmp dl, 0x5a
ja 0x43c984
add dl, 0xcb
jmp 0x43c98c
cmp dl, 0x7a
ja 0x43c991
add dl, 0xc5
movzx edx, dl
jmp 0x43c994
or edx, 0xffffffff
test edx, edx
jl 0x43c9c3
mov esi, dword [ebp - 8]
shl edx, cl
or ebx, edx
add cl, 6
cmp cl, 8
jge 0x43c9b8
test cl, cl
jle 0x43c917
cmp byte [esi], 0
jne 0x43c917
mov byte [eax], bl
inc eax
shr ebx, 8
add cl, 0xf8
jmp 0x43c9a2
xor eax, eax
jmp 0x43c958
Function at 0x43dfea
Capabilities:
Clear file content

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0
push dword [esp + 0x14]
push dword [esp + 0x14]
push dword [esi]
call fcn.00432bc3
add esp, 0x10
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop esi
ret
Function at 0x43ea29
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push 0xa0000
lea ecx, [ebp - 0xc]
call fcn.00437072
mov edi, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
add edi, 0x20000
xor eax, eax
and edi, 0xfffe0000
cmp byte [ebp + 0x1c], al
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], eax
mov ebx, 0x200
jne 0x43ea6e
mov dword [ebp + 0x18], eax
jmp 0x43ea80
mov eax, dword [ebp + 0x18]
cdq
push 0
add eax, ecx
push ebx
adc edx, esi
push edx
push eax
call fcn.00485a30
test esi, esi
mov dword [ebp - 8], eax
jl 0x43eb7f
jle 0x43eb75
cmp dword [ebp + 0x18], 0
jne 0x43eaab
mov eax, dword [ebp - 8]
cdq
cmp dword [ebp + 0x14], edx
jl 0x43eaab
jg 0x43eaa7
cmp dword [ebp + 0x10], eax
jbe 0x43eaab
xor dl, dl
jmp 0x43eaad
mov dl, 1
cmp dword [ebp + 0x14], 0
jl 0x43eac5
jg 0x43eabe
cmp dword [ebp + 0x10], 0x10000000
jbe 0x43eac5
mov esi, 0x10000000
jmp 0x43eac8
mov esi, dword [ebp + 0x10]
test dl, dl
mov ecx, dword [ebp + 0xc]
mov eax, esi
je 0x43eb38
mov esi, ebx
sub esi, dword [ebp + 0x18]
xor eax, eax
cmp eax, dword [ebp + 0x14]
jl 0x43eae7
jg 0x43eae4
cmp esi, dword [ebp + 0x10]
jbe 0x43eae7
mov esi, dword [ebp + 0x10]
push 1
push eax
push eax
push dword [ebp + 8]
call fcn.00432bc3
add esp, 0x10
push 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 4]
push eax
push ebx
push edi
push dword [ebp + 8]
mov dword [ebp - 0x14], edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp + 0x18]
push esi
push dword [ebp + 0xc]
add eax, edi
push eax
mov dword [ebp - 0x10], edi
call fcn.00410b58
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp + 8]
call fcn.00432bc3
add esp, 0x1c
mov eax, ebx
mov ecx, edi
jmp 0x43eb46
cmp byte [ebp + 0x1c], 0
je 0x43eb46
and esi, 0xfffffe00
mov eax, esi
and dword [ebp - 4], 0
push 0
lea edx, [ebp - 4]
push edx
push eax
push ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub dword [ebp + 0x10], esi
push 0
pop eax
sbb dword [ebp + 0x14], eax
add dword [ebp + 0xc], esi
cmp dword [ebp + 0x14], eax
mov dword [ebp + 0x18], eax
jg 0x43ea91
jl 0x43eb7f
cmp dword [ebp + 0x10], 0
ja 0x43ea91
lea ecx, [ebp - 0xc]
call fcn.00431c4c
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43f2e0
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x88
push ebx
push esi
push edi
mov esi, ecx
push 0x4b069c
mov dword [ebp + 0x60], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov bl, byte [esi + 9]
xor edi, edi
cmp dword [ebp + 0x7c], edi
setl byte [ebp + 0x6b]
and bl, 0x11
cmp byte [ebp + 0x6b], 0
jne 0x43f319
test byte [ebp + 0x7c], 0x40
je 0x43f31b
xor bl, bl
mov esi, dword [ebp + 0x74]
push 0x49e7e4
push esi
mov dword [ebp + 0x74], esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x43f36f
mov word [ebp - 0x1c], di
call fcn.00433dc1
and edx, 0x7fffffff
push edx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004781bb
mov esi, dword [ebp + 0x78]
add esp, 0xc
push 3
mov ecx, esi
mov word [ebp + 0x22], di
call fcn.004371c5
mov esi, dword [esi]
mov ax, word [ebp - 0x1c]
mov word [esi], ax
lea eax, [esi + 2]
jmp 0x43f4a2
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp byte [ebp + 0x6b], 0
mov edi, dword [ebp + 0x78]
movsx eax, bl
mov byte [ebp + 0x7f], 0
mov dword [ebp + 0x64], eax
jne 0x43f39b
cmp word [esi], 0x26
je 0x43f44d
test bl, bl
jne 0x43f426
push 0x52
mov ecx, edi
call fcn.004371c5
mov esi, dword [edi]
and word [esi], 0
push 0
mov dword [ebp + 0x78], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [edi]
push 0x50
push eax
push dword [ebp + 0x74]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, eax
test ebx, ebx
jle 0x43f405
cmp word [esi], 0
jne 0x43f3fd
lea eax, [ebx + 0xc]
push eax
mov ecx, edi
call fcn.004371c5
mov esi, dword [edi]
and word [esi], 0
push 0
mov dword [ebp + 0x78], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [edi]
add ebx, 0xa
push ebx
push eax
push dword [ebp + 0x74]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, eax
test ebx, ebx
jg 0x43f49f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
jne 0x43f49b
cmp byte [ebp + 0x7f], 0
jne 0x43f499
cmp byte [ebp + 0x6b], 0
mov byte [ebp + 0x7f], 1
jne 0x43f499
mov ecx, dword [ebp + 0x60]
push 0xffffffffffffffff
xor ebx, ebx
push ebx
push dword [ebp + 0x74]
call fcn.00411179
cmp eax, ebx
jne 0x43f45c
cmp dword [ebp + 0x64], ebx
jne 0x43f46a
cmp byte [ebp + 0x7f], bl
jne 0x43f46a
mov byte [ebp + 0x7f], 1
jmp 0x43f39b
add esi, 2
mov dword [ebp + 0x74], esi
mov dword [ebp + 0x64], 1
jmp 0x43f426
mov eax, dword [eax]
push eax
mov dword [ebp + 0x74], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
lea eax, [ebx + 2]
push eax
mov ecx, edi
call fcn.004371c5
dec ebx
mov esi, dword [edi]
mov dword [ebp + 0x78], esi
js 0x43f4a5
lea eax, [ebx + 1]
mov ecx, dword [ebp + 0x74]
mov edx, dword [ebp + 0x78]
mov cx, word [ecx]
add dword [ebp + 0x78], 2
add dword [ebp + 0x74], 2
dec eax
mov word [edx], cx
jne 0x43f480
jmp 0x43f4a5
xor ebx, ebx
test ebx, ebx
jle 0x43f4a5
lea eax, [esi + ebx*2]
mov dword [ebp + 0x78], eax
mov eax, dword [ebp + 0x78]
and word [eax], 0
mov eax, 0x4b069c
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
add ebp, 0x6c
leave
ret 0xc
Function at 0x43fdd2
Capabilities:
Parse credit card information
Query environment variable

Disassembly:
push ebp
mov ebp, esp
cmp byte [ecx + 0x92], 0
jne 0x43fdea
test byte [ecx + 9], 0xf
jne 0x43fdea
pop ebp
jmp fcn.0043fcda
pop ebp
jmp fcn.0043eb92

Function at 0x43ff9f
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
lea ecx, [ebp - 4]
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], edi
call fcn.00404863
cmp dword [ebp - 4], edi
je 0x440044
push esi
mov esi, dword [ebp + 0xc]
cmp esi, edi
mov dword [ebp - 0xc], edi
jne 0x43ffdc
lea esi, [ebp - 0xc]
push ebx
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [ebp + 0x10]
xor ecx, ecx
cmp ebx, edi
setne cl
mov dword [esi], eax
cmp ecx, edi
mov dword [ebp - 8], ecx
je 0x440012
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, edi
mov dword [ebx], eax
je 0x440042
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
jmp 0x440019
mov ebx, eax
call fcn.00436f11
mov ebx, eax
cmp ebx, edi
je 0x440042
push edi
lea eax, [ebp - 0x10]
push eax
push dword [esi]
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 8], edi
je 0x440040
mov eax, dword [ebp + 0x10]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edi, ebx
pop ebx
pop esi
lea ecx, [ebp - 4]
call fcn.00402b75
mov eax, edi
pop edi
leave
ret
Function at 0x440484
Capabilities:
Delete file
Query environment variable
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e4
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
cmp dword [edi + 4], esi
mov dword [ebp - 4], esi
jg 0x4404a3
xor eax, eax
jmp 0x440668
push 0x4b069c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.004363ae
lea ecx, [ebp - 0xc]
call fcn.00402b3a
push dword [edi + 4]
mov eax, dword [edi]
push eax
call fcn.00436436
mov edi, eax
cmp edi, esi
pop ecx
pop ecx
je 0x4404e3
mov eax, dword [edi]
lea ecx, [ebp - 4]
push ecx
push edi
call dword [eax + 0xc]
cmp dword [ebp - 4], esi
jne 0x4404e8
mov eax, dword [edi]
push edi
call dword [eax + 8]
cmp dword [ebp - 4], esi
je 0x440502
mov eax, dword [0x4b0288]
cmp eax, esi
mov edi, dword [ebp - 4]
je 0x4404fb
cmp dword [ebp - 0xc], esi
jne 0x4404fb
call eax
mov esi, edi
jmp 0x44065b
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push ebx
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x2e4]
push eax
push 0x497a74
mov word [ebp - 0x2e4], si
call edi
cmp eax, esi
jg 0x440558
push ebx
lea eax, [ebp - 0x2e4]
push eax
push 0x497a68
call edi
cmp eax, esi
jg 0x440558
mov eax, dword [0x4b0288]
cmp eax, esi
je 0x44065a
cmp dword [ebp - 0xc], esi
jne 0x44065a
call eax
jmp 0x44065a
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], 0x63
lea edi, [ebp + eax*2 - 0x2e4]
call fcn.00433dc1
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.pecmd_bmp._lu._lu.tmp
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push esi
push 0x80
push 1
push esi
push 5
push 0x40000000
lea eax, [ebp - 0x2e4]
push eax
lea ecx, [ebp - 8]
call fcn.00404863
cmp dword [ebp - 8], esi
jne 0x4405cd
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
dec dword [ebp - 0x10]
jns 0x440569
lea ecx, [ebp - 8]
call fcn.00402b75
jmp 0x44053b
push esi
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 4]
mov dword [ebp - 0x14], esi
push dword [eax]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 8]
call fcn.00402b75
push 0x10
push esi
push esi
push esi
lea eax, [ebp - 0x2e4]
push eax
push esi
call dword [sym.imp.USER32.dll_LoadImageW]
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x440630
lea eax, [ebp - 0x2e4]
push eax
call fcn.00440051
mov edi, eax
cmp edi, esi
pop ecx
je 0x440630
mov eax, dword [edi]
lea ecx, [ebp - 4]
push ecx
push edi
call dword [eax + 0xc]
cmp dword [ebp - 4], esi
jne 0x440630
mov eax, dword [edi]
push edi
call dword [eax + 8]
lea eax, [ebp - 0x2e4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [ebp - 4]
lea ecx, [ebp - 8]
call fcn.00402b75
mov eax, dword [0x4b0288]
cmp eax, esi
je 0x440658
cmp dword [ebp - 0xc], esi
jne 0x440658
call eax
mov esi, edi
pop ebx
push 0x4b069c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x4408b8
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, 0x104
push edi
mov ecx, esi
call fcn.004371c5
mov eax, dword [esi]
and word [eax], 0
mov eax, dword [esi]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push eax
push dword [esp + 0x18]
call edi
mov ebx, eax
test ebx, ebx
jle 0x440905
mov eax, dword [esi]
cmp word [eax], 0
jne 0x440905
lea eax, [ebx + 2]
push eax
mov ecx, esi
call fcn.004371c5
inc ebx
push ebx
push dword [esi]
push dword [esp + 0x18]
call edi
pop edi
pop esi
pop ebx
ret

Function at 0x4409c7
Capabilities:
Get disk information
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
push ebx
push esi
xor ebx, ebx
cmp dword [ebp + 8], ebx
push 3
pop eax
jge 0x440a7b
cmp cx, 0x61
jb 0x4409f2
cmp cx, 0x7a
ja 0x4409f2
and ecx, 0xffdf
push 0x5c
pop eax
push ebx
push ebx
push 3
push ebx
push 3
mov word [ebp - 0x14], ax
mov word [ebp - 0x28], ax
mov word [ebp - 0x26], ax
mov word [ebp - 0x22], ax
push ebx
lea eax, [ebp - 0x28]
push eax
mov word [ebp - 0x18], cx
mov word [ebp - 0x16], 0x3a
mov word [ebp - 0x12], bx
mov word [ebp - 0x24], 0x2e
mov word [ebp - 0x20], cx
mov word [ebp - 0x1e], 0x3a
mov word [ebp - 0x1c], bx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x440a95
push edi
push ebx
lea eax, [ebp - 4]
push eax
push 0xc
lea eax, [ebp - 0x38]
push eax
push ebx
push ebx
push 0x2d1080
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
pop edi
je 0x440a71
mov eax, dword [ebp - 0x34]
mov dword [ebp + 8], eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp dword [ebp + 8], 0xffffffff
je 0x440a95
push ebx
push eax
push dword [ebp + 8]
mov dword [ebp - 8], ebx
call fcn.0043689b
add esp, 0xc
cmp eax, ebx
jne 0x440a9d
xor eax, eax
inc eax
jmp 0x440b3b
push ebx
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.SETUPAPI.dll_CM_Get_Parent]
push ebx
push dword [ebp - 8]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.SETUPAPI.dll_CM_Get_DevNode_Status]
mov eax, dword [ebp - 0x10]
shr eax, 0xe
and al, 1
mov byte [ebp + 0xb], al
mov dword [ebp - 4], 1
mov esi, 0x208
push ebx
push esi
cmp al, bl
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
mov word [ebp - 0x240], bx
je 0x440b01
call dword [sym.imp.SETUPAPI.dll_CM_Request_Device_EjectW]
jmp 0x440b07
call dword [sym.imp.SETUPAPI.dll_CM_Query_And_Remove_SubTreeW]
cmp eax, ebx
jne 0x440b10
cmp dword [ebp - 0xc], ebx
je 0x440b2e
push ebx
push 0xc8
mov ecx, 0x4aff28
call fcn.0040da4e
inc dword [ebp - 4]
cmp dword [ebp - 4], 3
jg 0x440b30
mov al, byte [ebp + 0xb]
jmp 0x440ade
mov bl, 1
neg bl
sbb ebx, ebx
and ebx, 0xfffffffe
inc ebx
inc ebx
mov eax, ebx
pop esi
pop ebx
leave
ret