joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43ae3e
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.0047fe80
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.0043181b
add esp, 0x10
cmp eax, dword [ebp + 0xc]
jne 0x43af34
cmp edx, dword [ebp + 0x10]
jne 0x43af34
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 0x43af34
push ebx
push esi
push edi
call fcn.004102e0
mov esi, dword [ebp + 0x18]
add esp, 0xc
cmp esi, 1
jne 0x43aeda
push 0x10
push dword [ebp + 0x14]
lea eax, [edi + 0x3ce]
push eax
call fcn.004102e0
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.0043181b
add esp, 0x10
cmp eax, dword [ebp + 0xc]
jne 0x43af34
cmp edx, dword [ebp + 0x10]
jne 0x43af34
push ebx
lea esi, [edi + 0x200]
push esi
push edi
call fcn.00436036
add esp, 0xc
test eax, eax
jne 0x43af34
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 0x43b2bf
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.00435da9
push 0xca
lea ecx, [ebp - 0x10]
call fcn.00435d80
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 0x43b394
cmp dword [ebp + 0x14], 1
not dword [ebp - 4]
jle 0x43b394
and dword [ebp - 4], 0xfffffffc
jmp 0x43b394
test edx, edx
jl 0x43b399
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 0x43b391
cmp dword [ebp - 8], 0
je 0x43b363
movsx ax, cl
push eax
call fcn.0047f5e8
test eax, eax
pop ecx
je 0x43b391
mov cl, byte [ebp + 0x17]
cmp byte [ebp + 0x1b], 0
je 0x43b377
mov ax, word [ebp + 0xc]
test ax, ax
je 0x43b377
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 0x43b391
mov word [edi], 0x3a
inc edi
inc edi
mov edx, dword [ebp - 0xc]
cmp edx, 0x1a
jl 0x43b329
mov eax, dword [ebp + 8]
and word [edi], 0
mov esi, dword [eax]
lea ecx, [ebp - 0x10]
call fcn.0043092f
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x43b3cf
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 0x43b3e9
inc esi
cmp byte [esi], 0x23
mov byte [ebp + 0xb], 0
jne 0x43b408
mov al, byte [esi + 1]
test al, al
jne 0x43b400
xor eax, eax
jmp 0x43b48a
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.00435c7d
mov eax, dword [ebx]
xor cl, cl
mov byte [eax], 0
xor ebx, ebx
cmp byte [esi], cl
mov dword [ebp - 0xc], eax
je 0x43b450
mov dl, byte [esi]
cmp dl, 0x3d
jne 0x43b48d
test cl, cl
jle 0x43b447
mov byte [eax], bl
inc eax
xor ebx, ebx
xor cl, cl
inc esi
cmp byte [esi], 0
mov dword [ebp - 8], esi
jne 0x43b435
push dword [ebp - 0xc]
mov byte [eax], 0
call edi
xor ecx, ecx
cmp dword [ebp - 4], ecx
mov esi, eax
je 0x43b483
cmp esi, ecx
jle 0x43b483
mov eax, dword [ebp - 0xc]
lea edi, [ecx + eax]
mov eax, ecx
cdq
push 0x14
pop ebx
idiv ebx
mov al, byte [edx + 0x499be4]
xor al, byte [ebp + 0xb]
xor byte [edi], al
inc ecx
cmp ecx, esi
jl 0x43b465
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
pop edi
pop ebx
pop esi
leave
ret
cmp dl, 0x2b
jne 0x43b496
xor dl, dl
jmp 0x43b4bc
cmp dl, 0x2f
jne 0x43b4a0
add dl, 0xd2
jmp 0x43b4bc
cmp dl, 0x39
ja 0x43b4aa
add dl, 0xd2
jmp 0x43b4bc
cmp dl, 0x5a
ja 0x43b4b4
add dl, 0xcb
jmp 0x43b4bc
cmp dl, 0x7a
ja 0x43b4c1
add dl, 0xc5
movzx edx, dl
jmp 0x43b4c4
or edx, 0xffffffff
test edx, edx
jl 0x43b4f3
mov esi, dword [ebp - 8]
shl edx, cl
or ebx, edx
add cl, 6
cmp cl, 8
jge 0x43b4e8
test cl, cl
jle 0x43b447
cmp byte [esi], 0
jne 0x43b447
mov byte [eax], bl
inc eax
shr ebx, 8
add cl, 0xf8
jmp 0x43b4d2
xor eax, eax
jmp 0x43b488
Function at 0x43b4f7
Capabilities:
Encode data using base64
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov ebx, eax
lea ecx, [ebp - 8]
mov edi, ebx
mov byte [ebp - 1], 0
call fcn.00435c39
cmp byte [ebp + 0x10], 0
jne 0x43b5cd
cmp ebx, 0x14
jge 0x43b52b
push 0x14
pop edi
lea eax, [edi + 4]
push eax
lea ecx, [ebp - 8]
call fcn.00435c7d
mov esi, dword [ebp - 8]
lea eax, [edi + 4]
push eax
push 0
push esi
call fcn.0047fd70
lea eax, [ebx + 1]
push eax
push dword [ebp + 8]
push esi
call fcn.004102e0
add esp, 0x18
xor eax, eax
test ebx, ebx
jle 0x43b56f
mov cl, byte [ebp - 1]
mov edx, dword [ebp + 8]
shl cl, 1
add cl, byte [eax + edx]
inc eax
cmp eax, ebx
mov byte [ebp - 1], cl
jl 0x43b55c
mov cl, byte [ebp - 1]
shr cl, 5
mov eax, ebx
sar eax, 2
add al, cl
mov cl, byte [ebp - 1]
shl cl, 3
add al, cl
mov cl, byte [ebp - 1]
shr cl, 2
add al, cl
add al, bl
movzx eax, al
cdq
push pe_nt_image_headers32
pop ecx
idiv ecx
xor ecx, ecx
test edi, edi
mov al, byte [edx + 0x499ba0]
mov byte [ebp - 1], al
jle 0x43b5cb
mov eax, dword [ebp - 8]
add eax, ecx
mov dword [ebp + 8], eax
mov eax, ecx
cdq
push 0x14
pop ebx
idiv ebx
mov eax, dword [ebp + 8]
mov dl, byte [edx + 0x499be4]
xor dl, byte [eax]
xor dl, byte [ebp - 1]
inc ecx
cmp ecx, edi
mov byte [eax], dl
jl 0x43b5a6
mov ebx, edi
lea eax, [ebx + ebx*2 + 0x10]
mov ebx, dword [ebp + 0xc]
push eax
mov ecx, ebx
call fcn.00435da9
mov eax, dword [ebx]
xor edx, edx
push 2
mov word [eax], dx
pop ecx
add eax, ecx
mov word [eax], dx
cmp byte [esi], dl
jne 0x43b5f6
mov esi, eax
jmp 0x43b6df
cmp byte [ebp + 0x10], 0
jne 0x43b614
movzx bx, byte [ebp - 1]
mov word [eax], 0x23
add eax, ecx
mov word [eax], 0x23
add eax, ecx
mov word [eax], bx
add eax, ecx
mov word [eax], dx
movzx ebx, byte [esi]
add edi, esi
inc esi
mov byte [ebp + 0xb], 8
cmp byte [ebp + 0xb], 6
jge 0x43b631
cmp byte [ebp + 0xb], 0
jle 0x43b693
cmp esi, edi
jne 0x43b695
mov dl, bl
and dl, 0x3f
cmp byte [ebp + 0x10], 0
je 0x43b647
movzx ecx, dl
mov cl, byte [ecx + 0x499ba0]
jmp 0x43b678
test dl, dl
jne 0x43b650
add dl, 0x2b
jmp 0x43b676
cmp dl, 1
jne 0x43b65a
add dl, 0x2e
jmp 0x43b676
cmp dl, 0xc
jae 0x43b664
add dl, 0x2e
jmp 0x43b676
cmp dl, 0x26
jae 0x43b66e
add dl, 0x35
jmp 0x43b676
cmp dl, 0x40
jae 0x43b676
add dl, 0x3b
mov cl, dl
movzx cx, cl
mov word [eax], cx
inc eax
inc eax
shr ebx, 6
add byte [ebp + 0xb], 0xfa
jns 0x43b621
mov word [eax], 0x3d
inc eax
inc eax
jmp 0x43b621
cmp esi, edi
jae 0x43b6cc
movzx edx, byte [esi]
mov cl, byte [ebp + 0xb]
add byte [ebp + 0xb], 8
shl edx, cl
or ebx, edx
inc esi
cmp esi, edi
jae 0x43b6cc
movzx edx, byte [esi]
mov cl, byte [ebp + 0xb]
add byte [ebp + 0xb], 8
shl edx, cl
or ebx, edx
inc esi
cmp esi, edi
jae 0x43b6cc
movzx edx, byte [esi]
mov cl, byte [ebp + 0xb]
shl edx, cl
or ebx, edx
inc esi
add byte [ebp + 0xb], 8
cmp byte [ebp + 0xb], 0
jg 0x43b621
and word [eax], 0
mov eax, dword [ebp + 0xc]
mov esi, dword [eax]
lea ecx, [ebp - 8]
call fcn.0043092f
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x43ca10
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.0043181b
add esp, 0x10
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
pop esi
ret
Function at 0x43d444
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
push 0xa0000
lea ecx, [ebp - 8]
call fcn.00435c56
mov eax, dword [ebp - 8]
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
add eax, 0x20000
xor ecx, ecx
and eax, 0xfffe0000
cmp byte [ebp + 0x1c], cl
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ecx
jne 0x43d483
mov dword [ebp + 0x18], ecx
mov eax, dword [ebp + 0x18]
mov bl, byte [ebp + 0x1c]
cdq
add eax, edi
push ecx
mov edi, 0x200
push edi
adc edx, esi
push edx
push eax
call fcn.004824c0
neg bl
sbb ebx, ebx
and ebx, eax
mov dword [ebp - 0xc], ebx
xor ebx, ebx
cmp esi, ebx
jl 0x43d5a0
jle 0x43d597
cmp dword [ebp + 0x18], ebx
jne 0x43d4ce
mov eax, dword [ebp - 0xc]
cdq
cmp dword [ebp + 0x14], edx
jl 0x43d4ce
jg 0x43d4ca
cmp dword [ebp + 0x10], eax
jbe 0x43d4ce
xor dl, dl
jmp 0x43d4d0
mov dl, 1
cmp dword [ebp + 0x14], ebx
jl 0x43d4e7
jg 0x43d4e0
cmp dword [ebp + 0x10], 0x10000000
jbe 0x43d4e7
mov esi, 0x10000000
jmp 0x43d4ea
mov esi, dword [ebp + 0x10]
test dl, dl
mov ecx, dword [ebp + 0xc]
mov eax, esi
je 0x43d55f
mov esi, edi
sub esi, dword [ebp + 0x18]
xor eax, eax
cmp eax, dword [ebp + 0x14]
jl 0x43d509
jg 0x43d506
cmp esi, dword [ebp + 0x10]
jbe 0x43d509
mov esi, dword [ebp + 0x10]
push 1
push ebx
push ebx
push dword [ebp + 8]
call fcn.0043181b
add esp, 0x10
push ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 4]
push eax
push edi
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x18], edx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov eax, dword [ebp + 0x18]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 0x14], ebx
add ebx, eax
push ebx
call fcn.004102e0
push 0
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp + 8]
call fcn.0043181b
mov ecx, dword [ebp - 0x14]
add esp, 0x1c
mov eax, edi
xor ebx, ebx
jmp 0x43d56d
cmp byte [ebp + 0x1c], 0
je 0x43d56d
and esi, 0xfffffe00
mov eax, esi
push ebx
lea edx, [ebp - 4]
push edx
push eax
push ecx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
sub dword [ebp + 0x10], esi
mov dword [ebp + 0x18], ebx
sbb dword [ebp + 0x14], ebx
add dword [ebp + 0xc], esi
cmp dword [ebp + 0x14], ebx
jg 0x43d4b5
jl 0x43d5a0
cmp dword [ebp + 0x10], ebx
ja 0x43d4b5
lea ecx, [ebp - 8]
call fcn.0043092f
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43dd01
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x88
push ebx
push esi
push edi
mov esi, ecx
push 0x4ad684
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 0x43dd3a
test byte [ebp + 0x7c], 0x40
je 0x43dd3c
xor bl, bl
mov esi, dword [ebp + 0x74]
push 0x49b484
push esi
mov dword [ebp + 0x74], esi
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
jne 0x43dd90
mov word [ebp - 0x1c], di
call fcn.00432a01
and edx, 0x7fffffff
push edx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004752ea
mov esi, dword [ebp + 0x78]
add esp, 0xc
push 3
mov ecx, esi
mov word [ebp + 0x22], di
call fcn.00435da9
mov esi, dword [esi]
mov ax, word [ebp - 0x1c]
mov word [esi], ax
lea eax, [esi + 2]
jmp 0x43dec3
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 0x43ddbc
cmp word [esi], 0x26
je 0x43de6e
test bl, bl
jne 0x43de47
push 0x52
mov ecx, edi
call fcn.00435da9
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 0x43de26
cmp word [esi], 0
jne 0x43de1e
lea eax, [ebx + 0xc]
push eax
mov ecx, edi
call fcn.00435da9
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 0x43dec0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xcb
jne 0x43debc
cmp byte [ebp + 0x7f], 0
jne 0x43deba
cmp byte [ebp + 0x6b], 0
mov byte [ebp + 0x7f], 1
jne 0x43deba
mov ecx, dword [ebp + 0x60]
push 0xffffffffffffffff
xor ebx, ebx
push ebx
push dword [ebp + 0x74]
call fcn.0041083d
cmp eax, ebx
jne 0x43de7d
cmp dword [ebp + 0x64], ebx
jne 0x43de8b
cmp byte [ebp + 0x7f], bl
jne 0x43de8b
mov byte [ebp + 0x7f], 1
jmp 0x43ddbc
add esi, 2
mov dword [ebp + 0x74], esi
mov dword [ebp + 0x64], 1
jmp 0x43de47
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.00435da9
dec ebx
mov esi, dword [edi]
mov dword [ebp + 0x78], esi
js 0x43dec6
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 0x43dea1
jmp 0x43dec6
xor ebx, ebx
test ebx, ebx
jle 0x43dec6
lea eax, [esi + ebx*2]
mov dword [ebp + 0x78], eax
mov eax, dword [ebp + 0x78]
and word [eax], 0
mov eax, 0x4ad684
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 0x43e7f3
Capabilities:
Parse credit card information
Query environment variable

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

Function at 0x43e9dc
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.004045f9
cmp dword [ebp - 4], edi
je 0x43ea81
push esi
mov esi, dword [ebp + 0xc]
cmp esi, edi
mov dword [ebp - 0xc], edi
jne 0x43ea19
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 0x43ea4f
push eax
push 2
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
cmp eax, edi
mov dword [ebx], eax
je 0x43ea7f
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
jmp 0x43ea56
mov ebx, eax
call fcn.0040bb59
mov ebx, eax
cmp ebx, edi
je 0x43ea7f
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 0x43ea7d
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.00402b27
mov eax, edi
pop edi
leave
ret
Function at 0x43eec1
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 0x43eee0
xor eax, eax
jmp 0x43f0a4
push 0x4ad684
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
call fcn.00434f2e
lea ecx, [ebp - 0xc]
call fcn.00402aec
push dword [edi + 4]
push dword [edi]
call fcn.00434fb6
mov edi, eax
cmp edi, esi
pop ecx
pop ecx
je 0x43ef1f
mov eax, dword [edi]
lea ecx, [ebp - 4]
push ecx
push edi
call dword [eax + 0xc]
cmp dword [ebp - 4], esi
jne 0x43ef24
mov eax, dword [edi]
push edi
call dword [eax + 8]
cmp dword [ebp - 4], esi
je 0x43ef3e
mov eax, dword [fcn.004ad270]
cmp eax, esi
mov edi, dword [ebp - 4]
je 0x43ef37
cmp dword [ebp - 0xc], esi
jne 0x43ef37
call eax
mov esi, edi
jmp 0x43f097
mov edi, dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
push ebx
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x2e4]
push eax
push 0x494ec4
mov word [ebp - 0x2e4], si
call edi
cmp eax, esi
jg 0x43ef94
push ebx
lea eax, [ebp - 0x2e4]
push eax
push 0x494eb8
call edi
cmp eax, esi
jg 0x43ef94
mov eax, dword [fcn.004ad270]
cmp eax, esi
je 0x43f096
cmp dword [ebp - 0xc], esi
jne 0x43f096
call eax
jmp 0x43f096
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], 0x63
lea edi, [ebp + eax*2 - 0x2e4]
call fcn.00432a01
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 0x49b4e0
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.004045f9
cmp dword [ebp - 8], esi
jne 0x43f009
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
dec dword [ebp - 0x10]
jns 0x43efa5
lea ecx, [ebp - 8]
call fcn.00402b27
jmp 0x43ef77
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.00402b27
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 0x43f06c
lea eax, [ebp - 0x2e4]
push eax
call fcn.0043ea8e
mov edi, eax
cmp edi, esi
pop ecx
je 0x43f06c
mov eax, dword [edi]
lea ecx, [ebp - 4]
push ecx
push edi
call dword [eax + 0xc]
cmp dword [ebp - 4], esi
jne 0x43f06c
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.00402b27
mov eax, dword [fcn.004ad270]
cmp eax, esi
je 0x43f094
cmp dword [ebp - 0xc], esi
jne 0x43f094
call eax
mov esi, edi
pop ebx
push 0x4ad684
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x43f2f4
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.00435da9
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 0x43f341
mov eax, dword [esi]
cmp word [eax], 0
jne 0x43f341
lea eax, [ebx + 2]
push eax
mov ecx, esi
call fcn.00435da9
inc ebx
push ebx
push dword [esi]
push dword [esp + 0x18]
call edi
pop edi
pop esi
pop ebx
ret

Function at 0x43f403
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 0x43f4b7
cmp cx, 0x61
jb 0x43f42e
cmp cx, 0x7a
ja 0x43f42e
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 0x43f4d1
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 0x43f4ad
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 0x43f4d1
push ebx
push eax
push dword [ebp + 8]
mov dword [ebp - 8], ebx
call fcn.0043541b
add esp, 0xc
cmp eax, ebx
jne 0x43f4d9
xor eax, eax
inc eax
jmp 0x43f577
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 0x43f53d
call dword [sym.imp.SETUPAPI.DLL_CM_Request_Device_EjectW]
jmp 0x43f543
call dword [sym.imp.SETUPAPI.DLL_CM_Query_And_Remove_SubTreeW]
cmp eax, ebx
jne 0x43f54c
cmp dword [ebp - 0xc], ebx
je 0x43f56a
push ebx
push 0xc8
mov ecx, 0x4acf10
call fcn.0040d358
inc dword [ebp - 4]
cmp dword [ebp - 4], 3
jg 0x43f56c
mov al, byte [ebp + 0xb]
jmp 0x43f51a
mov bl, 1
neg bl
sbb ebx, ebx
and ebx, 0xfffffffe
inc ebx
inc ebx
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x43ff81
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
push edi
jne 0x440015
cmp dword [ebp + 0xc], esi
jne 0x43ffa0
mov eax, 0x80070057
jmp 0x44003f
cmp dword [0x4ad288], esi
jle 0x44003d
push esi
push 0x8000080
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 0xc]
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x43ffda
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, esi
jne 0x44003f
jmp 0x440024
push esi
lea eax, [ebp + 8]
push eax
push dword [0x4ad288]
push dword [0x4ad668]
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [0x4ad668]
cmp eax, esi
mov dword [0x4ad288], esi
je 0x44000d
call fcn.00430918
mov dword [0x4ad668], esi
jmp 0x44003d
push dword [ebp + 8]
call fcn.004357ba
mov edi, eax
cmp edi, esi
pop ecx
jne 0x440029
xor eax, eax
inc eax
jmp 0x44003f
push dword [ebp + 0xc]
push edi
call fcn.0043fc50
pop ecx
pop ecx
push edi
mov esi, eax
call dword [sym.imp.GDI32.DLL_DeleteObject]
mov eax, esi
pop edi
pop esi
pop ebp
ret
Function at 0x44196a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
push 0xffffffffffffffff
push dword [ebp + 8]
lea ecx, [ebp - 4]
call fcn.004403f9
mov esi, dword [eax]
push 0xffffffffffffffff
push dword [ebp + 0xc]
lea ecx, [ebp - 8]
call fcn.004403f9
push dword [eax]
push esi
push 0x49b6dc
push 0x4acf10
call fcn.0040cde2
add esp, 0x10
lea ecx, [ebp - 4]
call fcn.0043092f
lea ecx, [ebp - 8]
call fcn.0043092f
mov esi, 0x49b6d0
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
push 4
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0xc]
push eax
push 4
movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.ADVAPI32.DLL_RegSetValueExA]
push 0
push 0x49b6c4
push dword [ebx]
xor edi, edi
inc edi
mov dword [ebp - 0xc], edi
call esi
push 9
lea eax, [ebp - 0x18]
push eax
push 7
push 0
push 0x49b6b8
push dword [ebx]
call esi
push 9
lea eax, [ebp - 0x18]
push eax
push 7
push 0
push 0x49b6ac
push dword [ebx]
call esi
push edi
mov edi, 0x4958ae
push edi
push 7
push 0
push 0x49b69c
push dword [ebx]
call esi
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x441a45
cmp byte [eax], 0x2d
jne 0x441a26
mov dword [ebp + 0xc], edi
cmp byte [eax], 0
je 0x441a45
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
push eax
push dword [ebp + 0xc]
push 1
push 0
push 0x49b690
push dword [ebx]
call esi
push dword [ebx]
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop esi
leave
ret