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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401d57
mov eax, dword [0x4d4040]
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.00405d3f
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x49e068
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x49e1c4
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00405e89
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 + 0x4d7858]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0040320b
mov ecx, dword [esi*4 + 0x4d7858]
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 0x49e1bd
cmp eax, dword [ecx + edi + 0x24]
jne 0x49e1bd
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 0x49e1bd
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0040320b
add esp, 0x14
test edx, edx
jl 0x49e1bd
jg 0x49e133
test eax, eax
jb 0x49e1bd
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x49e1bd
jl 0x49e14d
cmp dword [ebp - 0x1008], eax
ja 0x49e1bd
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x49e16b
test ebx, ebx
je 0x49e1a4
cmp ecx, edi
jae 0x49e1a4
mov al, byte [ecx]
cmp al, 0xd
jne 0x49e185
lea eax, [edi - 1]
cmp ecx, eax
jae 0x49e191
cmp byte [ecx + 1], 0xa
jne 0x49e191
inc ecx
jmp 0x49e191
movzx eax, al
movsx eax, byte [eax + 0x4d43a8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x49e16b
cmp edx, ebx
jne 0x49e16b
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x49e1c2
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00402fef
leave
ret
Function at 0x49e903
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x4d7858]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x49e943
cmp byte [ebx], 0xa
jne 0x49e943
or byte [edi + eax + 0x28], 4
jmp 0x49e948
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x49ea47
mov dl, byte [eax]
cmp dl, 0x1a
je 0x49ea2a
inc eax
cmp dl, 0xd
je 0x49e974
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x49e99a
cmp eax, ecx
jae 0x49e9a8
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x49e95c
jmp 0x49ea47
push 0
lea eax, [ebp - 0x10]
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 0x49ea25
cmp dword [ebp - 0x10], 0
je 0x49ea25
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4d7858]
test byte [eax + edi + 0x28], 0x48
je 0x49e9ff
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x49e9ea
mov byte [esi], dl
jmp 0x49e9fb
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4d7858]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x49ea47
cmp byte [ebp - 1], 0xa
jne 0x49ea0e
cmp esi, ebx
jne 0x49ea0e
mov byte [esi], 0xa
jmp 0x49ea46
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004018f7
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x49ea47
mov byte [esi], 0xd
jmp 0x49ea46
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4d7858]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x49ea44
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x49ea47
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x49eaa3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4d7858]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x49eae9
cmp word [ebx], dx
jne 0x49eae9
or byte [eax + edi + 0x28], 4
jmp 0x49eaee
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x49ec51
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x49ec31
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x49eb2f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x49eb65
cmp eax, edx
jae 0x49eb73
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x49eb0a
jmp 0x49ec51
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49ec2c
cmp dword [ebp - 0x18], 0
je 0x49ec2c
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4d7858]
test byte [eax + edi + 0x28], 0x48
je 0x49ec02
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x49ebc6
mov word [esi], cx
jmp 0x49ebfd
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4d7858]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4d7858]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4d7858]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x49ec51
pop eax
cmp word [ebp - 4], ax
jne 0x49ec12
cmp esi, ebx
jne 0x49ec12
mov word [esi], ax
jmp 0x49ec4e
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004018f7
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x49ec51
push 0xd
pop eax
jmp 0x49ec0d
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4d7858]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x49ec4b
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x49ec51
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a2837
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4d4040]
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 0x4a2882
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004a2cef
test al, al
jne 0x4a287c
sub edx, 2
cmp edx, edi
jne 0x4a2862
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4a28a4
lea eax, [edi + 2]
cmp edx, eax
je 0x4a28a4
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004a2430
add esp, 0x10
jmp 0x4a299e
push esi
lea ecx, [ebp - 0x255]
call fcn.004a2cef
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 0x4a28e7
push dword [ebp - 0x25c]
jmp 0x4a2894
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 0x4a2924
cmp word [ebp - 0x226], 0
je 0x4a2945
cmp word [ebp - 0x226], ax
jne 0x4a2924
cmp word [ebp - 0x224], 0
je 0x4a2945
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004a2430
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4a2991
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4a28fe
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4a2979
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4a299e
push 0x4a1e18
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00405448
add esp, 0x10
jmp 0x4a296e
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.00402fef
leave
ret

Function at 0x4a8300
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00404232
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4a836f
cmp esi, dword [ebp - 4]
je 0x4a836a
cmp dword [ebp + 0xc], 0
je 0x4a836a
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4a8347
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004a7d28
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4a8371
xor eax, eax
inc eax
jmp 0x4a8371
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x407250
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x444ba8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov ecx, dword [0x456824]
mov eax, 0x4c8f8d29
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
mov esi, eax
mov eax, 0x30c30c31
imul ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub esi, ecx
mov ecx, dword [0x45681c]
mov eax, 0x36b45a9b
imul ecx
mov ecx, dword [0x456838]
sar edx, 7
imul ecx, ecx, 0x235
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x456830]
imul edx, edx, 0x1aa
sub esi, eax
mov eax, dword [0x56cb8c]
add esi, ecx
add esi, edx
mov ecx, 0x56cb8c
mov dword [str._r_____r____], esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 8], eax
mov ecx, dword [0x45682c]
mov esi, dword [str._r_____r____]
mov eax, 0x30c30c31
imul esi, esi, 0x2a0
imul ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub esi, ecx
mov ecx, dword [0x456820]
mov eax, 0x43491159
imul ecx
mov ecx, dword [0x456818]
sar edx, 7
imul ecx, ecx, 0x87
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
mov eax, dword [0x456834]
add esi, ecx
sub esi, eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push edx
sub esi, 0x344
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
mov dword [0x456820], esi
call fcn.00406fc0
mov ecx, dword [0x456820]
mov esi, dword [0x45682c]
mov eax, 0x30c30c31
imul esi, esi, 0x344
imul ecx
sar edx, 7
mov edi, edx
shr edi, 0x1f
add esi, edx
add edi, esi
imul ecx, ecx, 0x257
add edi, ecx
mov ecx, dword [0x456830]
imul ecx, ecx, 0x16a
mov esi, dword [esp + 8]
add edi, ecx
mov ecx, dword [0x45681c]
mov eax, 0xf2b9d649
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
sub edi, eax
push esi
mov dword [0x45682c], edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esi - 0x10]
mov dword [esp + 0x14], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
pop esi
jg 0x4073e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x40db40
Capabilities:
Get file version info

Disassembly:
sub esp, 0x10
push ebx
push esi
push edi
mov ecx, dword [0x456824]
mov eax, 0x4c8f8d29
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
mov esi, eax
mov eax, 0x30c30c31
imul ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub esi, ecx
mov ecx, dword [0x45681c]
mov eax, 0x36b45a9b
imul ecx
mov ecx, dword [0x456838]
mov ebx, dword [esp + 0x20]
imul ecx, ecx, 0x235
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x456830]
imul edx, edx, 0x1aa
sub esi, eax
lea eax, [esp + 0x14]
add esi, ecx
push eax
xor edi, edi
add esi, edx
push ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], edi
mov dword [str._r_____r____], esi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, edi
je 0x40dd9b
mov ecx, dword [0x456838]
mov edi, dword [0x45681c]
mov eax, 0x4c8f8d29
imul ecx
imul ecx, ecx, 0x235
sar edx, 8
push ebp
mov ebp, edx
shr ebp, 0x1f
add ebp, edx
mov eax, 0xe1fc780f
imul edi
add edx, edi
sar edx, 9
mov eax, edx
shr eax, 0x1f
add ebp, edx
add eax, ebp
sub eax, ecx
mov ecx, dword [0x456830]
imul ecx, ecx, 0x1aa
add eax, ecx
sub eax, dword [str._r_____r____]
add eax, 0x1e7
push esi
mov dword [0x45681c], eax
call fcn.0043bf92
add esp, 4
mov edi, eax
push edi
push esi
xor esi, esi
push esi
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
pop ebp
je 0x40dd86
mov ecx, dword [0x45682c]
mov ebx, dword [str._r_____r____]
mov eax, 0xe1fc780f
imul ebx, ebx, 0x358
imul ecx
add edx, ecx
mov ecx, dword [0x456818]
sar edx, 9
imul ecx, ecx, 0x1aa
mov eax, edx
shr eax, 0x1f
add eax, edx
add ecx, dword [0x456830]
mov edx, dword [0x456828]
imul edx, edx, 0x87
sub ebx, eax
add ecx, ebx
lea eax, [edx + ecx - 0x344]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x10]
push edx
push 0x447278
push edi
mov dword [0x456824], eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40dd2a
mov ecx, dword [0x456828]
mov eax, 0x4c8f8d29
imul ecx
sar edx, 8
mov esi, ecx
imul esi, esi, 0x358
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x456834]
sub esi, eax
mov eax, 0x30c30c31
imul edx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
mov eax, 0x36b45a9b
imul ecx
mov eax, dword [esp + 0xc]
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [0x456818]
imul edx, edx, 0x244
sub esi, ecx
add esi, edx
mov dword [0x456834], esi
mov cx, word [eax + 0x14]
mov word [esp + 0x10], cx
mov ecx, dword [0x456820]
mov esi, dword [0x45682c]
mov eax, 0x30c30c31
imul esi, esi, 0x344
imul ecx
imul ecx, ecx, 0x257
sar edx, 7
add esi, edx
mov ebx, edx
mov edx, dword [0x456830]
imul edx, edx, 0x16a
shr ebx, 0x1f
add ebx, esi
add ebx, ecx
mov ecx, dword [0x45681c]
add ebx, edx
mov eax, 0xf2b9d649
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ebx, eax
mov dword [0x45682c], ebx
push edi
call fcn.0043bf97
mov ax, word [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x10
ret
mov ax, di
pop edi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x417610
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x118
mov eax, dword [0x458190]
mov edx, dword [esp + 0x11c]
push ebp
push esi
mov ebp, ecx
lea ecx, [esp + 0x10]
push ecx
push 0x2001f
push 0
mov dword [esp + 0x128], eax
mov eax, dword [ebp]
push edx
push eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x417732
lea ecx, [esp + 8]
call fcn.004174f0
mov esi, eax
test esi, esi
mov eax, dword [esp + 0x10]
mov dword [esp + 8], eax
jne 0x417736
push edi
lea ecx, [esp + 0x18]
push ecx
push esi
push esi
push esi
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x34]
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
jne 0x4176e0
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x10]
call fcn.00417610
mov edi, eax
test edi, edi
jne 0x41775a
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x10]
push edi
push edi
push edi
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x34]
push edx
push edi
push eax
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
je 0x4176a2
mov eax, dword [esp + 0xc]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x4176f9
push eax
call edi
mov dword [esp + 0xc], 0
mov ecx, dword [esp + 0x128]
mov edx, dword [ebp]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x417718
push eax
call edi
pop edi
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x114]
call fcn.0042a301
add esp, 0x118
ret 4
mov eax, dword [esp + 8]
test eax, eax
je 0x417741
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x114]
call fcn.0042a301
add esp, 0x118
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x417769
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x120]
mov eax, edi
pop edi
pop esi
pop ebp
call fcn.0042a301
add esp, 0x118
ret 4
Function at 0x417c40
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov ebp, ecx
xor edi, edi
push esi
call ebx
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x417c52
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp]
push edi
push eax
push 7
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x41b650
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
mov ebp, dword [0x456824]
mov eax, 0x4c8f8d29
imul ebp
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, eax
mov eax, 0x30c30c31
imul ebp
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
mov eax, 0x36b45a9b
imul dword [0x45681c]
push esi
mov esi, dword [0x456830]
push edi
mov edi, dword [0x456838]
mov ebx, esi
imul edi, edi, 0x235
imul ebx, ebx, 0x1aa
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
mov eax, dword [esp + 0x14]
add ecx, ebx
add ecx, edi
cmp eax, 0x132b600
mov dword [str._r_____r____], ecx
je 0x41b6e2
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, 0x64
push 0x3e8
call edi
dec esi
jne 0x41b6d1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov ebp, dword [0x456834]
imul esi, esi, 0x257
mov eax, 0x9cc8e161
imul ebp
add edx, ebp
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x456818]
imul edx, edx, 0x344
add eax, edx
sub eax, esi
mov dword [esp + 0x14], eax
mov eax, 0x2d4279a3
imul dword [0x456820]
mov eax, dword [esp + 0x14]
sar edx, 6
add eax, edx
mov esi, edx
shr esi, 0x1f
add esi, eax
mov eax, 0xf2b9d649
imul ebp
add edx, ebp
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
mov eax, dword [0x56a64c]
mov edx, eax
inc eax
test edx, edx
mov dword [0x456818], esi
mov dword [0x56a64c], eax
jle 0x41b7a7
mov esi, dword [0x45681c]
mov eax, 0x4c8f8d29
imul dword [0x456838]
sar edx, 8
mov ebp, edx
shr ebp, 0x1f
add ebp, edx
mov eax, 0xe1fc780f
imul esi
add edx, esi
sar edx, 9
mov eax, edx
shr eax, 0x1f
add ebp, edx
add eax, ebp
sub eax, edi
pop edi
sub eax, ecx
pop esi
lea ecx, [eax + ebx + 0x1e7]
pop ebp
mov dword [0x45681c], ecx
mov eax, 1
pop ebx
ret
mov edx, dword [0x45682c]
imul ecx, ecx, 0x2a0
imul esi, esi, 0x87
mov eax, 0x30c30c31
imul edx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
mov eax, 0x43491159
imul dword [0x456820]
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
add ecx, esi
sub ecx, ebp
sub ecx, 0x344
mov dword [0x456820], ecx
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push 0x41b120
push 0
push 0
mov dword [0x56a36c], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x45682c]
mov esi, dword [str._r_____r____]
mov eax, 0xe1fc780f
imul esi, esi, 0x358
imul ecx
add edx, ecx
mov ecx, dword [0x456818]
sar edx, 9
imul ecx, ecx, 0x1aa
mov eax, edx
shr eax, 0x1f
add eax, edx
add ecx, dword [0x456830]
mov edx, dword [0x456828]
imul edx, edx, 0x87
sub esi, eax
pop edi
add ecx, esi
pop esi
lea eax, [edx + ecx - 0x344]
pop ebp
mov dword [0x456824], eax
mov eax, 1
pop ebx
ret
Function at 0x420030
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
mov ebp, dword [0x456824]
mov eax, 0x4c8f8d29
imul ebp
sar edx, 8
push esi
mov esi, dword [0x456838]
push edi
mov edi, edx
shr edi, 0x1f
add edi, edx
mov eax, 0xe7fc601
imul esi
sar edx, 5
mov ebx, esi
imul ebx, ebx, 0x344
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, eax
sub ecx, ebx
mov ebx, dword [0x45681c]
mov edx, ebx
imul edx, edx, 0x244
add ecx, edx
mov eax, 0x99d722db
imul esi
add edx, esi
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
mov eax, dword [esp + 0x14]
sub ecx, edi
cmp eax, 0x132b600
mov dword [0x456828], ecx
mov eax, 0x30c30c31
je 0x420104
imul ebp
imul esi, esi, 0x235
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, 0xc94ba565
imul ebx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
sub eax, ecx
mov ecx, dword [0x456830]
imul ecx, ecx, 0x1aa
add esi, edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esi, eax
add ecx, esi
mov dword [str._r_____r____], ecx
mov esi, 0x64
push 0x3e8
call edi
dec esi
jne 0x4200f3
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov esi, dword [0x456820]
mov edi, dword [0x45682c]
imul esi
imul esi, esi, 0x257
imul edi, edi, 0x344
sar edx, 7
add edi, edx
mov ebp, edx
mov edx, dword [0x456830]
imul edx, edx, 0x16a
shr ebp, 0x1f
add ebp, edi
add ebp, esi
add ebp, edx
mov eax, 0xf2b9d649
imul ebx
add edx, ebx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ebp, eax
mov eax, dword [0x56a360]
test eax, eax
mov dword [0x45682c], ebp
jne 0x420237
mov eax, 0x4c8f8d29
imul ecx
sar edx, 8
mov esi, ecx
mov eax, edx
imul esi, esi, 0x358
shr eax, 0x1f
add eax, edx
mov edx, dword [0x456834]
sub esi, eax
mov eax, 0x30c30c31
imul edx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x456818]
imul edx, edx, 0x244
sub esi, eax
add esi, edx
mov eax, 0x36b45a9b
imul ecx
lea ecx, [esp + 0x14]
push ecx
push 0
sar edx, 7
push 0
mov eax, edx
shr eax, 0x1f
push 0x41eb00
add eax, edx
push 0
sub esi, eax
push 0
mov dword [0x456834], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [0x45682c]
mov esi, dword [str._r_____r____]
mov dword [0x56a350], eax
imul esi, esi, 0x358
mov eax, 0xe1fc780f
imul ecx
add edx, ecx
mov ecx, dword [0x456818]
sar edx, 9
imul ecx, ecx, 0x1aa
mov eax, edx
shr eax, 0x1f
add eax, edx
add ecx, dword [0x456830]
mov edx, dword [0x456828]
imul edx, edx, 0x87
sub esi, eax
add ecx, esi
lea eax, [edx + ecx - 0x344]
mov dword [0x56a360], 1
mov dword [0x456824], eax
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret