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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x100abec0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
test edi, edi
je 0x10041d5c
test ebx, ebx
je 0x10041d5c
cmp edi, 0xffffffff
je 0x10041dda
push dword [ebp + 8]
call fcn.10042210
add esp, 4
cmp eax, 0xffffffff
je 0x10041dda
xor esi, esi
nop word [eax + eax]
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x200
lea eax, [ebp - 0x218]
mov dword [ebp - 0x41c], 0x200
push 0
push eax
call fcn.100750b0
add esp, 0xc
lea eax, [ebp - 0x41c]
push 0
push eax
push 0x200
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10041c80
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10041cad
mov eax, dword [ebp - 0x41c]
test eax, eax
je 0x10041c9b
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
call fcn.10074b30
add esp, 0xc
push 0xf
push edi
call dword [sym.imp.KERNEL32.dll_PurgeComm]
cmp dword [ebp - 0x41c], 0
jg 0x10041cca
inc esi
cmp esi, 2
jl 0x10041c30
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10071677
mov esp, ebp
pop ebp
ret
push 0x400
lea eax, [ebp - 0x418]
push 0
push eax
call fcn.100750b0
add esp, 0xc
mov dword [ebp - 8], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x18]
movups xmmword [ebp - 0x18], xmm0
call fcn.10040670
push ebx
push 0x18d
push str.CommunicationStream100
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x418]
push str._s_t__d__d___INFO____s:_d__call__CommunicationStream100_Ok_return_recvStream___s_n
push eax
call fcn.10008b40
lea ecx, [ebp - 0x418]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10041d30
sub ecx, edx
lea eax, [ebp - 0x418]
push ecx
push eax
call fcn.100407c0
add esp, 8
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10071677
mov esp, ebp
pop ebp
ret
push 0x400
lea eax, [ebp - 0x418]
push 0
push eax
call fcn.100750b0
add esp, 0xc
mov dword [ebp - 8], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x18]
movups xmmword [ebp - 0x18], xmm0
call fcn.10040670
push 0x182
push str.CommunicationStream100
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x418]
push str._s_t__d__d___ERROR____s:_d__handle_or_recvStream_is_NULL_n
push eax
call fcn.10008b40
lea ecx, [ebp - 0x418]
add esp, 0x1c
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10041dc1
sub ecx, edx
lea eax, [ebp - 0x418]
push ecx
push eax
call fcn.100407c0
add esp, 8
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10071677
mov esp, ebp
pop ebp
ret
Function at 0x100420f0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
mov eax, dword [0x100abec0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov edi, dword [ebp + 0xc]
cmp esi, 0xffffffff
je 0x1004214d
test esi, esi
je 0x1004214d
test ebx, ebx
je 0x1004214d
lea eax, [ebp - 0x610]
push eax
lea eax, [ebp - 0x614]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ClearCommError]
push 0
lea eax, [ebp - 0x618]
push eax
push dword [ebp + 8]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10042160
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10071677
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
test edi, edi
je 0x100421f0
push 0x600
lea eax, [ebp - 0x604]
mov dword [ebp - 0x614], 0x600
push 0
push eax
call fcn.100750b0
add esp, 0xc
lea eax, [ebp - 0x614]
push 0
push eax
push 0x600
lea eax, [ebp - 0x604]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100421cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10071677
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x614]
test eax, eax
je 0x100421e7
push eax
lea eax, [ebp - 0x604]
push eax
push edi
call fcn.10074b30
add esp, 0xc
push 0xf
push esi
call dword [sym.imp.KERNEL32.dll_PurgeComm]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10071677
mov esp, ebp
pop ebp
ret

Function at 0x10042de0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x100abec0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x20c]
mov ebx, ecx
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea edx, [ebp - 0x20c]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10042e13
sub edx, ecx
sar edx, 1
lea edi, [edx + 1]
cmp edi, 0x3fffffff
jg 0x10042e60
add edi, edi
mov eax, edi
call fcn.10072580
mov esi, esp
test esi, esi
je 0x10042e60
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
lea eax, [ebp - 0x20c]
mov byte [esi], 0
push eax
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb edx, edx
and edx, esi
jmp 0x10042e62
xor edx, edx
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10042e67
sub ecx, esi
push ecx
push edx
push 0x104
push ebx
call fcn.10048d58
add esp, 0x10
lea esp, [ebp - 0x218]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10071677
mov esp, ebp
pop ebp
ret
Function at 0x10043c00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x10043ce6
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x10043cd5
jg 0x10043c40
test edx, edx
je 0x10043cd5
nop dword [eax]
call fcn.10026d70
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x10043c94
jg 0x10043c57
test esi, esi
je 0x10043c94
cmp ebx, eax
jg 0x10043c67
jl 0x10043c61
cmp edi, esi
jae 0x10043c67
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.10074b30
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x10043cb9
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx]
movzx eax, byte [eax]
push eax
call dword [edx + 0xc]
cmp eax, 0xffffffff
je 0x10043ccf
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x10043c40
jl 0x10043ccf
test edi, edi
jne 0x10043c40
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov edx, dword [eax]
lea eax, [ecx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
test edx, edx
je 0x10043d0e
mov eax, dword [eax]
mov edx, dword [eax]
jmp 0x10043d14
xor edx, edx
mov dword [esp + 0x18], eax
mov eax, edx
cdq
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
test edi, edi
jl 0x10043d7c
jg 0x10043d29
test esi, esi
je 0x10043d7c
test edx, edx
jl 0x10043d77
jg 0x10043d33
test eax, eax
je 0x10043d77
cmp edi, edx
jg 0x10043d47
jl 0x10043d3d
cmp esi, eax
jae 0x10043d47
mov eax, esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
mov ebx, dword [ebp + 8]
push eax
push ebx
push dword [esp + 0x24]
call fcn.10074b30
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x14]
add ebx, edx
mov ecx, dword [esp + 0xc]
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x10]
sub dword [eax], edx
mov eax, dword [ecx + 0x20]
add dword [eax], edx
jmp 0x10043d7f
mov ebx, dword [ebp + 8]
jmp 0x10043d89
mov ebx, dword [ebp + 8]
test edi, edi
jl 0x10043da2
jg 0x10043d89
test esi, esi
je 0x10043da2
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x10043da2
push eax
push esi
push 1
push ebx
call fcn.1004ffe2
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100443d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x100abec0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10044400
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10071677
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1004443c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x1004443c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10071677
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x10044522
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10044464
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 0x10044497
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.100518e5
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.10071677
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
mov edx, dword [ecx]
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 [edx + 0x1c]
sub eax, 0
je 0x100444f5
sub eax, 1
je 0x100444f5
sub eax, 2
jne 0x10044522
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.10042290
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.10071677
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10044512
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.1004ffe2
add esp, 0x10
cmp edi, eax
jne 0x10044522
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x10044427
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10071677
mov esp, ebp
pop ebp
ret 4
Function at 0x10044ac0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100abec0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x10044b7a
cmp byte [esi + 0x3d], 0
je 0x10044b7a
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x10044b68
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x10044b30
sub eax, 1
je 0x10044b34
sub eax, 2
jne 0x10044b68
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10071677
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10044b51
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.1004ffe2
add esp, 0x10
cmp edi, eax
jne 0x10044b68
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10071677
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10071677
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.10071677
mov esp, ebp
pop ebp
ret

Function at 0x10057145
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10056fbb

Function at 0x100641f9
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10063e76

Function at 0x1006b6a8
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
xor eax, eax
mov dword [ebp - 8], ecx
inc eax
inc ebx
mov dword [ebp - 4], eax
cmp dword [edi + 8], ebx
jle 0x1006b71f
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x1006b6e5
mov eax, dword [ecx + 0x10]
cmp dword [eax + ebx*8 + 4], edx
je 0x1006b6e5
mov eax, dword [edi + 0xc]
cmp dword [eax + ebx*4], 0
je 0x1006b712
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x1006b715
mov eax, dword [edi + 0xc]
mov eax, dword [eax + ebx*4]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x1006b70b
mov eax, dword [eax]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x100854d4]
mov ecx, dword [ebp - 0xc]
call esi
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [edi + 0xc]
and dword [eax + ebx*4], 0
mov eax, dword [ebp - 4]
inc ebx
cmp ebx, dword [edi + 8]
jl 0x1006b6c8
test eax, eax
je 0x1006b766
lea esi, [ecx + 0x1c]
mov ebx, edi
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 8]
push edi
add ecx, 0x14
call fcn.1006b997
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x100854d4]
mov ecx, edi
call esi
mov eax, dword [ebp - 8]
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1006b9ea
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x10
mov eax, 0x100838f3
call fcn.10072a67
mov ebx, ecx
mov dword [ebp - 0x18], ebx
lea eax, [ebx + 0x1c]
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebp + 8]
test edi, edi
jle 0x1006bae1
cmp edi, dword [ebx + 0xc]
jge 0x1006bae1
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x1006ba41
cmp edi, dword [esi + 8]
jl 0x1006bacf
cmp dword [ebp + 0xc], 0
je 0x1006bacf
xor edi, edi
jmp 0x1006ba73
xor edi, edi
push 0x10
mov dword [ebp - 4], edi
call fcn.1006b446
mov esi, eax
test esi, esi
je 0x1006ba5b
mov dword [esi], vtable.CThreadData.0
jmp 0x1006ba5d
mov esi, edi
or dword [ebp - 4], 0xffffffff
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
mov dword [esi + eax], ecx
mov dword [ebx + 0x14], esi
push 4
push dword [ebx + 0xc]
call fcn.10064a3c
cmp dword [esi + 0xc], 0
pop ecx
pop ecx
jne 0x1006ba8f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x1006ba9b
push 2
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edx, eax
test edx, edx
je 0x1006bb08
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], edx
mov eax, dword [ebx + 0xc]
sub eax, ecx
shl eax, 2
push eax
lea eax, [edx + ecx*4]
push edi
push eax
call fcn.100750b0
mov eax, dword [ebx + 0xc]
add esp, 0xc
mov dword [esi + 8], eax
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edi, dword [ebp + 8]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x1006bae1
cmp edi, dword [esi + 8]
jge 0x1006bae1
mov eax, dword [ebp + 0xc]
mov dword [ecx + edi*4], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.100729cc
ret 8
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.10064ecf
int3

Function at 0x100812d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100812fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100812fd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4084c0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
not ebx
mov esi, ecx
mov eax, ebx
test edi, edi
je 0x408521
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x408504
cmp edi, 2
jb 0x408504
cmp byte [esi], cl
jne 0x408504
cmp byte [esi + 1], cl
jne 0x408504
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x432ad8]
jmp 0x4084d5
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x432ad8]
test edi, edi
jne 0x4084d5
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x408550
cmp cl, 0x23
jne 0x408537
cmp byte [esi], cl
jne 0x408537
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x432ad8]
test cl, cl
jne 0x408528
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x408660
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x408674
mov dword [ebx], 0
mov edx, 0x4328b8
call fcn.00408560
mov esi, eax
test esi, esi
je 0x408762
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push esi
call edi
add esp, 4
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x408758
push 2
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x408758
push esi
call edi
mov edi, eax
add esp, 4
mov dword [ebp + 8], edi
cmp edi, 0xffffffff
je 0x408758
push 0
push dword [ebp - 4]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x408758
mov eax, dword [0x43a858]
test eax, eax
je 0x4086ec
inc dword [eax + 0x36c]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x408758
push esi
push dword [ebp + 8]
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
push esi
cmp eax, dword [ebp + 8]
je 0x40873d
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x43a858]
add esp, 4
test eax, eax
je 0x40872a
dec dword [eax + 0x36c]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test ebx, ebx
je 0x40874f
mov eax, dword [ebp + 8]
mov dword [ebx], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409c90
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x43a040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0xc4]
lea edx, [ebp - 8]
push ebx
mov ebx, dword [ecx + 0xcc]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 4
mov ebx, dword [ebx + eax*4 - 4]
mov dword [ebp - 8], edi
not ebx
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x432ad8]
sub esi, 1
jne 0x409cc3
mov eax, dword [0x43a858]
not ebx
cmp dword [eax + 0x1be0], ebx
jne 0x409cf2
mov dword [eax + 0x1be4], ebx
cmp dword [eax + 0x1c1c], ebx
jne 0x409d01
mov byte [eax + 0x1c20], 1
cmp dword [eax + 0x1bc8], ebx
jne 0x409d1a
push ecx
push edi
mov edx, 4
mov ecx, ebx
call fcn.00419220
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042f526
mov esp, ebp
pop ebp
ret 4
Function at 0x40dfd0
Capabilities:
Hash data with crc32

Disassembly:
mov eax, ecx
or ecx, 0xffffffff
push ebx
push esi
mov bl, byte [eax]
lea esi, [eax + 1]
test bl, bl
je 0x40e00d
push edi
or edi, 0xffffffff
cmp bl, 0x23
jne 0x40dff3
cmp byte [esi], bl
jne 0x40dff3
cmp byte [esi + 1], bl
cmove ecx, edi
movzx edx, cl
movzx eax, bl
mov bl, byte [esi]
xor edx, eax
shr ecx, 8
inc esi
xor ecx, dword [edx*4 + 0x432ad8]
test bl, bl
jne 0x40dfe4
pop edi
pop esi
not ecx
pop ebx
jmp fcn.0040df70

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x43a040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x43a858]
lea edx, [ebp - 8]
push ebx
push esi
push edi
mov edi, dword [eax + 0x1ba8]
mov esi, 4
mov eax, dword [edi + 0xc4]
add edi, 0xc4
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
mov ebx, dword [edi + 8]
mov ebx, dword [ebx + eax*4 - 4]
not ebx
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x432ad8]
sub esi, 1
jne 0x4133b1
mov eax, dword [0x43a858]
not ebx
cmp dword [eax + 0x1bc8], ebx
jne 0x4133eb
push ecx
push dword [ebp - 0xc]
lea edx, [esi + 4]
mov ecx, ebx
call fcn.00419220
add esp, 8
mov ecx, dword [edi + 4]
mov esi, dword [edi]
cmp esi, ecx
jne 0x413416
inc esi
test ecx, ecx
je 0x413404
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x413409
mov eax, 8
cmp eax, esi
mov ecx, edi
cmovg esi, eax
push esi
call fcn.00419bb0
mov ecx, dword [edi]
mov eax, dword [edi + 8]
mov dword [eax + ecx*4], ebx
inc dword [edi]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042f526
mov esp, ebp
pop ebp
ret
Function at 0x418310
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
cmp dword [edi + 0x2fa8], 0
lea esi, [edi + 0x2fac]
je 0x418392
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x41834c
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.00419e80
push dword [ebp + 8]
mov ecx, esi
mov dword [esi], 0
push ebx
call fcn.00408900
mov edx, dword [esi]
mov ecx, 0x43a854
push dword [edi + 0x2fa8]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [edi + 0x2fb4]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
mov ecx, esi
push ebx
call fcn.00408900
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret