joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407c32
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x407c60
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x407c67
cmp ebx, dword [eax + 4]
jae 0x407c67
xor eax, eax
jmp 0x407e57
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x407c78
xor eax, eax
inc eax
jmp 0x407e56
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x407c8e
cmp ecx, edx
jae 0x407dd3
cmp dword [eax + 4], 0
je 0x407c97
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x407c7f
cmp dword [ebp + 8], 0
je 0x407cb9
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x407dd3
cmp eax, esi
jae 0x407dd3
mov eax, dword [0x40da58]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x407cde
cmp dword [esi*4 + 0x40da60], edi
je 0x407dd7
inc esi
cmp esi, eax
jl 0x407ccc
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x407e53
cmp dword [ebp - 8], 0x1000000
jne 0x407e53
test byte [ebp - 0xc], 0xcc
je 0x407d5c
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x407e53
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407e53
cmp word [eax + 0x18], 0x10b
jne 0x407e53
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x407e53
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x407d5c
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x407d5c
test byte [ecx + 0x27], 0x80
jne 0x407dd3
push 1
push 0x40daa0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x407c70
mov ecx, dword [0x40da58]
test ecx, ecx
mov edx, ecx
jle 0x407d90
lea eax, [ecx*4 + 0x40da5c]
cmp dword [eax], edi
je 0x407d90
dec edx
sub eax, 4
test edx, edx
jg 0x407d84
test edx, edx
jne 0x407dc1
push 0xf
pop ebx
cmp ecx, ebx
jg 0x407d9d
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x407db5
lea eax, [edx*4 + 0x40da60]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x407da3
cmp ecx, 0x10
jge 0x407dc1
inc ecx
mov dword [0x40da58], ecx
push 0
push 0x40daa0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x407c70
xor eax, eax
jmp 0x407e56
test esi, esi
jle 0x407c70
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x40daa0
call ebx
test eax, eax
jne 0x407c70
cmp dword [esi*4 + 0x40da60], edi
je 0x407e2d
mov eax, dword [0x40da58]
lea esi, [eax - 1]
test esi, esi
jl 0x407e1b
cmp dword [esi*4 + 0x40da60], edi
je 0x407e17
dec esi
jns 0x407e0b
test esi, esi
jge 0x407e2b
cmp eax, 0x10
jge 0x407e26
inc eax
mov dword [0x40da58], eax
lea esi, [eax - 1]
jmp 0x407e2d
je 0x407e45
xor ecx, ecx
test esi, esi
jl 0x407e45
lea eax, [ecx*4 + 0x40da60]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x407e33
push 0
push 0x40daa0
call ebx
jmp 0x407c70
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4084c0
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.00407340
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40855b
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 [0x40d8e0]
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 0x40855b
cmp eax, 1
je 0x40857c
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 0x40855b
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x408528
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x408557
xor eax, eax
inc eax
jmp 0x40859b
cmp edi, eax
jae 0x40855f
xor eax, eax
jmp 0x40859b
cmp eax, esi
jae 0x408566
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 [0x40d8e0]
jmp 0x40857f
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 0x409365
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x40ed24]
push edi
jae 0x40953a
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x40ed40]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x40953a
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x409410
test dl, 2
jne 0x409410
test dl, 0x48
je 0x4093da
cmp byte [eax + 5], 0xa
je 0x4093da
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x409423
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x40940b
mov dword [0x40d8d8], ecx
jmp 0x409541
cmp eax, 0x6d
jne 0x409417
xor eax, eax
jmp 0x40954e
push eax
call fcn.00408e0d
pop ecx
jmp 0x40954b
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x409535
test eax, eax
je 0x40944a
cmp byte [ebx], 0xa
jne 0x40944a
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x409453
mov eax, dword [edi]
lea eax, [eax + esi + 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 0x40952f
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x40951f
cmp al, 0xd
je 0x409485
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x409511
dec ecx
cmp dword [ebp - 8], ecx
jae 0x40949f
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x40949a
add dword [ebp - 8], 2
jmp 0x4094f3
mov dword [ebp - 8], eax
jmp 0x40950d
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4094c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40950d
cmp dword [ebp - 0x10], 0
je 0x40950d
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4094e8
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4094f3
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x409510
cmp ebx, dword [ebp + 0xc]
jne 0x4094f8
cmp byte [ebp - 1], 0xa
jne 0x4094f8
mov byte [ebx], 0xa
jmp 0x409510
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040737d
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x409511
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x409469
jmp 0x40952f
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x40952f
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x40954e
and dword [0x40d8d8], 0
mov dword [0x40d8d4], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43100c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x431030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43101e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x401010
Capabilities:
Accept command line arguments
Allocate or change rwx memory
Encode data using xor
Execute shellcode via windows callback function
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edx, 0x14
lea ecx, [ebp - 0x18]
nop
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub edx, 1
jne 0x401030
push ebx
push edx
push 0x80
push 3
push edx
push 1
push 0x80000000
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x401111
push esi
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x40
push 0x3000
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push section..text
mov edi, eax
lea ecx, [esi - 1]
lea eax, [ebp - 0x18]
push eax
push ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
jne 0x4010a8
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
test esi, esi
je 0x401104
cmp esi, 0x10
jb 0x4010ef
movaps xmm1, xmmword [str.FFFFFFFFFFFFFFFF]
mov eax, esi
movaps xmm2, xmmword [0x402110]
and eax, 0xf
mov edx, esi
sub edx, eax
nop word [eax + eax]
movups xmm0, xmmword [ecx + edi]
psubb xmm0, xmm1
pxor xmm0, xmm2
paddb xmm0, xmmword [0x4020f0]
movups xmmword [ecx + edi], xmm0
add ecx, 0x10
cmp ecx, edx
jb 0x4010d0
cmp ecx, esi
jae 0x401104
mov al, byte [ecx + edi]
sub al, 0x46
xor al, 0x80
add al, 0x15
mov byte [ecx + edi], al
inc ecx
cmp ecx, esi
jb 0x4010f3
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsA]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4020e0
Capabilities:
Terminate process

Disassembly:
cmp dword [0x4050b0], 1
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
jne 0x4020fe
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4050ac], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x4050a8], bl
jne 0x402158
cmp dword [0x406ca8], 0
je 0x402146
mov edi, dword [0x406ca4]
sub edi, 4
cmp dword [0x406ca8], edi
ja 0x402146
mov eax, dword [edi]
test eax, eax
je 0x40213b
call eax
sub edi, 4
cmp dword [0x406ca8], edi
jbe 0x402133
push 0x40501c
push 0x405014
call fcn.00402190
add esp, 8
push 0x405024
push 0x405020
call fcn.00402190
add esp, 8
test ebx, ebx
jne 0x40217f
mov dword [0x4050b0], 1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
ret
Function at 0x4027f0
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
cmp dword [0x405158], 0
push ebx
push esi
push edi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push ebp
jne 0x40283c
call esi
mov edi, eax
test edi, edi
je 0x40281a
mov dword [0x405158], 1
jmp 0x402840
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x402832
mov dword [0x405158], 2
jmp 0x402844
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x10]
cmp dword [0x405158], 1
jne 0x4028f3
test edi, edi
jne 0x402867
call esi
mov edi, eax
test edi, edi
jne 0x402867
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x402881
add esi, 2
cmp word [esi], 0
jne 0x40286f
add esi, 2
cmp word [esi], 0
jne 0x40286f
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x4028e2
push ebp
call fcn.00403780
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x4028e2
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x4028d1
push ebx
call fcn.00403760
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x405158], 2
jne 0x402977
test ebx, ebx
jne 0x402916
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x402916
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x40292b
inc ebp
cmp byte [ebp], 0
jne 0x40291d
inc ebp
cmp byte [ebp], 0
jne 0x40291d
sub ebp, ebx
inc ebp
push ebp
call fcn.00403780
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x402950
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x402f80
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor ecx, ecx
mov eax, 0x405388
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [eax], edx
je 0x402fa7
add eax, 8
inc ecx
cmp eax, 0x405410
jb 0x402f98
cmp dword [ecx*8 + 0x405388], edx
lea ebx, [ecx*8]
jne 0x403162
cmp dword [0x405058], 1
je 0x403127
cmp dword [0x405058], 0
jne 0x402fde
cmp dword [0x40505c], 1
je 0x403127
cmp edx, 0xfc
je 0x403162
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x40301b
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x40305f
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x404330
push ebp
call fcn.004038a0
add esp, 0xc
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x404310
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x40538c]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.00403800
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x406ba0]
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x40313e
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x40538c]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x403170
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x418
cmp edx, dword [0x406ca0]
push ebx
push esi
push edi
push ebp
jae 0x403377
mov eax, edx
and eax, 0xffffffe7
sar eax, 3
add eax, 0x406ba0
mov dword [esp + 0x18], eax
mov eax, edx
and eax, 0x1f
mov ecx, dword [esp + 0x18]
shl eax, 3
mov ebx, dword [ecx]
mov ebp, eax
mov dword [esp + 0x1c], eax
mov al, byte [ebx + ebp + 4]
test al, 1
je 0x403377
xor esi, esi
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x20], esi
cmp ebp, esi
jne 0x4031d9
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
test al, 0x20
je 0x4031ea
push 2
push 0
push edx
call fcn.004033a0
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add ecx, dword [eax]
test byte [ecx + 4], 0x80
je 0x403286
mov dword [esp + 0x10], 0
mov ebx, dword [esp + 0x430]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x4032bf
lea edi, [esp + 0x24]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x40324d
mov al, byte [ebx]
inc ebx
cmp al, 0xa
jne 0x40323b
mov byte [edi], 0xd
inc esi
inc edi
mov byte [edi], al
inc edi
mov eax, edi
lea ecx, [esp + 0x24]
sub eax, ecx
cmp eax, 0x400
jl 0x403222
lea eax, [esp + 0x24]
push 0
sub edi, eax
lea ecx, [esp + 0x28]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x1c]
push eax
push edi
push ecx
mov eax, dword [edx]
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax + ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4032b5
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], eax
cmp edi, eax
jle 0x40320d
jmp 0x4032bf
lea eax, [esp + 0x14]
push 0
mov edx, dword [esp + 0x434]
push eax
push ebp
mov ecx, dword [ecx]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4032b5
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x4032bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x20], 0
jne 0x403366
cmp dword [esp + 0x10], 0
je 0x403318
cmp dword [esp + 0x10], 5
jne 0x4032fb
mov dword [0x405068], 9
mov eax, dword [esp + 0x10]
pop ebp
pop edi
mov dword [0x40506c], eax
mov eax, 0xffffffff
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x10]
push eax
call fcn.004039a0
add esp, 4
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax]
test byte [edx + ecx + 4], 0x40
je 0x403342
mov eax, dword [esp + 0x430]
cmp byte [eax], 0x1a
jne 0x403342
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x405068], 0x1c
mov dword [0x40506c], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x20]
pop ebp
sub eax, esi
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x405068], 9
mov dword [0x40506c], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
Function at 0x40f2f0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
not eax
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], 0x5a5740
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0xc]
sub eax, 1
mov dword [ebp + 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40f34b
mov ecx, dword [ebp - 4]
shr ecx, 8
mov edx, dword [ebp - 4]
and edx, 0xff
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
xor edx, eax
mov eax, dword [ebp - 0x10]
xor ecx, dword [eax + edx*4]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
jmp 0x40f30b
mov eax, dword [ebp - 4]
not eax
mov esp, ebp
pop ebp
ret

Function at 0x40f360
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x10]
not eax
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
jne 0x40f388
mov eax, dword [ebp - 0xc]
jmp 0x40f495
mov dword [ebp - 0x10], 0x5a5740
cmp dword [ebp + 0xc], 0
je 0x40f420
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0xc]
sub ecx, 1
mov dword [ebp + 0xc], ecx
cmp dword [ebp - 0x14], 0
je 0x40f41e
mov edx, dword [ebp - 8]
mov al, byte [edx]
mov byte [ebp - 2], al
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
movzx edx, byte [ebp - 2]
cmp edx, 0x23
jne 0x40f3fc
cmp dword [ebp + 0xc], 2
jb 0x40f3fc
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp - 8]
movzx eax, byte [edx + ecx]
cmp eax, 0x23
jne 0x40f3fc
mov ecx, 1
shl ecx, 0
mov edx, dword [ebp - 8]
movzx eax, byte [edx + ecx]
cmp eax, 0x23
jne 0x40f3fc
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
shr edx, 8
mov eax, dword [ebp - 0xc]
and eax, 0xff
movzx ecx, byte [ebp - 2]
xor eax, ecx
mov ecx, dword [ebp - 0x10]
xor edx, dword [ecx + eax*4]
mov dword [ebp - 0xc], edx
jmp 0x40f399
jmp 0x40f490
mov edx, dword [ebp - 8]
mov al, byte [edx]
mov byte [ebp - 1], al
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
movzx edx, byte [ebp - 1]
test edx, edx
je 0x40f490
movzx eax, byte [ebp - 1]
cmp eax, 0x23
jne 0x40f470
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + edx]
cmp ecx, 0x23
jne 0x40f470
mov edx, 1
shl edx, 0
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + edx]
cmp ecx, 0x23
jne 0x40f470
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
shr eax, 8
mov ecx, dword [ebp - 0xc]
and ecx, 0xff
movzx edx, byte [ebp - 1]
xor ecx, edx
mov edx, dword [ebp - 0x10]
xor eax, dword [edx + ecx*4]
mov dword [ebp - 0xc], eax
jmp 0x40f420
mov eax, dword [ebp - 0xc]
not eax
mov esp, ebp
pop ebp
ret

Function at 0x4105c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0053d430
add esp, 0x10
xor edx, edx
pop ebp
ret