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

Disassembly:
mov eax, 0x10063d78
call fcn.10062d88
sub esp, 0x10
cmp byte [ebp + 0x28], 0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov byte [ebp - 0x14], cl
je 0x1001375d
cmp byte [ebp + 0x34], 0
je 0x10013731
mov dword [edx], 0
cmp dword [edx], 1
jge 0x1001389b
mov esi, dword [ebp + 0x2c]
mov ecx, dword [edx]
mov eax, dword [esi]
or dword [eax + ecx*4], 0xffffffff
inc dword [edx]
cmp dword [edx], 1
jl 0x1001371d
jmp 0x1001389b
mov edx, dword [ebp + 0x20]
mov dword [edx], 0
cmp dword [edx], 3
jge 0x1001389b
mov esi, dword [ebp + 0xc]
mov ecx, dword [edx]
mov eax, dword [esi]
mov dword [eax + ecx*4], 0x85d5
inc dword [edx]
cmp dword [edx], 3
jl 0x10013746
jmp 0x1001389b
test cl, cl
je 0x1001377d
mov eax, dword [ebp + 0x10]
cmp byte [eax], 0
je 0x1001389b
push 0x1704
call dword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x1001389b
mov dword [ebp - 0x18], 0x6b0a
xor esi, esi
cmp dword [ebp - 0x18], 0x6d98
jle 0x100137dd
mov edi, esi
mov dword [ebp + 0x28], esi
mov ebx, esi
mov eax, edi
mov dword [ebp - 0x1c], esi
cdq
idiv ebx
mov edi, edx
mov eax, edi
mov ecx, 0x100808b8
xor eax, esi
cdq
push edx
push eax
call fcn.100059e4
inc esi
cmp esi, 0x7dbf
jl 0x100137a0
mov edi, dword [ebp + 0x28]
inc ebx
push 0
pop esi
cmp ebx, 0x235
jl 0x10013796
inc edi
mov dword [ebp + 0x28], edi
cmp edi, 0x243e
jl 0x10013794
push esi
push esi
call dword [sym.imp.USER32.dll_UnregisterClassA]
mov dword [ebp - 4], esi
cmp dword [ebp - 0x18], 0x6a74
jge 0x10013816
mov edx, str.upjbqfiu_bjrp_dbfo
mov ecx, 0x100808b8
call fcn.10008020
jmp 0x10013816
mov edi, dword [ebp + 0x38]
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp + 0x30]
mov edx, dword [edi]
mov ecx, dword [ecx]
mov eax, dword [ebx]
mov dword [eax + edx*4], ecx
mov eax, dword [ebp + 0x3c]
mov eax, dword [eax]
mov ecx, dword [edi]
mov eax, dword [ebx]
cmp dword [eax + ecx*4], 0xffffffff
jge 0x1001383e
mov eax, dword [ebp + 0x1c]
cmp dword [eax], esi
je 0x10013841
xor esi, esi
inc esi
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
add eax, esi
add ecx, eax
mov eax, dword [ebx]
xor ebx, ebx
cmp dword [eax + 4], ecx
mov eax, dword [ebp + 0x24]
setl bl
xor ecx, ecx
mov edx, dword [eax]
mov eax, dword [edi]
sub edx, ebx
cmp edx, eax
mov eax, dword [ebp + 8]
sete cl
xor edx, edx
cmp ecx, 0x5b0d69b4
mov eax, dword [eax]
setle dl
xor ecx, ecx
cmp edx, eax
setne cl
xor eax, eax
cmp ecx, 0x22955d48
setl al
xor ecx, ecx
cmp eax, 0x2f8dc70e
mov eax, dword [ebp + 0x18]
setne cl
dec ecx
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100158fc
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10063e3e
call fcn.10062d88
sub esp, 0x10
cmp byte [ebp + 0x10], 0
mov edx, ecx
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
je 0x10015945
xor edi, edi
mov dword [edx], 0
inc edi
cmp dword [edx], edi
jge 0x10015934
mov esi, dword [ebp + 0x14]
mov ecx, dword [edx]
mov eax, dword [esi]
mov dword [eax + ecx*4], edi
inc dword [edx]
cmp dword [edx], edi
jl 0x10015927
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x18], 0x546
xor esi, esi
cmp dword [ebp - 0x18], 0x6c8
jle 0x100159a7
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, esi
mov dword [ebp - 0x14], esi
mov ebx, esi
mov dword [ebp - 0x1c], esi
mov ecx, ebx
mov esi, edi
mov edi, dword [ebp - 0x1c]
shl esi, cl
mov eax, esi
mov ecx, 0x100808b8
xor eax, edi
cdq
push edx
push eax
call fcn.100059e4
inc edi
cmp edi, 0x11bb
jl 0x10015972
mov edi, dword [ebp - 0x14]
inc ebx
push 0
pop esi
cmp ebx, 0x17f4
jl 0x10015966
inc edi
mov dword [ebp - 0x14], edi
cmp edi, 0x4f79
jl 0x10015964
push 0x1e1b
push esi
push esi
push esi
push 0x92e
push esi
call dword [sym.imp.KERNEL32.dll_GetDateFormatW]
mov dword [ebp - 4], esi
cmp dword [ebp - 0x18], 0x21e
jge 0x10015934
mov edx, str.wcbqfn_omoejktg_upejuvgh_xsx_nvo_qphl_gzpgyaq_pswbd_dqjxyl_rjitfshc_ttvahai_dlfkfp
mov ecx, 0x100808b8
call fcn.10008020
jmp 0x10015934
Function at 0x100163ce
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10063e98
call fcn.10062d88
push ecx
push ecx
cmp byte [ebp + 0x24], 0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
mov byte [ebp - 0x14], dl
je 0x10016426
cmp byte [ebp + 0x30], 0
je 0x10016415
mov eax, dword [ebp + 0x44]
cmp byte [eax], 0
je 0x10016575
push 0x30bf
push 0
mov ecx, 0x2ea9
call fcn.100159f9
pop ecx
pop ecx
jmp 0x10016575
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
mov dword [eax + 4], 0xb10079d6
jmp 0x10016575
test dl, dl
je 0x10016449
mov edx, dword [ebp + 0x40]
mov dword [edx], 0
jmp 0x1001643f
mov ecx, dword [edx]
mov eax, dword [esi]
and dword [eax + ecx*4], 0
inc dword [edx]
cmp dword [edx], 2
jl 0x10016435
jmp 0x10016575
mov dword [ebp + 0x24], 0x700e
cmp dword [ebp + 0x24], 0x707b
jle 0x1001648b
xor esi, esi
mov edi, esi
mov ebx, 0x40a9
mov eax, edi
mov ecx, 0x100808b8
cdq
push edx
push eax
call fcn.100059e4
dec edi
dec ebx
jne 0x10016462
inc esi
cmp esi, 0x7790
jl 0x1001645b
push 0x2357
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
and dword [ebp - 4], 0
cmp dword [ebp + 0x24], 0x6c53
jge 0x100164a7
mov edx, str.vmbzf_qcdtu_eazqckg_ztidmwt_fjwc_qumpddugi_ajysrjwh_dzswhvgw_msmn_irw
mov ecx, 0x100808b8
call fcn.10008020
mov edi, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x3c]
cmp dword [edi], 0
je 0x10016550
mov eax, dword [ebx]
xor edx, edx
cmp eax, 0x7911
mov eax, dword [ebp + 0x38]
setle dl
xor ecx, ecx
mov eax, dword [eax]
imul edx, dword [eax]
mov eax, dword [ebp + 0x34]
mov eax, dword [eax]
neg edx
cmp edx, eax
mov eax, dword [esi]
setge cl
mov dword [eax], ecx
test ecx, ecx
je 0x1001650e
mov eax, dword [ebp + 0x38]
mov eax, dword [eax]
cmp dword [eax], 0
je 0x1001650e
xor ecx, ecx
inc ecx
mov edx, ecx
jmp 0x10016513
xor ecx, ecx
xor edx, edx
inc ecx
mov eax, dword [ebp + 0x10]
cmp edx, dword [eax]
jne 0x10016521
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x10016523
xor ecx, ecx
mov eax, dword [ebp + 0x28]
mov dword [eax], ecx
xor eax, eax
cmp ecx, 4
setl al
xor ecx, ecx
cmp eax, 0x6c8a81d5
mov eax, dword [ebx]
setl cl
imul ecx, eax
mov eax, dword [edi]
add eax, ecx
mov ecx, dword [ebx]
add ecx, eax
mov eax, dword [ebp + 8]
neg ecx
mov dword [eax], ecx
mov eax, dword [eax]
mov eax, dword [esi]
xor edx, edx
mov ecx, dword [ebp + 0x14]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, dword [ebp + 0x34]
mov eax, dword [eax]
mov eax, dword [ecx]
mov eax, dword [ebx]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov eax, dword [edi]
cmp ecx, eax
mov eax, dword [ebp + 0x20]
setne dl
mov dword [eax], edx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10017e27
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [ebp + 0xc], 0
je 0x10017e52
push ecx
push ecx
lea eax, [ebp - 1]
mov byte [ebp - 1], 0
push eax
push 1
push ecx
mov edx, 0x4a9d
mov ecx, 0x712d
call fcn.10013498
add esp, 0x14
jmp 0x10017e5f
cmp byte [edx], 0
je 0x10017e5f
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esp, ebp
pop ebp
ret
Function at 0x10017f38
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10063f2e
call fcn.10062d88
sub esp, 0x18
cmp byte [ebp + 0x10], 0
mov eax, edx
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], esi
je 0x10017fab
cmp byte [ebp + 0x14], 0
je 0x10017f7b
mov eax, dword [ebp + 8]
mov dword [eax], 0xfffffff7
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [ebp + 0x13], 0
cmp byte [ebp + 0x13], 0
je 0x10017f6a
push 0x26d2
push 0x247d
push 0x188b
push 0x1892
push 0xa1e
push 0x9a9
call dword [sym.imp.GDI32.dll_PatBlt]
jmp 0x10017f6a
mov dword [ebp - 0x1c], 0x3b7
cmp dword [ebp - 0x1c], 0x4b4
jle 0x1001801c
xor ebx, ebx
xor esi, esi
xor eax, eax
mov dword [ebp + 0x10], eax
xor ecx, ecx
mov dword [ebp - 0x18], ecx
cdq
idiv ecx
mov eax, esi
mov ecx, edx
shl eax, cl
mov ecx, 0x100808b8
xor eax, ebx
cdq
push edx
push eax
call fcn.100059e4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp + 0x10]
inc ecx
mov dword [ebp - 0x18], ecx
cmp ecx, 0x6f91
jl 0x10017fc9
inc eax
mov dword [ebp + 0x10], eax
cmp eax, 0x1fb6
jl 0x10017fc4
inc esi
cmp esi, 0x48fd
jl 0x10017fbf
inc ebx
cmp ebx, 0x6aa8
jl 0x10017fbd
call dword [sym.imp.USER32.dll_WaitMessage]
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
cmp byte [ebp + 0xc], 0
je 0x100180c1
mov dword [ebp + 0x10], 0x4719
cmp dword [ebp + 0x10], 0x47fa
jle 0x10018062
xor ebx, ebx
xor esi, esi
mov ecx, esi
mov eax, ebx
shl eax, cl
mov ecx, 0x100808b8
cdq
push edx
push eax
call fcn.100059e4
inc esi
cmp esi, 0x159
jl 0x1001803a
inc ebx
cmp ebx, 0x318e
jl 0x10018038
mov esi, dword [ebp - 0x14]
and dword [ebp - 4], 0
cmp dword [ebp + 0x10], 0x462a
jge 0x1001809d
mov edx, str.bitusovvn_fjmtqfnvr_pmz_hypbdb_lpadq_srpmxw_dyqueeRtvWn_axsbaqehc_pdsr_aykqjq_llnee
mov ecx, 0x100808b8
call fcn.10008020
jmp 0x1001809d
or dword [ebp - 4], 0xffffffff
mov ecx, esi
mov eax, dword [esi]
push dword [eax + 4]
call fcn.1001db34
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 0x100180d2
cmp byte [eax], 0
je 0x100180d2
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
mov dword [ebp - 4], 2
cmp dword [ebp - 0x1c], 0x26c
jge 0x10017f6a
mov edx, str.olnfvozdm_rnpaos_lxghfmhyr_klvuri
mov ecx, 0x100808b8
call fcn.10008020
jmp 0x10017f6a
Function at 0x10018ba9
Capabilities:
Create directory
Encode data using xor

Disassembly:
mov eax, 0x10063f7c
call fcn.10062d88
sub esp, 0x34
cmp byte [ebp + 0x10], 0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov edi, edx
mov ebx, ecx
je 0x10018c8e
mov esi, dword [ebp + 0x20]
mov dword [esi], 0
jmp 0x10018c74
mov dword [ebp - 0x24], 0xdaa0
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x1c], 0x14a9c79e
mov dword [ebp - 0x2c], 0x9e96
mov dword [ebp - 0x18], 0x3d7f285f
mov dword [ebp - 0x30], 0x17b4
mov dword [ebp - 0x28], 0x1a932da3
push 1
call fcn.10005c0e
and dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
jmp 0x10018c29
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x3c]
mov dword [eax + ecx*4], 0xa84b
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 1
jl 0x10018c19
push edi
push ebx
lea eax, [ebp - 0x1c]
mov edx, 0x33e7
push eax
push dword [ebp + 0x1c]
lea eax, [ebp - 0x18]
push ecx
push eax
lea eax, [ebp - 0x24]
push eax
push 0x43ac
push ecx
push 1
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x3d1d
lea ecx, [ebp - 0x30]
call fcn.1001459d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
add esp, 0x34
call fcn.10005c91
inc dword [esi]
cmp dword [esi], 0x23
jg 0x10018bd8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
je 0x10018c7d
mov dword [ebp - 0x20], 0x1ee2
cmp dword [ebp - 0x20], 0x2086
jle 0x10018d03
xor esi, esi
mov dword [ebp - 0x1c], esi
xor edi, edi
mov dword [ebp - 0x18], edi
mov eax, edi
xor ebx, ebx
and eax, esi
mov dword [ebp - 0x30], eax
mov esi, eax
xor edi, edi
mov dword [ebp - 0x14], 0xafa
mov eax, edi
mov ecx, 0x100808b8
xor eax, esi
cdq
push edx
push eax
call fcn.100059e4
add edi, ebx
dec dword [ebp - 0x14]
jne 0x10018cc4
inc ebx
cmp ebx, 0x28f8
jl 0x10018cbb
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
inc edi
mov dword [ebp - 0x18], edi
cmp edi, 0x3619
jl 0x10018cb0
inc esi
mov dword [ebp - 0x1c], esi
cmp esi, 0x4c68
jl 0x10018cab
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 4], 1
cmp dword [ebp - 0x20], 0x1b3c
jge 0x10018c7d
mov edx, str.ooqwp_fjrz_sgtmvjfl_maqnzyzz_hxwzbibds_rgxwd_annnjjf_vvutpmsm_hwsygzhx_fide_qoolor_ipdnb_tnefspipt_kfrdxcl
mov ecx, 0x100808b8
call fcn.10008020
jmp 0x10018c7d
Function at 0x1003b032
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1003b07d
lea eax, [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
test eax, eax
je 0x1003b061
push 0x1f0a
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
jmp 0x1003b07b
push 0xc3e
push 0x938
push 0xb88
push 0x20d2
call dword [sym.imp.GDI32.dll_CreateRectRgn]
jmp 0x1003b091
push 0x2781
push 1
push 0x3575
call fcn.100369fd
add esp, 0xc
mov esp, ebp
pop ebp
ret
Function at 0x1004424a
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor edx, edx
push esi
mov dword [0x10081c14], ecx
inc edx
mov esi, 0x270
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul ecx, eax, 0x6c078965
add ecx, edx
mov dword [edx*4 + 0x10081c14], ecx
inc edx
cmp edx, esi
jl 0x1004425f
mov dword [0x10081c10], esi
pop esi
pop ebp
ret 8

Function at 0x10044285
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov edx, 0x10081c14
push edi
mov esi, edx
mov edi, 0x7fffffff
mov ecx, dword [esi + 0x9c4]
xor ecx, dword [esi + 0x9c0]
and ecx, edi
xor ecx, dword [esi + 0x9c0]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0xff4]
xor eax, ecx
mov dword [esi], eax
add esi, 4
cmp esi, 0x10081fa0
jl 0x10044293
mov esi, 0x9908b0df
mov ecx, dword [edx + 0xd50]
xor ecx, dword [edx + 0xd4c]
and ecx, edi
xor ecx, dword [edx + 0xd4c]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, esi
xor eax, ecx
xor eax, dword [edx]
mov dword [edx + 0x38c], eax
add edx, 4
cmp edx, 0x10082244
jl 0x100442d3
mov ecx, dword [0x10082f90]
xor ecx, dword [0x10081c14]
and ecx, edi
xor ecx, dword [0x10082f90]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
pop edi
sbb eax, eax
and dword [0x10081c10], 0
and eax, esi
shr ecx, 1
xor eax, ecx
xor eax, dword [0x10082244]
mov dword [0x100825d0], eax
pop esi
ret
Function at 0x10004e1a
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call fcn.10003dbf
lea eax, [ebp - 4]
push eax
call sub.KERNEL32.dll_GetCommandLineW
push eax
call fcn.100055d3
dec dword [ebp - 4]
and dword [ebp - 8], 0
mov esi, eax
lea eax, [ebp - 8]
push eax
add esi, 4
push esi
push dword [ebp - 4]
call fcn.10004bac
test al, al
je 0x10004e56
mov eax, dword [ebp - 8]
jmp 0x10004e5f
push esi
push dword [ebp - 4]
call fcn.10003e45
pop esi
leave
ret 0x10

Function at 0x1000875a
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov esi, dword [ebp + 8]
mov edi, 0x1505
jmp 0x1000877b
push eax
call dword [sym.imp.MSVCR80.dll_towupper]
imul edi, edi, 0x21
movzx eax, ax
xor edi, eax
inc esi
pop ecx
inc esi
movzx eax, word [esi]
test ax, ax
jne 0x10008769
mov eax, edi
pop edi
pop esi
pop ebp
ret 4

Function at 0x1000878b
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov esi, dword [ebp + 8]
mov edi, 0x1505
jmp 0x100087b6
mov ecx, dword [ebp + 0xc]
dec dword [ebp + 0xc]
test ecx, ecx
je 0x100087be
push eax
call dword [sym.imp.MSVCR80.dll_towupper]
imul edi, edi, 0x21
movzx eax, ax
xor edi, eax
inc esi
pop ecx
inc esi
movzx eax, word [esi]
test ax, ax
jne 0x1000879a
mov eax, edi
pop edi
pop esi
pop ebp
ret 8

Function at 0x100092fa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x18]
push edi
push 0
push esi
push dword [ebp + 0x10]
jne 0x1000931c
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esi]
cmp ecx, 1
je 0x10009329
cmp ecx, 7
je 0x10009329
cmp ecx, 2
jne 0x1000933e
test eax, eax
jne 0x1000933e
test edi, edi
je 0x1000933e
mov ecx, dword [edi]
test ecx, ecx
je 0x1000933e
lea eax, [ecx + ecx]
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
pop ebp
ret 0x14
Function at 0x405768
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405a26
test bl, 8
mov dword [ebp - 0xc], eax
je 0x4057a7
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x42f4a8], eax
jmp 0x405931
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x4057c1
test eax, eax
je 0x4058df
test bl, 2
je 0x4058df
mov esi, 0x42b878
push edi
push esi
call fcn.00405fa0
cmp dword [ebp + 8], 0
je 0x4057e0
push 0x40a3ac
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x4057e6
push edi
call fcn.0040597f
cmp byte [edi], 0
jne 0x4057f4
cmp byte [0x42b878], 0x5c
jne 0x4057ff
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x14c]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x4058d5
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.00405963
cmp byte [eax], 0
je 0x405845
cmp byte [ebp - 0x1c], 0
je 0x405845
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x40585b
mov al, byte [esi + 1]
test al, al
je 0x4058b4
cmp al, 0x2e
jne 0x40585b
cmp byte [esi + 2], 0
je 0x4058b4
push esi
push ebx
call fcn.00405fa0
test byte [ebp - 0x14c], 0x10
je 0x405880
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4058b4
push dword [ebp + 0xc]
push edi
call fcn.00405768
jmp 0x4058b4
push dword [ebp - 4]
push edi
call fcn.00405720
test eax, eax
jne 0x4058ac
cmp dword [ebp - 4], eax
je 0x4058a4
push edi
push 0xfffffffffffffff1
call fcn.004050c7
push 0
push edi
call fcn.00405d7f
jmp 0x4058b4
inc dword [0x42f4a8]
jmp 0x4058b4
push edi
push 0xfffffffffffffff2
call fcn.004050c7
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405823
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x4058df
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405931
cmp dword [ebp - 0xc], esi
jne 0x4058f3
inc dword [0x42f4a8]
jmp 0x405931
push edi
call fcn.004062a3
test eax, eax
je 0x405931
push edi
call fcn.00405938
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405720
test eax, eax
jne 0x405929
cmp dword [ebp - 4], esi
je 0x4058eb
push edi
push 0xfffffffffffffff1
call fcn.004050c7
push esi
push edi
call fcn.00405d7f
jmp 0x405931
push edi
push 0xffffffffffffffe5
call fcn.004050c7
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x10032d98
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x10032da7
pop dword [ebp - 0x44]
mov eax, 0x8c552052
sub eax, 0x7c51f2ab
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x43f61246
sub dword [ebp - 0x54], 0xf5a3ccfb
mov dword [ebp - 0x50], 0x594b1eb1
sub dword [ebp - 0x50], 0x2717d26c
mov dword [ebp - 0x4c], 0xd730bac9
sub dword [ebp - 0x4c], 0x8ae4769b
mov dword [ebp - 0x48], 0x49d48f7d
add dword [ebp - 0x48], 0xb62b7083
lea eax, [ebp - 0x54]
push eax
mov eax, 0x3c5183c
add eax, 0xc3e38dc
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0xdc62eeaf
sub dword [ebp - 0x54], 0x67f08559
mov dword [ebp - 0x50], 0x738c42a
sub dword [ebp - 0x50], 0xc5cc62b5
mov dword [ebp - 0x4c], 0x596f0e0f
add dword [ebp - 0x4c], 0xa005e5d
mov dword [ebp - 0x48], 0xf9c7d41c
sub dword [ebp - 0x48], 0xf9c7d41c
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x3e5d8
push 0
call eax
mov ecx, 0xc4d6ebea
add ecx, 0x3b296942
xor esi, esi
add esi, eax
mov edi, 0x9e670238
sub edi, 0x8e5e7e38
add edi, dword [ebp - 0x44]
mov edx, 0xda74e792
add dword [ebp - 0x1c], edi
mov ebx, dword [edi]
xor dword [ebp - 4], ebx
xor ebx, edx
sub dword [ebp - 0x18], 0xd71fd0d
mov dword [esi], ebx
xor dword [ebp - 0x10], 0xc1b8b642
add esi, 4
add edi, 4
loop 0x10032ec0
add eax, 0x99d1017e
sub eax, 0x99cfb9fb
mov ebx, eax
add eax, 0x6fe86f21
add eax, 0x901790e4
mov ecx, 0xcde99632
add ecx, 0x421669ce
add ecx, dword [ebp - 0x44]
call ebx
leave
ret

Function at 0x1003384b
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov eax, dword [esi + 0x50]
cmp eax, dword [esi + 0x54]
jae 0x10033862
mov bl, byte [eax]
inc eax
mov dword [esi + 0x50], eax
jmp 0x100338ce
cmp dword [esi + 0x4c], 0
jl 0x100338cc
mov edi, dword [esi + 0x58]
push 0xfa0
push edi
push dword [esi + 0x4c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
mov ebx, eax
add esp, 0xc
cmp ebx, 0xffffffff
jne 0x1003389a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [eax], 4
je 0x1003386b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [eax], 0xb
je 0x1003386b
cmp ebx, 1
jge 0x100338a7
or dword [esi + 0x4c], 0xffffffff
xor bl, bl
jmp 0x100338ec
lea eax, [edi + 1]
mov dword [esi + 0x50], eax
lea eax, [ebx + edi]
mov dword [esi + 0x54], eax
mov bl, byte [edi]
test bl, bl
jne 0x100338ce
push esi
call fcn.100348ff
mov eax, dword [esi + 0x50]
or dword [esi + 0x4c], 0xffffffff
pop ecx
mov dword [esi + 0x54], eax
jmp 0x100338ce
xor bl, bl
cmp bl, 0xa
jne 0x100338e2
mov eax, dword [esp + 0x18]
and dword [eax], 0
mov eax, dword [esp + 0x14]
inc dword [eax]
jmp 0x100338ec
test bl, bl
je 0x100338ec
mov ecx, dword [esp + 0x18]
inc dword [ecx]
pop edi
pop esi
mov al, bl
pop ebx
ret