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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
mov edi, dword [ebp + 8]
cmp edi, dword [0x429d64]
push esi
jae 0x4135d9
mov eax, edi
sar eax, 5
lea esi, [eax*4 + 0x429d80]
mov eax, dword [esi]
and edi, 0x1f
shl edi, 3
add eax, edi
mov dl, byte [eax + 4]
test dl, 1
je 0x4135d9
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x4134af
test dl, 2
jne 0x4134af
test dl, 0x48
je 0x413479
cmp byte [eax + 5], 0xa
je 0x413479
mov eax, dword [esi]
mov al, byte [eax + edi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [esi]
lea ecx, [ebx + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + edi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [esi]
push ecx
push dword [eax + edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4134c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x4134aa
mov dword [0x4285e8], ecx
jmp 0x4135e0
cmp eax, 0x6d
jne 0x4134b6
xor eax, eax
jmp 0x4135ed
push eax
call fcn.00413306
pop ecx
jmp 0x4135ea
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi]
add dword [ebp - 0xc], eax
test byte [ecx + edi + 4], 0x80
je 0x4135d4
test eax, eax
je 0x4134e9
cmp byte [ebx], 0xa
jne 0x4134e9
mov eax, ecx
lea eax, [eax + edi + 4]
or byte [eax], 4
jmp 0x4134f2
mov eax, dword [esi]
lea eax, [eax + edi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x4135ce
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x4135be
cmp al, 0xd
je 0x413524
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x4135b0
dec ecx
cmp dword [ebp - 8], ecx
jae 0x41353e
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x413539
add dword [ebp - 8], 2
jmp 0x413592
mov dword [ebp - 8], eax
jmp 0x4135ac
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [esi]
push dword [eax + edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x413566
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4135ac
cmp dword [ebp - 0x10], 0
je 0x4135ac
mov eax, dword [esi]
test byte [eax + edi + 4], 0x48
je 0x413587
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x413592
mov byte [ebx], 0xd
mov ecx, dword [esi]
mov byte [ecx + edi + 5], al
jmp 0x4135af
cmp ebx, dword [ebp + 0xc]
jne 0x413597
cmp byte [ebp - 1], 0xa
jne 0x413597
mov byte [ebx], 0xa
jmp 0x4135af
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00410f94
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x4135b0
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x413508
jmp 0x4135ce
mov eax, dword [esi]
test byte [eax + edi + 4], 0x40
jne 0x4135ce
lea edi, [eax + edi + 4]
or byte [edi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x4135ed
and dword [0x4285e8], 0
mov dword [0x4285e4], 9
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
Function at 0x413a9b
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00412ec0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x413b36
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x4285f0]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x413b36
cmp eax, 1
je 0x413b57
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x413b36
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x413b03
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x413b32
xor eax, eax
inc eax
jmp 0x413b76
cmp edi, eax
jae 0x413b3a
xor eax, eax
jmp 0x413b76
cmp eax, esi
jae 0x413b41
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4285f0]
jmp 0x413b5a
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x413bfc
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x41a758
call fcn.0040ac70
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x428814], edi
jne 0x413c40
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x413c2b
mov dword [0x428814], ebx
jmp 0x413c40
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x413c40
mov dword [0x428814], 2
mov eax, dword [0x428814]
cmp eax, ebx
jne 0x413c60
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x413d23
cmp eax, 2
je 0x413c69
cmp eax, edi
jne 0x413c91
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x413c7c
mov eax, dword [0x428684]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x413c98
xor eax, eax
jmp 0x413d23
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.00412ec0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x413ccb
cmp esi, edi
jne 0x413ce1
push dword [ebp - 0x20]
call fcn.0040fa31
pop ecx
mov esi, eax
cmp esi, edi
je 0x413c91
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x413d14
cmp dword [ebp + 0x14], edi
jne 0x413cfe
push edi
push edi
jmp 0x413d04
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x413d20
push esi
call fcn.0040a43a
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.0040acab
ret
Function at 0x413d2c
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x41a768
call fcn.0040ac70
xor esi, esi
cmp dword [0x428818], esi
jne 0x413d70
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x413d5b
mov dword [0x428818], edi
jmp 0x413d70
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x413d70
mov dword [0x428818], 2
mov eax, dword [0x428818]
cmp eax, 2
je 0x413e51
cmp eax, esi
je 0x413e51
cmp eax, 1
jne 0x413db5
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x413d9e
mov eax, dword [0x428684]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x413dbc
xor eax, eax
jmp 0x413e63
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.00412ec0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x413df2
cmp edi, esi
jne 0x413e0d
lea eax, [ebx + ebx]
push eax
call fcn.0040fa31
pop ecx
mov edi, eax
cmp edi, esi
je 0x413db5
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x413e40
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x413e2a
push esi
push esi
jmp 0x413e30
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x413e4c
push edi
call fcn.0040a43a
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x413e63
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.0040acab
ret
Function at 0x417d70
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00412ec0
mov eax, dword [0x41d09c]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x429d64]
mov dword [ebp - 4], eax
jae 0x417eb3
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x429d80]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x417eb3
push 1
push esi
push ebx
call fcn.00410f94
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x1008], eax
je 0x417ebd
push 2
push esi
push ebx
call fcn.00410f94
add esp, 0xc
cmp eax, 0xffffffff
je 0x417ebd
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x417e5d
push 0x1000
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00409350
push 0x8000
push ebx
call fcn.00418061
add esp, 0x14
mov dword [ebp + 8], eax
mov eax, 0x1000
cmp edi, eax
jge 0x417e1c
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push ebx
call fcn.00410472
add esp, 0xc
cmp eax, 0xffffffff
je 0x417e3a
sub edi, eax
test edi, edi
jg 0x417e11
jmp 0x417e50
cmp dword [0x4285e8], 5
jne 0x417e4d
mov dword [0x4285e4], 0xd
or esi, 0xffffffff
push dword [ebp + 8]
push ebx
call fcn.00418061
pop ecx
pop ecx
jmp 0x417e9d
jge 0x417e9d
push 0
push dword [ebp + 0xc]
push ebx
call fcn.00410f94
push ebx
call fcn.00413780
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0x417e9d
mov dword [0x4285e4], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4285e8], eax
push 0
push dword [ebp - 0x1008]
push ebx
call fcn.00410f94
add esp, 0xc
mov eax, esi
pop edi
jmp 0x417ec0
mov dword [0x4285e4], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.00408f52
leave
ret
Function at 0x1001f860
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x10094084]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x38], 0
je 0x1001f887
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx + 0x3e]
test edx, edx
jne 0x1001f88e
mov al, 1
jmp 0x1001f993
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x50], edx
mov eax, 0xffff
mov word [ebp - 0x32], ax
movzx ecx, word [ebp - 0x32]
push ecx
mov ecx, dword [ebp - 0x30]
call dword [ebp - 0x50]
mov word [ebp - 0x36], ax
mov edx, 0xffff
mov word [ebp - 0x34], dx
movzx eax, word [ebp - 0x34]
movzx ecx, word [ebp - 0x36]
cmp eax, ecx
jne 0x1001f8cf
mov dword [ebp - 0x44], 1
jmp 0x1001f8d6
mov dword [ebp - 0x44], 0
movzx edx, byte [ebp - 0x44]
test edx, edx
je 0x1001f8e5
xor al, al
jmp 0x1001f993
mov dword [ebp - 0x58], 0x20
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x48]
mov eax, dword [edx]
mov ecx, dword [eax + 0x20]
mov dword [ebp - 0x54], ecx
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x30]
add edx, 0x40
push edx
mov ecx, dword [ebp - 0x48]
call dword [ebp - 0x54]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x1001f930
cmp dword [ebp - 0x3c], 1
je 0x1001f937
cmp dword [ebp - 0x3c], 3
je 0x1001f986
jmp 0x1001f991
mov eax, dword [ebp - 0x30]
mov byte [eax + 0x3e], 0
mov ecx, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
sub ecx, edx
mov dword [ebp - 0x40], ecx
je 0x1001f966
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x40]
push edx
push 1
lea eax, [ebp - 0x28]
push eax
call fcn.10043043
add esp, 0x10
cmp dword [ebp - 0x40], eax
je 0x1001f966
xor al, al
jmp 0x1001f993
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx + 0x3e]
test edx, edx
jne 0x1001f97a
mov dword [ebp - 0x4c], 1
jmp 0x1001f981
mov dword [ebp - 0x4c], 0
mov al, byte [ebp - 0x4c]
jmp 0x1001f993
mov eax, dword [ebp - 0x30]
mov byte [eax + 0x3e], 0
mov al, 1
jmp 0x1001f993
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100375db
mov esp, ebp
pop ebp
ret
Function at 0x10020880
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 0x1c], ecx
mov eax, dword [0x10095c88]
mov ecx, dword fs:[0x2c]
mov edx, dword [ecx + eax*4]
mov eax, dword [0x10095650]
cmp eax, dword [edx + 4]
jle 0x100208e4
push 0x10095650
call fcn.10037505
add esp, 4
cmp dword [0x10095650], 0xffffffff
jne 0x100208e4
push 0x1007f6f8
mov ecx, 0x10095638
call fcn.10019800
push 0x1005bad0
call fcn.10037a3d
add esp, 4
push 0x10095650
call fcn.100374bb
add esp, 4
mov ecx, dword [ebp + 8]
call fcn.1001b550
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x10020979
push 0xffffffffffffffff
push 0x10095638
mov ecx, dword [ebp + 8]
call fcn.10021a10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x1002095d
lea edx, [ebp - 0x40]
mov dword [ebp - 0x18], edx
mov ecx, dword [ebp - 0x18]
call fcn.100035c0
mov dword [ebp - 0x28], 0x1007ddcd
lea ecx, [ebp - 0x40]
call fcn.1001b860
mov eax, dword [ebp - 0xc]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x40]
call fcn.100206a0
lea edx, [ebp - 0x40]
push edx
mov ecx, dword [ebp - 0x1c]
call fcn.10020880
lea ecx, [ebp - 0x40]
call fcn.1001b760
mov ecx, dword [ebp + 8]
call fcn.1001b550
mov dword [ebp - 0x20], eax
push 0
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0x24], eax
jmp 0x100209a2
mov ecx, dword [ebp - 8]
and ecx, 0x10
jne 0x10020995
mov edx, dword [ebp - 8]
and edx, 0x400
jne 0x10020995
mov dword [ebp - 0x10], 0
jmp 0x1002099c
mov dword [ebp - 0x10], 1
mov al, byte [ebp - 0x10]
mov byte [ebp - 1], al
mov esp, ebp
pop ebp
ret 4
Function at 0x10022770
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
add ecx, 2
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 8]
mov ax, word [edx]
mov word [ebp - 2], ax
add dword [ebp - 8], 2
cmp word [ebp - 2], 0
jne 0x10022788
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0xc]
sar ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x134
call fcn.1001baa0
call fcn.10034510
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0xa
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x18]
call fcn.10021df0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov esp, ebp
pop ebp
ret 8

Function at 0x10024d00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x10094084]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x38], 0
je 0x10024d27
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x10024d2e
mov al, 1
jmp 0x10024e29
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x48], 0xffffffff
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x30]
call dword [ebp - 0x4c]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], 0xffffffff
mov ecx, dword [ebp - 0x50]
cmp ecx, dword [ebp - 0x54]
jne 0x10024d65
mov dword [ebp - 0x3c], 1
jmp 0x10024d6c
mov dword [ebp - 0x3c], 0
movzx edx, byte [ebp - 0x3c]
test edx, edx
je 0x10024d7b
xor al, al
jmp 0x10024e29
mov dword [ebp - 0x5c], 0x20
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x40]
mov eax, dword [edx]
mov ecx, dword [eax + 0x20]
mov dword [ebp - 0x58], ecx
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x30]
add edx, 0x40
push edx
mov ecx, dword [ebp - 0x40]
call dword [ebp - 0x58]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x10024dc6
cmp dword [ebp - 0x34], 1
je 0x10024dcd
cmp dword [ebp - 0x34], 3
je 0x10024e1c
jmp 0x10024e27
mov eax, dword [ebp - 0x30]
mov byte [eax + 0x3d], 0
mov ecx, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
sub ecx, edx
mov dword [ebp - 0x38], ecx
je 0x10024dfc
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 1
lea eax, [ebp - 0x28]
push eax
call fcn.10043043
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x10024dfc
xor al, al
jmp 0x10024e29
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x10024e10
mov dword [ebp - 0x44], 1
jmp 0x10024e17
mov dword [ebp - 0x44], 0
mov al, byte [ebp - 0x44]
jmp 0x10024e29
mov eax, dword [ebp - 0x30]
mov byte [eax + 0x3d], 0
mov al, 1
jmp 0x10024e29
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100375db
mov esp, ebp
pop ebp
ret
Function at 0x10025f80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
je 0x10025fab
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
call fcn.1000f090
jmp 0x10026116
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x20]
cmp dword [ecx], 0
je 0x10025fcf
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x30]
mov ecx, dword [eax]
mov dword [ebp - 0xc], ecx
jmp 0x10025fd6
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
cdq
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
cmp dword [ebp + 0x10], 0
jl 0x100260c8
jg 0x10025ff6
cmp dword [ebp + 0xc], 0
jbe 0x100260c8
cmp dword [ebp - 0x1c], 0
jl 0x100260c8
jg 0x1002600c
cmp dword [ebp - 0x20], 0
jbe 0x100260c8
mov edx, dword [ebp + 0x10]
cmp edx, dword [ebp - 0x1c]
jg 0x1002602a
jl 0x1002601e
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x20]
jae 0x1002602a
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x20]
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
xor ecx, ecx
je 0x1002606d
mov dword [ebp - 8], 0
jmp 0x10026051
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jae 0x1002606b
mov ecx, dword [ebp - 0x14]
add ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
add edx, dword [ebp - 8]
mov al, byte [edx]
mov byte [ecx], al
jmp 0x10026048
jmp 0x10026081
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.10039dd0
add esp, 0xc
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp + 8]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp - 0x20]
mov eax, dword [ebp + 0x10]
sbb eax, dword [ebp - 0x1c]
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x30]
mov ecx, dword [eax]
sub ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x30]
mov dword [eax], ecx
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x20]
mov eax, dword [edx]
add eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x20]
mov dword [edx], eax
cmp dword [ebp + 0x10], 0
jl 0x1002610a
jg 0x100260d6
cmp dword [ebp + 0xc], 0
jbe 0x1002610a
mov eax, dword [ebp - 4]
cmp dword [eax + 0x4c], 0
je 0x1002610a
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x4c]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 1
mov ecx, dword [ebp + 8]
push ecx
call fcn.10043043
add esp, 0x10
xor edx, edx
mov ecx, dword [ebp + 0xc]
sub ecx, eax
mov eax, dword [ebp + 0x10]
sbb eax, edx
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x24]
sbb edx, dword [ebp + 0x10]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100290d0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x10094084]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x23c], 2
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0xffffffff
jne 0x1002911a
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1002919e
push 0x22c
push 0
lea eax, [ebp - 0x230]
push eax
call fcn.1003a350
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
lea ecx, [ebp - 0x230]
push ecx
mov edx, dword [ebp - 0x234]
push edx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x1002917f
lea eax, [ebp - 0x230]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
mov ecx, dword [ebp + 8]
call fcn.10026a40
lea eax, [ebp - 0x230]
push eax
mov ecx, dword [ebp - 0x234]
push ecx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x10029151
jmp 0x1002918b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x238], eax
mov edx, dword [ebp - 0x234]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x238]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100375db
mov esp, ebp
pop ebp
ret

Function at 0x1002aed0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
jmp 0x1002aeee
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 4
jae 0x1002af0f
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 8]
movzx eax, byte [edx]
xor eax, dword [ebp - 4]
mov dword [ebp - 4], eax
imul ecx, dword [ebp - 4], 0x1000193
mov dword [ebp - 4], ecx
jmp 0x1002aee5
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x10031d40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
lea eax, [edx + edx + 2]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0xc]
call fcn.1001b550
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 8]
call fcn.1001b550
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
push 1
push 0
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10031dbc
push str.Cannot_write_string_value:_RegSetValueExW_failed.
mov ecx, dword [ebp - 4]
push ecx
lea ecx, [ebp - 0x30]
call fcn.10031870
push 0x1009127c
lea edx, [ebp - 0x30]
push edx
call fcn.100389ea
mov esp, ebp
pop ebp
ret 8