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

Disassembly:
mov eax, 0x1005ba28
call fcn.1005a1d8
sub esp, 0x1c
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x28], edx
mov byte [ebp - 0x14], cl
test cl, cl
je 0x1003303b
mov dword [ebp - 0x24], 0x626d
cmp dword [ebp - 0x24], 0x6473
jle 0x10032fbc
mov edi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], 0x7ca4
mov ebx, esi
mov edi, esi
mov esi, dword [ebp - 0x18]
mov eax, ebx
mov ecx, 0x10075958
cdq
idiv edi
xor edx, esi
mov eax, edx
cdq
push edx
push eax
call fcn.1000daa1
inc edi
cmp edi, 0x444e
jl 0x10032f7a
inc ebx
push 0
pop esi
cmp ebx, 0x7ad6
jl 0x10032f75
dec dword [ebp - 0x18]
dec dword [ebp - 0x1c]
jne 0x10032f73
mov edi, dword [ebp - 0x20]
inc edi
mov dword [ebp - 0x20], edi
cmp edi, 0x744d
jl 0x10032f69
mov dword [ebp - 4], esi
cmp dword [ebp - 0x24], 0x5ead
jge 0x10032ff5
mov edx, str.txxnas_jtd_fwfzbrg_eyil_gcuffntin_qketlm_zvb_ahzanctm_dyi_vvgzn_vcilob
mov ecx, 0x10075958
call fcn.1001082c
jmp 0x10032ff5
mov edi, dword [ebp + 8]
cmp dword [edi], esi
jne 0x10032ffe
mov eax, dword [edi]
mov ecx, dword [edi]
xor edx, edx
mov eax, dword [edi]
cmp ecx, eax
sete dl
cmp dword [edi], edx
jge 0x10033014
cmp dword [edi], esi
je 0x10033014
xor esi, esi
inc esi
mov eax, dword [ebp + 0xc]
mov ecx, 0x9b7928f
mov dword [eax], ecx
xor eax, eax
cmp esi, ecx
mov ecx, 0x1208373b
sete al
imul eax, eax, 0x6ee4
sub ecx, eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
mov dword [eax], ecx
jmp 0x1003304e
push 0xc97
push esi
push esi
push 0x1ba4
push esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1003319d
Capabilities:
Encode data using xor
Set registry value

Disassembly:
mov eax, 0x1005ba32
call fcn.1005a1d8
sub esp, 0x14
push ebx
push esi
mov dword [ebp - 0x18], 0x783e
mov eax, edx
push edi
xor esi, esi
mov dword [ebp - 0x10], esp
cmp dword [ebp - 0x18], 0x7b31
mov dword [ebp - 0x20], eax
jle 0x1003321d
push 0x1ace
push esi
push 0x3ea
push 0x426
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, esi
mov ebx, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], 0xc38
mov eax, esi
mov ecx, 0x10075958
xor eax, edi
cdq
push edx
push eax
call fcn.1000daa1
add esi, ebx
dec dword [ebp - 0x14]
jne 0x100331ed
inc ebx
push 0
pop esi
cmp ebx, 0x4b5c
jl 0x100331e3
inc edi
cmp edi, 0x58f
jl 0x100331e1
mov eax, dword [ebp - 0x20]
cmp byte [ebp + 8], 0
je 0x10033231
cmp byte [eax], 0
je 0x10033238
push ecx
call fcn.1003444a
pop ecx
jmp 0x10033238
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadLocale]
mov dword [ebp - 4], esi
cmp dword [ebp - 0x18], 0x76db
jge 0x10033253
mov edx, str.qbg_tlclcidr_umdkb_dsx_yqn_gjjy
mov ecx, 0x10075958
call fcn.1001082c
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1003395c
Capabilities:
Set registry value

Disassembly:
mov eax, 0x1005ba46
call fcn.1005a1d8
sub esp, 0x14
cmp byte [ebp + 8], 0
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
mov byte [ebp - 0x14], dl
mov dword [ebp - 0x1c], esi
je 0x10033a89
test dl, dl
je 0x10033a64
xor ebx, ebx
mov dword [ebp - 0x20], esi
mov dword [esi], ebx
cmp dword [esi], 1
jge 0x10033ac4
mov dword [ebp - 0x18], 0x492c
cmp dword [ebp - 0x18], 0x4be9
jle 0x10033a01
mov edi, ebx
mov dword [ebp + 8], ebx
mov esi, ebx
mov ebx, edi
mov edi, 0x51a
mov eax, ebx
mov ecx, 0x10075958
cdq
push edx
push eax
call fcn.1000daa1
add ebx, esi
dec edi
jne 0x100339b7
mov edi, dword [ebp + 8]
inc esi
cmp esi, 0x33c0
jl 0x100339b0
inc edi
mov dword [ebp + 8], edi
push 0
pop ebx
cmp edi, 0x1d71
jl 0x100339ae
push 0x1ace
push ebx
push 0x3ea
push 0x426
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, dword [ebp - 0x1c]
mov byte [ebp + 0xb], bl
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], 0x4708
jge 0x10033a1f
mov edx, str.cnu_ytuvmfb_unuqqhq_ccoju_igockyp_rdmirdufg_sct_udnzwtlfp_ozfurepk_oazcff_dbvirifx_ujccd_jotlj
mov ecx, 0x10075958
call fcn.1001082c
or dword [ebp - 4], 0xffffffff
cmp byte [ebp + 0xb], 0
je 0x10033a35
push ebx
mov edx, 0x4291
call fcn.1003319d
pop ecx
inc dword [esi]
jmp 0x10033990
mov edx, dword [ebp + 0x18]
mov dword [edx], 0
cmp dword [edx], 3
jge 0x10033ac4
mov esi, dword [ebp + 0x14]
mov ecx, dword [edx]
mov eax, dword [esi]
mov dword [eax + ecx*4], 0xab2a
inc dword [edx]
cmp dword [edx], 3
jl 0x10033a75
jmp 0x10033ac4
cmp byte [ebp + 0x1c], 0
je 0x10033ab4
mov edx, dword [ebp + 0xc]
mov dword [edx], 0
cmp dword [edx], 2
jge 0x10033ac4
mov esi, dword [ebp + 0x10]
mov ecx, dword [edx]
mov eax, dword [esi]
mov dword [eax + ecx*4], 0xb91300d3
inc dword [edx]
cmp dword [edx], 2
jl 0x10033aa0
jmp 0x10033ac4
mov eax, dword [ebp + 0x20]
cmp byte [eax], 0
je 0x10033ac4
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10033cf1
Capabilities:
Get disk size
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
cmp byte [ebp + 0xc], 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [ebp - 8], edi
je 0x10033e51
cmp byte [ebp + 0x14], 0
je 0x10033e31
mov dword [ebp - 0x10], 0x3f27
cmp dword [ebp - 0x10], 0x419a
push 0
pop esi
jle 0x10033d73
mov ebx, esi
mov dword [ebp + 0xc], esi
mov edi, ebx
mov ebx, 0x2cc5
mov eax, edi
lea ecx, [ebp - 0x28]
cdq
push edx
push eax
call fcn.100026cb
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x10033d4b
mov eax, dword [eax]
push eax
call fcn.10041403
pop ecx
push esi
push 1
lea ecx, [ebp - 0x28]
call fcn.1000e4ee
dec edi
dec ebx
jne 0x10033d34
mov ebx, dword [ebp + 0xc]
inc ebx
mov dword [ebp + 0xc], ebx
cmp ebx, 0x131e
jl 0x10033d2d
mov edi, dword [ebp - 8]
mov dword [ebp - 0xc], 0x407d
cmp dword [ebp - 0xc], 0x42e7
jle 0x10033deb
mov ebx, esi
mov dword [ebp - 4], esi
mov ecx, esi
mov dword [ebp + 0xc], esi
mov eax, ebx
mov edi, esi
cdq
idiv ecx
mov ebx, edx
mov eax, ebx
lea ecx, [ebp - 0x40]
or eax, edi
cdq
push edx
push eax
call fcn.100026cb
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x10033daf
mov eax, dword [eax]
push eax
call fcn.10041403
pop ecx
push esi
push 1
lea ecx, [ebp - 0x40]
call fcn.1000e4ee
inc edi
cmp edi, 0x227f
jl 0x10033d96
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp - 4]
inc ecx
mov dword [ebp + 0xc], ecx
cmp ecx, 0x925
jl 0x10033d8d
inc ebx
mov dword [ebp - 4], ebx
cmp ebx, 0x5a6a
jl 0x10033d88
mov edi, dword [ebp - 8]
mov dword [edi], esi
cmp dword [edi], 4
jge 0x10033e07
mov edx, dword [ebp + 0x1c]
mov ecx, dword [edi]
mov eax, dword [edx]
mov dword [eax + ecx*4], 0x8f4e1c2e
inc dword [edi]
cmp dword [edi], 4
jl 0x10033df5
cmp dword [ebp - 0xc], 0x3d22
jge 0x10033e1b
push str.cawjxjc_efyxyqdxj_tzqzwy
call fcn.10041403
pop ecx
cmp dword [ebp - 0x10], 0x3e84
jge 0x10033e80
push str.yjjn_gux_eub_wzfjrjzyq_ddateh
call fcn.10041403
pop ecx
jmp 0x10033e80
mov eax, dword [esi]
mov ecx, esi
push dword [eax + 4]
call fcn.1003a405
mov eax, dword [esi]
mov dword [eax + 4], eax
mov eax, dword [esi]
mov dword [eax], eax
mov eax, dword [esi]
mov dword [eax + 8], eax
and dword [esi + 4], 0
jmp 0x10033e80
cmp byte [ebp + 0x10], 0
je 0x10033e6e
mov eax, dword [ebp + 0x18]
cmp byte [eax], 0
je 0x10033e80
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
jmp 0x10033e80
mov eax, dword [ebp + 8]
cmp byte [eax], 0
je 0x10033e80
xor esi, esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100351fc
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x1005ba78
call fcn.1005a1d8
sub esp, 0x1c
push ebx
push esi
mov byte [ebp - 0x14], dl
mov eax, ecx
mov dword [ebp - 0x1c], 0x7511
cmp dword [ebp - 0x1c], 0x780c
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x24], eax
jle 0x1003526e
xor esi, esi
mov dword [ebp - 0x18], esi
xor edi, edi
and dword [ebp - 0x20], 0
mov ebx, edi
and ebx, esi
mov esi, dword [ebp - 0x20]
mov eax, ebx
mov ecx, 0x10075958
xor eax, esi
cdq
push edx
push eax
call fcn.1000daa1
inc esi
cmp esi, 0x757
jl 0x10035239
mov esi, dword [ebp - 0x18]
inc edi
cmp edi, 0x7b54
jl 0x1003522e
inc esi
mov dword [ebp - 0x18], esi
cmp esi, 0x28e8
jl 0x1003522c
mov eax, dword [ebp - 0x24]
cmp byte [ebp - 0x14], 0
je 0x1003527f
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x1f4a1ab7
jmp 0x1003528e
cmp byte [eax], 0
je 0x1003528e
push 0
push 0
call dword [sym.imp.USER32.dll_LoadMenuW]
and dword [ebp - 4], 0
cmp dword [ebp - 0x1c], 0x7142
jge 0x100352aa
mov edx, str.vwejy_cpybb_mpc_ubkft_ohiqnqc_jzlv_idysiq_nwafmitr_cavwtkqes_gcsp
mov ecx, 0x10075958
call fcn.1001082c
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100352fa
Capabilities:
Delete directory

Disassembly:
mov eax, 0x1005ba82
call fcn.1005a1d8
sub esp, 0x38
cmp byte [ebp + 0x10], 0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], ecx
je 0x1003534c
cmp byte [ebp + 0x14], 0
je 0x10035338
mov eax, dword [ebp + 8]
cmp byte [eax], 0
je 0x10035485
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x10035485
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
jmp 0x10035485
mov dword [ebp + 0x10], 0x1fd6
cmp dword [ebp + 0x10], 0x22dc
jle 0x100353a0
xor esi, esi
xor edi, edi
mov ecx, edi
mov eax, esi
shl eax, cl
lea ecx, [ebp - 0x40]
cdq
push edx
push eax
call fcn.100026cb
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x1003537b
mov eax, dword [eax]
push eax
call fcn.10041403
pop ecx
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.1000e4ee
inc edi
cmp edi, 0x4a36
jl 0x10035360
inc esi
cmp esi, 0x2b7d
jl 0x1003535e
cmp dword [ebp + 0x10], 0x1f2c
jge 0x100353b4
push str.ufffmhud_fbuudz_vlc_zgdoexfs_wtltxpr_snex_diabmtxi_zakuxk_advxtoxx_pxkcul
call fcn.10041403
pop ecx
or dword [ebp - 4], 0xffffffff
cmp byte [ebp + 0x1c], 0
je 0x10035475
mov dword [ebp - 0x1c], 0x79ea
cmp dword [ebp - 0x1c], 0x7db4
jle 0x10035421
xor edi, edi
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x20], esi
mov dword [ebp + 0x10], 0x479b
mov ecx, esi
mov eax, ebx
shl eax, cl
mov ecx, 0x10075958
or eax, edi
cdq
push edx
push eax
call fcn.1000daa1
dec esi
dec dword [ebp + 0x10]
jne 0x100353e5
mov esi, dword [ebp - 0x18]
inc esi
mov dword [ebp - 0x18], esi
cmp esi, 0x557c
jl 0x100353db
inc ebx
cmp ebx, 0x2666
jl 0x100353d6
inc edi
cmp edi, 0x648
jl 0x100353d4
mov dword [ebp - 4], 2
cmp dword [ebp - 0x1c], 0x7683
jge 0x10035440
mov edx, str.hwcbrfa_cfwczu_kvgfx_nrlfojt_mclmuvw_alacro_bkc_fkjow_dbpyy
mov ecx, 0x10075958
call fcn.1001082c
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
or dword [ebp - 4], 0xffffffff
mov eax, dword [eax]
sub eax, dword [ecx]
mov ecx, dword [ebp + 0xc]
sar eax, 1
push eax
call fcn.1000dc80
jmp 0x10035485
mov eax, dword [ebp + 0x18]
cmp byte [eax], 0
je 0x10035485
push 0
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100024d7
Capabilities:
Delete file

Disassembly:
mov eax, 0x1000ce49
call fcn.10007e9c
sub esp, 0x440
lea ecx, [ebp - 0x14]
call fcn.10001000
and dword [ebp - 4], 0
push 1
call fcn.1000218b
pop ecx
push 0
call fcn.1000218b
pop ecx
call fcn.100034c4
test eax, eax
je 0x10002661
lea ecx, [ebp - 0x448]
call fcn.100068c8
mov byte [ebp - 4], 1
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx eax, word [ebp - 0x22]
imul eax, eax, 0x1f
movzx ecx, word [ebp - 0x1e]
add eax, ecx
mov dword [ebp - 0x44c], eax
push 0x10010508
lea ecx, [ebp - 0x14]
call fcn.10001581
lea ecx, [ebp - 0x14]
call fcn.1000141e
movzx eax, al
test eax, eax
jne 0x100025fb
lea ecx, [ebp - 0x14]
call fcn.1000141e
movzx eax, al
test eax, eax
jne 0x100025fb
lea ecx, [ebp - 0x14]
call fcn.1000141e
movzx eax, al
test eax, eax
jne 0x100025fb
lea ecx, [ebp - 0x14]
call fcn.1000141e
movzx eax, al
test eax, eax
jne 0x100025fb
lea ecx, [ebp - 0x14]
call fcn.1000141e
movzx eax, al
test eax, eax
jne 0x100025fb
lea ecx, [ebp - 0x14]
call fcn.1000141e
movzx eax, al
test eax, eax
jne 0x100025fb
lea ecx, [ebp - 0x14]
call fcn.1000141e
movzx eax, al
test eax, eax
jne 0x100025fb
lea ecx, [ebp - 0x14]
call fcn.1000141e
movzx eax, al
test eax, eax
jne 0x100025fb
lea ecx, [ebp - 0x14]
call fcn.1000141e
movzx eax, al
test eax, eax
jne 0x100025fb
lea ecx, [ebp - 0x14]
call fcn.1000141e
movzx eax, al
test eax, eax
jne 0x100025fb
lea ecx, [ebp - 0x14]
call fcn.10001bf8
push eax
lea ecx, [ebp - 0x448]
call fcn.100069be
push str.HKEY_LOCAL_MACHINESOFTWAREClassesCLSID0E5CBF21_D15F_11d0_8301_00AA005B4
lea ecx, [ebp - 0x14]
call fcn.10001581
push str.383InProcServer32_
lea ecx, [ebp - 0x14]
call fcn.100017f8
lea ecx, [ebp - 0x14]
call fcn.10001bf8
push eax
lea ecx, [ebp - 0x448]
call fcn.100069be
push 0x1001058c
push str.QDZQ
lea ecx, [ebp - 0x448]
call fcn.10006997
push 0
lea eax, [ebp - 0x44c]
push eax
lea ecx, [ebp - 0x448]
call fcn.10006d8c
and byte [ebp - 4], 0
lea ecx, [ebp - 0x448]
call fcn.10006944
push 0x10011a20
lea ecx, [ebp - 0x14]
call fcn.10001549
push str.iprep
lea ecx, [ebp - 0x14]
call fcn.100017f8
push 0x100105a4
lea ecx, [ebp - 0x14]
call fcn.100017f8
lea ecx, [ebp - 0x14]
call fcn.1000141e
movzx eax, al
test eax, eax
jne 0x100026a6
lea ecx, [ebp - 0x14]
call fcn.10001bf8
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x10011a20
lea ecx, [ebp - 0x14]
call fcn.10001549
push 0x100105ac
lea ecx, [ebp - 0x14]
call fcn.100017f8
push 0x100105b0
lea ecx, [ebp - 0x14]
call fcn.100017f8
push str.date
lea ecx, [ebp - 0x14]
call fcn.100017f8
push 0x100105bc
lea ecx, [ebp - 0x14]
call fcn.100017f8
lea ecx, [ebp - 0x14]
call fcn.1000141e
movzx eax, al
test eax, eax
jne 0x10002705
lea ecx, [ebp - 0x14]
call fcn.10001bf8
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.100010fa
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x10002ef7
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push edi
and dword [ebp - 0x54], 0
push 0x10
pop ecx
xor eax, eax
lea edi, [ebp - 0x50]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x54], 0x44
cmp dword [ebp + 0xc], 0
je 0x10002f20
mov dword [ebp - 0x4c], str.WinSta0Default
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
xor eax, eax
pop edi
leave
ret
Function at 0x10004879
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 0x14]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1000489a
xor eax, eax
jmp 0x100048f1
lea eax, [ebp - 0xc]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov dword [ebp - 0x10], 1
mov dword [ebp - 4], 2
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x100048dc
xor eax, eax
jmp 0x100048f1
push 0
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x100048ee
xor eax, eax
jmp 0x100048f1
push 1
pop eax
leave
ret
Function at 0x100048f3
Capabilities:
Get file size
Timestomp file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x170
mov dword [ebp - 0x158], 1
cmp dword [ebp + 0xc], 0
jne 0x10004913
xor eax, eax
jmp 0x10004b2e
lea eax, [ebp - 0x140]
push eax
mov ecx, dword [ebp + 8]
call fcn.10001bf8
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x14c], 0xffffffff
je 0x100049d1
push dword [ebp - 0x14c]
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
mov ecx, dword [ebp + 8]
call fcn.10001bf8
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x15c], eax
cmp dword [ebp - 0x15c], 0xffffffff
je 0x100049d1
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x164]
push eax
push dword [ebp - 0x15c]
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x100049ab
mov eax, dword [ebp - 0x154]
cmp eax, dword [0x10010098]
je 0x100049be
push 0
push dword [ebp - 0x15c]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, dword [ebp + 0x10]
je 0x100049c5
and dword [ebp - 0x158], 0
push dword [ebp - 0x15c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x158], 0
jne 0x100049e4
cmp dword [ebp + 0x14], 0
je 0x10004b2b
and dword [ebp - 0x16c], 0
cmp dword [0x10011aa0], 0
je 0x10004a5f
mov eax, dword [ebp + 0xc]
cmp eax, dword [0x10011aa0]
je 0x10004a5f
push dword [ebp + 0x10]
call fcn.10007040
pop ecx
mov dword [ebp - 0x16c], eax
cmp dword [ebp - 0x16c], 0
je 0x10004a5d
and dword [ebp - 0x170], 0
jmp 0x10004a2d
mov eax, dword [ebp - 0x170]
inc eax
mov dword [ebp - 0x170], eax
mov eax, dword [ebp - 0x170]
cmp eax, dword [ebp + 0x10]
jae 0x10004a5d
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x170]
movzx eax, byte [eax]
movzx ecx, byte [0x100119c8]
xor eax, ecx
mov ecx, dword [ebp - 0x16c]
add ecx, dword [ebp - 0x170]
mov byte [ecx], al
jmp 0x10004a20
jmp 0x10004a68
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x16c], eax
cmp dword [ebp - 0x16c], 0
jne 0x10004a78
xor eax, eax
jmp 0x10004b2e
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov ecx, dword [ebp + 8]
call fcn.10001bf8
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x15c], eax
cmp dword [ebp - 0x15c], 0xffffffff
je 0x10004b10
push 0
push 0
push 0
push dword [ebp - 0x15c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x168]
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x16c]
push dword [ebp - 0x15c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [0x10010098]
mov dword [ebp - 0x154], eax
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x154]
push eax
push dword [ebp - 0x15c]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [ebp - 0x15c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x16c]
je 0x10004b2b
push dword [ebp - 0x16c]
call fcn.10006ff8
pop ecx
xor eax, eax
jmp 0x10004b2e
push 1
pop eax
leave
ret
Function at 0x1000522f
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, 0x1000d199
call fcn.10007e9c
sub esp, 0x30
lea ecx, [ebp - 0x1c]
call fcn.10001000
and dword [ebp - 4], 0
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
je 0x10005325
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x1000531c
mov eax, dword [ebp - 0x24]
cmp eax, dword [0x10010098]
jne 0x1000531c
push 0
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [0x10011a18], eax
push dword [0x10011a18]
call fcn.10007040
pop ecx
mov dword [0x10011a98], eax
cmp dword [0x10011a94], 0
je 0x1000531c
push 0
lea eax, [ebp - 0x34]
push eax
push dword [0x10011a18]
push dword [0x10011a98]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100052eb
cmp dword [ebp - 0x34], 0x64
jae 0x1000531c
push dword [0x10011a98]
call fcn.10006ff8
pop ecx
and dword [0x10011a98], 0
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x38], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.100010fa
mov eax, dword [ebp - 0x38]
jmp 0x1000533b
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x3c], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.100010fa
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x10006d8c
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0x64
mov dword [ebp - 8], 1
push str.DWORD
mov eax, dword [ebp - 0xc]
add eax, 0x14
push eax
call fcn.100068b2
pop ecx
pop ecx
movzx eax, al
test eax, eax
je 0x10006dc4
xor eax, eax
jmp 0x10006e80
mov eax, dword [ebp - 0xc]
add eax, 0x1c
push eax
push 0xf003f
push 0
mov ecx, dword [ebp - 0xc]
add ecx, 4
call fcn.10001bf8
push eax
mov eax, dword [ebp - 0xc]
push dword [eax + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10006e15
mov eax, dword [ebp - 0xc]
add eax, 0x1c
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 4
call fcn.10001bf8
push eax
mov eax, dword [ebp - 0xc]
push dword [eax + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x10006e15
xor eax, eax
jmp 0x10006e80
cmp dword [ebp + 0xc], 0
je 0x10006e48
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push 0
push 0
mov ecx, dword [ebp - 0xc]
add ecx, 0xc
call fcn.10001bf8
push eax
mov eax, dword [ebp - 0xc]
push dword [eax + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x10006e46
and dword [ebp - 8], 0
jmp 0x10006e71
push 4
push dword [ebp + 8]
push 4
push 0
mov ecx, dword [ebp - 0xc]
add ecx, 0xc
call fcn.10001bf8
push eax
mov eax, dword [ebp - 0xc]
push dword [eax + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x10006e71
and dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
push dword [eax + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
leave
ret 8

Function at 0x10006e84
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 4
call fcn.10001bf8
push eax
mov eax, dword [ebp - 0xc]
push dword [eax + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov ecx, dword [ebp - 0xc]
add ecx, 0xc
call fcn.10001bf8
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov dword [ebp - 4], eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], 0
jne 0x10006ed5
push 1
pop eax
jmp 0x10006ed7
xor eax, eax
leave
ret
Function at 0x1000b965
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x10011148
cmp edx, dword [eax]
je 0x1000b987
add eax, 8
inc ecx
cmp eax, 0x100111d8
jl 0x1000b978
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x10011148]
jne 0x1000bab5
mov eax, dword [0x10011b04]
cmp eax, 1
je 0x1000ba8f
test eax, eax
jne 0x1000b9b8
cmp dword [0x10011b08], 1
je 0x1000ba8f
cmp edx, 0xfc
je 0x1000bab5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1000b9ef
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.10007f70
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.10006ef0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x1000ba32
lea eax, [ebp - 0x1a4]
push eax
call fcn.10006ef0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x1000e570
push edi
call fcn.100094c0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.10007f70
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.10007f80
lea eax, [ebp - 0xa0]
push 0x1000e550
push eax
call fcn.10007f80
push dword [esi + 0x1001114c]
lea eax, [ebp - 0xa0]
push eax
call fcn.10007f80
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.1000c405
add esp, 0x2c
pop edi
jmp 0x1000bab5
lea eax, [ebp + 8]
lea esi, [esi + 0x1001114c]
push 0
push eax
push dword [esi]
call fcn.10006ef0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret