joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e09f0
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc]
push ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov byte [ebp - 0xc], 0
mov eax, dword [ebp - 8]
push dword [eax - 8]
call sub.user32.dll_GetClipboardData
mov edx, dword [ebp - 8]
mov dword [edx - 0x14], eax
mov eax, dword [ebp - 8]
cmp dword [eax - 0x14], 0
jne 0x4e0a1e
jmp 0x4e0a8c
mov eax, dword [ebp - 8]
push dword [eax - 0x14]
call sub.kernel32.dll_GlobalSize
mov edx, dword [ebp - 8]
mov dword [edx - 0x1c], eax
mov eax, dword [ebp - 8]
cmp dword [eax - 0x1c], 0
jg 0x4e0a3a
jmp 0x4e0a8c
mov eax, dword [ebp - 8]
push dword [eax - 0x14]
call sub.kernel32.dll_GlobalLock
mov edx, dword [ebp - 8]
mov dword [edx - 0x18], eax
xor eax, eax
push fcn.004e09d0
push ebp
push 0x414780
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax - 0x18]
mov eax, dword [ebp - 8]
mov ecx, dword [eax - 0x1c]
mov eax, dword [ebp - 4]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
call dword [ebx + 0x84]
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.004e09d0
mov byte [ebp - 0xc], 1
mov al, byte [ebp - 0xc]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e1190
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x2c]
push ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
xor eax, eax
push fcn.004e1170
push ebp
push 0x414780
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
call dword [edx + 0x70]
push eax
push 2
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4e11e3
jmp 0x4e1260
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
call dword [edx + 0x70]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
push dword [ebp - 0x24]
push dword [ebp - 0x28]
lea eax, [ebp - 0x1c]
call fcn.0046ac20
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x2c]
call fcn.0046ab70
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x24], eax
call fcn.0046b330
mov ebx, eax
mov eax, str._DataSize
push eax
push dword [ebp - 0x18]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x24]
mov edx, str.TWin32WidgetSet.ClipboardGetOwnerShip_DataHandle
mov eax, ebx
call fcn.0046c7e0
mov eax, dword [ebp - 0xc]
mov byte [eax - 0x10], 0
jmp 0x4e12b7
push dword [ebp - 0x10]
call sub.kernel32.dll_GlobalLock
mov dword [ebp - 0x14], eax
xor eax, eax
push fcn.004e1150
push ebp
push 0x414780
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
call dword [edx + 0x70]
mov ecx, eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 8]
mov ebx, dword [ebx]
call dword [ebx + pe_nt_image_headers32]
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.004e1150
push dword [ebp - 0x10]
push dword [ebp - 4]
call sub.user32.dll_SetClipboardData
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.004e1170
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50c8d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
push ebx
push esi
push edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
cmp dword [ebp - 8], 1
je 0x50c8eb
jmp 0x50c8f8
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
call dword [edx + 0x34]
mov dword [ebp - 0xc], eax
nop
cmp dword [ebp - 0xc], 0
je 0x50c900
jmp 0x50c908
jmp 0x50c9ba
xor eax, eax
push 0x50c997
push ebp
push 0x414b00
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0xc]
mov edx, 0
call fcn.0040d110
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x20], 0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x14], 0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x18], 0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x30], 0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x34], 0
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0xc], 0
jne 0x50c979
jmp 0x50c98c
cmp dword [ebp - 8], 0
jne 0x50c981
jmp 0x50c98c
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx]
call dword [edx + 0x44]
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
jmp 0x50c9ba
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5501f0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x18]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
xor eax, eax
push fcn.005501d0
push ebp
push 0x414780
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp - 4]
call sub.user32.dll_GetWindowTextLengthW
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x10]
call fcn.0040a7a0
cmp dword [ebp - 0xc], 0
jg 0x55023c
jmp 0x55025c
mov eax, dword [ebp - 0xc]
lea eax, [eax + 1]
push eax
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x55024f
mov eax, 0x5d82f0
push eax
push dword [ebp - 4]
call sub.user32.dll_GetWindowTextW
mov dword [ebp - 0xc], eax
nop
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x10]
call fcn.0040a7a0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x18]
call fcn.0040b0d0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
test edx, edx
je 0x550285
mov edx, dword [edx - 4]
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x550291
mov eax, 0x5d82f0
call fcn.00430930
mov eax, dword [ebp - 8]
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.005501d0
mov esp, ebp
pop ebp
ret
Function at 0x5518f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
mov edx, 0x5ce340
call fcn.0040e820
mov dword [ebp - 0x10], 0
xor eax, eax
push fcn.005518e0
push ebp
push 0x414780
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov dword [eax + 8], 0
mov eax, dword [ebp - 0xc]
mov dword [eax], 0
mov eax, dword [ebp - 0xc]
lea eax, [eax + 0x34]
mov edx, 0
call fcn.00408910
mov eax, dword [ebp - 0xc]
mov edx, fcn.004ddd30
mov dword [eax + 0x2c], edx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
mov dword [edx + 0x24], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov dword [edx + 0x28], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x1c]
mov dword [edx + 4], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
lea ecx, [ebp - 0x10]
mov dx, 0
call fcn.00409260
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
lea eax, [eax + 0x30]
call fcn.00408910
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov dword [edx + 0xc], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
mov dword [edx + 0x10], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
mov dword [edx + 0x18], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x18]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0xc]
lea ecx, [eax + 0x10]
mov eax, dword [ebp - 0xc]
lea edx, [eax + 0xc]
mov eax, dword [ebp - 4]
call fcn.0054f860
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00551f80
mov eax, dword [ebp - 4]
test dword [eax + 0x28], 0x10
je 0x5519f5
jmp 0x551a14
mov eax, dword [ebp - 4]
call fcn.00500170
test al, al
je 0x551a03
jmp 0x551a14
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x24]
or eax, 0x8000000
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x24], eax
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.005518e0
mov esp, ebp
pop ebp
ret
Function at 0x41c998
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x10
mov ebx, dword [ebp + 8]
push 0xf0000000
push 1
push 0
push 0
push ebx
call sub.ADVAPI32.DLL_CryptAcquireContextA
add esp, 0xc
test eax, eax
je 0x41c9d4
sub esp, 0xc
lea eax, [ebx + 4]
push eax
push 0
push 0
push 0x8003
push dword [ebx]
call sub.ADVAPI32.DLL_CryptCreateHash
add esp, 0xc
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x402450
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jne 0x402475
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov ecx, 0x4030a8
sub ecx, 0x4030a4
sar ecx, 2
push ecx
push 0x4030a4
call fcn.00402560
add esp, 8
mov edx, 0x4030a0
sub edx, 0x40309c
sar edx, 2
push edx
push 0x40309c
call fcn.00402560
add esp, 8
mov eax, dword [ebp - 0x1c]
and eax, 1
je 0x4024cf
movzx ecx, word [ebp - 0x18]
mov dword [ebp - 0x54], ecx
jmp 0x4024d6
mov dword [ebp - 0x54], 0xa
mov edx, dword [ebp - 0x54]
push edx
mov eax, dword [ebp - 0x50]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x4c], eax
mov ecx, dword [0x40368c]
push ecx
mov edx, dword [0x403688]
push edx
call fcn.004025a0
add esp, 8
mov eax, dword [0x403688]
push eax
call fcn.00402420
add esp, 4
mov ecx, 0x4030b0
sub ecx, 0x4030ac
sar ecx, 2
push ecx
push 0x4030ac
call fcn.00402560
add esp, 8
mov edx, 0x4030b8
sub edx, 0x4030b4
sar edx, 2
push edx
push 0x4030b4
call fcn.00402560
add esp, 8
call fcn.004025d0
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x431003
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
mov ebx, 0x40915c
nop
mov ecx, 0x1c4d6b9c
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x431024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x48362483
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x431084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x401222
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
enter 0x84, 0
sub ebp, 0x82
mov esi, eax
mov cl, byte [0x404050]
mov edx, eax
mov ebx, eax
shl edx, cl
mov eax, 0x404054
add edx, dword [0x404050]
call fcn.00401163
xor eax, eax
mov dword [ebp + 0x7e], eax
lea eax, [ebp + 0x7e]
push eax
mov eax, esi
or al, 0x40
mov edi, 0x4032ed
push eax
sub edi, fcn.00402a87
push edi
push fcn.00402a87
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
cmp dword [ebp + 0x7e], 0
je 0x401299
mov eax, fcn.00402a87
mov ebx, esi
mov edx, edi
call fcn.00401163
mov edx, 0x1c000
mov eax, 0x404054
mov ebx, esi
call fcn.00401932
lea edx, [ebp - 2]
mov eax, esi
mov dword [ebp - 2], 0
call fcn.00402461
lea eax, [esi + 0x1c000]
lea edi, [esi + 1]
imul edi, eax
mov ebx, 0x404054
or bl, 1
xor edx, edx
mov eax, esi
div ebx
lea ebx, [ebp - 2]
add eax, 0x404054
mov edx, edi
call fcn.00402a87
lea esp, [ebp + 0x82]
pop ebp
Function at 0x422e50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x16000]
push edi
jmp 0x422e6a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x422e71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x422e60
mov eax, 1
add ebx, ebx
jne 0x422e83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x422e78
jne 0x422e94
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x422e78
xor ecx, ecx
sub eax, 3
jb 0x422ea8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x422f1a
mov ebp, eax
add ebx, ebx
jne 0x422eb3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x422ec0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x422ee4
inc ecx
add ebx, ebx
jne 0x422ed0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x422ec5
jne 0x422ee1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x422ec5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x422f04
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x422ef5
jmp 0x422e66
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x422f04
add edi, ecx
jmp 0x422e66
pop esi
mov edi, esi
mov ecx, 0x91a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x422f22
cmp byte [edi], 9
jne 0x422f22
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x422f27
lea edi, [esi + 0x20000]
mov eax, dword [edi]
or eax, eax
je 0x422f9f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x26864]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2692c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x422f54
mov ecx, edi
jns 0x422f83
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x26930]
or eax, eax
je 0x422f99
mov dword [ebx], eax
add ebx, 4
jmp 0x422f71
call dword [esi + 0x26940]
mov ebp, dword [esi + 0x26934]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x422fd3
sub esp, 0xffffff80
jmp 0x41382f
Function at 0x401434
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x401443
pop dword [ebp - 0x28]
mov eax, 0x710b9f39
sub eax, 0x70cb8af6
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x7cde8bd7
add dword [ebp - 0x38], 0xd173b974
mov dword [ebp - 0x34], 0xb2915425
sub dword [ebp - 0x34], 0x805e07e0
mov dword [ebp - 0x30], 0xe408eb03
sub dword [ebp - 0x30], 0x97bca6d5
mov dword [ebp - 0x2c], 0x432e0e6
sub dword [ebp - 0x2c], 0x432e0e6
lea eax, [ebp - 0x38]
push eax
mov eax, 0xa5e8dbdc
sub eax, 0xa5a85ad8
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0x7b665048
add dword [ebp - 0x38], 0xf90c190e
mov dword [ebp - 0x34], 0xa7db3663
add dword [ebp - 0x34], 0x99912b12
mov dword [ebp - 0x30], 0x2141b412
add dword [ebp - 0x30], 0x422db85a
mov dword [ebp - 0x2c], 0x3ea8f549
sub dword [ebp - 0x2c], 0x3ea8f549
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x3b2e2
push 0
call eax
mov ecx, 0x538f
xor esi, esi
add esi, eax
mov edx, 0x1d5c048f
sub edx, 0x1d15208f
add edx, dword [ebp - 0x28]
mov edi, 0xdccdde65
add edi, 0xa57f94d3
xor dword [ebp - 0xc], eax
mov ebx, dword [edx]
mov dword [ebp - 4], 0x225c2b40
add ebx, edi
add dword [ebp - 0x18], 0x252bffe9
mov dword [esi], ebx
xor dword [ebp - 0x10], 0x33650641
add esi, 4
add edx, 4
loop 0x40155c
add eax, 0xb39dc6ba
sub eax, 0xb39c85ab
mov ebx, eax
add eax, 0x60951ff5
add eax, 0x9f6ae010
mov ecx, 0x400000
add ecx, dword [ebp - 0x28]
call ebx
leave
ret

Function at 0x402c93
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x42a2f0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x402d27
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x402ce4
cmp dword [ebp + 0x10], ebx
jne 0x402d1b
lea eax, [ebp - 0x210]
push ebx
push eax
push dword [ebp - 4]
call fcn.00401434
test eax, eax
jne 0x402cf6
lea eax, [ebp - 0x210]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402ccb
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.004065ec
cmp eax, ebx
je 0x402d2e
push ebx
push dword [0x42a2f0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402d27
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x42a2f0], ebx
jne 0x402d24
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x402d24
jmp 0x402d27
Function at 0x40317b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp eax, esi
jl 0x4031a6
mov ecx, dword [0x42a298]
push esi
add eax, ecx
push esi
push eax
mov dword [0x418ed4], eax
push dword [0x40a01c]
call dword [sym.imp.kernel32.dll_SetFilePointer]
push 4
call fcn.00403283
cmp eax, esi
jl 0x40327d
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40a01c]
call fcn.00401434
test eax, eax
je 0x40326d
push dword [ebp + 8]
add dword [0x418ed4], 4
call fcn.00403283
mov ebx, eax
cmp ebx, esi
jl 0x40327b
cmp dword [ebp + 0x10], esi
jne 0x403249
cmp dword [ebp + 8], esi
jle 0x40327b
mov esi, 0x414ed0
cmp dword [ebp + 8], 0x4000
mov eax, dword [ebp + 8]
jl 0x40320b
mov eax, 0x4000
push eax
push esi
push dword [0x40a01c]
mov dword [ebp - 4], eax
call fcn.00401434
test eax, eax
je 0x40326d
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call fcn.00401434
test eax, eax
je 0x403245
mov eax, dword [ebp - 4]
sub dword [ebp + 8], eax
add dword [0x418ed4], eax
add ebx, eax
cmp dword [ebp + 8], 0
jg 0x4031fa
jmp 0x40327b
push 0xfffffffffffffffe
jmp 0x40326f
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403254
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a01c]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x403272
push 0xfffffffffffffffd
pop eax
jmp 0x40327d
mov ebx, dword [ebp - 4]
add dword [0x418ed4], ebx
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10
Function at 0x405840
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x4083f8
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x4083e8
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
test eax, eax
je 0x405891
xor eax, eax
jmp 0x4058b8
mov esi, dword [sym.imp.kernel32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x4058b8
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x40588d
call esi
pop esi
leave
ret 4

Function at 0x4058f2
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x426730], 0x44
push eax
xor eax, eax
push 0x426730
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.kernel32.dll_CreateProcessW]
test eax, eax
je 0x405931
push dword [ebp - 0xc]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x4059bb
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405dc2
mov edi, eax
cmp edi, 0xffffffff
je 0x4059fc
test byte [esp + 0x10], 1
push esi
je 0x4059de
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
jmp 0x4059e4
call dword [sym.imp.kernel32.dll_DeleteFileW]
test eax, eax
je 0x4059ed
xor eax, eax
inc eax
jmp 0x4059fe
test byte [esp + 0x10], 4
jne 0x4059fc
push edi
push esi
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405a03
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405cce
test bl, 8
mov dword [ebp - 8], eax
je 0x405a42
push edi
call dword [sym.imp.kernel32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x42a2c8], eax
jmp 0x405bbf
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405a5c
test eax, eax
je 0x405b6d
test bl, 2
je 0x405b6d
mov esi, 0x425730
push edi
push esi
call fcn.00406212
cmp dword [ebp + 8], 0
je 0x405a7b
push str..
push esi
call sub.kernel32.dll_lstrcatW
jmp 0x405a81
push edi
call fcn.00405c12
cmp word [edi], 0
jne 0x405a91
cmp word [0x425730], 0x5c
jne 0x405a9c
push 0x40a014
push edi
call sub.kernel32.dll_lstrcatW
push edi
call sub.kernel32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.kernel32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405b62
cmp word [ebp - 0x22c], 0x2e
jne 0x405ae6
cmp word [ebp - 0x22a], 0
je 0x405b45
cmp word [ebp - 0x22a], 0x2e
jne 0x405ae6
cmp word [ebp - 0x228], 0
je 0x405b45
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.00406212
test byte [ebp - 0x258], 0x10
je 0x405b11
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405b45
push dword [ebp + 0xc]
push edi
call fcn.00401434
jmp 0x405b45
push dword [ebp - 4]
push edi
call fcn.004059bb
test eax, eax
jne 0x405b3d
cmp dword [ebp - 4], eax
je 0x405b35
push edi
push 0xfffffffffffffff1
call fcn.00401434
push 0
push edi
call fcn.004060b3
jmp 0x405b45
inc dword [0x42a2c8]
jmp 0x405b45
push edi
push 0xfffffffffffffff2
call fcn.00401434
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.kernel32.dll_FindNextFileW]
test eax, eax
jne 0x405abe
push esi
call dword [sym.imp.kernel32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405b6d
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405bbf
cmp dword [ebp - 8], esi
jne 0x405b81
inc dword [0x42a2c8]
jmp 0x405bbf
push edi
call fcn.00406555
test eax, eax
je 0x405bbf
push edi
call fcn.00405bc6
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.004059bb
test eax, eax
jne 0x405bb7
cmp dword [ebp - 4], esi
je 0x405b79
push edi
push 0xfffffffffffffff1
call fcn.00401434
push esi
push edi
call fcn.004060b3
jmp 0x405bbf
push edi
push 0xffffffffffffffe5
call fcn.00401434
pop edi
pop esi
pop ebx
leave
ret 8