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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0048ab5a

Function at 0x48b1eb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00498e30
mov eax, dword [0x4cfa1c]
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.00488cc1
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x48b22d
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x48b389
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00498bb0
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 + 0x4d0ab0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0048bfe6
mov ecx, dword [esi*4 + 0x4d0ab0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x48b382
cmp eax, dword [edi + ecx + 0x24]
jne 0x48b382
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x48b382
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0048bfe6
add esp, 0x14
test edx, edx
jl 0x48b382
jg 0x48b2f8
test eax, eax
jb 0x48b382
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x48b382
jl 0x48b312
cmp dword [ebp - 0x1008], eax
ja 0x48b382
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x48b330
test ebx, ebx
je 0x48b369
cmp ecx, edi
jae 0x48b369
mov al, byte [ecx]
cmp al, 0xd
jne 0x48b34a
lea eax, [edi - 1]
cmp ecx, eax
jae 0x48b356
cmp byte [ecx + 1], 0xa
jne 0x48b356
inc ecx
jmp 0x48b356
movzx eax, al
movsx eax, byte [eax + 0x4cf228]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x48b330
cmp edx, ebx
jne 0x48b330
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x48b387
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00497d9d
leave
ret
Function at 0x48b484
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4d0ab0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x48b4c4
cmp byte [ebx], 0xa
jne 0x48b4c4
or byte [eax + edi + 0x28], 4
jmp 0x48b4c9
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x48b5c7
mov al, byte [edx]
cmp al, 0x1a
je 0x48b5a9
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x48b4f8
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x48b51d
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x48b527
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x48b4da
jmp 0x48b5c7
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x48b5a4
cmp dword [ebp - 0xc], 0
je 0x48b5a4
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4d0ab0]
test byte [eax + edi + 0x28], 0x48
je 0x48b57e
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x48b569
mov byte [esi], dl
jmp 0x48b57a
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4d0ab0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x48b5c7
cmp byte [ebp - 1], 0xa
jne 0x48b58d
cmp esi, ebx
jne 0x48b58d
mov byte [esi], 0xa
jmp 0x48b5c6
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0048c004
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x48b5c7
mov byte [esi], 0xd
jmp 0x48b5c6
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4d0ab0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x48b5c3
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x48b5c7
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x48b5d0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4d0ab0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x48b613
cmp word [esi], dx
jne 0x48b613
or byte [edi + eax + 0x28], 4
jmp 0x48b618
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x48b76b
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x48b74b
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x48b65a
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x48b690
cmp eax, edx
jae 0x48b69c
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x48b632
jmp 0x48b76b
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x48b747
cmp dword [ebp - 0x14], 0
je 0x48b747
mov eax, dword [ebx*4 + 0x4d0ab0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x48b71f
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x48b6e8
mov word [esi], cx
jmp 0x48b71b
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4d0ab0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4d0ab0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4d0ab0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x48b76b
pop ebx
cmp word [ebp - 4], bx
jne 0x48b730
cmp esi, dword [ebp + 0xc]
jne 0x48b730
mov word [esi], bx
jmp 0x48b768
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0048c004
add esp, 0x10
cmp word [ebp - 4], bx
je 0x48b76b
push 0xd
jmp 0x48b764
mov ecx, dword [ebx*4 + 0x4d0ab0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x48b762
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x48b76b
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4972b8
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4972c9
pop esi
ret
push ebx
push edi
push esi
call fcn.00497281
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00487bba
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4972f1
push ebx
push esi
push edi
call fcn.00499b70
add esp, 0xc
push 0
call fcn.004879fb
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4976b5
Capabilities:
Set environment variable

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

Function at 0x49891e
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x49895d
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x49895d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x49895d
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x49895d
cmp dword [ecx + 0x74], 0xe
jbe 0x49895d
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x49cfe1
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.0049cfbd
pop esi
leave
ret 8

Function at 0x49d512
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
push 0x105
call fcn.0049d031
mov edi, eax
test edi, edi
jne 0x49d539
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov eax, esi
jmp 0x49d582
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ebx, 0xffffffff
cmp eax, ebx
je 0x49d57d
test al, 0x10
je 0x49d57d
test eax, 0x400
je 0x49d579
push 0x2000000
push 0x80
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
call fcn.0049d588
push dword [ebp - 4]
mov esi, eax
call fcn.0049d06d
test esi, esi
jne 0x49d57d
xor edx, edx
jmp 0x49d57f
mov edx, ebx
mov eax, edi
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x49f9cd
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4cfa1c]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x49fa18
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0049fb6c
test al, al
jne 0x49fa12
sub edx, 2
cmp edx, edi
jne 0x49f9f8
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49fa3a
lea eax, [edi + 2]
cmp edx, eax
je 0x49fa3a
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0049f919
add esp, 0x10
jmp 0x49fb34
push esi
lea ecx, [ebp - 0x255]
call fcn.0049fb6c
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x49fa7d
push dword [ebp - 0x25c]
jmp 0x49fa2a
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x49faba
cmp word [ebp - 0x226], 0
je 0x49fadb
cmp word [ebp - 0x226], ax
jne 0x49faba
cmp word [ebp - 0x224], 0
je 0x49fadb
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0049f919
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x49fb27
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x49fa94
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x49fb0f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x49fb34
push 0x49f749
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004a0fe0
add esp, 0x10
jmp 0x49fb04
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00497d9d
leave
ret
Function at 0x4a205b
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]
push dword [ebp + 0xc]
push ebx
call fcn.004a1fd7
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4a21d3
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4a21d3
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4a2182
jg 0x4a20b4
test eax, eax
je 0x4a2178
push 1
push 0x1000
call fcn.0048acf4
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4a20da
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x4a216f
push 0x8000
push ebx
call fcn.0049efee
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4a2106
jg 0x4a2101
cmp ecx, 0x1000
jb 0x4a2106
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0048a5b0
add esp, 0x10
cmp eax, 0xffffffff
je 0x4a214b
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 0x4a2101
jl 0x4a2132
test ecx, ecx
jne 0x4a20f3
push dword [ebp - 0xc]
push ebx
call fcn.0049efee
push esi
call fcn.004879fb
add esp, 0xc
xor edi, edi
jmp 0x4a21e4
cmp byte [edi + 0x24], 0
je 0x4a2162
cmp dword [edi + 0x20], 5
jne 0x4a2162
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4a216d
mov edi, dword [edi + 0x18]
jmp 0x4a216f
xor edi, edi
push esi
call fcn.004879fb
pop ecx
jmp 0x4a21e4
test ecx, ecx
jg 0x4a2144
jl 0x4a2182
test eax, eax
jae 0x4a2144
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0048c004
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4a21a5
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4a2144
jmp 0x4a21dc
push ebx
call fcn.0049489f
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4a2144
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x4a21e4
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4a21e1
mov edi, dword [edi + 0x18]
jmp 0x4a21e4
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0048c004
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4a2310
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4a233d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4a233d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x432072
mov ebx, 0x40c7d0
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
mov esi, 0x244c5533
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
loop 0x432060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4320d2
nop
nop
nop
mov ebx, 0x42f314
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
mov esi, 0x6d6e7d62
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x1033754
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x2001f
push 0
push 0x1001b38
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10337a2
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0x1001c04
push dword [ebp - 4]
call esi
push 0x1001bdc
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret

Function at 0x1033828
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.010337a9
test eax, eax
jne 0x10339a1
push eax
lea ecx, [ebp - 0x418]
push ecx
push eax
push 0x2001f
push eax
push eax
push eax
push 0x1001c88
push 0x80000002
mov dword [ebp - 0x418], eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10339a1
push ebx
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x414]
push eax
call fcn.0105a990
test eax, eax
je 0x1033994
push esi
push edi
lea eax, [ebp - 0x414]
push eax
call fcn.01055edd
mov dword [ebp - 0x420], eax
push ebx
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x41c], edx
call fcn.0105a532
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, 0x1001c80
test eax, eax
je 0x103390d
lea eax, [ebp - 0x20c]
push eax
call fcn.01055edd
cmp edx, dword [ebp - 0x41c]
ja 0x1033921
jb 0x10338e8
cmp eax, dword [ebp - 0x420]
jae 0x1033921
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10338f1
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
jmp 0x1033910
push 4
push edi
push 1
push 0
push 0x1001c58
push dword [ebp - 0x418]
call esi
cmp dword [0x1073a18], 0
jne 0x1033992
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.010590f7
test eax, eax
je 0x103397e
lea eax, [ebp - 0x20c]
push eax
call fcn.01055edd
cmp edx, dword [ebp - 0x41c]
ja 0x1033992
jb 0x1033959
cmp eax, dword [ebp - 0x420]
jae 0x1033992
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1033962
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
jmp 0x1033981
push 4
push edi
push 1
push 0
push 0x1001c38
push dword [ebp - 0x418]
call esi
pop edi
pop esi
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01047464
leave
ret
Function at 0x1033b18
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push 0x20019
push esi
push esi
push esi
push 0x1001c88
push 0x80000002
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1033b88
push 4
pop eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x1001d08
push dword [ebp - 4]
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1033b7f
cmp dword [ebp - 8], 0xc00d2afc
sete al
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x1033b92
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push 3
push esi
push esi
push esi
push 0x1001c88
push 0x80000001
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1033c08
cmp dword [ebp + 8], esi
jne 0x1033bd2
push 0x1001d24
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x1033bff
mov eax, dword [ebp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x1033bd8
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 8]
push 1
push esi
push 0x1001d24
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret 4

Function at 0x1033d09
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push 2
xor ebx, ebx
push ebx
push 0x1001c88
push 0x80000002
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1033d9a
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
push 4
pop edi
cmp dword [ebp + 8], ebx
je 0x1033d7e
push edi
lea eax, [ebp + 8]
push eax
push edi
push ebx
push 0x1001dc8
push dword [ebp - 4]
mov dword [ebp - 8], ebx
call esi
push edi
lea eax, [ebp - 8]
push eax
push edi
push ebx
push 0x1001d98
push dword [ebp - 4]
call esi
push edi
lea eax, [ebp - 8]
push eax
push edi
push ebx
push 0x1001d70
push dword [ebp - 4]
mov dword [ebp - 8], 1
call esi
push edi
lea eax, [ebp + 0xc]
push eax
push edi
push ebx
push 0x1001d40
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1033e33
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x10739c8], 0
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, 0x80004005
jne 0x1033ec6
push 0x58
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
test eax, eax
je 0x1033e70
mov ecx, eax
call fcn.010457ab
jmp 0x1033e72
xor eax, eax
mov dword [0x10739c8], eax
test eax, eax
je 0x1033ec9
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x1033ec9
mov eax, dword [0x10739c8]
mov ecx, dword [0x107399c]
mov dword [eax + 0x4c], ecx
mov eax, dword [0x10739c8]
mov ecx, dword [0x1072134]
mov dword [eax + 0x44], ecx
mov ecx, dword [0x10739c8]
push 1
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.01046867
xor edi, edi
jmp 0x1033ec9
xor edi, edi
inc edi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.01047464
leave
ret 4

Function at 0x1034134
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x103419b
push esi
lea eax, [ebp - 4]
push eax
push esi
push 2
push esi
push esi
mov dword [ebp - 4], esi
push esi
cmp dword [ebp + 0xc], esi
je 0x103415c
push 0x1001eb8
jmp 0x1034161
push 0x1001e48
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x103419b
cmp dword [ebp - 4], esi
je 0x103419b
push 2
push 0x1001e44
push 1
push esi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1034192
xor esi, esi
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 8