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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x5018
call fcn.004963b0
mov eax, dword [0x4d0c20]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x18]
call fcn.0040c5b0
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 1
push 0
mov ecx, dword [ebp + 0xc]
call fcn.00402ab0
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40e6ec
xor al, al
jmp 0x40e89d
xor edx, edx
mov word [ebp - 0x5010], dx
push 0x4ffe
push 0
lea eax, [ebp - 0x500e]
push eax
call fcn.004955c0
add esp, 0xc
mov dword [ebp - 0x5014], 0x2800
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov dword [ebp - 0x5018], edx
lea eax, [ebp - 0x5014]
push eax
lea ecx, [ebp - 0x5010]
push ecx
lea edx, [ebp - 0x5018]
push edx
push 0
mov ecx, dword [ebp + 0x10]
call fcn.00402ab0
push eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40e7c3
mov ecx, dword [ebp + 0x14]
cmp dword [ecx], 1
jne 0x40e76c
lea edx, [ebp - 0x5010]
push edx
mov ecx, dword [ebp + 0x18]
call fcn.004069f0
jmp 0x40e7ad
mov eax, dword [ebp + 0x14]
cmp dword [eax], 4
je 0x40e77c
mov ecx, dword [ebp + 0x14]
cmp dword [ecx], 3
jne 0x40e7ad
mov edx, dword [ebp - 0x5010]
push edx
push 0x4c4a84
push 0xffffffffffffffff
push 0x2800
lea eax, [ebp - 0x5010]
push eax
call fcn.004938c5
add esp, 0x14
lea ecx, [ebp - 0x5010]
push ecx
mov ecx, dword [ebp + 0x18]
call fcn.004069f0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x40e89d
cmp dword [ebp - 8], 2
jne 0x40e891
lea eax, [ebp - 4]
push eax
push 0x101
push 0
mov ecx, dword [ebp + 0xc]
call fcn.00402ab0
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40e7f6
xor al, al
jmp 0x40e89d
lea edx, [ebp - 0x5014]
push edx
lea eax, [ebp - 0x5010]
push eax
lea ecx, [ebp - 0x5018]
push ecx
push 0
mov ecx, dword [ebp + 0x10]
call fcn.00402ab0
push eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40e891
mov eax, dword [ebp + 0x14]
cmp dword [eax], 1
jne 0x40e842
lea ecx, [ebp - 0x5010]
push ecx
mov ecx, dword [ebp + 0x18]
call fcn.004069f0
jmp 0x40e883
mov edx, dword [ebp + 0x14]
cmp dword [edx], 4
je 0x40e852
mov eax, dword [ebp + 0x14]
cmp dword [eax], 3
jne 0x40e883
mov ecx, dword [ebp - 0x5010]
push ecx
push 0x4c4a8c
push 0xffffffffffffffff
push 0x2800
lea edx, [ebp - 0x5010]
push edx
call fcn.004938c5
add esp, 0x14
lea eax, [ebp - 0x5010]
push eax
mov ecx, dword [ebp + 0x18]
call fcn.004069f0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x40e89d
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00492337
mov esp, ebp
pop ebp
ret
Function at 0x40ea30
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4d0c20]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], str.SoftwareMicrosoftWindowsCurrentVersionRun
lea eax, [ebp - 4]
push eax
push 0x2001f
push 0
mov ecx, dword [ebp - 8]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40eb21
xor edx, edx
mov word [ebp - 0x410], dx
push 0x3fe
push 0
lea eax, [ebp - 0x40e]
push eax
call fcn.004955c0
add esp, 0xc
mov dword [ebp - 0x414], 0x200
mov dword [ebp - 0xc], 1
lea ecx, [ebp - 0x414]
push ecx
lea edx, [ebp - 0x410]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [ebp + 8]
call fcn.00402ab0
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40eb17
lea edx, [ebp - 0x410]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.00402ab0
push eax
call fcn.004934cc
add esp, 8
test eax, eax
je 0x40eaf2
mov ecx, dword [ebp + 0xc]
call fcn.00406a10
movzx eax, al
test eax, eax
je 0x40eb17
mov ecx, dword [ebp + 8]
call fcn.00402ab0
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x40eb17
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x40eb23
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00492337
mov esp, ebp
pop ebp
ret

Function at 0x40eb40
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x4d0c20]
xor eax, ebp
mov dword [ebp - 0xc], eax
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x40eb6d
or eax, 0xffffffff
jmp 0x40ec16
mov dword [ebp - 0x240], 0x22c
lea eax, [ebp - 0x240]
push eax
mov ecx, dword [ebp - 8]
push ecx
call sub.KERNEL32.dll_Process32FirstW
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40ec09
movzx edx, byte [ebp + 0xc]
test edx, edx
je 0x40ebc6
lea eax, [ebp - 0x21c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00409a80
add esp, 8
movzx edx, al
test edx, edx
je 0x40ebc4
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x238]
jmp 0x40ec16
jmp 0x40ebf4
lea ecx, [ebp - 0x21c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00402ab0
push eax
call fcn.004934cc
add esp, 8
test eax, eax
jne 0x40ebf4
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x238]
jmp 0x40ec16
lea eax, [ebp - 0x240]
push eax
mov ecx, dword [ebp - 8]
push ecx
call sub.KERNEL32.dll_Process32NextW
mov dword [ebp - 4], eax
jmp 0x40eb8a
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00492337
mov esp, ebp
pop ebp
ret
Function at 0x40ef00
Capabilities:
Create process on windows
Schedule task via schtasks

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b1408
mov eax, dword fs:[0]
push eax
sub esp, 0x480
mov eax, dword [0x4d0c20]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov word [ebp - 0x42c], ax
push 0x3fe
push 0
lea ecx, [ebp - 0x42a]
push ecx
call fcn.004955c0
add esp, 0xc
push 0xf
mov ecx, dword [ebp + 0xc]
call fcn.00402ab0
push eax
mov ecx, dword [ebp + 8]
call fcn.00402ab0
push eax
push str._create__tn__s__tr____s_____sc_ONLOGON__DELAY_0000:_2d__RL_HIGHEST__f
lea edx, [ebp - 0x42c]
push edx
call fcn.0040f320
add esp, 0x14
push 0x44
push 0
lea eax, [ebp - 0x484]
push eax
call fcn.004955c0
add esp, 0xc
mov dword [ebp - 0x484], 0x44
mov dword [ebp - 0x47c], 0
mov dword [ebp - 0x458], 1
xor ecx, ecx
mov word [ebp - 0x454], cx
push 0x4c54bc
lea ecx, [ebp - 0x2c]
call fcn.00401680
mov dword [ebp - 4], 0
push 0x4c54d0
lea ecx, [ebp - 0x2c]
call fcn.00401e50
lea edx, [ebp - 0x42c]
push edx
lea ecx, [ebp - 0x2c]
call fcn.00401e50
lea eax, [ebp - 0x43c]
push eax
lea ecx, [ebp - 0x484]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x2c]
call fcn.00402ab0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40f037
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x488], eax
mov byte [ebp - 0x489], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004016c0
mov al, byte [ebp - 0x489]
jmp 0x40f06d
mov edx, dword [ebp - 0x43c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x48a], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004016c0
mov al, byte [ebp - 0x48a]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00492337
mov esp, ebp
pop ebp
ret
Function at 0x40f090
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b1408
mov eax, dword fs:[0]
push eax
sub esp, 0x480
mov eax, dword [0x4d0c20]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov word [ebp - 0x42c], ax
push 0x3fe
push 0
lea ecx, [ebp - 0x42a]
push ecx
call fcn.004955c0
add esp, 0xc
mov ecx, dword [ebp + 8]
call fcn.00402ab0
push eax
push 0x4c54d4
lea edx, [ebp - 0x42c]
push edx
call fcn.0040f320
add esp, 0xc
push 0x44
push 0
lea eax, [ebp - 0x484]
push eax
call fcn.004955c0
add esp, 0xc
mov dword [ebp - 0x484], 0x44
mov dword [ebp - 0x47c], 0
mov dword [ebp - 0x458], 1
xor ecx, ecx
mov word [ebp - 0x454], cx
push str.Schtasks
lea ecx, [ebp - 0x2c]
call fcn.00401680
mov dword [ebp - 4], 0
push 0x4c550c
lea ecx, [ebp - 0x2c]
call fcn.00401e50
lea edx, [ebp - 0x42c]
push edx
lea ecx, [ebp - 0x2c]
call fcn.00401e50
lea eax, [ebp - 0x43c]
push eax
lea ecx, [ebp - 0x484]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x2c]
call fcn.00402ab0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40f1bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x488], eax
mov byte [ebp - 0x489], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004016c0
mov al, byte [ebp - 0x489]
jmp 0x40f1f2
mov edx, dword [ebp - 0x43c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x48a], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004016c0
mov al, byte [ebp - 0x48a]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00492337
mov esp, ebp
pop ebp
ret

Function at 0x40f430
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
call fcn.0040f4d0
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
shl ecx, 0xa
cmp dword [ebp - 4], ecx
jg 0x40f459
cmp dword [ebp - 4], 0
jne 0x40f468
mov ecx, dword [ebp + 8]
call fcn.00402ab0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 8]
add ecx, 8
call fcn.004016e0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x24], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x40f980
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
pop ebp
ret

Function at 0x413080
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x413090
xor eax, eax
jmp 0x41322d
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x4131ee
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x4c3e58]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4c3e58]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x4c3e58]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x4c3e58]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4c3e58]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x4c3e58]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x4c3e58]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4c3e58]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0x10]
sub eax, 8
mov dword [ebp + 0x10], eax
jmp 0x413099
cmp dword [ebp + 0x10], 0
je 0x413227
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x4c3e58]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
jne 0x4131f4
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x413230
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
movsx eax, byte [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor eax, dword [ecx]
and eax, 0xff
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4c3e58]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
and ecx, 0xff
mov edx, dword [ebp + 8]
add ecx, dword [edx + 4]
mov eax, dword [ebp + 8]
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
imul edx, edx, 0x8088405
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 4], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
shr edx, 0x18
mov eax, dword [ebp + 8]
xor edx, dword [eax + 8]
and edx, 0xff
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x4c3e58]
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], eax
pop ebp
ret

Function at 0x4141b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x14]
movzx edx, byte [ecx]
test edx, edx
je 0x4141ff
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4141f5
mov edx, dword [ebp + 0x14]
mov byte [edx + 8], 1
mov eax, dword [ebp - 0x10]
xor edx, edx
div dword [ebp + 0xc]
jmp 0x414259
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x1c]
add ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x14]
cmp ecx, dword [edx + 0x18]
jbe 0x41421f
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x14]
mov edx, dword [eax + 0x18]
sub edx, dword [ecx + 0x1c]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x14]
mov eax, dword [ebp + 0x14]
add edx, dword [eax + 0x1c]
push edx
mov ecx, dword [ebp + 8]
push ecx
call fcn.00495700
add esp, 0xc
mov edx, dword [ebp - 8]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x1c]
add ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
mov dword [edx + 0x1c], ecx
mov eax, dword [ebp - 4]
xor edx, edx
div dword [ebp + 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x415c60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0
jne 0x415c7a
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 4], 0xffffffff
je 0x415c84
mov eax, 0x1000000
jmp 0x415d80
mov edx, dword [ebp - 0x18]
add edx, 0x244
push edx
push 0x103
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, dword [ebp - 0x18]
add eax, 0x244
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
add ecx, 2
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x1c]
mov ax, word [edx]
mov word [ebp - 0x22], ax
add dword [ebp - 0x1c], 2
cmp word [ebp - 0x22], 0
jne 0x415cad
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x20]
sar ecx, 1
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x18]
lea ecx, [eax + edx*2 + 0x242]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
movzx eax, word [edx]
cmp eax, 0x5c
je 0x415d08
mov ecx, dword [ebp - 8]
movzx edx, word [ecx]
cmp edx, 0x2f
je 0x415d08
mov eax, 0x2f
mov ecx, dword [ebp - 8]
mov word [ecx + 2], ax
xor edx, edx
mov eax, dword [ebp - 8]
mov word [eax + 4], dx
cmp dword [ebp + 0x10], 1
jne 0x415d38
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040f890
add esp, 4
mov dword [ebp - 0x10], eax
xor edx, edx
cmp dword [ebp - 0x10], 0xffffffff
setne dl
mov byte [ebp - 0x11], dl
movzx eax, byte [ebp - 0x11]
test eax, eax
jne 0x415d38
mov eax, 0x2000000
jmp 0x415d80
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00413ea0
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x415d5e
mov eax, dword [ebp - 0xc]
jmp 0x415d80
mov edx, dword [ebp - 4]
push edx
call fcn.00414690
add esp, 4
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
mov edx, dword [ebp - 0x18]
cmp dword [edx], 0
jne 0x415d7e
mov eax, 0x200
jmp 0x415d80
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x417f60
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
movsx eax, byte [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor eax, dword [ecx]
and eax, 0xff
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4c2098]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
and ecx, 0xff
mov edx, dword [ebp + 8]
add ecx, dword [edx + 4]
mov eax, dword [ebp + 8]
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
imul edx, edx, 0x8088405
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 4], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
shr edx, 0x18
mov eax, dword [ebp + 8]
xor edx, dword [eax + 8]
and edx, 0xff
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x4c2098]
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], eax
pop ebp
ret
Function at 0x418110
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x18]
movzx edx, byte [ecx + 0x2d]
test edx, edx
je 0x4181f2
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x3c], 0
je 0x418161
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x40]
cmp edx, dword [ebp + 0xc]
jae 0x418161
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x3c]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.0049232c
add esp, 4
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x3c], 0
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 0x3c], 0
jne 0x41818d
mov edx, dword [ebp + 0xc]
shl edx, 1
push edx
call fcn.0049251c
add esp, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x3c], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 0xc]
mov dword [edx + 0x40], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x3c]
push ecx
call fcn.00495700
add esp, 0xc
mov dword [ebp - 8], 0
jmp 0x4181b6
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
jae 0x4181e9
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x3c]
mov eax, dword [ebp - 8]
movzx ecx, byte [edx + eax]
push ecx
mov edx, dword [ebp - 0x18]
add edx, 0x30
push edx
call fcn.00418010
add esp, 8
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x3c]
mov ecx, dword [ebp - 8]
mov byte [edx + ecx], al
jmp 0x4181ad
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x3c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 0x20], 0
je 0x41824d
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x24]
add eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x18]
cmp eax, dword [ecx + 0x28]
jb 0x41821a
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x14], 0x30000
xor eax, eax
jmp 0x418282
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x20]
mov ecx, dword [ebp - 0x18]
add eax, dword [ecx + 0x24]
push eax
call fcn.00495700
add esp, 0xc
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x24]
add eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x24], eax
mov eax, dword [ebp + 0xc]
jmp 0x418282
mov edx, dword [ebp - 0x18]
cmp dword [edx + 4], 0
je 0x418276
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0xc]
jmp 0x418282
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x14], 0x1000000
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x418550
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov ecx, dword [ebp + 8]
call fcn.00402ab0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x41857f
mov eax, dword [ebp - 4]
and eax, 0x10
je 0x41857f
mov dword [ebp - 8], 1
jmp 0x418586
mov dword [ebp - 8], 0
mov al, byte [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x418820
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b13a8
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x4d0c20]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x288], ecx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x260]
call fcn.00401680
lea ecx, [ebp - 0x260]
push ecx
call fcn.00418550
add esp, 4
mov byte [ebp - 0x241], al
lea ecx, [ebp - 0x260]
call fcn.004016c0
movzx edx, byte [ebp - 0x241]
test edx, edx
je 0x418892
mov al, 1
jmp 0x4189d0
lea ecx, [ebp - 0x30]
call fcn.00401650
mov dword [ebp - 4], 0
xor eax, eax
mov word [ebp - 0x23c], ax
push 0x206
push 0
lea ecx, [ebp - 0x23a]
push ecx
call fcn.004955c0
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x23c]
push eax
call fcn.004189f0
add esp, 8
lea ecx, [ebp - 0x10]
push ecx
push 0x4c1bdc
lea edx, [ebp - 0x23c]
push edx
call fcn.00494d77
add esp, 0xc
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x4189b4
mov eax, dword [ebp - 0x34]
push eax
lea ecx, [ebp - 0x30]
call fcn.00401e50
push 0x4c1be4
lea ecx, [ebp - 0x30]
call fcn.00401e50
lea ecx, [ebp - 0x30]
call fcn.00402ab0
push eax
lea ecx, [ebp - 0x280]
call fcn.00401680
lea ecx, [ebp - 0x280]
push ecx
call fcn.00418550
add esp, 4
movzx edx, al
neg edx
sbb edx, edx
add edx, 1
mov byte [ebp - 0x261], dl
lea ecx, [ebp - 0x280]
call fcn.004016c0
movzx eax, byte [ebp - 0x261]
test eax, eax
je 0x418999
push 0
lea ecx, [ebp - 0x30]
call fcn.00402ab0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x418999
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x240], eax
mov byte [ebp - 0x281], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004016c0
mov al, byte [ebp - 0x281]
jmp 0x4189d0
lea ecx, [ebp - 0x10]
push ecx
push 0x4c1be8
push 0
call fcn.00494d77
add esp, 0xc
mov dword [ebp - 0x34], eax
jmp 0x4188ee
mov byte [ebp - 0x282], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004016c0
mov al, byte [ebp - 0x282]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00492337
mov esp, ebp
pop ebp
ret 4