joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b3e0
Capabilities:
Get system firmware table

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4244bc
mov eax, dword fs:[0]
push eax
mov eax, 0x1000c
call fcn.00421e80
mov eax, dword [0x431074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0x10000
mov dword [ebp - 0x10014], eax
lea eax, [ebp - 0x10010]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov esi, 1
push 0
push 0
push 0
push 0x52534d42
call dword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
mov edi, eax
test edi, edi
jne 0x40b453
xor al, al
jmp 0x40b519
push edi
lea eax, [ebp - 0x10010]
push eax
push 0
push 0x52534d42
call dword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
test eax, eax
je 0x40b44c
lea ecx, [edi - 8]
mov edi, dword [ebp - 0x1000c]
lea eax, [ebp - 0x10008]
cmp edi, ecx
jne 0x40b44c
xor edx, edx
test edi, edi
je 0x40b519
nop dword [eax]
mov cl, byte [eax]
test cl, cl
jne 0x40b49e
test esi, esi
je 0x40b4a3
xor esi, esi
jmp 0x40b4a3
cmp cl, 1
je 0x40b4c1
movzx ecx, byte [eax + 1]
add eax, ecx
cmp word [eax], 0
je 0x40b4b7
nop
inc eax
cmp word [eax], 0
jne 0x40b4b0
inc edx
add eax, 2
cmp edx, edi
jb 0x40b490
jmp 0x40b519
movzx edx, byte [ebp - 0x1000f]
mov ecx, 0x100
movsx ecx, cx
add eax, 8
movsx edx, dx
imul edx, ecx
movzx ecx, byte [ebp - 0x1000e]
add dx, cx
movzx ecx, dx
push ecx
push eax
lea eax, [ebp - 0x10018]
push eax
call fcn.0040cb50
add esp, 0xc
mov ecx, dword [ebp - 0x10014]
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.mfc140.dll_Ordinal_1526]
lea ecx, [ebp - 0x10018]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00421e64
mov esp, ebp
pop ebp
ret 4
Function at 0x40d7e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140.dll_Ordinal_1661]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40d80d
test al, 0x10
jne 0x40d80d
lea ecx, [ebp + 8]
mov bl, 1
call dword [sym.imp.mfc140.dll_Ordinal_1044]
mov al, bl
pop ebx
pop ebp
ret
lea ecx, [ebp + 8]
xor bl, bl
call dword [sym.imp.mfc140.dll_Ordinal_1044]
mov al, bl
pop ebx
pop ebp
ret

Function at 0x40d820
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push dword [ebp + 8]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40d856
mov eax, 1
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x10]
mov ecx, edx
push esi
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40d860
sub ecx, esi
push ecx
push edx
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40d8b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x431074]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x40d953
cmp byte [esi + 0x3d], 0
je 0x40d953
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x40d908
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x40d91a
sub eax, 1
je 0x40d91e
sub eax, 2
je 0x40d953
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421e64
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40d93c
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x40d908
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421e64
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00421e64
mov esp, ebp
pop ebp
ret
Function at 0x40e170
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x431074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x40e1a0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421e64
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x40e1d0
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x40e1d0
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421e64
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x40e2ca
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x40e1f9
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x40e22d
push dword [esi + 0x4c]
movsx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421e64
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
test eax, eax
js 0x40e2ca
cmp eax, 1
jle 0x40e28b
cmp eax, 3
jne 0x40e2ca
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.0040cfc0
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421e64
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40e2a9
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x40e2ca
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x40e2ca
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421e64
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00421e64
mov esp, ebp
pop ebp
ret 4
Function at 0x40e390
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4249bc
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x431074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x4c], 0
push 0x32
lea eax, [ebp - 0x44]
mov dword [ebp - 4], 2
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov ecx, esi
push 0x42b2c1
call dword [sym.imp.mfc140.dll_Ordinal_310]
lea eax, [ebp - 0x48]
mov dword [ebp - 0x4c], 1
push eax
push 1
push 0
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc140.dll_Ordinal_1661]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40e453
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], 0x32
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x58]
push eax
push 0
lea ecx, [ebp + 0x10]
call dword [sym.imp.mfc140.dll_Ordinal_1661]
push eax
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40e44a
lea eax, [ebp - 0x44]
mov ecx, esi
push eax
call dword [sym.imp.mfc140.dll_Ordinal_1529]
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp + 0x10]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00421e64
mov esp, ebp
pop ebp
ret
Function at 0x40f110
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x40f135
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop edi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov eax, dword [eax]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], eax
test eax, eax
je 0x40f156
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x40f158
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test ebx, ebx
jl 0x40f1e1
jg 0x40f16b
test esi, esi
je 0x40f1e1
test ecx, ecx
jl 0x40f1ad
jg 0x40f175
test eax, eax
je 0x40f1ad
cmp ebx, ecx
jg 0x40f187
jl 0x40f17f
cmp esi, eax
jae 0x40f187
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], ebx
push eax
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov eax, dword [edi + 0x2c]
add dword [ebp + 8], ecx
sub esi, ecx
sbb ebx, dword [ebp - 4]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x40f1b3
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test ebx, ebx
jl 0x40f1e1
jg 0x40f1bd
test esi, esi
je 0x40f1e1
cmp dword [edi + 0x4c], 0
je 0x40f1e1
mov ecx, edi
call fcn.0040da10
push dword [edi + 0x4c]
push esi
push 1
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
pop esi
sbb edx, ebx
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40f200
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x40f225
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov eax, dword [eax]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], eax
test eax, eax
je 0x40f246
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x40f248
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x40f2c6
jg 0x40f25b
test esi, esi
je 0x40f2c6
test ecx, ecx
jl 0x40f29f
jg 0x40f265
test eax, eax
je 0x40f29f
cmp edi, ecx
jg 0x40f277
jl 0x40f26f
cmp esi, eax
jae 0x40f277
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], edi
push eax
push dword [ebp + 8]
push dword [ebp - 8]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [ebp - 4]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x40f2a2
mov edx, dword [ebp + 8]
test edi, edi
jl 0x40f2c6
jg 0x40f2ac
test esi, esi
je 0x40f2c6
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x40f2c6
push eax
push esi
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x412b40
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425177
mov eax, dword fs:[0]
push eax
sub esp, 0x324
mov eax, dword [0x431074]
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 esi, dword [ebp + 8]
lea ecx, [ebp - 0x330]
call sub.mfc140.dll_Ordinal_503
push esi
lea eax, [ebp - 0x310]
mov dword [ebp - 4], 0
push str._s.
push eax
call fcn.004043b0
add esp, 0xc
lea eax, [ebp - 0x310]
lea ecx, [ebp - 0x330]
push 0
push eax
call sub.mfc140.dll_Ordinal_4705
test eax, eax
je 0x412c84
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
nop word [eax + eax]
lea ecx, [ebp - 0x330]
call sub.mfc140.dll_Ordinal_4725
lea ecx, [ebp - 0x330]
mov edi, eax
call sub.mfc140.dll_Ordinal_8140
test eax, eax
jne 0x412c7c
lea eax, [ebp - 0x314]
push eax
lea ecx, [ebp - 0x330]
call sub.mfc140.dll_Ordinal_5562
push 0xc8
mov ecx, eax
mov byte [ebp - 4], 1
call dword [sym.imp.mfc140.dll_Ordinal_5095]
lea edx, [ebp - 0x210]
sub edx, eax
nop dword [eax + eax]
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x412c10
mov byte [ebp - 4], cl
lea ecx, [ebp - 0x314]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
mov eax, dword [ebp - 0x330]
lea ecx, [ebp - 0x330]
push 0x10
call dword [eax + 0x40]
test eax, eax
lea eax, [ebp - 0x210]
push eax
push esi
lea eax, [ebp - 0x110]
push 0x42869c
push eax
je 0x412c6b
call fcn.004043b0
lea eax, [ebp - 0x110]
push eax
call fcn.00412b40
add esp, 0x14
jmp 0x412c7c
call fcn.004043b0
add esp, 0x10
lea eax, [ebp - 0x110]
push eax
call ebx
test edi, edi
jne 0x412bc0
lea ecx, [ebp - 0x330]
call sub.mfc140.dll_Ordinal_2881
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
neg eax
lea ecx, [ebp - 0x330]
sbb esi, esi
neg esi
call sub.mfc140.dll_Ordinal_1142
mov eax, esi
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.00421e64
mov esp, ebp
pop ebp
ret
Function at 0x416bb0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425a95
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x431074]
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
push 0x124
lea eax, [ebp - 0x134]
mov dword [ebp - 4], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x138], pe_nt_image_headers32
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [ebp - 0x138]
push eax
push esi
call sub.KERNEL32.dll_Process32First
mov edi, dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbscmp]
lea eax, [ebp - 0x114]
push 0x428540
push eax
call edi
add esp, 8
test eax, eax
je 0x416c4b
lea eax, [ebp - 0x138]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x416c23
jmp 0x416c72
mov eax, dword [ebp - 0x130]
test eax, eax
je 0x416c72
push eax
push 1
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
xor bh, bh
test esi, esi
je 0x416d45
lea eax, [ebp - 0x260]
mov dword [ebp - 0x260], pe_nt_image_headers32
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x416d3e
lea eax, [ebp - 0x260]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
lea ecx, [ebp - 0x264]
setne bl
call dword [sym.imp.mfc140.dll_Ordinal_316]
lea eax, [ebp - 0x23c]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x264]
call dword [sym.imp.mfc140.dll_Ordinal_1529]
lea ecx, [ebp - 0x264]
call dword [sym.imp.mfc140.dll_Ordinal_8672]
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140.dll_Ordinal_1661]
push eax
lea ecx, [ebp - 0x264]
call dword [sym.imp.mfc140.dll_Ordinal_2986]
test eax, eax
je 0x416d17
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 0
call dword [sym.imp.mfc140.dll_Ordinal_1044]
test bl, bl
jne 0x416ca6
jmp 0x416d3e
push 0
push dword [ebp - 0x258]
mov bh, 1
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea ecx, [ebp - 0x264]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
mov al, bh
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.00421e64
mov esp, ebp
pop ebp
ret 4
Function at 0x41cb00
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x431074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x41cb34
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41cb34
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [ebx]
test al, al
je 0x41cbfa
push edi
mov edi, ebx
mov ecx, ebx
cmp al, 0x2f
je 0x41cb4b
cmp al, 0x5c
jne 0x41cb4d
mov edi, ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x41cb43
cmp edi, ebx
je 0x41cb90
sub edi, ebx
lea eax, [ebp - 0x20c]
push edi
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
cmp edi, 0x104
jae 0x41cc0a
lea eax, [ebp - 0x20c]
mov byte [ebp + edi - 0x20c], 0
push eax
push esi
call fcn.0041cb00
add esp, 8
mov byte [ebp - 0x108], 0
test esi, esi
je 0x41cbb0
lea ecx, [ebp - 0x108]
sub ecx, esi
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x41cba3
mov esi, ebx
mov al, byte [ebx]
inc ebx
test al, al
jne 0x41cbb2
lea edi, [ebp - 0x108]
sub ebx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x41cbc2
mov ecx, ebx
lea eax, [ebp - 0x108]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop edi
cmp eax, 0xffffffff
jne 0x41cbfa
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00421e64
mov esp, ebp
pop ebp
ret
call fcn.004225fd
int3
Function at 0x41d310
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
mov dword [ebp - 8], ebx
cmp dword [ebx], 0
jne 0x41d4ac
cmp dword [ebx + 4], 0xffffffff
jne 0x41d4ac
push edi
lea edi, [ebx + 0x140]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41d347
sub ecx, edx
mov al, byte [ecx + ebx + 0x13f]
cmp al, 0x5c
je 0x41d373
cmp al, 0x2f
je 0x41d373
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x41d360
mov ax, word [0x427b60]
mov word [edi], ax
mov edi, dword [ebp + 0x10]
push esi
cmp edi, 1
jne 0x41d39e
mov esi, dword [ebp + 8]
push edi
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x41d3b9
pop esi
pop edi
mov eax, 0x2000000
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp edi, 2
je 0x41d3b6
cmp edi, 3
je 0x41d3b6
pop esi
pop edi
mov eax, 0x10000
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp + 8]
xor ebx, ebx
xor al, al
mov byte [ebp - 1], al
mov byte [ebp + 0x13], bl
cmp edi, 1
je 0x41d3ff
cmp edi, 2
jne 0x41d41b
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41d3f9
pop esi
pop edi
mov eax, 0x200
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov byte [ebp + 0x13], 1
jmp 0x41d405
mov ebx, esi
mov byte [ebp + 0x13], 0
push 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
setne al
mov byte [ebp - 1], al
push 0x20
call sub.mfc140.dll_Ordinal_1507
add esp, 4
mov esi, eax
cmp edi, 1
je 0x41d456
cmp edi, 2
je 0x41d456
mov eax, dword [ebp + 8]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0xc]
mov word [esi], 0x100
mov byte [esi + 0x10], 0
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], 0
mov dword [esi + 0xc], 0
jmp 0x41d487
mov al, byte [ebp + 0x13]
mov byte [esi + 0x10], al
mov al, byte [ebp - 1]
mov byte [esi], 1
mov byte [esi + 1], al
mov dword [esi + 4], ebx
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
test al, al
je 0x41d487
push 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 0xc], eax
push esi
call fcn.00420480
mov ecx, dword [ebp - 8]
add esp, 4
mov edx, 0x200
mov dword [ecx], eax
xor ecx, ecx
test eax, eax
pop esi
cmove ecx, edx
pop edi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, 0x1000000
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41db70
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
movsx eax, byte [ebp + 0xc]
mov ecx, dword [edx]
xor eax, ecx
movzx eax, al
shr ecx, 8
mov eax, dword [eax*4 + 0x42a3a0]
xor eax, ecx
mov ecx, dword [edx + 8]
mov dword [edx], eax
movzx eax, al
add eax, dword [edx + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x42a3a0]
mov dword [edx + 8], ecx
pop ebp
ret
Function at 0x420030
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, esi
imul ebx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
cmp byte [edi], 0
je 0x42006e
push 0
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x420062
mov byte [edi + 8], 1
mov eax, dword [ebp + 0xc]
xor edx, edx
pop edi
div esi
pop esi
pop ebx
pop ebp
ret
mov edx, dword [edi + 0x1c]
mov esi, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
sub esi, edx
lea eax, [edx + ebx]
cmp eax, dword [edi + 0x18]
cmovbe esi, ebx
add ecx, edx
push esi
push ecx
push dword [ebp + 8]
call sub.VCRUNTIME140.dll_memcpy
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x4200ae
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not eax
cmp esi, 8
jb 0x42016d
push edi
mov edi, esi
shr edi, 3
movzx ecx, byte [edx]
sub esi, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x42a3a0]
movzx ecx, byte [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x42a3a0]
movzx ecx, byte [edx + 2]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x42a3a0]
movzx ecx, byte [edx + 3]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x42a3a0]
movzx ecx, byte [edx + 4]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x42a3a0]
movzx ecx, byte [edx + 5]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x42a3a0]
movzx ecx, byte [edx + 6]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x42a3a0]
movzx ecx, byte [edx + 7]
add edx, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x42a3a0]
sub edi, 1
jne 0x4200c6
pop edi
test esi, esi
je 0x42018b
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x42a3a0]
sub esi, 1
jne 0x420171
not eax
pop esi
pop ebp
ret