joyce8/EMBER2024-capa huggingface dataset:
Function at 0x437eec
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.00432b41
cmp byte [ebp + 0x10], 0
jne 0x437f61
cmp edi, 0x14
jge 0x437f17
push 0x14
pop ebx
lea eax, [ebx + 2]
push eax
lea ecx, [ebp - 4]
call fcn.00432b85
mov esi, dword [ebp - 4]
lea eax, [ebx + 2]
push eax
push 0
push esi
call fcn.00479cf0
inc edi
push edi
push dword [ebp + 8]
push esi
call fcn.0047a010
add esp, 0x18
xor ecx, ecx
test ebx, ebx
jle 0x437f5f
mov eax, ecx
cdq
push 0x14
pop edi
idiv edi
mov edi, dword [ebp - 4]
mov al, byte [edx + 0x493694]
xor byte [ecx + edi], al
inc ecx
cmp ecx, ebx
jl 0x437f46
mov edi, ebx
lea eax, [edi + edi*2 + 0xd]
mov edi, dword [ebp + 0xc]
push eax
mov ecx, edi
call fcn.00432cfe
mov eax, dword [edi]
xor ecx, ecx
mov word [eax], cx
inc eax
inc eax
mov word [eax], cx
cmp byte [esi], cl
jne 0x437f87
mov esi, eax
jmp 0x438060
cmp byte [ebp + 0x10], 0
jne 0x437f94
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 0x437fb2
cmp byte [ebp + 0xb], 0
jle 0x438014
cmp esi, edi
jne 0x438016
mov dl, bl
and dl, 0x3f
cmp byte [ebp + 0x10], 0
je 0x437fc8
movzx ecx, dl
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x437ff9
test dl, dl
jne 0x437fd1
add dl, 0x2b
jmp 0x437ff7
cmp dl, 1
jne 0x437fdb
add dl, 0x2e
jmp 0x437ff7
cmp dl, 0xc
jae 0x437fe5
add dl, 0x2e
jmp 0x437ff7
cmp dl, 0x26
jae 0x437fef
add dl, 0x35
jmp 0x437ff7
cmp dl, 0x40
jae 0x437ff7
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 0x437fa2
mov word [eax], 0x3d
inc eax
inc eax
jmp 0x437fa2
cmp esi, edi
jae 0x43804d
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 0x43804d
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 0x43804d
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 0x437fa2
and word [eax], 0
mov eax, dword [ebp + 0xc]
mov esi, dword [eax]
lea ecx, [ebp - 4]
call fcn.0042dd2d
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x439391
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.0042ec1a
add esp, 0x10
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop esi
ret
Function at 0x439dc5
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.00432b5e
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 0x439e04
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.0047c430
neg bl
sbb ebx, ebx
and ebx, eax
mov dword [ebp - 0xc], ebx
xor ebx, ebx
cmp esi, ebx
jl 0x439f21
jle 0x439f18
cmp dword [ebp + 0x18], ebx
jne 0x439e4f
mov eax, dword [ebp - 0xc]
cdq
cmp dword [ebp + 0x14], edx
jl 0x439e4f
jg 0x439e4b
cmp dword [ebp + 0x10], eax
jbe 0x439e4f
xor dl, dl
jmp 0x439e51
mov dl, 1
cmp dword [ebp + 0x14], ebx
jl 0x439e68
jg 0x439e61
cmp dword [ebp + 0x10], 0x10000000
jbe 0x439e68
mov esi, 0x10000000
jmp 0x439e6b
mov esi, dword [ebp + 0x10]
test dl, dl
mov ecx, dword [ebp + 0xc]
mov eax, esi
je 0x439ee0
mov esi, edi
sub esi, dword [ebp + 0x18]
xor eax, eax
cmp eax, dword [ebp + 0x14]
jl 0x439e8a
jg 0x439e87
cmp esi, dword [ebp + 0x10]
jbe 0x439e8a
mov esi, dword [ebp + 0x10]
push 1
push ebx
push ebx
push dword [ebp + 8]
call fcn.0042ec1a
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.0047a010
push 0
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp + 8]
call fcn.0042ec1a
mov ecx, dword [ebp - 0x14]
add esp, 0x1c
mov eax, edi
xor ebx, ebx
jmp 0x439eee
cmp byte [ebp + 0x1c], 0
je 0x439eee
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 0x439e36
jl 0x439f21
cmp dword [ebp + 0x10], ebx
ja 0x439e36
lea ecx, [ebp - 8]
call fcn.0042dd2d
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43a67a
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
mov esi, ecx
push 0x4a6658
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 0x43a6ae
test byte [ebp + 0x10], 0x40
je 0x43a6b0
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 0x43a704
mov word [ebp - 0x4c], di
call fcn.0042fa40
and edx, 0x7fffffff
push edx
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0046f8bf
mov esi, dword [ebp + 0xc]
add esp, 0xc
push 3
mov ecx, esi
mov word [ebp - 0xe], di
call fcn.00432cfe
mov esi, dword [esi]
mov ax, word [ebp - 0x4c]
mov word [esi], ax
lea eax, [esi + 2]
jmp 0x43a837
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 0x43a730
cmp word [esi], 0x26
je 0x43a7e2
test bl, bl
jne 0x43a7bb
push 0x52
mov ecx, edi
call fcn.00432cfe
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 0x43a79a
cmp word [esi], 0
jne 0x43a792
lea eax, [ebx + 0xc]
push eax
mov ecx, edi
call fcn.00432cfe
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 0x43a834
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
jne 0x43a830
cmp byte [ebp + 0x13], 0
jne 0x43a82e
cmp byte [ebp - 1], 0
mov byte [ebp + 0x13], 1
jne 0x43a82e
mov ecx, dword [ebp - 0xc]
push 0xffffffffffffffff
xor ebx, ebx
push ebx
push dword [ebp + 8]
call fcn.0041065a
cmp eax, ebx
jne 0x43a7f1
cmp dword [ebp - 8], ebx
jne 0x43a7ff
cmp byte [ebp + 0x13], bl
jne 0x43a7ff
mov byte [ebp + 0x13], 1
jmp 0x43a730
add esi, 2
mov dword [ebp + 8], esi
mov dword [ebp - 8], 1
jmp 0x43a7bb
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.00432cfe
dec ebx
mov esi, dword [edi]
mov dword [ebp + 0xc], esi
js 0x43a83a
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 0x43a815
jmp 0x43a83a
xor ebx, ebx
test ebx, ebx
jle 0x43a83a
lea eax, [esi + ebx*2]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
and word [eax], 0
mov eax, 0x4a6658
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x43b168
Capabilities:
Parse credit card information
Query environment variable

Disassembly:
push ebp
mov ebp, esp
cmp byte [ecx + 0x96], 0
jne 0x43b180
test byte [ecx + 0xb], 0xf
jne 0x43b180
pop ebp
jmp fcn.0043b070
pop ebp
jmp fcn.00439f34

Function at 0x43b335
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.004041da
cmp dword [ebp - 4], edi
je 0x43b3da
push esi
mov esi, dword [ebp + 0xc]
cmp esi, edi
mov dword [ebp - 0xc], edi
jne 0x43b372
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 0x43b3a8
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, edi
mov dword [ebx], eax
je 0x43b3d8
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
jmp 0x43b3af
mov ebx, eax
call fcn.0046d69a
mov ebx, eax
cmp ebx, edi
je 0x43b3d8
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 0x43b3d6
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.00402ad9
mov eax, edi
pop edi
leave
ret
Function at 0x43b819
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 0x43b838
xor eax, eax
jmp 0x43b9fc
push 0x4a6658
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.00431ead
lea ecx, [ebp - 0xc]
call fcn.0040b2b1
push dword [edi + 4]
push dword [edi]
call fcn.00431f1a
mov edi, eax
cmp edi, esi
pop ecx
pop ecx
je 0x43b877
mov eax, dword [edi]
lea ecx, [ebp - 4]
push ecx
push edi
call dword [eax + 0xc]
cmp dword [ebp - 4], esi
jne 0x43b87c
mov eax, dword [edi]
push edi
call dword [eax + 8]
cmp dword [ebp - 4], esi
je 0x43b896
mov eax, dword [0x4a6238]
cmp eax, esi
mov edi, dword [ebp - 4]
je 0x43b88f
cmp dword [ebp - 0xc], esi
jne 0x43b88f
call eax
mov esi, edi
jmp 0x43b9ef
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push ebx
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x2e4]
push eax
push 0x48ee2c
mov word [ebp - 0x2e4], si
call edi
cmp eax, esi
jg 0x43b8ec
push ebx
lea eax, [ebp - 0x2e4]
push eax
push 0x48ee20
call edi
cmp eax, esi
jg 0x43b8ec
mov eax, dword [0x4a6238]
cmp eax, esi
je 0x43b9ee
cmp dword [ebp - 0xc], esi
jne 0x43b9ee
call eax
jmp 0x43b9ee
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], 0x63
lea edi, [ebp + eax*2 - 0x2e4]
call fcn.0042fa40
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.004041da
cmp dword [ebp - 8], esi
jne 0x43b961
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
dec dword [ebp - 0x10]
jns 0x43b8fd
lea ecx, [ebp - 8]
call fcn.00402ad9
jmp 0x43b8cf
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.00402ad9
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 0x43b9c4
lea eax, [ebp - 0x2e4]
push eax
call fcn.0043b3e7
mov edi, eax
cmp edi, esi
pop ecx
je 0x43b9c4
mov eax, dword [edi]
lea ecx, [ebp - 4]
push ecx
push edi
call dword [eax + 0xc]
cmp dword [ebp - 4], esi
jne 0x43b9c4
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.00402ad9
mov eax, dword [0x4a6238]
cmp eax, esi
je 0x43b9ec
cmp dword [ebp - 0xc], esi
jne 0x43b9ec
call eax
mov esi, edi
pop ebx
push 0x4a6658
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x43bc4c
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.00432cfe
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 0x43bc99
mov eax, dword [esi]
cmp word [eax], 0
jne 0x43bc99
lea eax, [ebx + 2]
push eax
mov ecx, esi
call fcn.00432cfe
inc ebx
push ebx
push dword [esi]
push dword [esp + 0x18]
call edi
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
cmp ax, 0x61
jb 0x43bd75
cmp ax, 0x7a
ja 0x43bd75
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 0x43be16
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 0x43be16
mov esi, dword [ebp - 0x3c]
cmp esi, 0xffffffff
je 0x43be16
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.0043237c
add esp, 0xc
cmp eax, ebx
jne 0x43be1e
xor eax, eax
inc eax
jmp 0x43bebb
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 0x43be82
call dword [sym.imp.SETUPAPI.dll_CM_Request_Device_EjectW]
jmp 0x43be88
call dword [sym.imp.SETUPAPI.dll_CM_Query_And_Remove_SubTreeW]
cmp eax, ebx
jne 0x43be91
cmp dword [ebp - 0x10], ebx
je 0x43beae
push 0xc8
mov ecx, 0x4a5f08
call fcn.0040ce62
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 3
jg 0x43beb0
mov al, byte [ebp - 1]
jmp 0x43be5f
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 0x43c8c5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
push edi
jne 0x43c959
cmp dword [ebp + 0xc], esi
jne 0x43c8e4
mov eax, 0x80070057
jmp 0x43c983
cmp dword [0x4a624c], esi
jle 0x43c981
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 0x43c91e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jne 0x43c983
jmp 0x43c968
push esi
lea eax, [ebp + 8]
push eax
push dword [0x4a624c]
push dword [0x4a6628]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x4a6628]
cmp eax, esi
mov dword [0x4a624c], esi
je 0x43c951
call fcn.0042dd16
mov dword [0x4a6628], esi
jmp 0x43c981
push dword [ebp + 8]
call fcn.00432709
mov edi, eax
cmp edi, esi
pop ecx
jne 0x43c96d
xor eax, eax
inc eax
jmp 0x43c983
push dword [ebp + 0xc]
push edi
call fcn.0043c594
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 0x43e2cc
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.0043cd32
mov esi, dword [eax]
push 0xffffffffffffffff
push dword [ebp + 0xc]
lea ecx, [ebp - 8]
call fcn.0043cd32
push dword [eax]
push esi
push str._r_nRegSetDHCP__s__s__r_n
push 0x4a5f08
call fcn.0040c938
add esp, 0x10
lea ecx, [ebp - 4]
call fcn.0042dd2d
lea ecx, [ebp - 8]
call fcn.0042dd2d
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 0x48e984
push 7
push 0
push str.DefaultGateway
push dword [ebx]
call esi
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x43e3a9
cmp byte [eax], 0x2d
jne 0x43e38b
mov dword [ebp + 0xc], 0x48f6be
cmp byte [eax], 0
je 0x43e3a9
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 0x43e9f8
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
je 0x43ea0b
or dword [ebp + 0x14], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00432cb7
cmp dword [ebp + 8], ebx
je 0x43ea29
mov eax, dword [ebp + 0xc]
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [eax]
lea ecx, [ebp - 0x1c]
call fcn.00432d74
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push edi
mov byte [eax], bl
lea eax, [ebp - 8]
push eax
push 0xf003f
push ebx
push str.SYSTEMCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
push 0x80000002
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, dword [ebp - 0x20]
mov esi, eax
shl edi, 2
lea eax, [edi + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.00432b5e
cmp esi, ebx
mov dword [ebp - 0x10], ebx
jne 0x43eb3b
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
jle 0x43eb3b
mov esi, dword [ebp - 0x18]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x24]
push eax
push esi
push dword [ebp - 0xc]
mov dword [ebp - 0x24], edi
mov byte [esi], bl
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp byte [esi], 0x7b
jne 0x43eafe
mov eax, dword [ebp + 0x14]
cmp eax, ebx
jl 0x43eac7
cmp dword [ebp - 0x10], eax
jge 0x43eb0b
inc dword [ebp - 0x10]
cmp dword [ebp + 8], ebx
je 0x43eafe
lea ecx, [ebp - 4]
call fcn.00432cb7
push str.Name
push esi
lea esi, [ebp - 4]
call fcn.0043e953
pop ecx
pop ecx
push dword [ebp - 0x1c]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x43eb1a
mov ecx, esi
call fcn.0042dd2d
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jl 0x43ea99
jmp 0x43eb3b
jne 0x43eb3b
mov ecx, dword [ebp + 0xc]
push 0xffffffffffffffff
push esi
call fcn.00432bf2
jmp 0x43eb3b
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 4]
push eax
call fcn.0043cd92
mov ecx, dword [ebp + 0xc]
push 0xffffffffffffffff
push dword [ebp - 0x18]
call fcn.00432bf2
lea ecx, [ebp - 4]
call fcn.0042dd2d
cmp dword [ebp - 8], ebx
pop edi
je 0x43eb4a
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
cmp byte [eax], bl
je 0x43eb6a
mov esi, dword [ebp + 0x10]
mov ecx, dword [esi]
cmp word [ecx], bx
jne 0x43eb6a
push str.Name
push eax
call fcn.0043e953
pop ecx
pop ecx
mov eax, dword [ebp + 0xc]
mov esi, dword [eax]
lea ecx, [ebp - 0x18]
call fcn.0042dd2d
lea ecx, [ebp - 0x1c]
call fcn.0042dd2d
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4437e4
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.00434bb0
lea eax, [ebp + 8]
push eax
call fcn.0042dd40
pop ecx
push 5
lea ecx, [ebp - 0xc]
call fcn.00432cd5
push 0x14
lea ecx, [ebp - 4]
call fcn.00432cd5
push 2
lea eax, [ebp + 8]
push eax
xor edi, edi
push 0x49568c
mov dword [ebp - 8], edi
call fcn.004349fd
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.0043eb85
push edi
lea ecx, [ebp - 0xc]
push ecx
push eax
call fcn.0043541b
mov eax, dword [ebp + 8]
add esp, 0xc
cmp word [eax], si
jne 0x44387c
add dword [ebp + 8], 2
push ebx
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.0043eb85
push edi
lea ecx, [ebp - 4]
push ecx
push eax
call fcn.0043541b
add esp, 0xc
mov eax, dword [ebp + 8]
cmp word [eax], si
jne 0x4438a4
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.0043eb85
push eax
call fcn.00435668
add esp, 0xc
mov eax, dword [ebp - 0xc]
cmp word [eax], di
jne 0x4438b6
mov ebx, 0x80070057
jmp 0x4439b4
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 4]
jne 0x4438c8
cmp dword [ebp - 0x10], edi
jne 0x4438c8
cmp word [eax], di
je 0x4438ac
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
lea eax, [esi + 0x214]
push eax
lea ecx, [ebp - 4]
call fcn.00432cfe
mov eax, dword [ebp - 4]
push eax
lea esi, [eax + esi*2 + 8]
mov dword [ebp - 0x14], edi
call fcn.0040e84c
push dword [ebp - 0xc]
mov edi, eax
call fcn.0040e84c
pop ecx
pop ecx
xor ecx, ecx
cmp dword [ebp - 0x10], ecx
mov dword [ebp + 8], eax
jne 0x443916
cmp dword [ebp - 8], ecx
jne 0x443916
push ecx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
jmp 0x443958
cmp dword [ebp - 8], 2
je 0x443960
cmp dword [ebp - 0x10], ecx
jne 0x443960
push edi
call fcn.00479608
push 0
mov esi, eax
push 0x4a6214
neg esi
sbb esi, esi
push str.KERNEL32.DLL
push str.CreateSymbolicLinkW
neg esi
call fcn.0042ed10
mov eax, dword [0x4a6214]
add esp, 0x14
test eax, eax
je 0x4439b4
push esi
push edi
push dword [ebp + 8]
call eax
test eax, eax
je 0x4439ac
xor ebx, ebx
jmp 0x4439b4
cmp word [edi], cx
jne 0x44396e
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4439a4
lea eax, [ebp - 0x14]
push eax
lea eax, [esi + 8]
push eax
push 0x208
push edi
call fcn.004333c5
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.00431203
add esp, 0x18
test eax, eax
je 0x4439ac
xor eax, eax
jmp 0x4439b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea ecx, [ebp - 4]
call fcn.0042dd2d
lea ecx, [ebp - 0xc]
call fcn.0042dd2d
lea ecx, [ebp - 0x20]
call fcn.0042dd2d
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8