joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d4c0e
Capabilities:
Delete file

Disassembly:
push 8
mov eax, 0x524b49
call fcn.004db4c3
mov ebx, edx
mov esi, ecx
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x4d4cde
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.0040d33d
push eax
lea ecx, [ebp - 0x10]
call fcn.0040d16b
mov dword [ebp - 4], 1
push 0x5c
push dword [esi]
call fcn.004debb7
pop ecx
pop ecx
test eax, eax
je 0x4d4cbf
sub eax, dword [esi]
sar eax, 1
cmp eax, 0xffffffff
je 0x4d4cbf
push eax
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.00406d83
mov byte [ebp - 4], 2
mov edx, dword [eax]
mov esi, dword [ebp - 0x10]
lea ecx, [edx - 0x10]
lea edi, [esi - 0x10]
cmp ecx, edi
je 0x4d4cae
cmp dword [edi + 0xc], 0
jl 0x4d4c9f
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x4d4c9f
call fcn.004070e1
mov ecx, edi
mov esi, eax
call fcn.0040d645
add esi, 0x10
mov dword [ebp - 0x10], esi
jmp 0x4d4cae
push dword [edx - 0xc]
lea ecx, [ebp - 0x10]
push edx
call fcn.0040d8ae
mov esi, dword [ebp - 0x10]
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.0040d645
jmp 0x4d4cc2
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], 0
je 0x4d4cd2
mov edx, ebx
lea ecx, [ebp - 0x10]
call fcn.004d4aba
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.0040d645
call fcn.004db48c
ret
Function at 0x4d5318
Capabilities:
Check if file exists

Disassembly:
push 0x7c
mov eax, 0x524ce3
call fcn.004db4f7
mov dword [ebp - 0x78], edx
mov edx, ecx
mov dword [ebp - 0x84], edx
mov dword [ebp - 0x74], edx
mov ecx, dword [ebp + 0xc]
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0x18]
and dword [ebp - 0x7c], 0
mov dword [ebp - 0x80], ecx
mov ecx, edx
push eax
mov dword [ebp - 0x88], edx
call fcn.00404b28
push dword [ebp + 0x1c]
and dword [ebp - 4], 0
xor eax, eax
mov ecx, dword [ebp - 0x78]
inc eax
push esi
push edi
push ebx
push dword [ebp - 0x80]
mov ebx, dword [ebp - 0x84]
mov edx, ebx
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x7c], eax
call fcn.004d4fd8
add esp, 0x14
mov eax, ebx
cmp dword [ebx + 0x14], 8
jb 0x4d538d
mov eax, dword [ebx]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call esi
test eax, eax
jne 0x4d54ae
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x78], esp
push ebx
call fcn.00404b28
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0
call fcn.0046aac0
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 2
push eax
lea ecx, [ebp - 0x58]
call fcn.0046dda0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x58]
call fcn.0046d3f0
mov edi, eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x40]
call fcn.0046d3f0
mov byte [ebp - 4], 5
mov edx, edi
cmp dword [edi + 0x14], 8
jb 0x4d5402
mov edx, dword [edi]
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x4d540c
mov ecx, dword [eax]
mov eax, dword [eax + 0x10]
cmp eax, dword [edi + 0x10]
jne 0x4d5423
push eax
push edx
push ecx
call fcn.0040530d
add esp, 0xc
test eax, eax
je 0x4d5427
mov byte [ebp - 0x74], 0
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 4
call fcn.004056f2
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.004056f2
cmp byte [ebp - 0x74], 0
je 0x4d5496
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x40]
call fcn.0046d460
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 8
jb 0x4d545d
mov eax, dword [eax]
push eax
call esi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
mov esi, eax
call fcn.004056f2
test esi, esi
je 0x4d5496
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x40]
call fcn.0046d460
push eax
mov ecx, ebx
mov byte [ebp - 4], 7
call fcn.00404232
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.004056f2
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.0040dcb3
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0
call fcn.0040dcb3
mov eax, ebx
call fcn.004db4a1
ret
Function at 0x4d5b52
Capabilities:
Check os version

Disassembly:
push 0x120
mov eax, 0x524de2
call fcn.004db4f7
mov esi, ecx
mov dword [ebp - 0x128], esi
call fcn.0042e488
and dword [ebp - 4], 0
lea edi, [esi + 0x20]
push 0x58
push 0
push edi
call fcn.004de710
xor eax, eax
mov dword [esi + 0x78], 1
xor ecx, ecx
mov dword [edi], 0x58
lea ebx, [esi + 0x27c]
mov word [esi + 0x7c], cx
push 0x110
mov word [ebx], ax
lea eax, [ebp - 0x120]
push ecx
push eax
mov dword [ebp - 0x124], 0x114
call fcn.004de710
add esp, 0x18
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4d5be8
cmp dword [ebp - 0x120], 5
jae 0x4d5bee
cmp dword [ebp - 0x120], 4
jne 0x4d5be8
cmp dword [ebp - 0x11c], 0x5a
jae 0x4d5bee
mov dword [edi], 0x4c
and dword [esi + 0x5c], 0
lea eax, [esi + 0x7c]
mov dword [esi + 0x44], eax
mov eax, esi
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], 0x104
mov dword [esi + 0x48], 0x100
mov dword [esi + 0x54], 0x880024
mov dword [esi + 0x2c], 0x54a348
mov ecx, dword [0x57e2d8]
or dword [ebp - 4], 0xffffffff
mov dword [esi + 0x28], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [esi + 0x64], 0x42dd69
mov dword [esi + 0x24], ecx
call fcn.004db4a1
ret 0x18

Function at 0x4d5f70
Capabilities:
Hash data with md5

Disassembly:
mov byte [ecx + 0x68], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret
Function at 0x4d92ab
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x524eac
call fcn.004db4f7
mov edi, ecx
mov dword [ebp - 0x30], edi
xor ebx, ebx
cmp dword [edi + 0x38], ebx
je 0x4d93e0
cmp byte [edi + 0x3e], bl
je 0x4d93e0
mov eax, dword [edi]
mov ecx, 0xffff
push ecx
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x52729c]
mov ecx, edi
call esi
mov ecx, 0xffff
cmp cx, ax
jne 0x4d92f8
xor al, al
jmp 0x4d93e2
push ebx
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], bl
call fcn.00453803
lea eax, [edi + 0x40]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
lea esi, [ebp - 0x28]
mov dword [ebp - 0x2c], esi
cmp ecx, 0x10
jb 0x4d932d
mov dword [ebp - 0x2c], eax
lea edx, [ebp - 0x28]
cmp ecx, 0x10
jb 0x4d9337
mov edx, eax
mov edi, dword [edi + 0x38]
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x2c]
mov esi, dword [edi]
push eax
push edx
push dword [ebp - 0x34]
mov ecx, dword [esi + 0x20]
call dword [0x52729c]
mov ecx, edi
call dword [esi + 0x20]
sub eax, ebx
je 0x4d9367
sub eax, 1
jne 0x4d93c5
mov edi, dword [ebp - 0x30]
jmp 0x4d936d
mov edi, dword [ebp - 0x30]
mov byte [edi + 0x3e], bl
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x28]
cmp ecx, 0x10
jb 0x4d937d
mov edx, eax
mov esi, dword [ebp - 0x38]
sub esi, edx
je 0x4d93a7
lea edx, [ebp - 0x28]
cmp ecx, 0x10
jb 0x4d938e
mov edx, eax
push dword [edi + 0x4c]
push esi
push 1
push edx
call fcn.004ec96c
add esp, 0x10
cmp esi, eax
jne 0x4d93d0
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
cmp byte [edi + 0x3e], 0
je 0x4d93ce
test esi, esi
jne 0x4d931f
push ebx
push 8
lea ecx, [ebp - 0x28]
call fcn.00453714
jmp 0x4d9319
dec eax
sub eax, 1
jne 0x4d93d4
inc eax
jmp 0x4d93d2
mov bl, 1
mov al, bl
mov bl, al
lea ecx, [ebp - 0x28]
call fcn.00405ade
mov al, bl
jmp 0x4d93e2
mov al, 1
call fcn.004db4a1
ret
Function at 0x4d98bc
Capabilities:
Write file on windows

Disassembly:
push 0x34
mov eax, 0x524f01
call fcn.004db4f7
mov esi, ecx
mov dword [ebp - 0x30], esi
mov edi, dword [ebp + 8]
mov ebx, 0xffff
cmp bx, di
jne 0x4d98e1
xor eax, eax
jmp 0x4d9a68
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x4d990d
mov edx, dword [esi + 0x30]
mov eax, dword [edx]
lea eax, [ecx + eax*2]
cmp ecx, eax
jae 0x4d990d
dec dword [edx]
mov ax, di
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], di
jmp 0x4d9a68
cmp dword [esi + 0x4c], 0
je 0x4d9a65
mov ecx, esi
call fcn.004d94e2
xor eax, eax
cmp dword [esi + 0x38], eax
jne 0x4d9941
push dword [esi + 0x4c]
push edi
call fcn.004ebe67
pop ecx
pop ecx
cmp ax, bx
je 0x4d9a65
movzx ebx, di
jmp 0x4d9a65
push eax
push 8
lea ecx, [ebp - 0x28]
mov word [ebp - 0x2c], di
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
call fcn.00453803
and dword [ebp - 4], 0
lea eax, [esi + 0x40]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
lea edi, [ebp - 0x28]
mov dword [ebp - 0x34], edi
cmp ecx, 0x10
jb 0x4d997b
mov dword [ebp - 0x34], eax
lea edx, [ebp - 0x28]
cmp ecx, 0x10
jb 0x4d9985
mov edx, eax
mov edi, dword [esi + 0x38]
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x34]
mov esi, dword [edi]
push eax
push edx
lea eax, [ebp - 0x40]
mov ecx, dword [esi + 0x1c]
push eax
lea eax, [ebp - 0x2a]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x38]
call dword [0x52729c]
mov ecx, edi
call dword [esi + 0x1c]
test eax, eax
js 0x4d9a5d
cmp eax, 1
jg 0x4d9a37
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x28]
cmp ecx, 0x10
jb 0x4d99d0
mov edx, eax
mov edi, dword [ebp - 0x3c]
sub edi, edx
je 0x4d99ff
lea edx, [ebp - 0x28]
cmp ecx, 0x10
jb 0x4d99e1
mov edx, eax
mov esi, dword [ebp - 0x30]
push dword [esi + 0x4c]
push edi
push 1
push edx
call fcn.004ec96c
add esp, 0x10
cmp edi, eax
jne 0x4d9a32
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
jmp 0x4d9a02
mov esi, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
mov byte [esi + 0x3e], 1
cmp dword [ebp - 0x40], edx
jne 0x4d9a2c
test edi, edi
jne 0x4d996d
cmp dword [ebp - 0x18], 0x20
jae 0x4d9a57
push edi
push 8
lea ecx, [ebp - 0x28]
call fcn.00453714
jmp 0x4d9967
mov eax, dword [ebp + 8]
movzx ebx, ax
movzx ebx, bx
jmp 0x4d9a57
cmp eax, 3
jne 0x4d9a5d
mov eax, dword [ebp - 0x30]
push dword [eax + 0x4c]
push dword [ebp - 0x2c]
call fcn.004ebe67
pop ecx
pop ecx
cmp ax, bx
je 0x4d9a57
mov eax, dword [ebp + 8]
movzx ebx, ax
movzx eax, bx
movzx ebx, ax
lea ecx, [ebp - 0x28]
call fcn.00405ade
mov ax, bx
call fcn.004db4a1
ret 4

Function at 0x4f643b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004f60fe

Function at 0x4f6446
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004f627f
Function at 0x4fef1a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x24
mov eax, dword [0x57c080]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
push edi
mov esi, ecx
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esp + 0x3c]
mov edi, dword [esi + 0x30]
movsx ebx, ax
shr eax, 0x10
movsx ebp, ax
jmp 0x4fef89
mov esi, dword [edi]
lea ecx, [esp + 0x1c]
xorps xmm0, xmm0
movups xmmword [esp + 0x1c], xmm0
push ecx
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x38]
push ebp
push ebx
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4fef86
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x78]
test al, al
je 0x4fef86
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x80]
test al, al
jne 0x4fef8f
mov edi, dword [edi + 8]
test edi, edi
jne 0x4fef46
jmp 0x4fefb5
xor eax, eax
mov dword [esp + 0x10], ebx
cmp dword [esp + 0x38], 0x205
lea ecx, [esp + 0x10]
push ecx
sete al
mov dword [esp + 0x18], ebp
inc eax
mov ecx, esi
mov dword [esp + 0x1c], eax
mov eax, dword [esi]
call dword [eax + 0x4c]
mov ecx, dword [esp + 0x2c]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004da8b4
add esp, 0x24
ret 8
Function at 0x4ff129
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x3c
mov eax, dword [0x57c080]
xor eax, esp
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
push ebx
push ebp
movsx ebp, ax
mov ebx, ecx
shr eax, 0x10
and dword [edx], 0
push esi
cwde
push edi
mov edi, dword [ebx + 0x30]
mov dword [esp + 0x14], eax
jmp 0x4ff19e
mov esi, dword [edi]
lea ecx, [esp + 0x34]
xorps xmm0, xmm0
movups xmmword [esp + 0x34], xmm0
push ecx
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x38]
push dword [esp + 0x14]
lea eax, [esp + 0x38]
push ebp
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4ff19b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x78]
test al, al
je 0x4ff19b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x80]
test al, al
jne 0x4ff1c8
mov edi, dword [edi + 8]
test edi, edi
jne 0x4ff158
mov ecx, dword [ebx + 0x34]
test ecx, ecx
je 0x4ff1b1
mov eax, dword [ecx]
call dword [eax + 0x54]
and dword [ebx + 0x34], edi
mov ecx, dword [esp + 0x44]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004da8b4
add esp, 0x3c
ret 0x10
mov ecx, dword [ebx + 0x34]
cmp esi, ecx
je 0x4ff1db
test ecx, ecx
je 0x4ff1d8
mov eax, dword [ecx]
call dword [eax + 0x54]
mov dword [ebx + 0x34], esi
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
mov dword [esp + 0x18], ebp
and ax, cx
lea edx, [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x1c], ecx
xor cx, cx
cmp cx, ax
mov ecx, dword [ebx + 0x34]
push edx
sbb eax, eax
neg eax
mov dword [esp + 0x24], eax
mov eax, dword [ecx]
call dword [eax + 0x50]
xor eax, eax
lea edi, [esp + 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], 0x10
mov dword [esp + 0x2c], 2
call dword [sym.imp.USER32.dll_TrackMouseEvent]
jmp 0x4ff1b1
Function at 0x401c57
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x401c66
pop dword [ebp - 0x14]
mov eax, 0x401c66
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0x9a23f1ba
sub dword [ebp - 0x24], 0x4bd1ac6f
mov dword [ebp - 0x20], 0x7ff74700
add dword [ebp - 0x20], 0xb23c0545
mov dword [ebp - 0x1c], 0xe40e2172
sub dword [ebp - 0x1c], 0x97c1dd44
mov dword [ebp - 0x18], 0xbfe37618
sub dword [ebp - 0x18], 0xbfe37618
lea eax, [ebp - 0x24]
push eax
mov eax, 0x754bd735
add eax, 0x8af4591f
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0xd5835d2b
sub dword [ebp - 0x24], 0x6110f3d5
mov dword [ebp - 0x20], 0xbf057bf7
add dword [ebp - 0x20], 0x8266e57e
mov dword [ebp - 0x1c], 0x45bce864
add dword [ebp - 0x1c], 0x1db28408
mov dword [ebp - 0x18], 0x890a688
sub dword [ebp - 0x18], 0x890a688
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0x68ed4641
add eax, 0x9752e9eb
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x3d4d2
push 0
call eax
mov ecx, 0x960c453a
sub ecx, 0x960be1f2
mov ebx, eax
mov esi, 0x407000
add esi, dword [ebp - 0x14]
mov edx, 0xb1f622cc
sub edx, 0x418a3bd5
xor dword [ebp - 0xc], ecx
mov edi, dword [esi]
mov dword [ebp - 0x10], 0x6dc45c20
add edi, edx
xor dword [ebp - 0xc], ebx
mov dword [ebx], edi
add dword [ebp - 0x10], 0xfb3e639b
add ebx, 0x8b30b043
sub ebx, 0x8b30b03f
add esi, 0x23da8c56
sub esi, 0x23da8c52
loop 0x401d7d
add eax, 0x17ff3
mov ebx, eax
add eax, 0xc82dbc04
sub eax, 0xc82dbbff
mov ecx, 0xded00955
add ecx, 0x216ff6ab
add ecx, dword [ebp - 0x14]
call ebx
leave
ret

Function at 0x401fb2
Capabilities:
Delete file
Move file

Disassembly:
mov ecx, 0x404f28
jmp fcn.0040170c

Function at 0x401ff6
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push esi
mov esi, 0x404f28
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402013
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
je 0x402018
push 1
pop eax
pop esi
ret
call fcn.00401fb2
pop esi
ret
Function at 0x404883
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov edi, dword [ebp + 8]
mov edi, dword [edi]
push edi
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
pop edi
mov esi, ecx
not esi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0xc]
lea eax, [eax + 0x10]
push dword [eax]
xor eax, eax
push edx
mov ecx, dword [edx + 0x30]
movzx ebx, byte [eax + edi]
movzx edx, byte [ecx + eax*2]
sub ebx, edx
cmp ebx, 0
je 0x4048ca
cmp ebx, 0x20
je 0x4048ca
cmp ebx, 0xffffffe0
je 0x4048ca
jne 0x4048d3
add eax, 1
cmp esi, eax
je 0x4048e0
jne 0x4048af
pop edx
mov edx, dword [edx]
xor eax, eax
pop ebx
cmp ebx, edx
push ebx
je 0x4048e4
jne 0x4048ab
pop edx
mov eax, dword [edx + 0x18]
leave
ret 4

Function at 0x4048f8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
sub esp, 0x10
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [edx]
test eax, eax
je 0x4049b9
test ecx, ecx
je 0x4049b9
mov ebx, dword [eax + 0x3c]
mov edx, dword [ebx + eax + 0x78]
mov ebx, dword [ebx + eax + 0x7c]
test edx, edx
je 0x4049b9
test ebx, ebx
je 0x4049b9
mov ebx, eax
add ebx, edx
je 0x4049b9
mov esi, dword [edx + eax + 0x18]
test esi, esi
je 0x4049b9
cmp dword [edx + eax + 0x14], 0
je 0x4049b9
mov edi, dword [edx + eax + 0x20]
mov ebx, dword [edx + eax + 0x24]
add edi, eax
mov edx, dword [edx + eax + 0x1c]
add ebx, eax
add edx, eax
test esi, esi
jbe 0x4049b9
mov dword [esp], edx
xor ebp, ebp
mov dword [esp + 0xc], edi
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 8]
movzx ecx, word [ebx + ebp*2]
mov esi, dword [eax + ebp*4]
add esi, dword [esp + 0x24]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x4049a9
test dl, dl
je 0x4049a5
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x4049a9
add edi, 2
add esi, 2
test dl, dl
jne 0x404989
xor eax, eax
jmp 0x4049ae
sbb eax, eax
or eax, 1
test eax, eax
je 0x4049c5
inc ebp
cmp ebp, dword [esp + 4]
jb 0x404976
xor eax, eax
add esp, 0x10
pop ebx
pop edi
pop esi
pop ebp
ret 8
mov edx, dword [esp]
mov edx, dword [edx + ecx*4]
mov eax, dword [esp + 0x24]
add eax, edx
add esp, 0x10
pop ebx
pop edi
pop esi
pop ebp
ret 8
Function at 0x405926
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
cld
xor edx, edx
mov edx, dword fs:[edx + 0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
push 0x18
pop ecx
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x405954
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x40594b
cmp edi, 0x6a4abc5b
mov ebx, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x405943
mov eax, ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x405975
mov esp, ebp
pop ebp
ret

Function at 0x405979
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
add esp, 0xffffffec
push esi
push ebx
push edi
push edx
push ecx
mov eax, dword [ebp + 0x10]
xor edx, edx
xchg edx, eax
mov esi, 0x3c
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov esi, dword [eax + 0x78]
add esi, 0x18
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
add esi, 4
lea edi, [ebp - 8]
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
stosd dword es:[edi], eax
mov dword [ebp - 8], eax
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
push eax
stosd dword es:[edi], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
pop esi
mov dword [ebp - 4], 0
push esi
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
xchg edi, eax
mov ebx, edi
push edi
xor al, al
scasb al, byte es:[edi]
jne 0x4059e5
pop esi
sub edi, ebx
push edx
cld
xor ecx, ecx
dec ecx
mov edx, ecx
xor eax, eax
xor ebx, ebx
lodsb al, byte [esi]
xor al, cl
mov cl, ch
mov ch, dl
mov dl, dh
mov dh, 8
shr bx, 1
rcr ax, 1
jae 0x405a12
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x405a01
xor ecx, eax
xor edx, ebx
dec edi
jne 0x4059f2
not edx
not ecx
mov eax, edx
rol eax, 0x10
mov ax, cx
pop edx
cmp edx, eax
je 0x405a38
pop esi
add esi, 4
add dword [ebp - 4], 1
jmp 0x4059d9
pop esi
mov eax, dword [ebp - 4]
shl eax, 1
add eax, dword [ebp - 0x10]
xor esi, esi
xchg esi, eax
mov ax, word [esi]
shl ax, 2
add eax, dword [ebp - 8]
xchg esi, eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
pop ecx
pop edx
pop edi
pop ebx
pop esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x405a64
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4068e0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
lea eax, [esp + 0x14]
push edi
push eax
mov dword [esp + 0x1c], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0x84]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x44], 1
je case.0x406921.2
mov ecx, dword [esp + 0x7c]
lea eax, [ecx - 1]
cmp eax, 5
ja case.0x406921.2
jmp dword [eax*4 + 0x4069ac]
mov word [esp + 0x48], di
jmp 0x40695a
mov word [esp + 0x48], 2
jmp 0x40695a
mov word [esp + 0x48], 3
jmp 0x40695a
mov word [esp + 0x48], 4
jmp 0x40695a
mov word [esp + 0x48], 7
jmp 0x40695a
mov word [esp + 0x48], 5
lea edx, [esp + 8]
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x18]
push edx
push eax
push edi
push edi
push edi
push 1
push edi
push edi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
cmp esi, edi
je 0x4069a4
cmp dword [esp + 0x70], edi
je 0x406990
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call edi
mov eax, esi
pop edi
pop esi
add esp, 0x54
ret

Function at 0x406ca0
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebp
push esi
push edi
push eax
call fcn.00407520
mov edi, dword [esp + 0x28]
mov ebp, eax
push edi
xor esi, esi
call dword [0x431044]
add esp, 8
test ebp, ebp
je 0x406d6a
test eax, eax
je 0x406d6a
inc eax
push ebx
push eax
call fcn.00407857
mov ebx, eax
or ecx, 0xffffffff
xor eax, eax
push 0x5c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00407830
mov esi, eax
add esp, 0xc
test esi, esi
je 0x406d0c
mov byte [esi], 0
inc esi
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406d46
mov ecx, dword [esp + 0x10]
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp + 0x10]
mov esi, eax
neg esi
sbb esi, esi
push edx
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x406d59
mov eax, dword [esp + 0x28]
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
push ebx
call fcn.00407821
add esp, 4
mov eax, esi
pop ebx
pop edi
pop esi
pop ebp
pop ecx
ret
mov eax, esi
pop edi
pop esi
pop ebp
pop ecx
ret

Function at 0x406de0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x406dfe
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x406df3
pop esi
ret