joyce8/EMBER2024-capa huggingface dataset:
Function at 0x53202c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x532210
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 0xffffffff
jle 0x5321cc
mov eax, dword [ebp - 4]
call fcn.00533988
cmp ebx, eax
jge 0x5321cc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x118]
mov edx, ebx
call fcn.0052870c
mov edx, dword [0x529afc]
call fcn.00403f78
mov esi, eax
mov eax, esi
call fcn.0052a9dc
test al, al
je 0x5321c2
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov edi, dword [esi + 0x44]
test edi, edi
jne 0x5321b6
xor eax, eax
push ebp
push 0x5321af
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.005325e4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
call fcn.0041bcd8
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
push dword [esi + 0x34]
push dword [esi + 0x30]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x18]
lea edx, [ebp - 0x46]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov ecx, 0x2e
mov esi, dword [eax]
call dword [esi + 0xc]
movzx eax, word [ebp - 0x2a]
movzx edx, word [ebp - 0x28]
add eax, edx
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x18]
movzx esi, word [ebp - 0x26]
mov eax, dword [ebp - 8]
mov edx, esi
call fcn.00405238
mov eax, dword [ebp - 8]
call fcn.00405104
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov ecx, esi
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x158]
mov al, byte [eax + 0x28]
mov byte [ebp - 9], al
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.005323a8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x158]
mov dl, byte [ebp - 9]
mov byte [eax + 0x28], dl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5321fa
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
jne 0x5321ae
mov eax, dword [ebp - 4]
call fcn.00532668
ret
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.0040a560
jmp 0x5321fa
mov eax, dword [ebp - 8]
call fcn.00404bec
jmp 0x5321fa
mov dword [ebp - 0x50], ebx
mov byte [ebp - 0x4c], 0
lea eax, [ebp - 0x50]
push eax
push 0
lea edx, [ebp - 0x54]
mov eax, 0xb3
call fcn.00409a8c
mov ecx, dword [ebp - 0x54]
mov dl, 1
mov eax, dword [0x416bb8]
call fcn.0040d5b8
call fcn.0040455c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x532217
lea eax, [ebp - 0x54]
call fcn.00404bec
ret
Function at 0x537018
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe18
push ebx
xor eax, eax
mov dword [ebp - 0x1e4], eax
mov dword [ebp - 0x1e8], eax
mov dword [ebp - 0x1e0], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x53719d
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x1e0]
mov eax, dword [0x542a88]
mov eax, dword [eax]
call fcn.00462cec
mov eax, dword [ebp - 0x1e0]
lea edx, [ebp - 4]
call fcn.0040a194
lea edx, [ebp - 0x1e8]
mov eax, dword [0x542a88]
mov eax, dword [eax]
call fcn.00462cec
mov eax, dword [ebp - 0x1e8]
lea edx, [ebp - 0x1e4]
call fcn.0040a078
mov edx, dword [ebp - 0x1e4]
lea eax, [ebp - 8]
mov ecx, 0x5371b4
call fcn.00404ef8
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov edx, 0x5371c4
call fcn.00404ef8
push 0x5371d4
push dword [ebp - 4]
push 0x5371e8
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404f6c
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x1dc]
call fcn.004033ac
lea eax, [ebp - 0x1dc]
call fcn.00403148
call fcn.00402c58
mov edx, 0x5371fc
lea eax, [ebp - 0x1dc]
call fcn.004052c8
call fcn.0040383c
call fcn.00402c58
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x1dc]
call fcn.004052c8
call fcn.0040383c
call fcn.00402c58
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0x1dc]
call fcn.004052c8
call fcn.0040383c
call fcn.00402c58
mov edx, 0x537208
lea eax, [ebp - 0x1dc]
call fcn.004052c8
call fcn.0040383c
call fcn.00402c58
lea eax, [ebp - 0x1dc]
call fcn.00403474
call fcn.00402c58
push 0
mov eax, dword [ebp - 8]
call fcn.004050ac
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5371a4
lea eax, [ebp - 0x1e8]
mov edx, 3
call fcn.00404c10
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00404c10
ret
Function at 0x537210
Capabilities:
Copy file
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x537218
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040509c
xor eax, eax
push ebp
push 0x537349
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x53730e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404c84
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404eac
mov edx, eax
mov ecx, 1
mov eax, dword [ebp - 8]
call fcn.0040510c
mov eax, dword [ebp - 0xc]
mov edx, 0x537360
call fcn.00404ff8
je 0x53728b
lea eax, [ebp - 8]
mov edx, 0x537360
call fcn.00404eb4
push 0
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00402fdc
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.0040a194
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.00404ef8
mov eax, dword [ebp - 0x10]
call fcn.004050ac
push eax
lea edx, [ebp - 0x1c]
xor eax, eax
call fcn.00402fdc
mov eax, dword [ebp - 0x1c]
call fcn.004050ac
push eax
call sub.kernel32.dll_CopyFileA
push 5
lea edx, [ebp - 0x28]
xor eax, eax
call fcn.00402fdc
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x24]
call fcn.0040a194
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 8]
call fcn.00404ef8
mov eax, dword [ebp - 0x20]
call fcn.004050ac
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x537318
push 0x1f4
call sub.kernel32.dll_Sleep_1
call fcn.00537018
push 0
call sub.kernel32.dll_ExitProcess_1

Function at 0x53894c
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040509c
mov eax, dword [ebp - 8]
call fcn.0040509c
mov eax, dword [ebp - 0xc]
call fcn.0040509c
xor eax, eax
push ebp
push 0x538a39
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x5389c0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call fcn.00409c24
test al, al
je 0x5389b6
push 0
mov eax, dword [ebp - 0xc]
call fcn.004050ac
push eax
call sub.kernel32.dll_SetFileAttributesA
mov eax, dword [ebp - 0xc]
call fcn.00409f20
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5389ca
xor eax, eax
push ebp
push 0x538a14
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.004050ac
push eax
mov ecx, dword [0x543668]
mov dl, 1
mov eax, dword [0x41785c]
call fcn.0041c708
mov ebx, eax
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.0041c3d4
mov eax, ebx
call fcn.00403dbc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x538a1e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x538a40
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404c10
ret
Function at 0x53a224
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040509c
xor eax, eax
push ebp
push 0x53a2ba
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00409114
mov bx, 0x1202
xor esi, esi
mov eax, dword [ebp - 8]
call fcn.00404eac
mov edi, eax
lea eax, [ebp - 8]
call fcn.00405104
mov dword [ebp - 0xc], eax
cmp di, si
jbe 0x53a29a
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
shl eax, 8
xor bx, ax
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
xor bx, ax
inc dword [ebp - 0xc]
add si, 2
cmp di, si
ja 0x53a276
and bx, 0x7fff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53a2c1
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404c10
ret

Function at 0x53a49c
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd5c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2a4], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040509c
xor eax, eax
push ebp
push 0x53a5a3
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1a0]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
xor edx, edx
push ebp
push 0x53a573
push dword fs:[edx]
mov dword fs:[edx], esp
push pe_nt_image_headers32
lea eax, [ebp - 0x2a0]
push eax
call sub.wsock32.dll_gethostname
lea eax, [ebp - 0x2a0]
mov edx, dword [ebp - 4]
call fcn.0040a3f0
lea eax, [ebp - 0x2a0]
push eax
call sub.wsock32.dll_gethostbyname
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x53a565
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x53a55f
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
test ebx, ebx
je 0x53a559
push dword [ebx]
call sub.wsock32.dll_inet_ntoa
lea edx, [ebp - 0x2a4]
call fcn.0040a560
mov edx, dword [ebp - 0x2a4]
mov eax, esi
call fcn.00404c40
mov byte [ebp - 5], 1
jmp 0x53a569
mov byte [ebp - 5], 0
jmp 0x53a569
mov byte [ebp - 5], 0
jmp 0x53a569
mov byte [ebp - 5], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x53a57d
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53a5aa
lea eax, [ebp - 0x2a4]
call fcn.00404bec
lea eax, [ebp - 4]
call fcn.00404bec
ret
Function at 0x53ac90
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 dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.0040509c
xor eax, eax
push ebp
push 0x53ad60
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0x44
call fcn.00403618
mov dword [ebp - 0x4c], 0x44
mov dword [ebp - 0x20], 1
mov word [ebp - 0x1c], 5
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 4]
call fcn.0040a078
mov eax, dword [ebp - 0x60]
call fcn.004050ac
push eax
push 0
push 0x40
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004050ac
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test bl, bl
je 0x53ad42
jmp 0x53ad30
mov edx, dword [0x545844]
mov eax, esi
call fcn.0053aaf0
push 0x1f4
call sub.kernel32.dll_Sleep_1
push 0x64
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
je 0x53ad19
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53ad67
lea eax, [ebp - 0x60]
call fcn.00404bec
lea eax, [ebp - 4]
call fcn.00404bec
ret
Function at 0x40128c
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, edi
mov dword [esi + 0x88], eax
jne 0x4012ab
xor al, al
jmp 0x4012c5
lea eax, [esp + 8]
push eax
push edi
push esi
push 0x4012c9
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ecx
ret

Function at 0x401318
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4061d0
push 0x404e14
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp + 0x10], eax
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
push 0x406338
push dword [ebp + 8]
push section..data
mov ebx, 0x407218
mov ecx, ebx
call fcn.004016fc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x40729c], eax
mov esi, 0x4070b8
lea edi, [ebp - 0x2c]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x24], 1
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 0x10]
call fcn.004012d7
pop ecx
pop ecx
mov edi, eax
cmp edi, esi
je 0x4013f6
push str.UnregServer
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4013c7
push 0x4070a0
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4013dc
lea eax, [ebp - 0x2c]
push eax
push edi
jmp 0x401393
push esi
push esi
push 0x64
push ebx
call fcn.004017c1
push esi
push 1
push ebx
call fcn.00402eb5
jmp 0x4013f0
push esi
push 1
push 0x64
push ebx
call fcn.004017c1
push esi
push 1
push ebx
call fcn.00402d5c
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], esi
cmp dword [ebp - 0x24], esi
je 0x401449
mov ecx, ebx
call fcn.0040128c
push 5
push 4
push ebx
call fcn.00402bdb
call dword [sym.imp.ole32.dll_CoResumeClassObjects]
push esi
push esi
push esi
lea eax, [ebp - 0x48]
push eax
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
call edi
test eax, eax
je 0x401438
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push esi
push esi
push esi
lea eax, [ebp - 0x48]
push eax
jmp 0x40141f
push ebx
call fcn.00402c70
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
call fcn.00402cac
mov dword [ebp - 4], esi
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x401461
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4016fc
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push dword [ebp + 0xc]
mov esi, ecx
push dword [ebp + 8]
mov dword [esi + 0x70], 0x407090
mov dword [0x407210], esi
mov dword [esi], 0x84
push esi
mov dword [esi + 0x64], 0x300
call fcn.00402b58
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x401745
push 0x10
push dword [ebp + 0x10]
push 0x407200
call fcn.00404f50
add esp, 0xc
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [esi + 0x18], eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x10]
cmp eax, 1
jbe 0x4017b3
or dword [esi + 0x74], 0xffffffff
add eax, eax
xor ecx, ecx
test eax, 0x80000000
jne 0x40177d
shr dword [esi + 0x74], 1
shl eax, 1
inc ecx
cmp ecx, 0x20
jl 0x40176b
shr dword [esi + 0x74], 1
mov eax, dword [esi + 0x74]
push edi
lea eax, [eax*4 + 4]
push eax
push ebx
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 0x78], eax
xor edi, edi
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov ecx, dword [esi + 0x78]
mov dword [ecx + edi*4], eax
inc edi
cmp edi, dword [esi + 0x74]
jbe 0x40179b
pop edi
jmp 0x4017b9
mov dword [esi + 0x78], ebx
mov dword [esi + 0x74], ebx
pop esi
xor eax, eax
pop ebx
leave
ret 0xc
Function at 0x401aa8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ebx
jne 0x401ac2
xor esi, esi
jmp 0x401af0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.00405290
mov esi, esp
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp + 8]
mov byte [esi], bl
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 4], edi
jne 0x401b2d
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x401b18
call esi
mov esi, eax
jmp 0x401bc2
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x401bc2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
jne 0x401b5e
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x401b71
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x401bb9
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
cmp edi, ebx
mov dword [ebp + 8], edi
jne 0x401b75
jmp 0x401b40
call esi
jmp 0x401bb7
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov eax, dword [ebp + 8]
cmp byte [esi + eax], bl
je 0x401bab
lea eax, [esi + 1]
add eax, 3
and al, 0xfc
call fcn.00405290
lea eax, [esi + 1]
mov edi, esp
push eax
push dword [ebp + 8]
push edi
call fcn.00404f50
add esp, 0xc
mov byte [edi + esi], bl
push dword [ebp + 0x14]
lea ecx, [ebp - 0xc]
push edi
call fcn.00401c29
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea esp, [ebp - 0x18]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x402634
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
push edi
push 0x2001f
push dword [ebp + 8]
mov ebx, ecx
xor esi, esi
lea ecx, [ebp - 4]
push dword [ebx]
mov dword [ebp - 4], esi
call fcn.004025f6
mov edi, eax
cmp edi, esi
je 0x402674
cmp dword [ebp - 4], esi
je 0x40266d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x402711
lea eax, [ebp - 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
push esi
push esi
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x114]
mov dword [ebp - 8], 0x100
push eax
push esi
push dword [ebp - 4]
call edi
test eax, eax
jne 0x4026e5
lea eax, [ebp - 0x114]
lea ecx, [ebp - 4]
push eax
call fcn.00402634
cmp eax, esi
mov dword [ebp - 0xc], eax
jne 0x4026d2
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 0x100
push eax
push esi
push esi
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push dword [ebp - 4]
jmp 0x402697
cmp dword [ebp - 4], esi
je 0x4026e0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
jmp 0x402711
cmp dword [ebp - 4], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x4026f8
push dword [ebp - 4]
call edi
mov dword [ebp - 4], esi
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp dword [ebp - 4], esi
mov ebx, eax
je 0x40270f
push dword [ebp - 4]
call edi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x402718
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, 0x1000
push edi
mov ebx, ecx
push esi
mov dword [ebp - 0x1c], ebx
call fcn.00404c31
xor edi, edi
pop ecx
cmp eax, edi
mov dword [ebp - 0x14], eax
jne 0x402745
mov eax, 0x8007000e
jmp 0x4028e2
push eax
mov ecx, ebx
call fcn.00401d82
cmp eax, edi
jge 0x402758
mov esi, eax
jmp 0x4028d3
lea eax, [ebp - 2]
push eax
push dword [ebp - 0x14]
call fcn.004028ec
pop ecx
test eax, eax
pop ecx
jne 0x402774
mov esi, 0x80020009
jmp 0x4028d3
push esi
call fcn.00404c31
mov esi, eax
pop ecx
cmp esi, edi
mov dword [ebp - 0xc], esi
jne 0x40278e
mov esi, 0x8007000e
jmp 0x4028d3
mov ecx, ebx
call fcn.00401d5a
push esi
mov ecx, ebx
call fcn.00401d82
cmp eax, edi
jl 0x4028c8
movzx eax, word [ebp - 2]
sub eax, 8
je 0x40289e
sub eax, 9
je 0x40280a
dec eax
dec eax
jne 0x4028b9
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00405290
mov ebx, esp
push esi
push ebx
push 0xffffffffffffffff
push dword [ebp - 0xc]
mov word [ebx], di
push edi
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x18]
push eax
push edi
push edi
push ebx
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x18]
push 4
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 4
jmp 0x4028aa
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test al, 1
mov dword [ebp - 0x10], eax
je 0x402822
mov esi, 0x80004005
jmp 0x4028ca
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.00405290
mov dword [ebp - 8], esp
push ebx
push edi
push dword [ebp - 8]
call fcn.00404ef0
add esp, 0xc
cmp dword [ebp - 8], edi
je 0x402818
cmp dword [ebp - 0x10], 0
jle 0x402883
mov ecx, dword [ebp - 8]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
mov eax, dword [ebp - 0xc]
mov al, byte [edi + eax]
push eax
call fcn.00402973
pop ecx
mov ecx, edi
push 4
and ecx, 1
shl ecx, 2
mov edx, ecx
pop ecx
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, dword [ebp - 0x10]
jl 0x402850
mov eax, dword [ebp + 8]
push ebx
push dword [ebp - 8]
mov eax, dword [eax]
push 3
push 0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor edi, edi
jmp 0x4028b9
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
push 1
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x1c]
call fcn.00401d82
cmp eax, edi
jge 0x4028e0
mov esi, eax
push dword [ebp - 0xc]
call fcn.00404cd4
pop ecx
push dword [ebp - 0x14]
call fcn.00404cd4
pop ecx
mov eax, esi
jmp 0x4028e2
xor eax, eax
lea esp, [ebp - 0x28]
pop edi
pop esi
pop ebx
leave
ret 0xc