joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002df5a
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push 0x10
mov eax, 0x100a0401
call fcn.1008895d
lea eax, [ebp - 0x14]
push eax
xor ebx, ebx
push ebx
lea eax, [ebp - 0x18]
push eax
push ebx
push dword [ebp + 8]
mov esi, ecx
add esi, 0x24
push dword [esi]
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1002df90
xor eax, eax
jmp 0x1002e04f
mov eax, dword [ebp - 0x14]
shr eax, 1
xor ecx, ecx
push 2
pop edx
mov dword [ebp - 0x10], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100838fc
mov edi, eax
pop ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], ebx
push dword [ebp + 8]
push esi
lea esi, [ebp - 0x10]
call fcn.10017b71
test eax, eax
je 0x1002dfd2
cmp edi, ebx
je 0x1002df89
push edi
call fcn.100848c9
pop ecx
jmp 0x1002df89
cmp dword [ebp - 0x18], 2
jne 0x1002e038
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push ebx
push ebx
push edi
call esi
xor ecx, ecx
push 2
pop edx
mov dword [ebp - 0x10], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100838fc
pop ecx
mov dword [ebp + 8], eax
mov byte [ebp - 4], 1
push dword [ebp - 0x10]
push eax
push edi
call esi
test eax, eax
je 0x1002e028
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.10001a89
cmp dword [ebp + 8], ebx
je 0x1002e041
push dword [ebp + 8]
call fcn.100848c9
pop ecx
jmp 0x1002e041
cmp dword [ebp + 8], ebx
je 0x1002dfc5
push dword [ebp + 8]
call fcn.100848c9
pop ecx
jmp 0x1002dfc5
push edi
push dword [ebp + 0xc]
call fcn.10001a89
cmp edi, ebx
je 0x1002e04c
push edi
call fcn.100848c9
pop ecx
xor eax, eax
inc eax
call fcn.10088a35
ret 8
Function at 0x1002e0d8
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x100cd130]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
mov dword [ebp - 0x21c], eax
xor esi, esi
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
call fcn.10017bd9
mov ebx, eax
cmp ebx, esi
je 0x1002e140
cmp dword [ebp - 0x214], esi
je 0x1002e139
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x1002e1db
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x1002e168
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x214]
call fcn.1002e0d8
mov dword [ebp - 0x220], eax
cmp eax, esi
jne 0x1002e1ec
lea eax, [ebp - 0x228]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x218], 0x100
call ebx
test eax, eax
je 0x1002e148
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x214], esi
je 0x1002e1b3
push dword [ebp - 0x214]
call ebx
mov dword [ebp - 0x214], esi
push dword [ebp - 0x21c]
mov dword [ebp - 0x210], esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
cmp dword [ebp - 0x214], esi
je 0x1002e1d9
push dword [ebp - 0x214]
call ebx
mov eax, edi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100848d4
leave
ret 4
cmp dword [ebp - 0x214], esi
je 0x1002e200
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x220]
jmp 0x1002e1db
Function at 0x1003184f
Capabilities:
Create directory

Disassembly:
push 0x2c
mov eax, 0x100a5dd3
call fcn.1008895d
cmp dword [ebx + 0x18], 8
jb 0x1003186b
lea esi, [ebx + 4]
mov eax, dword [esi]
mov dword [ebp - 0x18], esi
jmp 0x10031873
lea eax, [ebx + 4]
mov dword [ebp - 0x18], eax
mov esi, eax
lea ecx, [ebp - 0x10]
push ecx
mov edi, eax
call fcn.10014f97
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [ebx + 0x14], edi
je 0x1003198c
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x1003198c
push edi
push 0x100b365c
push ebx
call fcn.100019d3
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
je 0x10031944
push dword [ebp - 0x14]
lea esi, [ebp - 0x38]
push 0
push ebx
call fcn.100171fa
mov byte [ebp - 4], 1
cmp dword [eax + 0x18], 8
jb 0x100318d2
mov eax, dword [eax + 4]
jmp 0x100318d5
add eax, 4
lea ecx, [ebp - 0x1c]
push ecx
mov edi, eax
call fcn.10014f97
lea eax, [ebp - 0x1c]
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.10020a9c
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.10015c3e
push 0
push 1
lea esi, [ebp - 0x38]
mov byte [ebp - 4], 0
call fcn.10001b5a
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x10031925
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1003199f
mov eax, dword [ebp - 0x14]
inc eax
push eax
push 0x100b365c
push ebx
call fcn.100019d3
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
jne 0x100318b5
mov esi, dword [ebp - 0x18]
cmp dword [ebx + 0x18], 8
jb 0x1003194c
mov esi, dword [esi]
lea eax, [ebp - 0x1c]
push eax
mov edi, esi
call fcn.10014f97
lea eax, [ebp - 0x1c]
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.10020a9c
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.10015c3e
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x1003198c
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1003199f
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.10015c3e
xor eax, eax
call fcn.10088a35
ret
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.10015c3e
push 7
pop eax
jmp 0x10031999

Function at 0x100319af
Capabilities:
Get file attributes
Set file attributes

Disassembly:
cmp dword [edi + 0x18], 8
push esi
lea esi, [edi + 4]
jb 0x100319bd
mov eax, dword [esi]
jmp 0x100319bf
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [edi + 0x18], 8
jb 0x100319ce
mov esi, dword [esi]
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop esi
ret

Function at 0x100319db
Capabilities:
Delete file

Disassembly:
push edi
push 0x100acd34
mov edi, eax
call fcn.10004bad
test eax, eax
jne 0x100319ee
pop edi
ret
call fcn.100319af
cmp dword [edi + 0x18], 8
jb 0x100319fe
mov edi, dword [edi + 4]
jmp 0x10031a01
add edi, 4
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
neg eax
pop edi
ret
Function at 0x10031a75
Capabilities:
Copy file

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x14], 1
push edi
mov edi, eax
jb 0x10031aba
cmp dword [edi + 0x14], 1
jb 0x10031aba
call fcn.100319af
cmp dword [edi + 0x18], 8
jb 0x10031a97
mov edi, dword [edi + 4]
jmp 0x10031a9a
add edi, 4
cmp dword [esi + 0x18], 8
jb 0x10031aa5
mov esi, dword [esi + 4]
jmp 0x10031aa8
add esi, 4
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
neg eax
sbb eax, eax
neg eax
jmp 0x10031abc
xor eax, eax
pop edi
pop esi
ret

Function at 0x10031abf
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x100cd130]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x100acd34
push edi
mov esi, ecx
call fcn.10001a89
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.10088230
add esp, 0xc
cmp dword [esi + 0x18], 8
jb 0x10031b01
mov esi, dword [esi + 4]
jmp 0x10031b04
add esi, 4
lea eax, [ebp - 0x804]
push eax
push 0
push 0x100b565c
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
pop esi
test eax, eax
je 0x10031b2e
lea eax, [ebp - 0x804]
push eax
push edi
call fcn.10001a89
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100848d4
leave
ret

Function at 0x10031b3a
Capabilities:
Enumerate files on windows

Disassembly:
push 0x294
mov eax, 0x100a1782
call fcn.100889c6
mov edi, edx
mov eax, edi
mov esi, ecx
mov dword [ebp - 0x268], edi
call fcn.1001107d
cmp dword [esi + 0x18], 8
jb 0x10031b65
mov esi, dword [esi + 4]
jmp 0x10031b68
add esi, 4
lea eax, [ebp - 0x260]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x264], eax
cmp eax, 0xffffffff
jne 0x10031b88
xor eax, eax
jmp 0x10031c20
lea eax, [ebp - 0x234]
push eax
lea esi, [ebp - 0x284]
call fcn.10003bd6
and dword [ebp - 4], 0
mov eax, esi
push eax
mov eax, edi
call fcn.10003d56
or dword [ebp - 4], 0xffffffff
push 0
push 1
call fcn.10001b5a
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x10031bf1
lea eax, [ebp - 0x234]
push eax
lea esi, [ebp - 0x2a0]
call fcn.10003bd6
mov eax, esi
push eax
mov eax, dword [ebp - 0x268]
mov dword [ebp - 4], 1
call fcn.10003d56
or dword [ebp - 4], 0xffffffff
push 0
push 1
call fcn.10001b5a
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x264]
call edi
test eax, eax
jne 0x10031bbd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x264]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
cmp esi, 0x12
sete al
call fcn.10088a49
ret
Function at 0x1003264f
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4004
call fcn.10093700
mov eax, dword [0x100cd130]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x3c
push 0
push esi
mov edi, ecx
call fcn.10088230
lea eax, [ebp - 0x2004]
mov dword [esi + 0x10], eax
mov eax, 0x1000
lea ecx, [ebp - 0x4004]
mov dword [esi], 0x3c
mov dword [esi + 0x14], eax
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], eax
mov eax, dword [edi + 0x14]
add esp, 0xc
cmp dword [edi + 0x18], 8
jb 0x100326a7
mov edi, dword [edi + 4]
jmp 0x100326aa
add edi, 4
push esi
push 0
push eax
push edi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
xor ecx, ebp
neg eax
pop edi
call fcn.100848d4
leave
ret
Function at 0x100339d6
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a3277
mov eax, dword fs:[0]
push eax
mov eax, 0x18b0
call fcn.10093700
mov eax, dword [0x100cd130]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
xor edi, edi
mov esi, ebx
mov dword [ebp - 4], edi
call fcn.10033749
cmp dword [ebp + 0x1c], 4
jae 0x10033a45
push edi
push 1
lea esi, [ebp + 8]
call fcn.10001b5a
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100848d4
leave
ret 0x1c
push 0x38
lea eax, [ebp - 0x1880]
push edi
push eax
call fcn.10088230
add esp, 0xc
mov esi, 0x802
push esi
lea eax, [ebp - 0x818]
push edi
push eax
call fcn.10088230
add esp, 0xc
push esi
lea eax, [ebp - 0x1020]
push edi
push eax
call fcn.10088230
add esp, 0xc
push esi
lea eax, [ebp - 0x1828]
push edi
push eax
call fcn.10088230
lea eax, [ebp - 0x818]
lea ecx, [ebp - 0x1020]
mov dword [ebp - 0x1874], eax
mov eax, 0x400
mov dword [ebp - 0x1858], ecx
add esp, 0xc
cmp dword [ebp + 0x20], 8
lea ecx, [ebp - 0x1828]
mov dword [ebp - 0x1870], eax
mov dword [ebp - 0x1854], eax
mov dword [ebp - 0x187c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1884], 0x3c
mov dword [ebp - 0x1880], ecx
jae 0x10033ae0
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x1884]
push ecx
push edi
push dword [ebp + 0x1c]
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
lea eax, [ebp - 0x818]
push eax
lea eax, [ebx + 0x28]
push eax
call fcn.10001a89
movzx eax, word [ebp - 0x186c]
mov dword [ebx + 8], eax
lea eax, [ebp - 0x1020]
push eax
lea eax, [ebx + 0x60]
push eax
call fcn.10001a89
lea eax, [ebp - 0x1828]
push eax
lea eax, [ebx + 0xc]
push eax
call fcn.10001a89
lea eax, [ebp - 0x1020]
push eax
lea esi, [ebp - 0x1844]
call fcn.10003bd6
push edi
push 0x100b4450
mov eax, esi
push eax
mov byte [ebp - 4], 1
call fcn.100019d3
cmp eax, 0xffffffff
je 0x10033bfc
lea eax, [ebp - 0x18a0]
mov dword [ebp - 0x1848], edi
push 0x3f
push eax
lea edi, [ebp - 0x1848]
mov ecx, esi
call fcn.10019ed3
pop ecx
pop ecx
mov edx, eax
lea ecx, [ebp - 0x18bc]
mov byte [ebp - 4], 2
call fcn.10019e16
push 0xffffffffffffffff
xor edi, edi
push edi
lea ecx, [ebx + 0x44]
mov byte [ebp - 4], 3
call fcn.100019fd
push edi
push 1
lea esi, [ebp - 0x18bc]
call fcn.10001b5a
push edi
push 1
lea esi, [ebp - 0x18a0]
mov byte [ebp - 4], 1
call fcn.10001b5a
sub esp, 0x1c
lea eax, [ebp - 0x1844]
mov esi, esp
mov dword [ebp - 0x1848], esp
push eax
call fcn.100019af
push ebx
call fcn.1003378c
cmp eax, edi
jne 0x10033c2c
xor ebx, ebx
push edi
push 1
lea esi, [ebp - 0x1844]
call fcn.10001b5a
push edi
push 1
lea esi, [ebp + 8]
call fcn.10001b5a
mov eax, ebx
jmp 0x10033a29
lea edx, [ebp - 0x1844]
lea ecx, [ebp - 0x18a0]
call fcn.10019e16
push 0xffffffffffffffff
push edi
lea ecx, [ebx + 0x44]
mov byte [ebp - 4], 4
call fcn.100019fd
push edi
push 1
lea esi, [ebp - 0x18a0]
call fcn.10001b5a
jmp 0x10033c2e
xor edi, edi
xor eax, eax
inc eax
mov dword [ebx + 4], eax
mov ebx, eax
jmp 0x10033bdc
Function at 0x10038616
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
cmp dword [esp + 4], eax
jle 0x1003863f
push esi
movzx edx, byte [ecx]
movzx edx, byte [edx + 0x100ace40]
mov esi, eax
shl esi, 3
xor edx, esi
xor eax, edx
inc ecx
dec dword [esp + 8]
cmp dword [esp + 8], 0
jg 0x1003861f
pop esi
ret

Function at 0x10038df8
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
and dword [esp], 0
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x20]
push edi
test eax, eax
je 0x10038e3b
cdq
mov edi, eax
add eax, dword [ebp + 0xc]
mov ebx, edx
mov ecx, edx
adc ecx, dword [ebp + 0x10]
push ebx
sub eax, 1
push edi
sbb ecx, 0
push ecx
push eax
call fcn.100922a0
push ebx
push edi
push edx
push eax
call fcn.10093c20
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], edx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.10038c23
pop ecx
pop ecx
test eax, eax
je 0x10038e58
push 0x7e4b
mov edi, str.winTruncate1
jmp 0x10038e78
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10038e8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x10], eax
push 0x7e4e
mov edi, str.winTruncate2
mov ecx, dword [esi + 0x1c]
push 0x60a
call fcn.10038b7e
pop ecx
mov dword [esp + 0x10], eax
pop ecx
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10038ed2
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp + 8]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10038f16
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x10038f16
mov ecx, dword [esi + 0x1c]
push 0x7ea0
push 0x70a
mov edi, str.winFileSize
mov dword [esi + 0x10], eax
call fcn.10038b7e
pop ecx
pop ecx
jmp 0x10038f36
push 1
push 0
push 0
push dword [ebp + 8]
call fcn.10093c20
mov ecx, eax
xor eax, eax
add ecx, edi
adc edx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov dword [eax + 4], edx
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x100399bf
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
mov eax, dword [0x100cd130]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x100d2720]
push ebx
push esi
test eax, eax
je 0x100399f9
push eax
push 0x100b6834
lea eax, [ebp - 0x110]
push eax
push 0xe6
call fcn.1003710b
add esp, 0x10
jmp 0x10039a71
call fcn.100388de
mov esi, 0xe6
test eax, eax
je 0x10039a39
lea eax, [ebp - 0x318]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x318]
push eax
call fcn.1003898b
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x10039a55
push 7
pop eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.100848d4
leave
ret
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x218]
push eax
call fcn.10038a4c
jmp 0x10039a21
push ebx
push 0x100b6834
lea eax, [ebp - 0x110]
push eax
push esi
call fcn.1003710b
push ebx
call fcn.10084d07
add esp, 0x14
mov ecx, str.etilqs_
call fcn.100378af
lea ecx, [ebp - 0x110]
mov edx, eax
call fcn.100378af
lea eax, [edx + eax + 0x11]
cmp eax, 0x105
jl 0x10039a98
xor eax, eax
inc eax
jmp 0x10039a2b
lea ecx, [ebp - 0x110]
call fcn.100378af
test eax, eax
jbe 0x10039ab1
dec ecx
cmp byte [ecx + eax], 0x5c
jne 0x10039ab1
dec eax
jne 0x10039aa8
mov byte [ebp + eax - 0x110], 0
lea eax, [ebp - 0x110]
push eax
push str._setilqs_
push edi
push 0xf4
call fcn.1003710b
mov ecx, edi
call fcn.100378af
mov esi, eax
lea eax, [edi + esi]
push eax
push 0xf
call fcn.1003730a
add esp, 0x18
push 0xf
pop ecx
movzx eax, byte [edi + esi]
xor edx, edx
push 0x3e
pop ebx
div ebx
mov al, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [edi + esi], al
inc esi
dec ecx
jne 0x10039aea
mov byte [edi + esi], cl
xor eax, eax
jmp 0x10039a2b

Function at 0x10039cf0
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [esp + 0x18]
xor ebp, ebp
xor ebx, ebx
call fcn.10039988
mov esi, eax
pop ecx
test esi, esi
jne 0x10039d10
push 7
pop eax
jmp 0x10039dac
call fcn.100388de
test eax, eax
je 0x10039d4b
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10039d3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 5
jne 0x10039d7d
inc ebp
cmp ebp, 5
jge 0x10039d7d
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10039d19
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10039d6d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 5
jne 0x10039d7d
inc ebp
cmp ebp, 5
jge 0x10039d7d
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10039d4b
push esi
call fcn.10084d07
pop ecx
cmp edi, 0xffffffff
jne 0x10039d92
cmp ebx, 2
jne 0x10039d92
xor eax, eax
jmp 0x10039dac
mov ecx, dword [esp + 0x18]
push 0x83f7
push 0xa0a
mov edi, str.winDelete
call fcn.10038b7e
pop ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x10039f77
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x100cd130]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
lea ecx, [ebp - 0x110]
push ecx
push 0x104
push eax
push dword [ebp + 8]
mov dword [ebp - 0x118], 0x200
call fcn.10039e84
add esp, 0x10
test eax, eax
jne 0x1003a058
lea eax, [ebp - 0x110]
push eax
call fcn.10039988
mov esi, eax
xor ebx, ebx
pop ecx
cmp esi, ebx
je 0x1003a04e
call fcn.100388de
test eax, eax
mov eax, esi
je 0x1003a012
cmp word [esi], bx
je 0x10039ff3
cmp word [eax], 0x5c
je 0x10039fee
inc eax
inc eax
cmp word [eax], bx
jne 0x10039fdf
jmp 0x10039ff3
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x114]
push eax
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
jmp 0x1003a041
cmp byte [esi], bl
je 0x1003a024
cmp byte [eax], 0x5c
je 0x1003a022
inc eax
cmp byte [eax], bl
jne 0x1003a016
jmp 0x1003a024
mov byte [eax], bl
lea eax, [ebp - 0x114]
push eax
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
push esi
mov edi, eax
call fcn.10084d07
pop ecx
cmp edi, ebx
jne 0x1003a058
mov dword [ebp - 0x118], 0x200
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x118]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100848d4
leave
ret
Function at 0x1003d0e6
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 8]
mov edx, dword [ebx + 0x3c]
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [edx], edi
jne 0x1003d121
mov eax, dword [ebx + 0x78]
mov ecx, dword [ebx]
or eax, 0x1e
push edi
and eax, 0x87f3f
push eax
push edx
push edi
push ecx
call dword [ecx + 0x18]
add esp, 0x14
mov dword [ebp - 4], eax
cmp eax, edi
jne 0x1003d205
mov ecx, dword [ebx + 0x18]
cmp ecx, dword [ebx + 0x24]
jbe 0x1003d15b
mov eax, dword [ebx + 0x80]
push edi
cdq
push ecx
push edx
push eax
call fcn.10093c20
mov dword [ebp - 0x14], edx
lea edx, [ebp - 0x18]
push edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0x3c]
mov ecx, dword [eax]
push 5
push eax
call dword [ecx + 0x28]
mov eax, dword [ebx + 0x18]
add esp, 0xc
mov dword [ebx + 0x24], eax
jmp 0x1003d15b
xor edi, edi
mov esi, dword [ebp + 0xc]
cmp esi, edi
je 0x1003d205
mov edi, dword [esi + 0xc]
mov dword [ebp - 0xc], edi
cmp edi, dword [ebx + 0x18]
ja 0x1003d1f5
test byte [esi + 0x14], 0x20
jne 0x1003d1f5
mov eax, dword [ebx + 0x80]
cdq
push edx
push eax
lea ecx, [edi - 1]
push 0
push ecx
call fcn.10093c20
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
cmp edi, 1
jne 0x1003d19f
call fcn.1003c834
push dword [ebp - 0x14]
mov eax, dword [esi]
push dword [ebp - 0x18]
mov dword [ebp - 8], eax
push dword [ebx + 0x80]
push eax
mov eax, dword [ebx + 0x3c]
call fcn.1003542e
add esp, 0x10
mov dword [ebp - 4], eax
cmp edi, 1
jne 0x1003d1d7
mov esi, dword [ebp - 8]
add esi, 0x18
lea edi, [ebx + 0x64]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp + 0xc]
cmp edi, dword [ebx + 0x20]
jbe 0x1003d1df
mov dword [ebx + 0x20], edi
mov eax, dword [ebp + 8]
push dword [esi]
mov eax, dword [eax + 0x58]
mov ebx, edi
call fcn.100471ab
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
pop ecx
cmp dword [ebp - 4], 0
mov eax, dword [esi + 8]
mov dword [ebp + 0xc], eax
je 0x1003d159
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10053850
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x10053862
xor eax, eax
jmp 0x10053951
push esi
mov esi, dword [ebp + 8]
push 0x50
call fcn.1003600c
mov esi, eax
pop ecx
test esi, esi
je 0x10053950
push ebx
push dword [ebp + 0x10]
mov ebx, dword [edi]
push dword [ebp + 8]
call fcn.100535da
push dword [ebp + 0x10]
mov dword [esi], eax
push dword [edi + 8]
push dword [ebp + 8]
call fcn.1005369d
push 0
push dword [ebp + 0x10]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
push eax
push dword [ebp + 8]
call fcn.1005338a
push dword [ebp + 0x10]
mov dword [esi + 0xc], eax
push dword [ebp + 8]
mov ebx, dword [edi + 0x10]
call fcn.100535da
push 0
push dword [ebp + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x14]
push eax
push dword [ebp + 8]
call fcn.1005338a
push dword [ebp + 0x10]
mov dword [esi + 0x14], eax
push dword [ebp + 8]
mov ebx, dword [edi + 0x18]
call fcn.100535da
add esp, 0x44
push dword [ebp + 0x10]
mov dword [esi + 0x18], eax
mov al, byte [edi + 4]
mov byte [esi + 4], al
push dword [edi + 0x1c]
push dword [ebp + 8]
call fcn.10053850
xor ebx, ebx
push ebx
push dword [ebp + 0x10]
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 0x28]
push eax
push dword [ebp + 8]
call fcn.1005338a
push ebx
push dword [ebp + 0x10]
mov dword [esi + 0x28], eax
mov eax, dword [edi + 0x2c]
push eax
push dword [ebp + 8]
call fcn.1005338a
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov ax, word [edi + 6]
or dword [esi + 0x38], 0xffffffff
or dword [esi + 0x3c], 0xffffffff
mov ecx, 0xfff7
and ax, cx
add esp, 0x2c
or dword [esi + 0x40], 0xffffffff
mov word [esi + 6], ax
mov dword [esi + 0x24], ebx
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret