joyce8/EMBER2024-capa huggingface dataset:
Function at 0x470d60
Capabilities:
Encode data using xor

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0x10]
lea eax, [esi*8]
cmp eax, 0x400
jbe 0x470d79
mov esi, pe_nt_image_headers32
mov ebp, dword [esp + 0xc]
cmp esi, dword [ebp]
jne 0x470d87
pop esi
xor eax, eax
pop ebp
ret
mov eax, dword [0x4e4bfc]
test eax, eax
je 0x470d92
call eax
push ebx
lea eax, [esi*8]
push 0
push eax
call fcn.00491ea0
mov ecx, dword [0x4e4c00]
add esp, 8
mov ebx, eax
mov dword [esp + 0x10], ebx
test ecx, ecx
je 0x470db7
call ecx
test ebx, ebx
jne 0x470dc1
pop ebx
pop esi
xor eax, eax
pop ebp
ret
push dword [ebp + 0xc]
call fcn.00438320
push ebx
mov dword [ebp + 0xc], ebx
call dword [0x4e2598]
shr eax, 3
mov dword [esp + 0x1c], eax
mov dword [ebp], eax
lea ecx, [eax*8]
push ecx
push 0
push ebx
call sub.MSVCRT.dll_memset
mov ecx, dword [ebp + 8]
add esp, 0x14
mov dword [ebp + 8], 0
test ecx, ecx
je 0x470e9c
push edi
mov edi, dword [ecx + 0xc]
xor ebx, ebx
mov al, byte [edi]
test al, al
je 0x470e2e
mov edi, edi
movzx eax, al
lea edx, [ebx*8]
lea edi, [edi + 1]
movzx esi, byte [eax + 0x4d9400]
mov al, byte [edi]
xor esi, edx
xor ebx, esi
test al, al
jne 0x470e10
xor edx, edx
mov edi, dword [ecx]
mov eax, ebx
div dword [esp + 0x18]
mov eax, dword [esp + 0x14]
lea esi, [eax + edx*8]
test esi, esi
je 0x470e78
mov eax, dword [esi]
test eax, eax
je 0x470e4e
mov edx, dword [esi + 4]
jmp 0x470e50
xor edx, edx
inc eax
mov dword [esi + 4], ecx
mov dword [esi], eax
test edx, edx
je 0x470e78
mov dword [ecx], edx
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov eax, dword [edx + 4]
test eax, eax
je 0x470e70
mov dword [eax], ecx
mov dword [edx + 4], ecx
jmp 0x470e91
mov dword [ebp + 8], ecx
mov dword [edx + 4], ecx
jmp 0x470e91
mov eax, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x470e87
mov dword [eax + 4], ecx
mov dword [ecx + 4], 0
mov dword [ebp + 8], ecx
mov ecx, edi
test edi, edi
jne 0x470e03
pop edi
pop ebx
pop esi
mov eax, 1
pop ebp
ret
Function at 0x47c5f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, dword [esp + 0x18]
xor ebx, ebx
mov dword [esp + 0x10], ebx
test esi, esi
je 0x47c7c1
cmp byte [esi + 9], bl
je 0x47c61d
inc dword [esi + 0xc]
cmp byte [esi + 0xa], bl
jne 0x47c61d
push esi
call fcn.00446a10
add esp, 4
mov eax, dword [esi + 4]
push ebp
mov ebp, dword [eax + 8]
test ebp, ebp
je 0x47c7ac
push edi
lea ecx, [ecx]
cmp dword [esp + 0x28], 0
je 0x47c678
test byte [ebp + 0x40], 1
jne 0x47c678
mov al, byte [ebp + 0x42]
cmp al, 1
je 0x47c64c
cmp al, 2
jne 0x47c6e6
push ebp
call fcn.00473520
mov ebx, eax
add esp, 4
mov dword [esp + 0x18], ebx
test ebx, ebx
je 0x47c6e6
mov esi, dword [esp + 0x20]
push 0
push ebx
push esi
call fcn.0047c5f0
add esp, 0xc
jmp 0x47c7ab
mov esi, dword [ebp + 0x30]
test esi, esi
je 0x47c6d4
cmp dword [0x4e2568], 0
je 0x47c6ca
mov eax, dword [0x4e4db0]
test eax, eax
je 0x47c69b
push eax
call dword [0x4e25bc]
add esp, 4
push esi
call dword [0x4e2598]
sub dword [0x4e4c08], eax
dec dword [0x4e4c2c]
push esi
call dword [0x4e2590]
mov eax, dword [0x4e4db0]
add esp, 8
test eax, eax
je 0x47c6d4
push eax
call dword [0x4e25c4]
jmp 0x47c6d1
push esi
call dword [0x4e2590]
add esp, 4
mov eax, dword [esp + 0x24]
mov dword [ebp + 0x30], 0
mov byte [ebp + 0x42], 4
mov dword [ebp + 0x3c], eax
xor edi, edi
cmp byte [ebp + 0x44], 0
mov dword [esp + 0x10], edi
jl 0x47c798
lea ebx, [ebp + 0x78]
mov dword [esp + 0x14], ebx
lea ecx, [ecx]
mov ecx, dword [ebx]
test ecx, ecx
je 0x47c77a
mov ecx, dword [ecx + 0x48]
test byte [ecx + 0x18], 0x40
mov esi, dword [ecx + 0x10]
je 0x47c756
dec dword [esi + 0x78]
mov eax, dword [esi + 0x88]
mov dword [ecx + 0xc], eax
mov eax, dword [esi + 0x98]
mov edi, dword [esi + 0x3c]
mov dword [esi + 0x88], ecx
push dword [ecx + 4]
mov ecx, dword [ecx + 0x14]
mov ebx, dword [edi]
dec ecx
cdq
push edx
push eax
push 0
push ecx
call fcn.004023b0
push edx
push eax
mov eax, dword [ebx + 0x48]
push edi
call eax
mov ebx, dword [esp + 0x24]
add esp, 0x10
mov edi, dword [esp + 0x10]
jmp 0x47c75f
push ecx
call fcn.00495d80
add esp, 4
cmp dword [esi + 0x78], 0
jne 0x47c77a
mov eax, dword [esi + 0xcc]
cmp dword [eax + 0xc], 0
jne 0x47c77a
push esi
call fcn.0046c2c0
add esp, 4
mov dword [ebx], 0
inc edi
movsx eax, byte [ebp + 0x44]
add ebx, 4
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ebx
cmp edi, eax
jle 0x47c700
mov ebp, dword [ebp + 8]
test ebp, ebp
jne 0x47c630
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
pop edi
cmp byte [esi + 9], 0
pop ebp
je 0x47c7c1
dec dword [esi + 0xc]
jne 0x47c7c1
push esi
call fcn.004b4d00
add esp, 4
pop esi
mov eax, ebx
pop ebx
add esp, 0xc
ret
Function at 0x49f9f0
Capabilities:
Create thread

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov dword [edi], 0
cmp dword [0x4e2568], 0
je 0x49fa43
mov eax, dword [0x4e4db0]
test eax, eax
je 0x49fa18
push eax
call dword [0x4e25bc]
add esp, 4
lea eax, [esp + 0xc]
push eax
push 0x14
call fcn.004677e0
mov eax, dword [0x4e4db0]
add esp, 8
test eax, eax
je 0x49fa3d
push eax
call dword [0x4e25c4]
mov esi, dword [esp + 0x10]
jmp 0x49fa4d
mov esi, dword [esp + 0xc]
jmp 0x49fa50
push 0x14
call dword [0x4e258c]
mov esi, eax
add esp, 4
test esi, esi
jne 0x49fa5a
pop edi
lea eax, [esi + 7]
pop esi
ret
cmp dword [0x4e256c], 0
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x18]
je 0x49fa92
lea eax, [esi + 4]
mov dword [esi + 8], ebp
push eax
push 0
push esi
push 0x49fb30
push 0
push 0
mov dword [esi + 0xc], ebx
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x49faa2
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
cmp dword [esi + 8], 0
jne 0x49faba
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push ebx
mov dword [esi + 4], eax
call ebp
add esp, 4
mov dword [esi + 0x10], eax
pop ebp
pop ebx
mov dword [edi], esi
xor eax, eax
pop edi
pop esi
ret
Function at 0x4aa900
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x28
push esi
push edi
mov edi, dword [esp + 0x38]
mov esi, dword [edi]
push esi
call fcn.00463fd0
mov ecx, dword [esi + 0x10]
add esp, 4
mov eax, dword [esi + 0x14]
mov edx, ecx
add edx, 0xffffffff
adc eax, 0xffffffff
test eax, eax
ja 0x4aa9de
jb 0x4aa938
cmp edx, 0x7ffffffe
ja 0x4aa9de
mov esi, dword [edi]
xor eax, eax
mov word [esp + 0x10], ax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], 0
movsx eax, byte [esi + 0x44]
mov edx, dword [esi + 0x18]
movzx edi, word [esi + 0x20]
mov eax, dword [esi + eax*4 + 0x78]
mov eax, dword [eax + 0x3c]
sub eax, edx
cmp edi, eax
jae 0x4aa96b
mov eax, edi
cmp ecx, eax
ja 0x4aa983
mov eax, 0x1010
mov dword [esp + 0x18], edx
mov word [esp + 0x10], ax
mov dword [esp + 0x14], ecx
jmp 0x4aa9a2
lea eax, [esp + 8]
push eax
push 1
push ecx
push 0
push esi
call fcn.004b7000
add esp, 0x14
test eax, eax
jne 0x4aaa06
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push 0
push dword [esp + 0x40]
push edx
push ecx
call fcn.004ac6a0
mov ecx, dword [esp + 0x50]
add esp, 0x10
test dword [esp + 0x10], 0x2460
mov dword [ecx], eax
jne 0x4aa9c9
cmp dword [esp + 0x20], 0
je 0x4aa9d6
lea eax, [esp + 8]
push eax
call fcn.004b6f40
add esp, 4
pop edi
xor eax, eax
pop esi
add esp, 0x28
ret
mov eax, dword [esp + 0x40]
push 0x4df4a4
push 0x111b0
push str.database_corruption_at_line__d_of___.10s_
push 0xb
mov dword [eax], 0
call fcn.0043b3c0
add esp, 0x10
mov eax, 0xb
pop edi
pop esi
add esp, 0x28
ret
Function at 0x4aaa10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x50
push ebx
mov ebx, dword [esp + 0x5c]
push ebp
push esi
push edi
push ebx
call fcn.00463fd0
mov edi, dword [ebx + 0x18]
xor eax, eax
movzx ecx, word [ebx + 0x20]
xor ebp, ebp
mov esi, dword [ebx + 0x10]
add esp, 4
mov word [esp + 0x18], ax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x30], eax
movsx eax, byte [ebx + 0x44]
mov dword [esp + 0x28], ebp
mov eax, dword [ebx + eax*4 + 0x78]
mov eax, dword [eax + 0x3c]
sub eax, edi
cmp ecx, eax
jae 0x4aaa56
mov eax, ecx
cmp esi, eax
ja 0x4aaa6e
mov eax, 0x1010
mov dword [esp + 0x20], edi
mov word [esp + 0x18], ax
mov dword [esp + 0x1c], esi
jmp 0x4aaa95
lea eax, [esp + 0x10]
push eax
push 1
push esi
push 0
push ebx
call fcn.004b7000
add esp, 0x14
test eax, eax
jne 0x4aab6a
mov ebp, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov al, byte [edi]
cmp al, 0x80
jae 0x4aaaa0
movzx ebx, al
jmp 0x4aaab2
lea eax, [esp + 0x68]
push eax
push edi
call fcn.0048e5f0
mov ebx, dword [esp + 0x70]
add esp, 8
cmp ebx, 3
jb 0x4aab31
cmp ebx, esi
jg 0x4aab31
lea eax, [edi - 1]
add eax, ebx
mov cl, byte [eax]
cmp cl, 0x80
jae 0x4aaacc
movzx ecx, cl
jmp 0x4aaade
lea ecx, [esp + 0x68]
push ecx
push eax
call fcn.0048e5f0
mov ecx, dword [esp + 0x70]
add esp, 8
lea eax, [ecx - 1]
cmp eax, 8
ja 0x4aab31
cmp ecx, 7
je 0x4aab31
movzx edx, byte [ecx + 0x4d9e00]
lea eax, [edx + ebx]
cmp esi, eax
jb 0x4aab31
lea eax, [esp + 0x38]
sub esi, edx
push eax
push ecx
add esi, edi
push esi
call fcn.004acd90
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x44]
mov dword [ecx], eax
mov eax, dword [esp + 0x48]
mov dword [ecx + 4], eax
lea eax, [esp + 0x1c]
push eax
call fcn.004abb20
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
test dword [esp + 0x18], 0x2460
jne 0x4aab3f
test ebp, ebp
je 0x4aab4c
lea eax, [esp + 0x10]
push eax
call fcn.004b6f40
add esp, 4
push 0x4df4a4
push 0x11190
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.0043b3c0
add esp, 0x10
mov eax, 0xb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret

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

Disassembly:
mov edx, dword [esp + 4]
push ebx
push ebp
push edi
movsx eax, byte [edx + 0x44]
mov ebp, dword [edx + 0x18]
movzx ecx, word [edx + 0x20]
mov eax, dword [edx + eax*4 + 0x78]
mov eax, dword [eax + 0x3c]
sub eax, ebp
cmp ecx, eax
jae 0x4ab6f1
mov eax, ecx
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
lea ecx, [edi + ebx]
cmp ecx, eax
ja 0x4ab71c
mov edx, dword [esp + 0x20]
lea ecx, [edi + ebp]
pop edi
pop ebp
xor eax, eax
mov dword [edx + 0x10], ecx
mov ecx, 0x1010
mov dword [edx + 0xc], ebx
mov word [edx + 8], cx
pop ebx
ret
push dword [esp + 0x20]
push dword [esp + 0x20]
push ebx
push edi
push edx
call fcn.004b7000
add esp, 0x14
pop edi
pop ebp
pop ebx
ret
Function at 0x4b3fd0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
xor eax, eax
mov cl, byte [esi]
test cl, cl
je 0x4b3ffe
lea ecx, [ecx]
movzx ecx, cl
lea esi, [esi + 1]
movzx edx, byte [ecx + 0x4d9400]
lea ecx, [eax*8]
xor edx, ecx
mov cl, byte [esi]
xor eax, edx
test cl, cl
jne 0x4b3fe0
pop esi
ret
Function at 0x4bae80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x60
mov ecx, 0xc
push ebx
mov ebx, dword [esp + 0x68]
push ebp
push esi
push edi
cmp byte [ebx + 0x2b], 2
lea edi, [esp + 0x10]
mov eax, dword [ebx + 0x20]
mov ebp, dword [eax]
mov esi, ebp
rep movsd dword es:[edi], dword [esi]
je 0x4baeb1
mov eax, dword [ebx + 4]
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x3c]
call eax
add esp, 4
lea esi, [ebp + 0x30]
mov ecx, 0xc
lea edi, [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x10]
mov esi, 0x2c
lea edx, [esp + 0x40]
lea esp, [esp]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4baf81
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4baed0
cmp byte [esp + 0x1c], 0
je 0x4baf81
xor edx, edx
lea ecx, [esp + 0x10]
xor esi, esi
mov eax, dword [ecx]
add eax, edx
add esi, eax
mov eax, dword [ecx + 4]
add eax, esi
add ecx, 8
add edx, eax
lea eax, [esp + 0x38]
cmp ecx, eax
jb 0x4baef8
cmp esi, dword [esp + 0x38]
jne 0x4baf81
cmp edx, dword [esp + 0x3c]
jne 0x4baf81
lea edi, [ebx + 0x34]
mov esi, 0x2c
mov ecx, edi
lea edx, [esp + 0x10]
lea ebx, [ebx]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4baf4b
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4baf30
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x60
ret
mov eax, dword [esp + 0x78]
lea esi, [esp + 0x10]
mov ecx, 0xc
mov dword [eax], 1
rep movsd dword es:[edi], dword [esi]
movzx ecx, word [ebx + 0x42]
mov eax, ecx
and ecx, 0xfe00
and eax, 1
pop edi
shl eax, 0x10
pop esi
add eax, ecx
mov dword [ebx + 0x24], eax
xor eax, eax
pop ebp
pop ebx
add esp, 0x60
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x60
ret
Function at 0x4c4c63
Capabilities:
Set thread local storage value

Disassembly:
push esi
push 0x184
push 8
push dword [0x4e4690]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push esi
push dword [0x4e5270]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [esp + 8]
mov dword [0x4e5274], esi
and dword [esi + 0xa8], 0
or dword [esi + 0xac], 0xffffffff
or dword [esi + 0xb0], 0xffffffff
push esi
mov dword [esi + 0xa4], 0xffffff
mov dword [esi + 0x74], 2
mov dword [esi + 0x78], 0x3f
call fcn.004c79c6
mov dword [esi + 0x58], 0x4c59dd
mov eax, esi
mov dword [esi + 0x5c], 0x4c5a29
mov dword [esi + 0x10], fcn.004c5417
mov dword [esi + 0x30], 0x4c5309
mov dword [esi + 0x64], 0x4c5ab3
mov dword [esi + 0x60], 0x4c5a6b
mov dword [esi + 0x34], 0x4c4fb9
mov dword [esi + 0x24], 0x4c4f90
mov dword [esi + 0x28], 0x4c4f65
mov dword [esi + 0x2c], 0x4c4eb7
mov dword [esi + 0x44], 0x4c567c
pop esi
ret 4
Function at 0x4cac5a
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ecx
mov edx, dword [esp + 0x2c]
push esi
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0xd4]
mov dword [esp + 4], eax
test edx, edx
je 0x4cad10
imul eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
imul ecx, dword [esp + 0x28]
push ebx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
neg eax
add ecx, dword [esp + 0x18]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
push ebp
push edi
lea edi, [ecx + eax*4]
mov eax, dword [esp + 0x28]
mov ecx, dword [esi + 0xcc]
mov ebp, edi
imul ecx, ebx
add ecx, dword [esi + 0xc8]
add ecx, eax
cmp dword [esp + 0x38], 0
jle 0x4cacf0
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x10]
mov al, byte [ebp + 2]
xor byte [ecx + 2], al
mov al, byte [ebp + 1]
xor byte [ecx + 1], al
mov al, byte [ebp]
lea ebp, [ebp + 4]
xor byte [ecx], al
add ecx, esi
dec edx
jne 0x4caccb
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
dec edx
inc ebx
cmp dword [esi + 0xe8], 0
mov dword [esp + 0x3c], edx
jne 0x4cad05
add edi, dword [esp + 0x14]
jmp 0x4cad09
add edi, dword [esp + 0x24]
test edx, edx
jne 0x4caca9
pop edi
pop ebp
pop ebx
pop esi
pop ecx
pop ecx
ret 0x24

Function at 0x4cb01b
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
push ecx
imul edx, dword [esp + 0x28], 3
push ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 8], edx
test ebx, ebx
je 0x4cb0f5
imul eax, dword [esp + 0x1c], 3
mov ecx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x24]
neg ecx
push esi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
imul eax, dword [esp + 0x30]
push edi
imul edi, dword [esp + 0x30], 3
mov dword [esp + 0x10], ecx
add eax, dword [esp + 0x20]
add edi, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x38], edi
mov esi, dword [eax + 0xcc]
imul esi, ebp
mov dword [esp + 0x34], edi
add esi, dword [eax + 0xc8]
add esi, dword [esp + 0x28]
test edx, edx
jle 0x4cb0cb
mov ebp, dword [esp + 0x34]
mov ebx, 0xff
sub ebx, dword [esp + 0x40]
mov edi, edx
movzx eax, byte [esi]
movzx ecx, byte [ebp]
imul ecx, dword [esp + 0x40]
imul eax, ebx
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
inc ebp
mov byte [esi], al
inc esi
dec edi
jne 0x4cb093
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
dec ebx
inc ebp
cmp dword [eax + 0xe8], 0
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x2c], ebp
jne 0x4cb0e2
add edi, ecx
jmp 0x4cb0e6
add edi, dword [esp + 0x24]
mov dword [esp + 0x38], edi
test ebx, ebx
jne 0x4cb069
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 0x28
Function at 0x4cb715
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ecx
push esi
mov esi, dword [esp + 0x30]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 0xd4]
mov dword [esp + 8], eax
test esi, esi
je 0x4cb7ca
imul eax, dword [esp + 0x20]
imul edx, dword [esp + 0x28], 3
push ebx
mov ebx, dword [esp + 0x28]
push ebp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x24]
neg eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
imul eax, dword [esp + 0x34]
add eax, dword [esp + 0x20]
add edx, eax
mov eax, dword [esp + 0x28]
mov ecx, dword [edi + 0xcc]
mov ebp, edx
imul ecx, ebx
add ecx, dword [edi + 0xc8]
add ecx, eax
cmp dword [esp + 0x38], 0
jle 0x4cb7ab
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x10]
mov al, byte [ebp + 2]
xor byte [ecx + 2], al
mov al, byte [ebp + 1]
xor byte [ecx + 1], al
mov al, byte [ebp]
lea ebp, [ebp + 3]
xor byte [ecx], al
add ecx, edi
dec esi
jne 0x4cb786
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
dec esi
inc ebx
cmp dword [edi + 0xe8], 0
mov dword [esp + 0x3c], esi
jne 0x4cb7c0
add edx, dword [esp + 0x14]
jmp 0x4cb7c4
add edx, dword [esp + 0x24]
test esi, esi
jne 0x4cb764
pop ebp
pop ebx
pop edi
pop esi
pop ecx
pop ecx
ret 0x24
Function at 0x401114
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42d004]
jne 0x40111e
repz ret
jmp fcn.004016b9

Function at 0x4050fb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42d004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00403f1c
and dword [ebp - 0x14], 0
cmp dword [0x42fc78], 0
mov dword [ebp - 0x18], eax
jne 0x4051ae
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x405256
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x405256
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42fc78], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42fc7c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42fc80], eax
call edi
push eax
call esi
mov dword [0x42fc88], eax
test eax, eax
je 0x4051ae
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42fc84], eax
mov eax, dword [0x42fc84]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x405207
cmp dword [0x42fc88], ecx
je 0x405207
push eax
call esi
push dword [0x42fc88]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x405207
test ebx, ebx
je 0x405207
call edi
test eax, eax
je 0x4051fe
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4051fe
test byte [ebp - 8], 1
jne 0x405207
or dword [ebp + 0x10], 0x200000
jmp 0x40523a
mov eax, dword [0x42fc7c]
cmp eax, dword [ebp - 0x18]
je 0x40523a
push eax
call esi
test eax, eax
je 0x40523a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40523a
mov eax, dword [0x42fc80]
cmp eax, dword [ebp - 0x18]
je 0x40523a
push eax
call esi
test eax, eax
je 0x40523a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42fc78]
call esi
test eax, eax
je 0x405256
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x405258
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401114
leave
ret
Function at 0x4212b0
Capabilities:
Create pipe

Disassembly:
sub esp, 0x41c
mov eax, dword [0x42d004]
xor eax, esp
mov dword [esp + 0x418], eax
mov eax, dword [esp + 0x420]
mov eax, dword [eax]
push ebx
mov ebx, dword [0x431a2c]
push edi
mov edi, dword [0x433eac]
call fcn.004211f0
cmp dword [0x433eac], 0x2f
jne 0x421344
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
lea eax, [esp + 0x2c]
push eax
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReadEventLogA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
call fcn.00421220
mov ecx, dword [esp + 0x420]
pop edi
pop ebx
xor ecx, esp
call fcn.00401114
add esp, 0x41c
ret
Function at 0x4217c0
Capabilities:
Get disk information

Disassembly:
mov eax, 0x1010
call fcn.0040c3b0
mov eax, dword [0x42d004]
xor eax, esp
mov dword [esp + 0x100c], eax
mov eax, dword [0x433eac]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemTimes]
push edi
mov ebx, 0x1519af
mov edi, 0x8e46a6f0
mov dword [0x433b14], edi
cmp eax, 0x3dc
jne 0x42180a
push 0
push 0
push 0
call esi
mov eax, dword [0x433eac]
dec ebx
jne 0x4217f0
mov edi, dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ebx, dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
xor esi, esi
jmp 0x421820
cmp eax, 0xa5f
jne 0x421857
push 0
call edi
push 0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
lea ecx, [esp + 0x830]
push ecx
push 0x42b4d8
call ebx
mov eax, dword [0x433eac]
cmp esi, 0x84620b
jne 0x42186e
mov eax, dword [0x42ebf0]
add eax, 0xa231
mov dword [0x433eac], eax
cmp eax, 0x141
jne 0x421889
mov dword [0x4301b8], 0xec58acac
mov dword [0x4301bc], 0xffffffff
inc esi
cmp esi, 0x12d225a
jl 0x421820
call fcn.00421360
mov ecx, dword [esp + 0x1018]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00401114
add esp, 0x1010
ret 0x10
Function at 0x5c41b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.005c4140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.005c4140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.005c4140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.005c4140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x5c4bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5c4c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x5d687c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5c4c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x5c4c52
xor eax, eax
pop esi
leave
ret 4