joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4309f5
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.0046d500
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.00427e7e
add esp, 0x10
cmp eax, dword [ebp + 0xc]
jne 0x430aeb
cmp edx, dword [ebp + 0x10]
jne 0x430aeb
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 0x430aeb
push ebx
push esi
push edi
call fcn.0046c720
mov esi, dword [ebp + 0x18]
add esp, 0xc
cmp esi, 1
jne 0x430a91
push 0x10
push dword [ebp + 0x14]
lea eax, [edi + 0x3ce]
push eax
call fcn.0046c720
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.00427e7e
add esp, 0x10
cmp eax, dword [ebp + 0xc]
jne 0x430aeb
cmp edx, dword [ebp + 0x10]
jne 0x430aeb
push ebx
lea esi, [edi + 0x200]
push esi
push edi
call fcn.0042c6c7
add esp, 0xc
test eax, eax
jne 0x430aeb
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 0x4319c1
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.0042c43e
push 0xca
lea ecx, [ebp - 0x10]
call fcn.0042c415
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 0x431a96
cmp dword [ebp + 0x14], 1
not dword [ebp - 4]
jle 0x431a96
and dword [ebp - 4], 0xfffffffc
jmp 0x431a96
test edx, edx
jl 0x431a9b
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 0x431a93
cmp dword [ebp - 8], 0
je 0x431a65
movsx ax, cl
push eax
call fcn.0046bfe7
test eax, eax
pop ecx
je 0x431a93
mov cl, byte [ebp + 0x17]
cmp byte [ebp + 0x1b], 0
je 0x431a79
mov ax, word [ebp + 0xc]
test ax, ax
je 0x431a79
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 0x431a93
mov word [edi], 0x3a
inc edi
inc edi
mov edx, dword [ebp - 0xc]
cmp edx, 0x1a
jl 0x431a2b
mov eax, dword [ebp + 8]
and word [edi], 0
mov esi, dword [eax]
lea ecx, [ebp - 0x10]
call fcn.0042704a
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x431ad1
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
cmp byte [esi], 0x23
push edi
sete byte [esp + 0x14]
cmp byte [esp + 0x14], 0
je 0x431ae9
inc esi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call edi
mov ebp, dword [esp + 0x18]
lea eax, [eax + eax*2 + 3]
push eax
mov ecx, ebp
call fcn.0042c2c5
mov eax, dword [ebp]
xor ebx, ebx
mov byte [eax], 0
mov dword [esp + 0x18], eax
xor cl, cl
jmp 0x431b25
mov dl, byte [esi]
cmp dl, 0x3d
jne 0x431b66
test cl, cl
jle 0x431b24
mov byte [eax], bl
inc eax
xor ebx, ebx
xor cl, cl
inc esi
cmp byte [esi], 0
jne 0x431b12
push dword [esp + 0x18]
mov byte [eax], 0
call edi
cmp byte [esp + 0x14], 0
mov esi, eax
je 0x431b5e
xor ecx, ecx
test esi, esi
jle 0x431b5e
mov eax, dword [esp + 0x18]
lea edi, [ecx + eax]
mov eax, ecx
cdq
push 0x14
pop ebx
idiv ebx
mov al, byte [edx + 0x484f1c]
xor byte [edi], al
inc ecx
cmp ecx, esi
jl 0x431b42
mov eax, dword [ebp]
pop edi
pop esi
pop ebp
pop ebx
ret
cmp dl, 0x2b
jne 0x431b6f
xor dl, dl
jmp 0x431b95
cmp dl, 0x2f
jne 0x431b79
add dl, 0xd2
jmp 0x431b95
cmp dl, 0x39
ja 0x431b83
add dl, 0xd2
jmp 0x431b95
cmp dl, 0x5a
ja 0x431b8d
add dl, 0xcb
jmp 0x431b95
cmp dl, 0x7a
ja 0x431b9a
add dl, 0xc5
movzx edx, dl
jmp 0x431b9d
or edx, 0xffffffff
test edx, edx
jl 0x431bc9
shl edx, cl
or ebx, edx
add cl, 6
cmp cl, 8
jge 0x431bbe
test cl, cl
jle 0x431b24
cmp byte [esi], 0
jne 0x431b24
mov byte [eax], bl
inc eax
shr ebx, 8
add cl, 0xf8
jmp 0x431ba8
xor eax, eax
jmp 0x431b61
Function at 0x431bcd
Capabilities:
Encode data using base64
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
lea ecx, [ebp - 4]
mov ebx, edi
call fcn.0042c281
cmp byte [ebp + 0x10], 0
jne 0x431c42
cmp edi, 0x14
jge 0x431bf8
push 0x14
pop ebx
lea eax, [ebx + 2]
push eax
lea ecx, [ebp - 4]
call fcn.0042c2c5
mov esi, dword [ebp - 4]
lea eax, [ebx + 2]
push eax
push 0
push esi
call fcn.0046c4e0
inc edi
push edi
push dword [ebp + 8]
push esi
call fcn.0046c720
add esp, 0x18
xor ecx, ecx
test ebx, ebx
jle 0x431c40
mov eax, ecx
cdq
push 0x14
pop edi
idiv edi
mov edi, dword [ebp - 4]
mov al, byte [edx + 0x484f1c]
xor byte [ecx + edi], al
inc ecx
cmp ecx, ebx
jl 0x431c27
mov edi, ebx
lea eax, [edi + edi*2 + 0xd]
mov edi, dword [ebp + 0xc]
push eax
mov ecx, edi
call fcn.0042c43e
mov eax, dword [edi]
xor ecx, ecx
mov word [eax], cx
inc eax
inc eax
mov word [eax], cx
cmp byte [esi], cl
jne 0x431c68
mov esi, eax
jmp 0x431d41
cmp byte [ebp + 0x10], 0
jne 0x431c75
mov word [eax], 0x23
inc eax
inc eax
lea edi, [ebx + esi]
mov word [eax], cx
movzx ebx, byte [esi]
inc esi
mov byte [ebp + 0xb], 8
cmp byte [ebp + 0xb], 6
jge 0x431c93
cmp byte [ebp + 0xb], 0
jle 0x431cf5
cmp esi, edi
jne 0x431cf7
mov dl, bl
and dl, 0x3f
cmp byte [ebp + 0x10], 0
je 0x431ca9
movzx ecx, dl
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x431cda
test dl, dl
jne 0x431cb2
add dl, 0x2b
jmp 0x431cd8
cmp dl, 1
jne 0x431cbc
add dl, 0x2e
jmp 0x431cd8
cmp dl, 0xc
jae 0x431cc6
add dl, 0x2e
jmp 0x431cd8
cmp dl, 0x26
jae 0x431cd0
add dl, 0x35
jmp 0x431cd8
cmp dl, 0x40
jae 0x431cd8
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 0x431c83
mov word [eax], 0x3d
inc eax
inc eax
jmp 0x431c83
cmp esi, edi
jae 0x431d2e
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 0x431d2e
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 0x431d2e
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 0x431c83
and word [eax], 0
mov eax, dword [ebp + 0xc]
mov esi, dword [eax]
lea ecx, [ebp - 4]
call fcn.0042704a
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x432e77
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.00427e7e
add esp, 0x10
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop esi
ret
Function at 0x4337cb
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 0x500000
lea ecx, [ebp - 8]
call fcn.0042c29e
mov eax, dword [ebp - 8]
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
add eax, 0x100000
xor ecx, ecx
and eax, 0xfff00000
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 0x43380a
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.0046e7f0
neg bl
sbb ebx, ebx
and ebx, eax
mov dword [ebp - 0xc], ebx
xor ebx, ebx
cmp esi, ebx
jl 0x433927
jle 0x43391e
cmp dword [ebp + 0x18], ebx
jne 0x433855
mov eax, dword [ebp - 0xc]
cdq
cmp dword [ebp + 0x14], edx
jl 0x433855
jg 0x433851
cmp dword [ebp + 0x10], eax
jbe 0x433855
xor dl, dl
jmp 0x433857
mov dl, 1
cmp dword [ebp + 0x14], ebx
jl 0x43386e
jg 0x433867
cmp dword [ebp + 0x10], 0x10000000
jbe 0x43386e
mov esi, 0x10000000
jmp 0x433871
mov esi, dword [ebp + 0x10]
test dl, dl
mov ecx, dword [ebp + 0xc]
mov eax, esi
je 0x4338e6
mov esi, edi
sub esi, dword [ebp + 0x18]
xor eax, eax
cmp eax, dword [ebp + 0x14]
jl 0x433890
jg 0x43388d
cmp esi, dword [ebp + 0x10]
jbe 0x433890
mov esi, dword [ebp + 0x10]
push 1
push ebx
push ebx
push dword [ebp + 8]
call fcn.00427e7e
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.0046c720
push 0
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp + 8]
call fcn.00427e7e
mov ecx, dword [ebp - 0x14]
add esp, 0x1c
mov eax, edi
xor ebx, ebx
jmp 0x4338f4
cmp byte [ebp + 0x1c], 0
je 0x4338f4
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 0x43383c
jl 0x433927
cmp dword [ebp + 0x10], ebx
ja 0x43383c
lea ecx, [ebp - 8]
call fcn.0042704a
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x433b8f
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.00403c6d
cmp dword [ebp - 4], edi
je 0x433c34
push esi
mov esi, dword [ebp + 0xc]
cmp esi, edi
mov dword [ebp - 0xc], edi
jne 0x433bcc
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 0x433c02
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, edi
mov dword [ebx], eax
je 0x433c32
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
jmp 0x433c09
mov ebx, eax
call fcn.0042c183
mov ebx, eax
cmp ebx, edi
je 0x433c32
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 0x433c30
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.0040296e
mov eax, edi
pop edi
leave
ret
Function at 0x434073
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 0x434092
xor eax, eax
jmp 0x434256
push 0x4975e4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.0042a858
lea ecx, [ebp - 0xc]
call fcn.00426f09
push dword [edi + 4]
push dword [edi]
call fcn.0042a8c5
mov edi, eax
cmp edi, esi
pop ecx
pop ecx
je 0x4340d1
mov eax, dword [edi]
lea ecx, [ebp - 4]
push ecx
push edi
call dword [eax + 0xc]
cmp dword [ebp - 4], esi
jne 0x4340d6
mov eax, dword [edi]
push edi
call dword [eax + 8]
cmp dword [ebp - 4], esi
je 0x4340f0
mov eax, dword [0x497194]
cmp eax, esi
mov edi, dword [ebp - 4]
je 0x4340e9
cmp dword [ebp - 0xc], esi
jne 0x4340e9
call eax
mov esi, edi
jmp 0x434249
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push ebx
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x2e4]
push eax
push 0x4809d0
mov word [ebp - 0x2e4], si
call edi
cmp eax, esi
jg 0x434146
push ebx
lea eax, [ebp - 0x2e4]
push eax
push 0x4809c4
call edi
cmp eax, esi
jg 0x434146
mov eax, dword [0x497194]
cmp eax, esi
je 0x434248
cmp dword [ebp - 0xc], esi
jne 0x434248
call eax
jmp 0x434248
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], 0x63
lea edi, [ebp + eax*2 - 0x2e4]
call fcn.00428bd8
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.00403c6d
cmp dword [ebp - 8], esi
jne 0x4341bb
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
dec dword [ebp - 0x10]
jns 0x434157
lea ecx, [ebp - 8]
call fcn.0040296e
jmp 0x434129
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.0040296e
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 0x43421e
lea eax, [ebp - 0x2e4]
push eax
call fcn.00433c41
mov edi, eax
cmp edi, esi
pop ecx
je 0x43421e
mov eax, dword [edi]
lea ecx, [ebp - 4]
push ecx
push edi
call dword [eax + 0xc]
cmp dword [ebp - 4], esi
jne 0x43421e
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.0040296e
mov eax, dword [0x497194]
cmp eax, esi
je 0x434246
cmp dword [ebp - 0xc], esi
jne 0x434246
call eax
mov esi, edi
pop ebx
push 0x4975e4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x434473
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.0042c43e
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 0x4344c0
mov eax, dword [esi]
cmp word [eax], 0
jne 0x4344c0
lea eax, [ebx + 2]
push eax
mov ecx, esi
call fcn.0042c43e
inc ebx
push ebx
push dword [esi]
push dword [esp + 0x18]
call edi
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
cmp ax, 0x61
jb 0x43459c
cmp ax, 0x7a
ja 0x43459c
and eax, 0xffdf
push ebx
push esi
push 0x5c
pop ecx
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 3
mov word [ebp - 0x1c], ax
mov word [ebp - 0x24], ax
push ebx
lea eax, [ebp - 0x2c]
push eax
mov word [ebp - 0x1a], 0x3a
mov word [ebp - 0x18], cx
mov word [ebp - 0x16], bx
mov word [ebp - 0x2c], cx
mov word [ebp - 0x2a], cx
mov word [ebp - 0x28], 0x2e
mov word [ebp - 0x26], cx
mov word [ebp - 0x22], 0x3a
mov word [ebp - 0x20], bx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x43463b
push edi
push ebx
lea eax, [ebp - 0x30]
push eax
push 0xc
lea eax, [ebp - 0x40]
push eax
push ebx
push ebx
push 0x2d1080
push esi
mov dword [ebp - 0x30], 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 0x43463b
mov esi, dword [ebp - 0x3c]
cmp esi, 0xffffffff
je 0x43463b
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
push eax
push esi
mov dword [ebp - 8], ebx
call fcn.0042ac6b
cmp eax, ebx
pop ecx
pop ecx
jne 0x434643
xor eax, eax
inc eax
jmp 0x4346e0
push ebx
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.SETUPAPI.dll_CM_Get_Parent]
push ebx
push dword [ebp - 8]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.SETUPAPI.dll_CM_Get_DevNode_Status]
mov eax, dword [ebp - 0x14]
shr eax, 0xe
and al, 1
mov byte [ebp - 1], al
mov dword [ebp - 0xc], 1
mov esi, 0x208
push ebx
push esi
cmp al, bl
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
mov word [ebp - 0x248], bx
je 0x4346a7
call dword [sym.imp.SETUPAPI.dll_CM_Request_Device_EjectW]
jmp 0x4346ad
call dword [sym.imp.SETUPAPI.dll_CM_Query_And_Remove_SubTreeW]
cmp eax, ebx
jne 0x4346b6
cmp dword [ebp - 0x10], ebx
je 0x4346d3
push 0xc8
mov ecx, 0x496eb8
call fcn.0040b65c
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 3
jg 0x4346d5
mov al, byte [ebp - 1]
jmp 0x434684
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 0x43533d
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
push 0xf0000000
push 1
xor edi, edi
push edi
push edi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x435368
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x435454
push esi
lea eax, [ebp - 8]
push eax
push edi
push edi
push dword [ebp + 0x10]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x435398
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
jmp 0x435453
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x4353bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x435387
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push ebx
push 4
pop eax
push edi
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
push dword [ebp - 8]
mov dword [ebp - 4], eax
call esi
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
call fcn.0042c29e
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push ebx
push 2
push dword [ebp - 8]
call esi
mov esi, dword [ebp + 0x14]
push 0x48151a
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 0x10], esi
xor esi, esi
cmp dword [ebp - 4], edi
jbe 0x435435
movzx eax, byte [esi + ebx]
push eax
push str._02X
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_wsprintfA]
add dword [ebp - 0x10], 2
add esp, 0xc
inc esi
cmp esi, dword [ebp - 4]
jb 0x435415
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea ecx, [ebp - 0x18]
call fcn.0042704a
xor eax, eax
pop ebx
pop esi
pop edi
leave
ret

Function at 0x435492
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x4971b0], 0
jne 0x4354a0
call fcn.00435457
mov ecx, dword [esp + 8]
push esi
or esi, 0xffffffff
test ecx, ecx
je 0x4354cf
mov eax, dword [esp + 8]
push edi
movzx edi, byte [eax]
mov edx, esi
and edx, 0xff
xor edx, edi
mov edi, dword [0x4971b0]
shr esi, 8
xor esi, dword [edi + edx*4]
inc eax
dec ecx
jne 0x4354b1
pop edi
cmp dword [esp + 0x10], 0
not esi
je 0x4354eb
push esi
push str._08X
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov eax, esi
pop esi
ret

Function at 0x43569c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ebx, dword [esp + 0x10]
mov edi, eax
lea eax, [edi + 2]
push eax
mov ecx, ebx
call fcn.0042c43e
mov eax, dword [ebx]
and word [eax], 0
inc edi
push edi
push dword [ebx]
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_GetWindowTextW]
pop edi
pop esi
pop ebx
ret 4
Function at 0x43783d
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.00436214
mov esi, dword [eax]
push 0xffffffffffffffff
push dword [ebp + 0xc]
lea ecx, [ebp - 8]
call fcn.00436214
push dword [eax]
push esi
push str._r_nRegSetDHCP__s__s__r_n
push 0x496eb8
call fcn.0040b348
add esp, 0x10
lea ecx, [ebp - 4]
call fcn.0042704a
lea ecx, [ebp - 8]
call fcn.0042704a
mov esi, str.0.0.0.0
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 str.EnableDHCP
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 str.IPAddress
push dword [ebx]
call esi
push 9
lea eax, [ebp - 0x18]
push eax
push 7
push 0
push str.SubnetMask
push dword [ebx]
call esi
push edi
push 0x480934
push 7
push 0
push str.DefaultGateway
push dword [ebx]
call esi
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x43791a
cmp byte [eax], 0x2d
jne 0x4378fc
mov dword [ebp + 0xc], 0x48151a
cmp byte [eax], 0
je 0x43791a
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push dword [ebp + 0xc]
push edi
push 0
push str.NameServer
push dword [ebx]
call esi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret