joyce8/EMBER2024-capa huggingface dataset:
Function at 0x438fc9
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.00433afb
cmp byte [ebp + 0x10], 0
jne 0x43903e
cmp edi, 0x14
jge 0x438ff4
push 0x14
pop ebx
lea eax, [ebx + 2]
push eax
lea ecx, [ebp - 4]
call fcn.00433b3f
mov esi, dword [ebp - 4]
lea eax, [ebx + 2]
push eax
push 0
push esi
call fcn.0047b210
inc edi
push edi
push dword [ebp + 8]
push esi
call fcn.0047b530
add esp, 0x18
xor ecx, ecx
test ebx, ebx
jle 0x43903c
mov eax, ecx
cdq
push 0x14
pop edi
idiv edi
mov edi, dword [ebp - 4]
mov al, byte [edx + 0x4946ec]
xor byte [ecx + edi], al
inc ecx
cmp ecx, ebx
jl 0x439023
mov edi, ebx
lea eax, [edi + edi*2 + 0xd]
mov edi, dword [ebp + 0xc]
push eax
mov ecx, edi
call fcn.00433c6b
mov eax, dword [edi]
xor ecx, ecx
mov word [eax], cx
inc eax
inc eax
mov word [eax], cx
cmp byte [esi], cl
jne 0x439064
mov esi, eax
jmp 0x43913d
cmp byte [ebp + 0x10], 0
jne 0x439071
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 0x43908f
cmp byte [ebp + 0xb], 0
jle 0x4390f1
cmp esi, edi
jne 0x4390f3
mov dl, bl
and dl, 0x3f
cmp byte [ebp + 0x10], 0
je 0x4390a5
movzx ecx, dl
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x4390d6
test dl, dl
jne 0x4390ae
add dl, 0x2b
jmp 0x4390d4
cmp dl, 1
jne 0x4390b8
add dl, 0x2e
jmp 0x4390d4
cmp dl, 0xc
jae 0x4390c2
add dl, 0x2e
jmp 0x4390d4
cmp dl, 0x26
jae 0x4390cc
add dl, 0x35
jmp 0x4390d4
cmp dl, 0x40
jae 0x4390d4
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 0x43907f
mov word [eax], 0x3d
inc eax
inc eax
jmp 0x43907f
cmp esi, edi
jae 0x43912a
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 0x43912a
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 0x43912a
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 0x43907f
and word [eax], 0
mov eax, dword [ebp + 0xc]
mov esi, dword [eax]
lea ecx, [ebp - 4]
call fcn.0042eb98
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x43a46e
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.0042fa51
add esp, 0x10
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop esi
ret
Function at 0x43aea2
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.00433b18
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 0x43aee1
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.0047d950
neg bl
sbb ebx, ebx
and ebx, eax
mov dword [ebp - 0xc], ebx
xor ebx, ebx
cmp esi, ebx
jl 0x43affe
jle 0x43aff5
cmp dword [ebp + 0x18], ebx
jne 0x43af2c
mov eax, dword [ebp - 0xc]
cdq
cmp dword [ebp + 0x14], edx
jl 0x43af2c
jg 0x43af28
cmp dword [ebp + 0x10], eax
jbe 0x43af2c
xor dl, dl
jmp 0x43af2e
mov dl, 1
cmp dword [ebp + 0x14], ebx
jl 0x43af45
jg 0x43af3e
cmp dword [ebp + 0x10], 0x10000000
jbe 0x43af45
mov esi, 0x10000000
jmp 0x43af48
mov esi, dword [ebp + 0x10]
test dl, dl
mov ecx, dword [ebp + 0xc]
mov eax, esi
je 0x43afbd
mov esi, edi
sub esi, dword [ebp + 0x18]
xor eax, eax
cmp eax, dword [ebp + 0x14]
jl 0x43af67
jg 0x43af64
cmp esi, dword [ebp + 0x10]
jbe 0x43af67
mov esi, dword [ebp + 0x10]
push 1
push ebx
push ebx
push dword [ebp + 8]
call fcn.0042fa51
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.0047b530
push 0
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp + 8]
call fcn.0042fa51
mov ecx, dword [ebp - 0x14]
add esp, 0x1c
mov eax, edi
xor ebx, ebx
jmp 0x43afcb
cmp byte [ebp + 0x1c], 0
je 0x43afcb
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 0x43af13
jl 0x43affe
cmp dword [ebp + 0x10], ebx
ja 0x43af13
lea ecx, [ebp - 8]
call fcn.0042eb98
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43b757
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
mov esi, ecx
push 0x4a7658
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov bl, byte [esi + 0xb]
xor edi, edi
cmp dword [ebp + 0x10], edi
setl byte [ebp - 1]
and bl, 0x11
cmp byte [ebp - 1], 0
jne 0x43b78b
test byte [ebp + 0x10], 0x40
je 0x43b78d
xor bl, bl
mov esi, dword [ebp + 8]
push str.RANDOM
push esi
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x43b7e1
mov word [ebp - 0x4c], di
call fcn.004308d6
and edx, 0x7fffffff
push edx
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00470dcf
mov esi, dword [ebp + 0xc]
add esp, 0xc
push 3
mov ecx, esi
mov word [ebp - 0xe], di
call fcn.00433c6b
mov esi, dword [esi]
mov ax, word [ebp - 0x4c]
mov word [esi], ax
lea eax, [esi + 2]
jmp 0x43b914
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp byte [ebp - 1], 0
mov edi, dword [ebp + 0xc]
movsx eax, bl
mov byte [ebp + 0x13], 0
mov dword [ebp - 8], eax
jne 0x43b80d
cmp word [esi], 0x26
je 0x43b8bf
test bl, bl
jne 0x43b898
push 0x52
mov ecx, edi
call fcn.00433c6b
mov esi, dword [edi]
and word [esi], 0
push 0
mov dword [ebp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [edi]
push 0x50
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, eax
test ebx, ebx
jle 0x43b877
cmp word [esi], 0
jne 0x43b86f
lea eax, [ebx + 0xc]
push eax
mov ecx, edi
call fcn.00433c6b
mov esi, dword [edi]
and word [esi], 0
push 0
mov dword [ebp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [edi]
add ebx, 0xa
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, eax
test ebx, ebx
jg 0x43b911
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
jne 0x43b90d
cmp byte [ebp + 0x13], 0
jne 0x43b90b
cmp byte [ebp - 1], 0
mov byte [ebp + 0x13], 1
jne 0x43b90b
mov ecx, dword [ebp - 0xc]
push 0xffffffffffffffff
xor ebx, ebx
push ebx
push dword [ebp + 8]
call fcn.00410811
cmp eax, ebx
jne 0x43b8ce
cmp dword [ebp - 8], ebx
jne 0x43b8dc
cmp byte [ebp + 0x13], bl
jne 0x43b8dc
mov byte [ebp + 0x13], 1
jmp 0x43b80d
add esi, 2
mov dword [ebp + 8], esi
mov dword [ebp - 8], 1
jmp 0x43b898
mov eax, dword [eax]
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
lea eax, [ebx + 2]
push eax
mov ecx, edi
call fcn.00433c6b
dec ebx
mov esi, dword [edi]
mov dword [ebp + 0xc], esi
js 0x43b917
lea eax, [ebx + 1]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov cx, word [ecx]
add dword [ebp + 0xc], 2
add dword [ebp + 8], 2
dec eax
mov word [edx], cx
jne 0x43b8f2
jmp 0x43b917
xor ebx, ebx
test ebx, ebx
jle 0x43b917
lea eax, [esi + ebx*2]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
and word [eax], 0
mov eax, 0x4a7658
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x43c245
Capabilities:
Parse credit card information
Query environment variable

Disassembly:
push ebp
mov ebp, esp
cmp byte [ecx + 0x96], 0
jne 0x43c25d
test byte [ecx + 0xb], 0xf
jne 0x43c25d
pop ebp
jmp fcn.0043c14d
pop ebp
jmp fcn.0043b011

Function at 0x43c42e
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.004041e7
cmp dword [ebp - 4], edi
je 0x43c4d3
push esi
mov esi, dword [ebp + 0xc]
cmp esi, edi
mov dword [ebp - 0xc], edi
jne 0x43c46b
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 0x43c4a1
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, edi
mov dword [ebx], eax
je 0x43c4d1
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
jmp 0x43c4a8
mov ebx, eax
call fcn.004339fd
mov ebx, eax
cmp ebx, edi
je 0x43c4d1
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 0x43c4cf
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.00402ac9
mov eax, edi
pop edi
leave
ret
Function at 0x43c913
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 0x43c932
xor eax, eax
jmp 0x43caf6
push 0x4a7658
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.00432e77
lea ecx, [ebp - 0xc]
call fcn.0042eab6
push dword [edi + 4]
push dword [edi]
call fcn.00432ee4
mov edi, eax
cmp edi, esi
pop ecx
pop ecx
je 0x43c971
mov eax, dword [edi]
lea ecx, [ebp - 4]
push ecx
push edi
call dword [eax + 0xc]
cmp dword [ebp - 4], esi
jne 0x43c976
mov eax, dword [edi]
push edi
call dword [eax + 8]
cmp dword [ebp - 4], esi
je 0x43c990
mov eax, dword [0x4a723c]
cmp eax, esi
mov edi, dword [ebp - 4]
je 0x43c989
cmp dword [ebp - 0xc], esi
jne 0x43c989
call eax
mov esi, edi
jmp 0x43cae9
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push ebx
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x2e4]
push eax
push 0x48fe2c
mov word [ebp - 0x2e4], si
call edi
cmp eax, esi
jg 0x43c9e6
push ebx
lea eax, [ebp - 0x2e4]
push eax
push 0x48fe20
call edi
cmp eax, esi
jg 0x43c9e6
mov eax, dword [0x4a723c]
cmp eax, esi
je 0x43cae8
cmp dword [ebp - 0xc], esi
jne 0x43cae8
call eax
jmp 0x43cae8
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], 0x63
lea edi, [ebp + eax*2 - 0x2e4]
call fcn.004308d6
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.004041e7
cmp dword [ebp - 8], esi
jne 0x43ca5b
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
dec dword [ebp - 0x10]
jns 0x43c9f7
lea ecx, [ebp - 8]
call fcn.00402ac9
jmp 0x43c9c9
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.00402ac9
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 0x43cabe
lea eax, [ebp - 0x2e4]
push eax
call fcn.0043c4e0
mov edi, eax
cmp edi, esi
pop ecx
je 0x43cabe
mov eax, dword [edi]
lea ecx, [ebp - 4]
push ecx
push edi
call dword [eax + 0xc]
cmp dword [ebp - 4], esi
jne 0x43cabe
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.00402ac9
mov eax, dword [0x4a723c]
cmp eax, esi
je 0x43cae6
cmp dword [ebp - 0xc], esi
jne 0x43cae6
call eax
mov esi, edi
pop ebx
push 0x4a7658
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x43cd46
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.00433c6b
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 0x43cd93
mov eax, dword [esi]
cmp word [eax], 0
jne 0x43cd93
lea eax, [ebx + 2]
push eax
mov ecx, esi
call fcn.00433c6b
inc ebx
push ebx
push dword [esi]
push dword [esp + 0x18]
call edi
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
cmp ax, 0x61
jb 0x43ce6f
cmp ax, 0x7a
ja 0x43ce6f
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 0x43cf10
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 0x43cf10
mov esi, dword [ebp - 0x3c]
cmp esi, 0xffffffff
je 0x43cf10
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
push ebx
push eax
push esi
mov dword [ebp - 8], ebx
call fcn.00433346
add esp, 0xc
cmp eax, ebx
jne 0x43cf18
xor eax, eax
inc eax
jmp 0x43cfb6
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 0x43cf7c
call dword [sym.imp.SETUPAPI.dll_CM_Request_Device_EjectW]
jmp 0x43cf82
call dword [sym.imp.SETUPAPI.dll_CM_Query_And_Remove_SubTreeW]
cmp eax, ebx
jne 0x43cf8b
cmp dword [ebp - 0x10], ebx
je 0x43cfa9
push ebx
push 0xc8
mov ecx, 0x4a6f08
call fcn.0040ce12
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 3
jg 0x43cfab
mov al, byte [ebp - 1]
jmp 0x43cf59
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 0x43d9c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
push edi
jne 0x43da54
cmp dword [ebp + 0xc], esi
jne 0x43d9df
mov eax, 0x80070057
jmp 0x43da7e
cmp dword [0x4a7250], esi
jle 0x43da7c
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 0x43da19
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jne 0x43da7e
jmp 0x43da63
push esi
lea eax, [ebp + 8]
push eax
push dword [0x4a7250]
push dword [0x4a7628]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x4a7628]
cmp eax, esi
mov dword [0x4a7250], esi
je 0x43da4c
call fcn.0042eb81
mov dword [0x4a7628], esi
jmp 0x43da7c
push dword [ebp + 8]
call fcn.0043365e
mov edi, eax
cmp edi, esi
pop ecx
jne 0x43da68
xor eax, eax
inc eax
jmp 0x43da7e
push dword [ebp + 0xc]
push edi
call fcn.0043d68f
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 0x43f399
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.0043ddff
mov esi, dword [eax]
push 0xffffffffffffffff
push dword [ebp + 0xc]
lea ecx, [ebp - 8]
call fcn.0043ddff
push dword [eax]
push esi
push str._r_nRegSetDHCP__s__s__r_n
push 0x4a6f08
call fcn.0040c8e2
add esp, 0x10
lea ecx, [ebp - 4]
call fcn.0042eb98
lea ecx, [ebp - 8]
call fcn.0042eb98
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 0x496134
push 7
push 0
push str.DefaultGateway
push dword [ebx]
call esi
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x43f476
cmp byte [eax], 0x2d
jne 0x43f458
mov dword [ebp + 0xc], 0x4906be
cmp byte [eax], 0
je 0x43f476
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
Function at 0x444e02
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push ecx
lea ecx, [ebp - 0x20]
call fcn.00435bf3
lea eax, [ebp + 8]
push eax
call fcn.0042ebab
pop ecx
push 5
lea ecx, [ebp - 0xc]
call fcn.00433c42
push 0x14
lea ecx, [ebp - 4]
call fcn.00433c42
push 2
lea eax, [ebp + 8]
push eax
xor edi, edi
push 0x4967ac
mov dword [ebp - 8], edi
call fcn.00435950
add esp, 0xc
xor ebx, ebx
inc ebx
push ebx
movzx eax, al
push 0x2c
pop esi
mov dword [ebp - 0x10], eax
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.0043fb4e
push edi
lea ecx, [ebp - 0xc]
push ecx
push eax
call fcn.004364f8
mov eax, dword [ebp + 8]
add esp, 0xc
cmp word [eax], si
jne 0x444e9a
add dword [ebp + 8], 2
push ebx
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.0043fb4e
push edi
lea ecx, [ebp - 4]
push ecx
push eax
call fcn.004364f8
add esp, 0xc
mov eax, dword [ebp + 8]
cmp word [eax], si
jne 0x444ec2
add dword [ebp + 8], 2
push esi
lea eax, [ebp - 8]
push eax
push ebx
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.0043fb4e
push eax
call fcn.00436745
add esp, 0xc
mov eax, dword [ebp - 0xc]
cmp word [eax], di
jne 0x444ed4
mov ebx, 0x80070057
jmp 0x444fd2
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 4]
jne 0x444ee6
cmp dword [ebp - 0x10], edi
jne 0x444ee6
cmp word [eax], di
je 0x444eca
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
lea eax, [esi + 0x214]
push eax
lea ecx, [ebp - 4]
call fcn.00433c6b
mov eax, dword [ebp - 4]
push eax
lea esi, [eax + esi*2 + 8]
mov dword [ebp - 0x14], edi
call fcn.0040ec9c
push dword [ebp - 0xc]
mov edi, eax
call fcn.0040ec9c
pop ecx
pop ecx
xor ecx, ecx
cmp dword [ebp - 0x10], ecx
mov dword [ebp + 8], eax
jne 0x444f34
cmp dword [ebp - 8], ecx
jne 0x444f34
push ecx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
jmp 0x444f76
cmp dword [ebp - 8], 2
je 0x444f7e
cmp dword [ebp - 0x10], ecx
jne 0x444f7e
push edi
call fcn.0047ab2d
push 0
mov esi, eax
push 0x4a7218
neg esi
sbb esi, esi
push str.KERNEL32.DLL
push str.CreateSymbolicLinkW
neg esi
call fcn.0042fb47
mov eax, dword [0x4a7218]
add esp, 0x14
test eax, eax
je 0x444fd2
push esi
push edi
push dword [ebp + 8]
call eax
test eax, eax
je 0x444fca
xor ebx, ebx
jmp 0x444fd2
cmp word [edi], cx
jne 0x444f8c
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x444fc2
lea eax, [ebp - 0x14]
push eax
lea eax, [esi + 8]
push eax
push 0x208
push edi
call fcn.00434318
push esi
push dword [ebp + 8]
mov word [esi], 0x5c
mov word [esi + 2], 0x3f
mov word [esi + 4], 0x3f
mov word [esi + 6], 0x5c
call fcn.00432158
add esp, 0x18
test eax, eax
je 0x444fca
xor eax, eax
jmp 0x444fd0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea ecx, [ebp - 4]
call fcn.0042eb98
lea ecx, [ebp - 0xc]
call fcn.0042eb98
lea ecx, [ebp - 0x20]
call fcn.0042eb98
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8
Function at 0x4450b1
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push edi
mov edi, dword [esp + 8]
mov eax, dword [edi]
and word [eax], 0
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4450f4
push esi
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x4450ed
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov ecx, edi
call fcn.0043de31
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
mov eax, edi
pop edi
ret
Function at 0x446996
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov eax, esi
call fcn.0043ce55
and word [ebp - 0xc], 0
and word [ebp - 2], 0
mov ebx, eax
lea eax, [ebp - 8]
push eax
mov word [ebp - 0x18], 0x20
mov word [ebp - 0x16], 0x2a
mov word [ebp - 0x14], 0x20
mov word [ebp - 0x12], si
mov word [ebp - 0x10], 0x3a
mov word [ebp - 0xe], 0x2c
mov word [ebp - 8], si
mov word [ebp - 6], 0x3a
mov word [ebp - 4], 0x5c
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
je 0x4469f6
cmp ebx, 2
je 0x446a06
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, 0x4a6f08
call fcn.0044358e
pop ebx
leave
ret