joyce8/EMBER2024-capa huggingface dataset:
Function at 0x431f41
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.0042c693
cmp byte [ebp + 0x10], 0
jne 0x431fb6
cmp edi, 0x14
jge 0x431f6c
push 0x14
pop ebx
lea eax, [ebx + 2]
push eax
lea ecx, [ebp - 4]
call fcn.0042c6d7
mov esi, dword [ebp - 4]
lea eax, [ebx + 2]
push eax
push 0
push esi
call fcn.0046c9b0
inc edi
push edi
push dword [ebp + 8]
push esi
call fcn.0046cbf0
add esp, 0x18
xor ecx, ecx
test ebx, ebx
jle 0x431fb4
mov eax, ecx
cdq
push 0x14
pop edi
idiv edi
mov edi, dword [ebp - 4]
mov al, byte [edx + 0x484f24]
xor byte [ecx + edi], al
inc ecx
cmp ecx, ebx
jl 0x431f9b
mov edi, ebx
lea eax, [edi + edi*2 + 0xd]
mov edi, dword [ebp + 0xc]
push eax
mov ecx, edi
call fcn.0042c850
mov eax, dword [edi]
xor ecx, ecx
mov word [eax], cx
inc eax
inc eax
mov word [eax], cx
cmp byte [esi], cl
jne 0x431fdc
mov esi, eax
jmp 0x4320b5
cmp byte [ebp + 0x10], 0
jne 0x431fe9
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 0x432007
cmp byte [ebp + 0xb], 0
jle 0x432069
cmp esi, edi
jne 0x43206b
mov dl, bl
and dl, 0x3f
cmp byte [ebp + 0x10], 0
je 0x43201d
movzx ecx, dl
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x43204e
test dl, dl
jne 0x432026
add dl, 0x2b
jmp 0x43204c
cmp dl, 1
jne 0x432030
add dl, 0x2e
jmp 0x43204c
cmp dl, 0xc
jae 0x43203a
add dl, 0x2e
jmp 0x43204c
cmp dl, 0x26
jae 0x432044
add dl, 0x35
jmp 0x43204c
cmp dl, 0x40
jae 0x43204c
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 0x431ff7
mov word [eax], 0x3d
inc eax
inc eax
jmp 0x431ff7
cmp esi, edi
jae 0x4320a2
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 0x4320a2
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 0x4320a2
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 0x431ff7
and word [eax], 0
mov eax, dword [ebp + 0xc]
mov esi, dword [eax]
lea ecx, [ebp - 4]
call fcn.00427365
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4331ee
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.004281cd
add esp, 0x10
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop esi
ret
Function at 0x433b51
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.0042c6b0
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 0x433b90
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.0046ecc0
neg bl
sbb ebx, ebx
and ebx, eax
mov dword [ebp - 0xc], ebx
xor ebx, ebx
cmp esi, ebx
jl 0x433cad
jle 0x433ca4
cmp dword [ebp + 0x18], ebx
jne 0x433bdb
mov eax, dword [ebp - 0xc]
cdq
cmp dword [ebp + 0x14], edx
jl 0x433bdb
jg 0x433bd7
cmp dword [ebp + 0x10], eax
jbe 0x433bdb
xor dl, dl
jmp 0x433bdd
mov dl, 1
cmp dword [ebp + 0x14], ebx
jl 0x433bf4
jg 0x433bed
cmp dword [ebp + 0x10], 0x10000000
jbe 0x433bf4
mov esi, 0x10000000
jmp 0x433bf7
mov esi, dword [ebp + 0x10]
test dl, dl
mov ecx, dword [ebp + 0xc]
mov eax, esi
je 0x433c6c
mov esi, edi
sub esi, dword [ebp + 0x18]
xor eax, eax
cmp eax, dword [ebp + 0x14]
jl 0x433c16
jg 0x433c13
cmp esi, dword [ebp + 0x10]
jbe 0x433c16
mov esi, dword [ebp + 0x10]
push 1
push ebx
push ebx
push dword [ebp + 8]
call fcn.004281cd
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.0046cbf0
push 0
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp + 8]
call fcn.004281cd
mov ecx, dword [ebp - 0x14]
add esp, 0x1c
mov eax, edi
xor ebx, ebx
jmp 0x433c7a
cmp byte [ebp + 0x1c], 0
je 0x433c7a
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 0x433bc2
jl 0x433cad
cmp dword [ebp + 0x10], ebx
ja 0x433bc2
lea ecx, [ebp - 8]
call fcn.00427365
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x433f15
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.00403ce4
cmp dword [ebp - 4], edi
je 0x433fba
push esi
mov esi, dword [ebp + 0xc]
cmp esi, edi
mov dword [ebp - 0xc], edi
jne 0x433f52
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 0x433f88
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, edi
mov dword [ebx], eax
je 0x433fb8
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
jmp 0x433f8f
mov ebx, eax
call fcn.0042c595
mov ebx, eax
cmp ebx, edi
je 0x433fb8
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 0x433fb6
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.00402a26
mov eax, edi
pop edi
leave
ret
Function at 0x4343f9
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 0x434418
xor eax, eax
jmp 0x4345dc
push 0x4975e4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.0042ac18
lea ecx, [ebp - 0xc]
call fcn.00409e5c
push dword [edi + 4]
push dword [edi]
call fcn.0042ac85
mov edi, eax
cmp edi, esi
pop ecx
pop ecx
je 0x434457
mov eax, dword [edi]
lea ecx, [ebp - 4]
push ecx
push edi
call dword [eax + 0xc]
cmp dword [ebp - 4], esi
jne 0x43445c
mov eax, dword [edi]
push edi
call dword [eax + 8]
cmp dword [ebp - 4], esi
je 0x434476
mov eax, dword [0x497194]
cmp eax, esi
mov edi, dword [ebp - 4]
je 0x43446f
cmp dword [ebp - 0xc], esi
jne 0x43446f
call eax
mov esi, edi
jmp 0x4345cf
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push ebx
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x2e4]
push eax
push 0x480d9c
mov word [ebp - 0x2e4], si
call edi
cmp eax, esi
jg 0x4344cc
push ebx
lea eax, [ebp - 0x2e4]
push eax
push 0x480d90
call edi
cmp eax, esi
jg 0x4344cc
mov eax, dword [0x497194]
cmp eax, esi
je 0x4345ce
cmp dword [ebp - 0xc], esi
jne 0x4345ce
call eax
jmp 0x4345ce
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], 0x63
lea edi, [ebp + eax*2 - 0x2e4]
call fcn.00428f27
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.00403ce4
cmp dword [ebp - 8], esi
jne 0x434541
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
dec dword [ebp - 0x10]
jns 0x4344dd
lea ecx, [ebp - 8]
call fcn.00402a26
jmp 0x4344af
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.00402a26
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 0x4345a4
lea eax, [ebp - 0x2e4]
push eax
call fcn.00433fc7
mov edi, eax
cmp edi, esi
pop ecx
je 0x4345a4
mov eax, dword [edi]
lea ecx, [ebp - 4]
push ecx
push edi
call dword [eax + 0xc]
cmp dword [ebp - 4], esi
jne 0x4345a4
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.00402a26
mov eax, dword [0x497194]
cmp eax, esi
je 0x4345cc
cmp dword [ebp - 0xc], esi
jne 0x4345cc
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 0x434894
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.0042c850
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 0x4348e1
mov eax, dword [esi]
cmp word [eax], 0
jne 0x4348e1
lea eax, [ebx + 2]
push eax
mov ecx, esi
call fcn.0042c850
inc ebx
push ebx
push dword [esi]
push dword [esp + 0x18]
call edi
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
cmp ax, 0x61
jb 0x4349bd
cmp ax, 0x7a
ja 0x4349bd
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 0x434a5c
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 0x434a5c
mov esi, dword [ebp - 0x3c]
cmp esi, 0xffffffff
je 0x434a5c
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
push eax
push esi
mov dword [ebp - 8], ebx
call fcn.0042b02b
cmp eax, ebx
pop ecx
pop ecx
jne 0x434a64
xor eax, eax
inc eax
jmp 0x434b01
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 0x434ac8
call dword [sym.imp.SETUPAPI.dll_CM_Request_Device_EjectW]
jmp 0x434ace
call dword [sym.imp.SETUPAPI.dll_CM_Query_And_Remove_SubTreeW]
cmp eax, ebx
jne 0x434ad7
cmp dword [ebp - 0x10], ebx
je 0x434af4
push 0xc8
mov ecx, 0x496eb8
call fcn.0040b816
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 3
jg 0x434af6
mov al, byte [ebp - 1]
jmp 0x434aa5
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 0x435186
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 0xc], 0x40
push edi
jae 0x435199
xor eax, eax
jmp 0x43534f
push ebx
mov ebx, dword [ebp + 8]
cmp word [ebx], 0x5a4d
je 0x4351ab
xor eax, eax
jmp 0x43534e
push esi
mov esi, dword [ebx + 0x3c]
lea eax, [esi + 0xf8]
cmp dword [ebp + 0xc], eax
jl 0x43534b
add esi, ebx
cmp dword [esi], 0x4550
jne 0x43534b
mov ax, word [esi + 0x16]
test ah, 0x20
jne 0x43534b
test al, 2
je 0x43534b
cmp word [esi + 0x14], 0xe0
jne 0x43534b
lea edi, [esi + 0xf8]
push edi
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0042b720
mov ecx, dword [ebp + 0x1c]
add esp, 0x10
test eax, eax
mov dword [ecx], eax
je 0x43534b
mov ecx, dword [esi + 0x54]
mov dword [ebp + 0xc], ecx
movzx ecx, word [esi + 6]
test ecx, ecx
jle 0x435233
lea edx, [edi + 0x14]
mov esi, dword [edx]
test esi, esi
je 0x43522d
cmp esi, dword [ebp + 0xc]
jae 0x43522d
mov dword [ebp + 0xc], esi
add edx, 0x28
dec ecx
jne 0x43521f
mov ecx, dword [ebx + 0x3c]
mov ecx, dword [ebx + ecx + 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0x40
push 0x1000
push eax
push ecx
call esi
test eax, eax
mov edi, dword [ebp + 0x18]
mov dword [edi], eax
jne 0x43526e
mov eax, dword [ebp + 0x1c]
push 0x40
push 0x1000
push dword [eax]
push 0
call esi
test eax, eax
mov dword [edi], eax
je 0x43534b
push dword [ebp + 0xc]
push ebx
push dword [edi]
call fcn.0046cf30
mov eax, dword [edi]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ebp + 0x14]
add eax, ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
add eax, 0xf8
mov dword [edx], eax
mov ecx, dword [ecx]
mov ebx, dword [ecx + 0x38]
mov dword [ebp + 0xc], eax
mov eax, dword [ecx + 0x54]
lea eax, [eax + ebx - 1]
xor edx, edx
div ebx
add esp, 0xc
mov esi, eax
imul esi, ebx
add esi, dword [edi]
xor eax, eax
cmp word [ecx + 6], ax
mov dword [ebp - 4], eax
jbe 0x435346
mov ebx, dword [ebp + 0xc]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
add eax, ebx
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x4352d1
mov esi, dword [edi]
add esi, ecx
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x435315
mov eax, dword [eax + 0x14]
add eax, dword [ebp + 8]
push ecx
push eax
push esi
call fcn.0046cf30
mov eax, dword [ebp + 0x14]
mov ebx, dword [eax]
mov eax, dword [ebp + 0xc]
add eax, ebx
mov ecx, dword [eax + 0x10]
add esp, 0xc
cmp dword [eax + 8], ecx
jae 0x435315
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov eax, dword [eax + 0x38]
mov dword [ebp - 8], eax
lea eax, [ecx + eax - 1]
xor edx, edx
div dword [ebp - 8]
imul eax, dword [ebp - 8]
jmp 0x43532b
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x38]
mov eax, dword [eax + 8]
lea eax, [eax + ecx - 1]
xor edx, edx
div ecx
imul eax, ecx
add dword [ebp + 0xc], 0x28
add esi, eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
movzx eax, word [eax + 6]
inc dword [ebp - 4]
cmp dword [ebp - 4], eax
jl 0x4352c1
xor eax, eax
inc eax
jmp 0x43534d
xor eax, eax
pop esi
pop ebx
pop edi
leave
ret
Function at 0x435719
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 0x435744
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x435830
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 0x435774
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 0x43582f
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 0x43579b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x435763
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.0042c6b0
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 0x481512
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 0x10], esi
xor esi, esi
cmp dword [ebp - 4], edi
jbe 0x435811
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 0x4357f1
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.00427365
xor eax, eax
pop ebx
pop esi
pop edi
leave
ret

Function at 0x43586e
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x4971b0], 0
jne 0x43587c
call fcn.00435833
mov ecx, dword [esp + 8]
push esi
or esi, 0xffffffff
test ecx, ecx
je 0x4358ab
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 0x43588d
pop edi
cmp dword [esp + 0x10], 0
not esi
je 0x4358c7
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 0x435a78
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.0042c850
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 0x437c19
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.004365f0
mov esi, dword [eax]
push 0xffffffffffffffff
push dword [ebp + 0xc]
lea ecx, [ebp - 8]
call fcn.004365f0
push dword [eax]
push esi
push str._r_nRegSetDHCP__s__s__r_n
push 0x496eb8
call fcn.0040b4f8
add esp, 0x10
lea ecx, [ebp - 4]
call fcn.00427365
lea ecx, [ebp - 8]
call fcn.00427365
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 0x437cf6
cmp byte [eax], 0x2d
jne 0x437cd8
mov dword [ebp + 0xc], 0x481512
cmp byte [eax], 0
je 0x437cf6
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 0x438345
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 0x438358
or dword [ebp + 0x14], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0042c809
cmp dword [ebp + 8], ebx
je 0x438376
mov eax, dword [ebp + 0xc]
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [eax]
lea ecx, [ebp - 0x1c]
call fcn.0042c8c6
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.0042c6b0
cmp esi, ebx
mov dword [ebp - 0x10], ebx
jne 0x438488
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
jle 0x438488
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 0x43844b
mov eax, dword [ebp + 0x14]
cmp eax, ebx
jl 0x438414
cmp dword [ebp - 0x10], eax
jge 0x438458
inc dword [ebp - 0x10]
cmp dword [ebp + 8], ebx
je 0x43844b
lea ecx, [ebp - 4]
call fcn.0042c809
push str.Name
push esi
lea esi, [ebp - 4]
call fcn.004382a0
pop ecx
pop ecx
push dword [ebp - 0x1c]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x438467
mov ecx, esi
call fcn.00427365
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jl 0x4383e6
jmp 0x438488
jne 0x438488
mov ecx, dword [ebp + 0xc]
push 0xffffffffffffffff
push esi
call fcn.0042c744
jmp 0x438488
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 4]
push eax
call fcn.00436650
mov ecx, dword [ebp + 0xc]
push 0xffffffffffffffff
push dword [ebp - 0x18]
call fcn.0042c744
lea ecx, [ebp - 4]
call fcn.00427365
cmp dword [ebp - 8], ebx
pop edi
je 0x438497
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 0x4384b7
mov esi, dword [ebp + 0x10]
mov ecx, dword [esi]
cmp word [ecx], bx
jne 0x4384b7
push str.Name
push eax
call fcn.004382a0
pop ecx
pop ecx
mov eax, dword [ebp + 0xc]
mov esi, dword [eax]
lea ecx, [ebp - 0x18]
call fcn.00427365
lea ecx, [ebp - 0x1c]
call fcn.00427365
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x43bcfe
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 0x43bd41
push esi
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x43bd3a
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov ecx, edi
call fcn.00436622
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
mov eax, edi
pop edi
ret