joyce8/EMBER2024-capa huggingface dataset:
Function at 0x474008
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x487bf4]
cmp dword [eax + 0x30], 0
je 0x4740b2
cmp dword [ebx + 0x94], 0
jne 0x4740ac
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x473f98
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4740ac
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x474072
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4740ac
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041959c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x474081
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x474c14
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x474c49
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404694
jmp 0x474c56
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004045f8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x475cb8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x475cf9
mov eax, esi
call fcn.0045be44
test al, al
je 0x475cf9
mov eax, dword [ebx + 0x84]
call fcn.0045bb40
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x475cf9
push 0
mov eax, dword [ebx + 0x84]
call fcn.0045bb40
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x47731c
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x4773a5
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x487c1c
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x47738f
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0040bc0c
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
mov eax, 0x4773bc
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x486c2c]
mov dl, 1
mov eax, dword [0x476680]
call fcn.0040c530
call fcn.00403f5c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4773ac
lea eax, [ebp - 0x1c]
call fcn.004045a4
ret
Function at 0x477a70
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.00477994
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.0040398c
push 0x10
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_connect
mov edx, 0x477ad4
call fcn.00477264
mov byte [ebx + 0x29], 0
test byte [ebx + 0x28], 0x10
jne 0x477ac6
cmp dword [ebx + 4], 0xffffffff
setne al
mov byte [ebx + 8], al
mov cl, 2
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.0040398c
pop esi
pop ebx
ret

Function at 0x477af8
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.00404a64
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.00403004
test ebx, ebx
je 0x477b43
mov eax, ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
mov cl, byte [edx]
mov byte [esp + 4], cl
mov cl, byte [edx + 1]
mov byte [esp + 5], cl
mov cl, byte [edx + 2]
mov byte [esp + 6], cl
mov al, byte [edx + 3]
mov byte [esp + 7], al
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp]
pop ecx
pop edx
pop ebx
ret

Function at 0x477c20
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x477c51
mov ecx, dword [0x486d54]
mov dl, 1
mov eax, dword [0x476680]
call fcn.0040c4f4
call fcn.00403f5c
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x477c7e
mov ecx, dword [0x486a74]
mov dl, 1
mov eax, dword [0x476680]
call fcn.0040c4f4
call fcn.00403f5c
xor eax, eax
push ebp
push 0x477cff
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.0040398c
cmp byte [ebp + 8], 0
je 0x477cd9
mov eax, dword [ebp + 0x14]
push eax
mov ax, word [ebp + 0x10]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.00477b88
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004779f0
jmp 0x477cf5
mov eax, dword [ebp + 0x14]
push eax
mov ax, word [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.00477550
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x477d1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x477ee4
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00477818
xor eax, eax
push ebp
push 0x478055
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x47803f
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x477f2f
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x477f39
call fcn.00404008
jmp 0x47805c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041ba44
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1010]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, 0x1000
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ebx, eax
test ebx, ebx
jle 0x478034
push 0
push ebx
lea eax, [ebp - 0x1010]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x477fe7
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x477fd4
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.0040398c
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
push ebp
call fcn.00477e9c
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x478068]
cmp dl, byte [eax + 0x28]
je 0x47803b
call fcn.0040c418
jmp 0x47803b
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041ba64
jmp 0x47803b
cmp ecx, ebx
jge 0x478003
mov eax, dword [ebp - 0xc]
add eax, ecx
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041ba64
jmp 0x477f39
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041ba44
cmp edx, dword [esp + 4]
jne 0x478023
cmp eax, dword [esp]
pop edx
pop eax
jne 0x477f39
push ebp
call fcn.00477e9c
pop ecx
jmp 0x47803b
push ebp
call fcn.00477e9c
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47805c
mov eax, dword [ebp - 4]
call fcn.00477824
ret
mov al, byte [ebp - 5]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4780b0
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4781fa
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00477818
xor eax, eax
push ebp
push 0x4781dd
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x478115
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x478115
lea eax, [ebp - 8]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x4781c7
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x478128
call fcn.00404008
jmp 0x4781e4
push 0
push ebx
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4781c7
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x4781c7
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.0040398c
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x4781c7
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040bc0c
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x478214
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x486c2c]
mov dl, 1
mov eax, dword [0x476680]
call fcn.0040c530
call fcn.00403f5c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4781e4
mov eax, dword [ebp - 4]
call fcn.00477824
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x478201
lea eax, [ebp - 0x28]
call fcn.004045a4
ret
Function at 0x47f368
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x60], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404a54
xor eax, eax
push ebp
push 0x47f461
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0x44
call fcn.00403004
mov dword [ebp - 0x4c], 0x44
mov dword [ebp - 0x20], 0x41
mov word [ebp - 0x1c], si
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 4]
call fcn.00409148
mov eax, dword [ebp - 0x60]
call fcn.00404a64
push eax
push 0
push 0x30
push 0
push 0
push 0
lea eax, [ebp - 4]
call fcn.00404abc
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x47f3f6
mov dword [ebp - 8], 0xffffffff
jmp 0x47f429
test bl, bl
jne 0x47f411
cmp dword [ebp + 8], 0
je 0x47f408
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x54]
mov dword [eax], edx
mov dword [ebp - 8], 0xffffffff
jmp 0x47f443
push 0xffffffffffffffff
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_WaitForSingleObject
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x47f436
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x47f443
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47f468
lea eax, [ebp - 0x60]
call fcn.004045a4
lea eax, [ebp - 4]
call fcn.004045a4
ret

Function at 0x47f82c
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov eax, dword [0x486840]
cmp dword [eax], 0
je 0x47f8fe
push 4
push 0x1000
push 0x400
push 0
mov eax, dword [0x486840]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_VirtualAllocEx
mov ebx, eax
push 4
push 0x1000
push 0x40
push 0
mov eax, dword [0x486840]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_VirtualAllocEx
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x400
mov eax, dword [ebp + 8]
push eax
push ebx
mov eax, dword [0x486840]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_WriteProcessMemory
lea eax, [ebp - 4]
push eax
push 0x40
mov eax, dword [ebp + 0xc]
push eax
push esi
mov eax, dword [0x486840]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_WriteProcessMemory
lea eax, [ebp - 4]
push eax
push 0
push esi
push ebx
push 0
push 0
mov eax, dword [0x486840]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_CreateRemoteThread
mov edi, eax
push 0xffffffffffffffff
push edi
call sub.kernel32.dll_WaitForSingleObject
push edi
call sub.kernel32.dll_CloseHandle_1
push 0x8000
push 0
push ebx
mov eax, dword [0x486840]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_VirtualFreeEx
push 0x8000
push 0
push esi
mov eax, dword [0x486840]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_VirtualFreeEx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x47fd58
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffecc
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x12c], eax
lea esi, [ebp - 0x128]
xor eax, eax
push ebp
push 0x47fe62
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, 2
call fcn.0047f270
mov ebx, eax
mov dword [esi], 0x128
mov edx, esi
mov eax, ebx
call fcn.0047f290
cmp eax, 1
sbb eax, eax
inc eax
jmp 0x47fe36
lea eax, [ebp - 0x12c]
lea edx, [esi + 0x24]
mov ecx, 0x104
call fcn.00404814
mov eax, dword [ebp - 0x12c]
mov edx, 0x47fe78
call fcn.004049b0
je 0x47fe12
lea eax, [ebp - 0x130]
lea edx, [esi + 0x24]
mov ecx, 0x104
call fcn.00404814
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x134]
mov eax, dword [0x486870]
mov eax, dword [eax]
call fcn.0040917c
mov edx, dword [ebp - 0x134]
pop eax
call fcn.004049b0
jne 0x47fe27
push 0
mov eax, dword [esi + 8]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov edx, esi
mov eax, ebx
call fcn.0047f2b0
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x47fdb3
push ebx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47fe69
lea eax, [ebp - 0x134]
mov edx, 3
call fcn.004045c8
ret
Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..retplne
mov ebx, 0x40de38
nop
nop
mov ecx, 0x467a1ddd
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..reloc
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x60d31398
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x5590aa
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x6750d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.00666c9f
xor ebp, ebp
mov dword [esi], 0xb91944
mov dword [esi + 0x3c], ebp
mov dword [esi + 0x40], ebp
lea edi, [esi + 0x44]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x14], edi
lea ecx, [edi + 0x18]
mov dword [edi], 0xb90b48
call fcn.00544f00
lea ecx, [edi + 0x30]
mov byte [esp + 0x38], 1
call fcn.00664311
lea ebx, [edi + 0x44]
mov ecx, ebx
call fcn.00544f00
mov dword [ebx], 0xb8f30c
mov dword [edi], 0xb91868
mov dword [esi + 0xa0], ebp
mov dword [esi + 0x9c], 0xbb02d4
lea ecx, [esi + 0xb0]
call fcn.00544f00
lea edi, [esi + 0xc8]
mov dword [edi + 4], ebp
mov dword [edi], 0xbaf244
mov byte [esp + 0x38], 5
mov dword [esi], 0xb91870
mov dword [esi + 0xac], ebp
call fcn.006702f5
mov eax, dword [eax + 0xc]
push 0x40e
push eax
call dword [0x67e5b0]
push eax
mov ecx, edi
call fcn.0066c5af
mov ecx, dword [esi + 0xcc]
lea eax, [esp + 0x18]
push eax
push 0x18
push ecx
call dword [0x67e0f4]
mov ecx, dword [esp + 0x1c]
mov eax, 0x55555556
imul ecx
mov ecx, dword [esp + 0x20]
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [esi + 0xd4], ecx
mov ecx, dword [esp + 0x30]
mov dword [esi + 0xd0], edx
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret

Function at 0x559260
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x675165
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], 0xb91870
mov dword [esp + 0x18], 0
lea ecx, [esi + 0xc8]
mov dword [esp + 0xc], ecx
mov dword [ecx], 0xbae340
mov byte [esp + 0x18], 4
call fcn.0066c606
lea ecx, [esi + 0xb0]
mov byte [esp + 0x18], 2
mov dword [ecx], 0xb8f308
call fcn.00545100
lea ecx, [esi + 0x9c]
mov dword [esp + 0xc], ecx
mov dword [ecx], 0xbae340
mov byte [esp + 0x18], 5
call fcn.0066c606
lea edi, [esi + 0x44]
mov dword [esp + 0xc], edi
lea ecx, [edi + 0x44]
mov byte [esp + 0x18], 7
mov dword [ecx], 0xb8f308
call fcn.00545100
lea ecx, [edi + 0x30]
mov byte [esp + 0x18], 6
call fcn.00664344
lea ecx, [edi + 0x18]
mov byte [esp + 0x18], 0
mov dword [ecx], 0xb8f308
call fcn.00545100
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.0066e155
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x406fb8
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0x800
mov dword [ebp - 8], ecx
mov edi, 0x400
xor ebx, ebx
call dword [sym.imp.cmutil.dll_CmMalloc]
mov esi, eax
test esi, esi
je 0x4070d5
push dword [ebp - 8]
push edi
push esi
push 0x4017a4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
mov ecx, eax
lea eax, [ecx + 2]
cmp eax, edi
jne 0x407035
push esi
add edi, 0x400
call dword [sym.imp.cmutil.dll_CmFree]
lea eax, [edi + edi]
push eax
call dword [sym.imp.cmutil.dll_CmMalloc]
mov esi, eax
test esi, esi
je 0x4070d5
push dword [ebp - 8]
push edi
push esi
push 0x4017a4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
mov ecx, eax
lea eax, [ecx + 2]
cmp eax, edi
je 0x406ffb
test ecx, ecx
je 0x4070d5
lea eax, [edi + edi]
push eax
call dword [sym.imp.cmutil.dll_CmMalloc]
mov ebx, eax
mov dword [ebp - 0xc], ebx
test ebx, ebx
je 0x4070d5
xor eax, eax
mov dword [ebp - 4], ebx
cmp ax, word [esi]
je 0x4070b7
mov ebx, esi
push 0xffffffffffffffff
push 0x4017dc
push 0xffffffffffffffff
push ebx
push 1
push 0x7f
call dword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
je 0x4070a0
push 0x900
push ecx
push ecx
mov ecx, dword [ebp - 4]
mov edx, edi
push ebx
call fcn.00410ebe
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 4]
inc eax
sub edi, eax
lea ecx, [ecx + eax*2]
mov dword [ebp - 4], ecx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [ebx + eax*2]
xor eax, eax
add ebx, 2
cmp ax, word [ebx]
jne 0x407060
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
push edi
push 0
push 0x4017a4
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionW]
push edi
push ebx
push 0x4017a4
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionW]
push esi
call dword [sym.imp.cmutil.dll_CmFree]
push ebx
call dword [sym.imp.cmutil.dll_CmFree]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4070ef
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x413004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x21c]
mov ebx, edx
push eax
push 0xf003f
push 0
mov edi, ecx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jle 0x407132
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4071ea
xor eax, eax
xor esi, esi
push 0x208
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x228]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x218]
push eax
push esi
jmp 0x40719f
mov ecx, dword [ebp - 0x21c]
lea edx, [ebp - 0x218]
call fcn.004070ef
lea eax, [ebp - 0x228]
xor ecx, ecx
push eax
push ecx
push ecx
push ecx
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x218]
push eax
push ecx
push dword [ebp - 0x21c]
mov dword [ebp - 0x220], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
cmp esi, 0x103
jne 0x407173
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x4071d3
cmp esi, esi
jne 0x4071dd
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
test esi, esi
jle 0x4071ea
movzx esi, si
or esi, 0x80070000
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411980
mov esp, ebp
pop ebp
ret

Function at 0x407604
Capabilities:
Delete file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x57c
mov eax, dword [0x413004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 0x55c], eax
push edi
lea ecx, [ebp - 0x558]
mov edi, edx
call fcn.0040fa55
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x558]
call fcn.0040fb10
test eax, eax
lea eax, [ebp - 0x41c]
push 0x104
push eax
je 0x407689
push 0xf3
push edi
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x41c]
push eax
push ebx
push dword [ebp - 0x55c]
push 0x401d8c
jmp 0x4076a8
push 0xc9
push edi
call dword [sym.imp.USER32.dll_LoadStringW]
push ebx
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x55c]
push 0x401dac
push 0x900
push 0
push 0
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.00410f98
add esp, 0x24
test esi, esi
je 0x4076e2
mov eax, dword [esi]
lea ecx, [ebp - 0x210]
push ecx
push esi
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x414220]
call esi
jmp 0x407734
push 0x80
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x407734
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x57c]
rep stosd dword es:[edi], eax
push 0x14
stosw word es:[edi], ax
lea eax, [ebp - 0x210]
mov dword [ebp - 0x574], eax
pop eax
mov word [ebp - 0x56c], ax
lea eax, [ebp - 0x57c]
push eax
mov dword [ebp - 0x578], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411980
mov esp, ebp
pop ebp
ret 8