joyce8/EMBER2024-capa huggingface dataset:
Function at 0x520bb0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x21c], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x520d26
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x520d01
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebp - 0x216], 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x105
lea eax, [ebp - 0x216]
push eax
lea eax, [ebp - 0x21c]
mov edx, esi
call fcn.00407350
lea eax, [ebp - 0x21c]
mov edx, 0x520d40
call fcn.004075e0
mov eax, dword [ebp - 0x21c]
call fcn.00407270
push eax
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x520c70
lea eax, [ebp - 0x216]
call fcn.00416128
mov ecx, eax
lea edx, [ebp - 0x216]
mov eax, ebx
call fcn.00407320
jmp 0x520c79
mov eax, ebx
xor edx, edx
call fcn.004071e4
cmp si, 0x61
jae 0x520c9b
lea edx, [ebp - 0x220]
mov eax, dword [ebx]
call fcn.0041bc3c
mov edx, dword [ebp - 0x220]
mov eax, ebx
call fcn.004071e4
jmp 0x520cb5
lea edx, [ebp - 0x224]
mov eax, dword [ebx]
call fcn.0041bc28
mov edx, dword [ebp - 0x224]
mov eax, ebx
call fcn.004071e4
lea eax, [ebp - 0x228]
push eax
mov eax, dword [ebx]
mov dword [ebp - 0x230], eax
mov byte [ebp - 0x22c], 0x11
lea edx, [ebp - 0x230]
xor ecx, ecx
mov eax, 0x520d54
call fcn.00416734
mov edx, dword [ebp - 0x228]
mov eax, ebx
call fcn.004071e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x520d08
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
Function at 0x525355
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0xefcdab89
mov edx, dword [ebp + 8]
mov dword [edx + 0x10], 0x98badcfe
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x14], 0x10325476
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 0xc3d2e1f0
pop ebp
ret

Function at 0x5258cc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
mov dword [ebp - 4], eax
push 0x104
push dword [ebp + 8]
mov edx, dword [ebp + 8]
add edx, 0x104
push edx
call fcn.00524fe0
add esp, 0xc
cmp dword [ebp - 4], 0x104
jae 0x525920
mov ecx, 0x104
sub ecx, dword [ebp - 4]
push ecx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 4]
push eax
mov edx, dword [ebp + 8]
call dword [edx + 0x20c]
add esp, 8
add dword [ebp - 4], eax
cmp dword [ebp - 4], 0x104
jb 0x5258f8
xor ecx, ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov cl, byte [edx + eax + 0x104]
not cl
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 8]
xor byte [edx + eax], cl
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x104
jb 0x525925
push dword [ebp + 8]
call fcn.00525818
pop ecx
mov ecx, dword [ebp + 8]
add ecx, 0x104
push ecx
call fcn.00525818
pop ecx
pop ecx
pop ebp
ret

Function at 0x526e06
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x9c], 0xffffffff
je 0x526eb4
mov edx, dword [ebp + 0x10]
cmp dword [edx + 0x9c], 0x40
jbe 0x526e45
mov ecx, dword [ebp + 0x10]
add ecx, 0x40
push ecx
push dword [ebp + 0x10]
call fcn.00525435
add esp, 8
mov eax, dword [ebp + 0x10]
mov dword [eax + 0x9c], 0x14
mov edx, 0x40
mov ecx, dword [ebp + 0x10]
sub edx, dword [ecx + 0x9c]
push edx
push 0
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x10]
add eax, dword [edx + 0x9c]
push eax
call fcn.00524fcc
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x10]
xor dword [edx + eax*4], 0x36363636
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x10
jb 0x526e70
mov ecx, dword [ebp + 0x10]
add ecx, 0x40
push ecx
call fcn.00525355
pop ecx
mov eax, dword [ebp + 0x10]
add eax, 0x40
push eax
push 0x40
push dword [ebp + 0x10]
call fcn.00525399
add esp, 0xc
mov edx, dword [ebp + 0x10]
mov dword [edx + 0x9c], 0xffffffff
cmp dword [ebp + 0xc], 0
je 0x526ecf
mov ecx, dword [ebp + 0x10]
add ecx, 0x40
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00525399
add esp, 0xc
pop ecx
pop ebp
ret
Function at 0x526ed2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x9c], 0xffffffff
je 0x526ef3
push dword [ebp + 0x10]
push 0
push 0
call fcn.00526e06
add esp, 0xc
mov edx, dword [ebp + 0x10]
add edx, 0x40
push edx
lea ecx, [ebp - 0x18]
push ecx
call fcn.00525435
add esp, 8
xor eax, eax
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
xor dword [ecx + edx*4], 0x6a6a6a6a
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x10
jb 0x526f0b
mov eax, dword [ebp + 0x10]
add eax, 0x40
push eax
call fcn.00525355
pop ecx
mov edx, dword [ebp + 0x10]
add edx, 0x40
push edx
push 0x40
push dword [ebp + 0x10]
call fcn.00525399
add esp, 0xc
mov ecx, dword [ebp + 0x10]
add ecx, 0x40
push ecx
push 0x14
lea eax, [ebp - 0x18]
push eax
call fcn.00525399
add esp, 0xc
mov edx, dword [ebp + 0x10]
add edx, 0x40
push edx
lea ecx, [ebp - 0x18]
push ecx
call fcn.00525435
add esp, 8
xor eax, eax
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
cmp edx, dword [ebp + 0xc]
jae 0x526f92
mov ecx, dword [ebp - 4]
mov al, byte [ebp + ecx - 0x18]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov byte [edx + ecx], al
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jb 0x526f77
mov esp, ebp
pop ebp
ret
Function at 0x528438
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde8
lea eax, [ebp - 0xd8]
push eax
call fcn.00526d54
pop ecx
lea edx, [ebp - 0xd8]
push edx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00526d6b
add esp, 0xc
push 0xa0
lea ecx, [ebp - 0xd8]
push ecx
lea eax, [ebp - 0x178]
push eax
call fcn.00524fe0
add esp, 0xc
lea edx, [ebp - 0x178]
push edx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00526e06
add esp, 0xc
mov eax, dword [ebp + 0x20]
dec eax
mov ecx, 0x14
xor edx, edx
div ecx
inc eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jae 0x5285cc
push 0x14
push 0
lea ecx, [ebp - 0x38]
push ecx
call fcn.00524fcc
add esp, 0xc
push 0xa0
lea eax, [ebp - 0x178]
push eax
lea edx, [ebp - 0x218]
push edx
call fcn.00524fe0
add esp, 0xc
mov ecx, dword [ebp - 4]
inc ecx
shr ecx, 0x18
mov byte [ebp - 0x24], cl
mov eax, dword [ebp - 4]
inc eax
shr eax, 0x10
mov byte [ebp - 0x23], al
mov edx, dword [ebp - 4]
inc edx
shr edx, 8
mov byte [ebp - 0x22], dl
mov cl, byte [ebp - 4]
inc ecx
mov byte [ebp - 0x21], cl
xor eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 4
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 0x18]
jae 0x528586
lea ecx, [ebp - 0x218]
push ecx
push dword [ebp - 0xc]
lea eax, [ebp - 0x24]
push eax
call fcn.00526e06
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
push 0x14
lea ecx, [ebp - 0x24]
push ecx
call fcn.00526ed2
add esp, 0xc
xor eax, eax
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
mov cl, byte [ebp + edx - 0x24]
mov eax, dword [ebp - 0xc]
xor byte [ebp + eax - 0x38], cl
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x14
jb 0x528549
push 0xa0
lea edx, [ebp - 0xd8]
push edx
lea ecx, [ebp - 0x218]
push ecx
call fcn.00524fe0
add esp, 0xc
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x18]
jb 0x528519
xor edx, edx
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 4]
shl ecx, 2
lea ecx, [ecx + ecx*4]
mov dword [ebp - 0xc], ecx
jmp 0x5285af
mov eax, dword [ebp - 8]
mov dl, byte [ebp + eax - 0x38]
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp - 0xc]
mov byte [ecx + eax], dl
inc dword [ebp - 8]
inc dword [ebp - 0xc]
cmp dword [ebp - 8], 0x14
jae 0x5285bd
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp + 0x20]
jb 0x528599
inc dword [ebp - 4]
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x5284b5
mov esp, ebp
pop ebp
ret

Function at 0x52ffcc
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
mov ecx, dword [edi + 0x178]
mov edx, ebx
mov eax, edi
call fcn.005302d4
mov esi, eax
mov dword [edi + 0x178], esi
and esi, 0xff
add dword [edi + 0x17c], esi
imul esi, dword [edi + 0x17c], 0x8088405
inc esi
mov dword [edi + 0x17c], esi
mov edx, esi
shr edx, 0x18
mov ecx, dword [edi + 0x180]
mov eax, edi
call fcn.005302d4
mov dword [edi + 0x180], eax
pop edi
pop esi
pop ebx
ret
Function at 0x530040
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [esi + 0x118]
cmp byte [eax + 0x4c], 0
jne 0x530074
mov edi, ecx
dec edi
test edi, edi
jl 0x530085
inc edi
mov eax, esi
call fcn.00530024
xor byte [ebx], al
movzx edx, byte [ebx]
mov eax, esi
call fcn.0052ffcc
inc ebx
dec edi
jne 0x53005b
jmp 0x530085
lea eax, [esi + 0x3c4]
push eax
push ecx
push ebx
call fcn.005257c8
add esp, 0xc
pop edi
pop esi
pop ebx
ret

Function at 0x53015c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov esi, ecx
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00406ba4
xor eax, eax
push ebp
push 0x5301d2
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.0053008c
mov dword [ebp - 8], 0xc
lea esi, [ebp - 0x14]
mov eax, edi
call fcn.00530024
mov ebx, eax
xor bl, byte [esi]
mov edx, ebx
mov eax, edi
call fcn.0052ffcc
mov byte [esi], bl
inc esi
dec dword [ebp - 8]
jne 0x53019c
movzx ebx, byte [ebp - 9]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5301d9
lea eax, [ebp - 4]
call fcn.004066ac
ret
Function at 0x531278
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
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 0x531469
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 0xffffffff
jle 0x531425
mov eax, dword [ebp - 4]
call fcn.00533694
cmp ebx, eax
jge 0x531425
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x120]
mov edx, ebx
call fcn.00515670
mov edx, dword [0x5183b4]
call fcn.0040564c
mov esi, eax
mov eax, esi
call fcn.0051bae8
test al, al
je 0x53141b
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov eax, dword [esi + 0x50]
test eax, eax
je 0x5312fa
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x53140e
xor eax, eax
push ebp
push 0x531407
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.005322b0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x138]
call fcn.0043bc4c
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 + 0x138]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x18]
lea edx, [ebp - 0x46]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x138]
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 + 0x138]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x18]
movzx esi, word [ebp - 0x26]
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, esi
call fcn.00406ce4
mov eax, dword [ebp - 8]
call fcn.00406c2c
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x138]
mov ecx, esi
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x160]
movzx eax, 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.00531884
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x160]
movzx edx, byte [ebp - 9]
mov byte [eax + 0x28], dl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x531453
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x138]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x40]
test al, al
jne 0x531406
mov eax, dword [ebp - 4]
call fcn.00532334
ret
mov eax, dword [ebp - 8]
mov edx, dword [esi + 0x50]
call fcn.00406700
jmp 0x531453
mov eax, dword [ebp - 8]
call fcn.004066ac
jmp 0x531453
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.004151b8
mov ecx, dword [ebp - 0x54]
mov dl, 1
mov eax, dword [0x42c994]
call fcn.00419fcc
call fcn.00405ee4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x531470
lea eax, [ebp - 0x54]
call fcn.004071d4
ret
Function at 0x53630c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
push ecx
mov esi, dword [ebx + 0x2c]
mov edi, dword [ebx + 0x3c]
sub edi, dword [ebx + 0x74]
sub edi, dword [ebx + 0x6c]
jmp 0x536339
mov eax, dword [ebx + 0x2c]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x6c]
ja 0x5363b8
push esi
mov eax, dword [ebx + 0x38]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.0052b93c
add esp, 0xc
sub dword [ebx + 0x70], esi
sub dword [ebx + 0x6c], esi
sub dword [ebx + 0x5c], ebp
mov eax, dword [ebx + 0x4c]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x44]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x536386
mov cx, word [esp]
sub cx, si
jmp 0x536388
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x53636f
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x40]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x5363ae
mov cx, word [esp]
sub cx, si
jmp 0x5363b0
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x536397
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x536415
mov edx, dword [ebx + 0x38]
mov ecx, edi
add edx, dword [ebx + 0x6c]
mov eax, ebp
add edx, dword [ebx + 0x74]
call fcn.00535fe0
add dword [ebx + 0x74], eax
cmp dword [ebx + 0x74], 3
jb 0x536400
mov eax, dword [ebx + 0x38]
mov edx, dword [ebx + 0x6c]
movzx eax, byte [eax + edx]
mov dword [ebx + 0x48], eax
mov ecx, dword [ebx + 0x58]
shl eax, cl
mov edx, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x6c]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x54]
mov dword [ebx + 0x48], eax
cmp dword [ebx + 0x74], 0x106
jae 0x536415
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x536316
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x53b09c
Capabilities:
Get disk size

Disassembly:
push ebx
add esp, 0xffffffc4
mov ebx, eax
call fcn.0053af38
test al, al
je 0x53b0c9
lea edx, [esp + 0x10]
mov eax, ebx
call fcn.0053b03c
test al, al
jne 0x53b0bf
call fcn.0041c6f0
mov eax, dword [esp + 0x14]
imul dword [esp + 0x18]
jmp 0x53b0fa
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
mov eax, ebx
call fcn.00407270
push eax
call sub.kernel32.dll_GetDiskFreeSpaceW
test eax, eax
jne 0x53b0f3
call fcn.0041c6f0
mov eax, dword [esp]
imul dword [esp + 4]
add esp, 0x3c
pop ebx
ret
Function at 0x540bb0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x540d66
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x5c8]
movzx eax, byte [eax + 0x21]
test al, al
je 0x540d4b
cmp al, 1
jne 0x540c96
mov eax, dword [ebx + 0x674]
call fcn.0040540c
xor eax, eax
mov dword [ebx + 0x674], eax
mov eax, ebx
call fcn.00540ac4
lea ecx, [ebx + 0x698]
mov edx, dword [ebx + 0x134]
add edx, 2
mov eax, ebx
call fcn.00533b18
cmp dword [ebx + 0x698], 0
jne 0x540c3c
lea edx, [ebp - 8]
mov eax, 0xbb
call fcn.004151b8
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x528ba0]
call fcn.00419f90
call fcn.00405ee4
inc dword [ebx + 0x134]
mov eax, dword [ebx + 0x698]
call fcn.0041543c
test al, al
je 0x540c62
mov eax, dword [ebx + 0x698]
call fcn.00407270
push eax
call sub.kernel32.dll_DeleteFileW
cmp word [ebx + 0x622], 0
je 0x540c81
mov ecx, dword [ebx + 0x134]
inc ecx
mov edx, ebx
mov eax, dword [ebx + 0x624]
call dword [ebx + 0x620]
mov eax, ebx
call fcn.00540a00
mov dword [ebx + 0x650], eax
mov dword [ebx + 0x654], edx
jmp 0x540cfe
mov eax, dword [ebx + 0x674]
call fcn.0040540c
xor eax, eax
mov dword [ebx + 0x674], eax
lea eax, [ebp - 4]
mov edx, dword [ebx + 0x698]
call fcn.00407238
lea eax, [ebx + 0x698]
mov edx, dword [ebx + 0x1b0]
call fcn.004071e4
push 1
mov ecx, dword [ebx + 0x134]
add ecx, 2
lea edx, [ebx + 0x698]
mov eax, ebx
call fcn.00533ca8
inc dword [ebx + 0x134]
mov eax, dword [ebx + 0x5c8]
mov edx, dword [eax + 8]
mov dword [ebx + 0x650], edx
mov edx, dword [eax + 0xc]
mov dword [ebx + 0x654], edx
push 0xff00
movzx eax, byte [ebx + 0x10d]
push eax
mov eax, dword [ebx + 0x110]
push eax
mov ecx, dword [ebx + 0x698]
mov dl, 1
mov eax, dword [0x515da8]
call fcn.0051643c
mov dword [ebx + 0x674], eax
mov dword [ebx + 0x648], 0
mov dword [ebx + 0x64c], 0
xor edx, edx
mov eax, dword [ebx + 0x690]
call fcn.0051c40c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x540d6d
lea eax, [ebp - 8]
mov edx, 2
call fcn.004071dc
ret
Function at 0x5436bc
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
add esp, 0xfffffda0
mov ebx, edx
mov esi, eax
cmp dword [esi + 0x5d0], 0
je 0x5436e0
mov eax, dword [esi + 0x5d0]
call fcn.00512668
test al, al
jne 0x5436fb
push esp
push 0x12d
call sub.kernel32.dll_GetTempPathW
mov eax, ebx
mov edx, esp
mov ecx, 0x12d
call fcn.004073cc
jmp 0x543708
mov eax, ebx
mov edx, dword [esi + 0x5d0]
call fcn.004071e4
mov eax, dword [ebx]
mov dword [esp + 0x25c], eax
mov eax, dword [esp + 0x25c]
test eax, eax
je 0x543721
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebx]
cmp word [edx + eax*2 - 2], 0x5c
je 0x543737
mov eax, ebx
mov edx, 0x54374c
call fcn.004075e0
add esp, 0x260
pop esi
pop ebx
ret
Function at 0x401050
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x414038
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401058
sub eax, edx
push esi
mov esi, eax
xor ecx, ecx
test esi, esi
jle 0x401093
lea ebx, [ebx]
mov eax, 0xcccccccd
mul ecx
shr edx, 2
lea eax, [edx + edx*4]
mov edx, ecx
sub edx, eax
mov al, byte [edx*4 + 0x412f5c]
xor byte [ecx + 0x414038], al
inc ecx
cmp ecx, esi
jl 0x401070
pop esi
ret

Function at 0x401200
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x41207c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x228
xor ebx, ebx
lea eax, [ebp - 0x22c]
push ebx
push eax
call fcn.00409110
add esp, 0xc
lea ecx, [ebp - 0x230]
push ecx
push esi
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea ecx, [ecx]
mov edx, dword [ebp + 8]
cmp dword [ebp - 0x228], edx
je 0x40128c
lea eax, [ebp - 0x230]
push eax
push esi
call edi
test eax, eax
jne 0x401260
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402af4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x218]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402af4
mov esp, ebp
pop ebp
ret

Function at 0x4012b0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x41207c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
call fcn.00409110
add esp, 0xc
lea ecx, [ebp - 0x230]
push ecx
push esi
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x401310
cmp dword [ebp - 0x228], ebx
je 0x401328
lea edx, [ebp - 0x230]
push edx
push esi
call edi
test eax, eax
jne 0x401310
jmp 0x401347
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [ebp + eax - 0x20c]
mov word [eax + 0x414438], cx
add eax, 2
test cx, cx
jne 0x401330
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 0x414438
pop esi
call fcn.00402af4
mov esp, ebp
pop ebp
ret

Function at 0x401420
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push eax
push 0x2001f
push 0
push 0x410258
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401472
mov edx, dword [ebp - 4]
lea ecx, [ebp - 8]
push ecx
push str.FPGFBMark
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov eax, dword [ebp - 8]
push 0x20
push str.FBMarkToken
push 1
push 0
push 0x410298
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x401810
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, eax
call fcn.004010e0
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor ecx, ecx
test al, al
setne cl
mov dword [edi + 0xc0], ecx
call esi
push str._uac
push eax
call fcn.0040333c
add esp, 8
test eax, eax
je 0x401864
lea edx, [ebp - 4]
push edx
call esi
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov eax, dword [eax + 8]
push eax
call fcn.00403666
mov dword [edi + 0xc4], eax
jmp 0x401870
lea ecx, [edi + 0xc4]
push ecx
call fcn.00401480
mov eax, str.1001
lea edx, [edi + 0x40]
add esp, 4
sub edx, eax
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x401880
mov eax, str.gamebox
lea edx, [edi + 0x80]
sub edx, eax
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4018a0
call fcn.00401040
call fcn.00401040
call fcn.00401040
mov edx, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
mov ecx, 0x80000002
call fcn.00402080
test eax, eax
jne 0x4018f3
mov edx, str.SOFTWAREWow6432NodeMicrosoftWindowsCurrentVersionUninstall
mov ecx, 0x80000002
call fcn.00402080
test eax, eax
jne 0x4018f3
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionUninstall
mov ecx, 0x80000001
call fcn.00402080
xor edx, edx
test eax, eax
setne dl
lea esi, [edi + 0xcc]
mov dword [0x413f30], eax
mov dword [edi + 0xc8], edx
call fcn.00401360
push 0
call fcn.00402fc1
mov dword [edi + 0x2dc], edx
mov dword [edi + 0x2d8], eax
mov eax, str._aY_u
lea edx, [edi + 0x2e0]
add esp, 4
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x401933
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401950
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00401040
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 1
call esi
call fcn.00401040
mov dword [ebp - 4], 0
call fcn.00401040
call fcn.00401040
push 1
call esi
call fcn.00401040
mov eax, dword [ebp + 8]
push 0x4103c8
push eax
call fcn.004037c6
add esp, 8
mov edi, eax
call fcn.00401040
call fcn.00401040
push 1
call esi
call fcn.00401040
test edi, edi
je 0x401a0b
call fcn.00401040
call fcn.00401040
push 1
call esi
call fcn.00401040
mov ecx, dword [ebp + 0xc]
push edi
push ebx
push 1
push ecx
call fcn.00403934
add esp, 0x10
cmp ebx, eax
jne 0x4019dc
mov dword [ebp - 4], 1
call fcn.00401040
call fcn.00401040
push 1
call esi
call fcn.00401040
push edi
call fcn.00403a1b
add esp, 4
call fcn.00401040
call fcn.00401040
push 1
call esi
call fcn.00401040
call fcn.00401040
call fcn.00401040
push 1
call esi
call fcn.00401040
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret