joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c8b60
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [ebx + 0x48]
mov ecx, dword [edi + 0x18]
cmp ecx, 0xc
jle 0x4c8b7d
pop edi
mov dword [ebx + 0x40], 0x70
xor eax, eax
pop ebx
ret
push ebp
push esi
cmp dword [edi + 0x2c], ecx
jge 0x4c8c3d
lea esi, [edi + 0x44]
jmp 0x4c8b90
mov dl, byte [esi]
test dl, dl
jne 0x4c8c0f
mov ecx, dword [ebx + 0x48]
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x4c8bab
push 1
push esi
push ebx
call eax
add esp, 0xc
jmp 0x4c8bbb
push dword [ecx + 0x38]
push 1
push 1
push esi
call fcn.0050bb27
add esp, 0x10
cmp eax, 1
jne 0x4c8c96
mov al, byte [esi]
test al, al
je 0x4c8c87
mov edx, dword [ebx + 0x48]
lea ebp, [esi + 1]
movzx eax, al
mov ecx, dword [edx + 0x3c]
test ecx, ecx
je 0x4c8be8
push eax
push ebp
push ebx
call ecx
add esp, 0xc
jmp 0x4c8bf7
push dword [edx + 0x38]
push eax
push 1
push ebp
call fcn.0050bb27
add esp, 0x10
mov dl, byte [esi]
mov ecx, eax
movzx eax, dl
cmp ecx, eax
jne 0x4c8c96
mov al, byte [ebp]
mov byte [ebp], 2
jmp 0x4c8c1d
mov cl, byte [esi + 1]
movzx eax, cl
inc cl
mov al, byte [eax + esi]
mov byte [esi + 1], cl
dec dl
movzx eax, al
mov byte [esi], dl
mov ecx, dword [edi + 0x2c]
shl eax, cl
or dword [edi + 0x30], eax
lea eax, [ecx + 8]
mov dword [edi + 0x2c], eax
mov ecx, dword [edi + 0x18]
cmp eax, ecx
jl 0x4c8b90
mov eax, dword [esp + 0x18]
movzx ecx, word [ecx*2 + 0x546c18]
and ecx, dword [edi + 0x30]
mov dword [eax], ecx
mov ecx, dword [edi + 0x18]
shr dword [edi + 0x30], cl
sub dword [edi + 0x2c], ecx
mov eax, dword [edi + 0x14]
cmp eax, 0x1001
jge 0x4c8c7d
mov edx, dword [edi + 0x1c]
inc eax
mov dword [edi + 0x14], eax
cmp eax, edx
jle 0x4c8c7d
cmp ecx, 0xc
jge 0x4c8c7d
lea eax, [edx + edx]
mov dword [edi + 0x1c], eax
lea eax, [ecx + 1]
mov dword [edi + 0x18], eax
pop esi
pop ebp
pop edi
mov eax, 1
pop ebx
ret
pop esi
pop ebp
mov eax, 0x70
mov dword [ebx + 0x40], eax
xor eax, eax
pop edi
pop ebx
ret
pop esi
pop ebp
mov eax, 0x66
mov dword [ebx + 0x40], eax
xor eax, eax
pop edi
pop ebx
ret

Function at 0x4c9010
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esi + 0x48]
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x4c902f
push 1
lea ecx, [esp + 0x10]
push ecx
push esi
call eax
add esp, 0xc
jmp 0x4c9043
push dword [edi + 0x38]
lea eax, [esp + 0x10]
push 1
push 1
push eax
call fcn.0050bb27
add esp, 0x10
cmp eax, 1
jne 0x4c9099
mov al, byte [esp + 0xc]
lea ecx, [edi + 0x44]
test al, al
je 0x4c90a5
mov edx, dword [esp + 0x10]
mov dword [edx], ecx
mov byte [ecx], al
mov eax, dword [esi + 0x48]
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x4c9077
movzx eax, byte [esp + 0xc]
push eax
mov eax, dword [edx]
inc eax
push eax
push esi
call ecx
add esp, 0xc
jmp 0x4c908e
push dword [eax + 0x38]
movzx eax, byte [esp + 0x10]
push eax
mov eax, dword [edx]
inc eax
push 1
push eax
call fcn.0050bb27
add esp, 0x10
mov ecx, eax
movzx eax, byte [esp + 0xc]
cmp ecx, eax
je 0x4c90b9
pop edi
mov dword [esi + 0x40], 0x66
xor eax, eax
pop esi
ret
mov eax, dword [esp + 0x10]
mov dword [eax], 0
mov byte [ecx], 0
mov dword [edi + 0x34], 0
pop edi
mov eax, 1
pop esi
ret
Function at 0x4c90d0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esi + 0x48]
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x4c90ef
push 1
lea ecx, [esp + 0x10]
push ecx
push esi
call eax
add esp, 0xc
jmp 0x4c9103
push dword [edi + 0x38]
lea eax, [esp + 0x10]
push 1
push 1
push eax
call fcn.0050bb27
add esp, 0x10
cmp eax, 1
jne 0x4c9159
mov cl, byte [esp + 0xc]
test cl, cl
je 0x4c9165
mov edx, dword [esp + 0x10]
lea eax, [edi + 0x44]
mov dword [edx], eax
mov byte [eax], cl
mov eax, dword [esi + 0x48]
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x4c9137
movzx eax, byte [esp + 0xc]
push eax
mov eax, dword [edx]
inc eax
push eax
push esi
call ecx
add esp, 0xc
jmp 0x4c914e
push dword [eax + 0x38]
movzx eax, byte [esp + 0x10]
push eax
mov eax, dword [edx]
inc eax
push 1
push eax
call fcn.0050bb27
add esp, 0x10
mov ecx, eax
movzx eax, byte [esp + 0xc]
cmp ecx, eax
je 0x4c916f
pop edi
mov dword [esi + 0x40], 0x66
xor eax, eax
pop esi
ret
mov eax, dword [esp + 0x10]
mov dword [eax], 0
pop edi
mov eax, 1
pop esi
ret
Function at 0x4c9550
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x48]
test byte [eax], 8
jne 0x4c9568
mov dword [esi + 0x40], 0x6f
xor eax, eax
pop esi
ret
push esi
push esi
call fcn.004c96f0
add esp, 8
test eax, eax
je 0x4c9564
lea eax, [esi + 4]
push eax
push esi
call fcn.004c96f0
add esp, 8
test eax, eax
je 0x4c9564
mov ecx, dword [esi + 0x48]
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x4c95a0
push 3
lea ecx, [esp + 0xc]
push ecx
push esi
call eax
add esp, 0xc
jmp 0x4c95b4
push dword [ecx + 0x38]
lea eax, [esp + 0xc]
push 3
push 1
push eax
call fcn.0050bb27
add esp, 0x10
cmp eax, 3
je 0x4c95d6
push dword [esi + 0x14]
mov dword [esi + 0x40], 0x66
call fcn.004c9e70
add esp, 4
mov dword [esi + 0x14], 0
xor eax, eax
pop esi
ret
mov dl, byte [esp + 8]
movzx ecx, dl
mov eax, ecx
shr eax, 4
and eax, 7
inc eax
push ebx
mov dword [esi + 8], eax
mov bl, dl
movzx eax, byte [esp + 0xd]
shr bl, 3
mov dword [esi + 0xc], eax
and bl, 1
mov al, byte [esp + 0xe]
mov byte [esi + 0x10], al
push edi
test dl, dl
jns 0x4c96d3
and ecx, 7
mov eax, 1
inc ecx
shl eax, cl
push 0
push eax
call fcn.004c9f20
add esp, 8
mov dword [esi + 0x14], eax
test eax, eax
jne 0x4c9632
pop edi
pop ebx
mov dword [esi + 0x40], 0x6d
pop esi
ret
mov byte [eax + 8], bl
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp dword [eax], ebx
jle 0x4c96da
xor edi, edi
mov ecx, dword [esi + 0x48]
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x4c965d
push 3
lea ecx, [esp + 0x14]
push ecx
push esi
call eax
add esp, 0xc
jmp 0x4c9671
push dword [ecx + 0x38]
lea eax, [esp + 0x14]
push 3
push 1
push eax
call fcn.0050bb27
add esp, 0x10
mov ecx, dword [esi + 0x14]
cmp eax, 3
jne 0x4c96b6
mov ecx, dword [ecx + 0xc]
inc ebx
movzx eax, byte [esp + 0x10]
mov byte [edi + ecx], al
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + 0xc]
movzx eax, byte [esp + 0x11]
mov byte [ecx + edi + 1], al
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + 0xc]
movzx eax, byte [esp + 0x12]
mov byte [ecx + edi + 2], al
add edi, 3
mov eax, dword [esi + 0x14]
cmp ebx, dword [eax]
jl 0x4c9644
pop edi
pop ebx
mov eax, 1
pop esi
ret
push ecx
call fcn.004c9e70
add esp, 4
mov dword [esi + 0x14], 0
mov dword [esi + 0x40], 0x66
xor eax, eax
pop edi
pop ebx
pop esi
ret
mov dword [esi + 0x14], 0
pop edi
pop ebx
mov eax, 1
pop esi
ret

Function at 0x4c96f0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov ecx, dword [esi + 0x48]
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x4c970e
push 2
lea ecx, [esp + 0xc]
push ecx
push esi
call eax
add esp, 0xc
jmp 0x4c9722
push dword [ecx + 0x38]
lea eax, [esp + 0xc]
push 2
push 1
push eax
call fcn.0050bb27
add esp, 0x10
cmp eax, 2
je 0x4c9732
mov dword [esi + 0x40], 0x66
xor eax, eax
pop esi
ret
mov ax, word [esp + 8]
movzx ecx, ah
movzx eax, al
shl ecx, 8
or ecx, eax
mov eax, dword [esp + 0xc]
pop esi
mov dword [eax], ecx
mov eax, 1
ret
Function at 0x4c9750
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push edi
push 0x4c
call fcn.004e9d22
mov esi, eax
add esp, 4
test esi, esi
jne 0x4c977f
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4c98a0
pop edi
mov dword [eax], 0x6d
xor eax, eax
pop esi
add esp, 8
ret
push 0x4c
push 0
push esi
call fcn.00420840
push 0x614c
push 1
call fcn.004e9d48
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x4c97bd
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4c97ac
mov dword [eax], 0x6d
push esi
call fcn.004e9d2d
add esp, 4
xor eax, eax
pop edi
pop esi
add esp, 8
ret
push 0x614c
push 0
push edi
call fcn.00420840
mov eax, dword [esp + 0x24]
add esp, 0xc
mov dword [esi + 0x48], edi
mov dword [edi + 0x3c], eax
mov eax, dword [esp + 0x14]
mov dword [edi + 4], 0
mov dword [edi + 0x38], 0
mov dword [edi], 8
mov ecx, dword [esi + 0x48]
mov dword [esi + 0x44], eax
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x4c980b
push 6
lea ecx, [esp + 0xc]
push ecx
push esi
call eax
add esp, 0xc
jmp 0x4c981f
push dword [ecx + 0x38]
lea eax, [esp + 0xc]
push 6
push 1
push eax
call fcn.0050bb27
add esp, 0x10
cmp eax, 6
je 0x4c9834
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4c985f
mov dword [eax], 0x66
jmp 0x4c985f
push 3
lea eax, [esp + 0xc]
mov byte [esp + 0x12], 0
push eax
push str.GIFVER
call fcn.004e9d60
add esp, 0xc
test eax, eax
je 0x4c9876
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4c985f
mov dword [eax], 0x67
push edi
call fcn.004e9d2d
push esi
call fcn.004e9d2d
add esp, 8
xor eax, eax
pop edi
pop esi
add esp, 8
ret
push esi
call fcn.004c9550
add esp, 4
test eax, eax
jne 0x4c98a8
push edi
call fcn.004e9d2d
push esi
call fcn.004e9d2d
mov eax, dword [esp + 0x24]
add esp, 8
test eax, eax
je 0x4c98a0
mov dword [eax], 0x68
pop edi
xor eax, eax
pop esi
add esp, 8
ret
mov dword [esi + 0x40], 0
cmp byte [esp + 0xb], 0x39
sete al
mov byte [edi + 0x6148], al
mov eax, esi
pop edi
pop esi
add esp, 8
ret
Function at 0x4cac60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4cac8d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4cac8d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4e9cde
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.00413cd5
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x4e9d1d
sub eax, 1
je 0x4e9d18
sub eax, 1
je 0x4e9d14
xor eax, eax
leave
ret
push 3
jmp 0x4e9d1f
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x50b717
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004cab20
mov eax, dword [0x56d580]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0041d3ff
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x50b759
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x50b8b5
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004cb580
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x574930]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004200d0
mov ecx, dword [esi*4 + 0x574930]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x50b8ae
cmp eax, dword [ecx + edi + 0x24]
jne 0x50b8ae
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x50b8ae
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004200d0
add esp, 0x14
test edx, edx
jl 0x50b8ae
jg 0x50b824
test eax, eax
jb 0x50b8ae
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x50b8ae
jl 0x50b83e
cmp dword [ebp - 0x1008], eax
ja 0x50b8ae
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x50b85c
test ebx, ebx
je 0x50b895
cmp ecx, edi
jae 0x50b895
mov al, byte [ecx]
cmp al, 0xd
jne 0x50b876
lea eax, [edi - 1]
cmp ecx, eax
jae 0x50b882
cmp byte [ecx + 1], 0xa
jne 0x50b882
inc ecx
jmp 0x50b882
movzx eax, al
movsx eax, byte [eax + 0x56dcd8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x50b85c
cmp edx, ebx
jne 0x50b85c
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x50b8b3
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040af4f
leave
ret
Function at 0x515bf6
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00515a65
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x515d65
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x515d65
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x515d1a
jg 0x515c52
test eax, eax
je 0x515d10
push 1
push 0x1000
call fcn.00410625
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x515c75
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x515d07
push 0x8000
push ebx
call fcn.0040b698
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x515c9e
jg 0x515c99
cmp ecx, 0x1000
jb 0x515c9e
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041e080
add esp, 0x10
cmp eax, 0xffffffff
je 0x515ce3
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x515c99
jl 0x515cca
test ecx, ecx
jne 0x515c8b
push dword [ebp - 0xc]
push ebx
call fcn.0040b698
push esi
call fcn.0040f087
add esp, 0xc
xor ebx, ebx
jmp 0x515d73
cmp byte [edi + 0x24], 0
je 0x515cfa
cmp dword [edi + 0x20], 5
jne 0x515cfa
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x515d05
mov ebx, dword [edi + 0x18]
jmp 0x515d07
xor ebx, ebx
push esi
call fcn.0040f087
pop ecx
jmp 0x515d73
test ecx, ecx
jg 0x515cdc
jl 0x515d1a
test eax, eax
jae 0x515cdc
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004200ee
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x515d3a
cmp byte [edi + 0x1c], 0
je 0x515cdc
jmp 0x515d6b
push ebx
call fcn.00412010
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x515cdc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x515d73
cmp byte [edi + 0x1c], 0
je 0x515d70
mov ebx, dword [edi + 0x18]
jmp 0x515d73
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004200ee
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1002074
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push edi
lea eax, [ebp - 0xc]
push eax
xor edi, edi
push 0x20019
push edi
push 0x10021d8
push 0x80000002
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
cmp eax, edi
jne 0x1003900
push ebx
push esi
mov esi, dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0x14]
push eax
push edi
mov ebx, 0x10021bc
push ebx
push dword [ebp - 0xc]
call esi
mov dword [ebp - 8], eax
cmp eax, edi
jne 0x1003921
xor eax, eax
inc eax
cmp dword [ebp - 0x14], eax
je 0x100394d
cmp dword [ebp - 0x14], 7
jne 0x10039b0
cmp dword [ebp - 4], 4
jb 0x100398f
push dword [ebp - 4]
call fcn.01002253
mov dword [ebp - 0x10], eax
cmp eax, edi
je 0x100289b
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
push edi
push ebx
push dword [ebp - 0xc]
call esi
mov dword [ebp - 8], eax
cmp eax, edi
jne 0x100396b
mov eax, dword [ebp - 4]
mov esi, dword [ebp - 0x10]
shr eax, 1
xor ecx, ecx
mov word [esi + eax*2 - 2], cx
mov eax, dword [ebp - 4]
shr eax, 1
mov word [esi + eax*2 - 4], cx
movzx ecx, word [esi]
mov eax, esi
cmp cx, di
je 0x1002165
movzx ecx, cx
inc dword [ebp - 0x18]
cmp cx, di
je 0x100215b
inc eax
inc eax
cmp word [eax], di
jne 0x1002154
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, di
jne 0x100214c
mov eax, dword [ebp - 0x18]
mov dword [0x1006058], edi
cmp eax, 0xfffffff
jae 0x100289b
shl eax, 4
push eax
call fcn.01002253
mov dword [0x1006058], eax
cmp eax, edi
je 0x100289b
mov dword [0x1006054], edi
mov dword [0x1006050], esi
mov dword [ebp - 0x10], edi
cmp word [esi], di
je 0x10028a2
push esi
call fcn.01001ed7
cmp word [esi], di
je 0x1002894
inc esi
inc esi
jmp 0x10021ad
inc esi
inc esi
jmp 0x100219e
mov dword [ebp - 8], 8
pop esi
pop ebx
cmp dword [ebp - 0xc], edi
je 0x10028b2
push dword [ebp - 0xc]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
cmp dword [ebp - 0x10], edi
pop edi
jne 0x10039d5
mov eax, dword [ebp - 8]
leave
ret
cmp dword [0x1006034], edi
je 0x10028a4
push eax
push 0x1003b20
push 1
call fcn.01003fd9
add esp, 0xc
jmp 0x10028a4
cmp eax, 0xea
je 0x10020d8
cmp dword [0x1006034], edi
je 0x10028a2
push eax
push 0x1003ae4
push 1
call fcn.01003fd9
add esp, 0xc
jmp 0x10028a2
cmp dword [ebp - 4], 2
jae 0x1003962
cmp dword [0x1006034], edi
je 0x10039a4
push 0x1003aa8
jmp 0x100399c
add dword [ebp - 4], 2
jmp 0x10020f8
cmp dword [0x1006034], edi
je 0x10028a2
push eax
push dword [ebp - 4]
push 0x1003a60
push 1
call fcn.01003fd9
add esp, 0x10
jmp 0x10028a2
cmp dword [0x1006034], edi
je 0x10039a4
push 0x1003a20
push eax
call fcn.01003fd9
pop ecx
pop ecx
mov dword [ebp - 8], 0xd
jmp 0x10028a2
cmp dword [0x1006034], edi
je 0x10039c9
push dword [ebp - 0x14]
push 0x10039e4
push eax
call fcn.01003fd9
add esp, 0xc
mov dword [ebp - 8], 0x65d
jmp 0x10028a2
push dword [ebp - 0x10]
call fcn.01001f80
jmp 0x10028bc
Function at 0x1002278
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
push 0x1002324
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
xor esi, esi
push esi
lea eax, [ebp - 0xc]
push 3
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0xc0000000
push 0x100607c
mov dword [ebp - 0x2c], 0x18
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.ntdll.dll_NtOpenFile]
cmp eax, esi
jl 0x1003461
push 4
push 0x1006060
push esi
push esi
push 0x398000
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push esi
push dword [0x100607c]
call dword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
cmp eax, esi
jl 0x1003485
push 0x29
push 4
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [0x100607c]
mov dword [ebp - 4], 6
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
cmp eax, esi
jl 0x1003499
pop esi
leave
ret
cmp dword [0x1006034], esi
je 0x100231e
push eax
push dword [ebp - 8]
push 0x1003510
push 1
call fcn.01003fd9
add esp, 0x10
jmp 0x100231e
cmp dword [0x1006034], esi
je 0x100231e
push eax
push 0x10034ec
jmp 0x10034ab
cmp dword [0x1006034], esi
je 0x100231e
push eax
push 0x10034bc
push 1
call fcn.01003fd9
add esp, 0xc
jmp 0x100231e

Function at 0x1002816
Capabilities:
Listen for remote procedure calls

Disassembly:
push 1
push 0x4d2
push 1
call dword [sym.imp.RPCRT4.dll_RpcServerListen]
push eax
call dword [sym.imp.RPCRT4.dll_I_RpcMapWin32Status]
call fcn.01002839
xor eax, eax
ret

Function at 0x10028ec
Capabilities:
Query environment variable
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 5
pop ecx
push 0x104
lea eax, [ebp - 0x224]
push eax
mov esi, 0x1002998
lea edi, [ebp - 0x18]
push 0x1002980
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.API_MS_Win_Core_ProcessEnvironment_L1_1_0.dll_GetEnvironmentVariableW]
test eax, eax
je 0x1002965
mov ecx, 0x105
sub ecx, eax
cmp ecx, 0xa
jb 0x1002965
cmp dword [0x1006034], 0
push 5
lea edi, [ebp + eax*2 - 0x224]
pop ecx
lea esi, [ebp - 0x18]
rep movsd dword es:[edi], dword [esi]
jne 0x100352f
lea eax, [ebp - 0x224]
push eax
push 0x1002974
call dword [sym.imp.API_MS_Win_Core_ProcessEnvironment_L1_1_0.dll_SetEnvironmentVariableW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01001ca5
leave
ret
lea eax, [ebp - 0x224]
push eax
push 0x100354c
push 4
call fcn.01003fd9
add esp, 0xc
jmp 0x1002953
Function at 0x1002c73
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
mov ebx, dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push esi
push edi
push 0x1002dc0
lea eax, [ebp - 0xc]
push eax
call ebx
push 0x2000
xor esi, esi
push 0x100
lea eax, [ebp - 0xc]
mov dword [ebp - 0x3c], eax
push esi
lea eax, [ebp - 0x44]
push eax
push 0x1006074
mov dword [ebp - 0x44], 0x18
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
call dword [sym.imp.ntdll.dll_NtCreatePort]
mov edi, eax
cmp edi, esi
jl 0x1003cb8
push 0x1002d9c
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x1c], 2
mov byte [ebp - 0x18], 1
mov byte [ebp - 0x17], 1
call ebx
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x1006078
call dword [sym.imp.ntdll.dll_NtConnectPort]
mov edi, eax
cmp edi, esi
jl 0x1003cce
push 0x18
pop eax
mov word [ebp - 0x5a], ax
xor eax, eax
mov word [ebp - 0x5c], ax
lea eax, [ebp - 0x5c]
push eax
push dword [0x1006074]
call dword [sym.imp.ntdll.dll_NtListenPort]
mov edi, eax
cmp edi, esi
jl 0x1003ce2
lea eax, [ebp - 0x2c]
push eax
push esi
xor ebx, ebx
inc ebx
push ebx
lea eax, [ebp - 0x5c]
push eax
push esi
push 0x1006074
mov dword [ebp - 0x2c], 0xc
call dword [sym.imp.ntdll.dll_NtAcceptConnectPort]
mov edi, eax
cmp edi, esi
jl 0x1003cf6
push dword [0x1006074]
call dword [sym.imp.ntdll.dll_NtCompleteConnectPort]
mov edi, eax
cmp edi, esi
jl 0x1003d0a
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x1001ac5
push esi
push esi
call dword [sym.imp.API_MS_Win_Core_ProcessThreads_L1_1_0.dll_CreateThread]
cmp eax, esi
je 0x1003d2a
push eax
call dword [sym.imp.API_MS_Win_Core_Handle_L1_1_0.dll_CloseHandle]
xor edi, edi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
cmp dword [0x1006034], esi
je 0x1002d95
push edi
push 0x1003e6c
push 1
jmp 0x1003d1d
cmp dword [0x1006034], esi
je 0x1002d95
push edi
push 0x1003e34
jmp 0x1003cca
cmp dword [0x1006034], esi
je 0x1002d95
push edi
push 0x1003e00
jmp 0x1003cca
cmp dword [0x1006034], esi
je 0x1002d95
push edi
push 0x1003dc4
jmp 0x1003d1c
cmp dword [0x1006034], esi
je 0x1002d95
push edi
push 0x1003d84
push ebx
call fcn.01003fd9
add esp, 0xc
jmp 0x1002d95
cmp dword [0x1006034], esi
je 0x1002d93
push edi
push 0x1003d4c
push ebx
call fcn.01003fd9
add esp, 0xc
jmp 0x1002d93