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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
cmp dword [0x410048], esi
push edi
mov dword [ebp - 4], 8
mov dword [ebp - 8], esi
je 0x408203
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
jmp 0x40831e
push 1
push esi
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
call fcn.00406118
test eax, eax
jl 0x408312
mov edi, dword [ebp + 0x14]
cmp edi, esi
jne 0x408225
lea edi, [ebp + 0xc]
cmp dword [ebp + 0x18], esi
jne 0x408241
push dword [ebp + 0x1c]
push edi
push dword [ebp + 0x10]
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.00404cd3
jmp 0x40830f
mov esi, dword [ebp + 0x1c]
mov ebx, dword [esi]
push esi
push dword [ebp + 0x18]
push edi
push dword [ebp + 0x10]
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, dword [edi]
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [ebp - 4], eax
je 0x408292
cmp edi, 1
je 0x408279
cmp edi, 7
je 0x408279
cmp edi, 2
jne 0x408312
push 8
pop eax
cmp dword [ebp - 4], eax
je 0x40828e
cmp dword [ebp - 4], 0xea
jne 0x408312
shl dword [esi], 1
jmp 0x40830f
cmp edi, 1
je 0x4082a1
cmp edi, 7
je 0x4082a1
cmp edi, 2
jne 0x40830f
mov edi, dword [esi]
push eax
push eax
push edi
push dword [ebp + 0x18]
mov dword [ebp + 0x1c], edi
push eax
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x408305
add eax, eax
cmp ebx, eax
mov dword [esi], eax
jae 0x4082c9
mov dword [ebp - 4], 8
jmp 0x408312
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.0040d290
mov esi, dword [ebp + 0x18]
mov eax, esp
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
shr ebx, 1
push ebx
push dword [ebp + 0x18]
mov ecx, edx
push dword [ebp + 0x1c]
and ecx, 3
push eax
push 0
push 0
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x40830d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40830f
xor eax, eax
mov dword [ebp - 4], eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 4]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret 0x18

Function at 0x408bd5
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [0x410048], esi
je 0x408beb
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 1
push esi
push esi
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.00406118
test eax, eax
jge 0x408c09
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x408c14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x408c76
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x40d783
call fcn.00404850
sub esp, 0x218
mov eax, dword [0x410034]
push edi
xor edi, edi
cmp dword [0x410048], edi
mov dword [ebp - 0x10], eax
je 0x408cad
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
jmp 0x408d9a
push ebx
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x214], 0x200
mov ebx, dword [ebp + 0x10]
add ebx, ebx
push ebx
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], edi
call fcn.0040543d
cmp eax, edi
mov dword [ebp - 0x224], eax
jne 0x408d07
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x21c], edi
je 0x408d00
push dword [ebp - 0x21c]
call sub.MSVCR71.dll_free
pop ecx
xor eax, eax
jmp 0x408d99
push esi
push 1
push edi
push edi
lea eax, [ebp - 0x220]
push eax
push dword [ebp + 8]
call fcn.00406118
test eax, eax
jge 0x408d2b
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x408d72
push ebx
push dword [ebp - 0x224]
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
cmp dword [ebp + 0x10], edi
mov esi, eax
je 0x408d72
cmp esi, ebx
ja 0x408d72
cmp esi, edi
je 0x408d68
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0xffffffffffffffff
push dword [ebp - 0x224]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
dec esi
jmp 0x408d72
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x408d72
mov word [eax], di
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_LocalFree]
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x21c], edi
je 0x408d96
push dword [ebp - 0x21c]
call sub.MSVCR71.dll_free
pop ecx
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop edi
call fcn.0040483b
leave
ret 0xc
Function at 0x408f06
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
xor ebx, ebx
cmp dword [0x410048], ebx
je 0x408f40
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
jmp 0x409062
push esi
mov esi, dword [ebp + 0x28]
push edi
push 0x11
pop ecx
lea edi, [ebp - 0x60]
rep movsd dword es:[edi], dword [esi]
xor edi, edi
inc edi
push edi
push ebx
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
call fcn.00406118
test eax, eax
jl 0x409031
push edi
push ebx
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
call fcn.00406118
test eax, eax
jl 0x409031
push edi
push ebx
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x24]
call fcn.00406118
test eax, eax
jl 0x409031
mov esi, dword [ebp + 0x28]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x408fcb
push edi
push ebx
push ebx
lea ecx, [ebp - 0x10]
push ecx
push eax
call fcn.00406118
test eax, eax
jl 0x409031
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x5c], eax
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x408fe9
push edi
push ebx
push ebx
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.00406118
test eax, eax
jl 0x409031
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x58], eax
mov esi, dword [esi + 0xc]
cmp esi, ebx
je 0x409007
push edi
push ebx
push ebx
lea eax, [ebp - 0x18]
push eax
push esi
call fcn.00406118
test eax, eax
jl 0x409031
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x54], eax
push dword [ebp + 0x2c]
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0xc]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 0x1c], eax
jmp 0x409039
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
push dword [ebp - 8]
call esi
push dword [ebp - 0xc]
call esi
push dword [ebp - 0x10]
call esi
push dword [ebp - 0x14]
call esi
push dword [ebp - 0x18]
call esi
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
pop ebx
leave
ret 0x28
Function at 0x412000
Capabilities:
Encode data using xor

Disassembly:
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
nop
nop
mov ecx, 0xa006d6
nop
mov edx, 0x41201a
mov edi, 0x598
xor dword [edx + edi], ecx
sub edi, 3
dec edi
nop
nop
jne 0x412012
nop
jnp 0x411fc2
add dh, dl
push es
mov al, byte [0xe006d600]
add ch, dh
inc eax
mov al, byte [0xa126d600]
add byte [edx], al
and esp, dword [ecx - 0x5d492a00]
add dh, dl
push es
mov al, byte [0xe0166600]
add byte [edx], dh
call 0xe8432128
loopne 0x41204a
mov esi, 0x3400a0dc
call 0xe84520f4
mov al, byte [0xa0166600]
add byte [eax + ebp*8], dh
mov al, byte [0xa0e80400]
add dh, dl
push es
mov al, byte [0xa006d600]
add dh, dl
push es
mov al, byte [0xe0148200]
add dh, dh
pop ss
loopne 0x412076
salc
push es
mov al, byte [0xa006d600]
add dh, dl
push es
mov al, byte [0xa006d600]
add dh, dl
push es
mov al, byte [0xa006d600]
add dh, dl
push es
mov al, byte [0xa006d600]
add dh, dl
push es
mov al, byte [0xa006d600]
add byte [eax], al
add byte [eax], al
add byte [ebp - 0x4c912d9d], bl
push 0xffffffffffffff93
xor bh, al
invalid
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x819008], 0x8088405
inc edx
mov dword [ebx + 0x819008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41cd64
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cd95
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cd7d
add dl, dl
jne 0x41cda0
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cdf1
xor eax, eax
add dl, dl
jne 0x41cdad
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41ce8e
add dl, dl
jne 0x41cdbc
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cdc7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cdd2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cddd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cde7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cd8c
mov eax, 1
add dl, dl
jne 0x41cdff
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41ce0a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cdf6
sub eax, ebx
mov ebx, 1
jne 0x41ce3d
mov ecx, 1
add dl, dl
jne 0x41ce23
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41ce2e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41ce1a
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cd8c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41ce54
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41ce5f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41ce4b
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cd8c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41ceaf
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cd8c
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41e5a4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x800a63
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41e655
add edx, ebx
mov eax, edx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp edx, 0xffff
jbe 0x41e63e
test esi, esi
jbe 0x41e655
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088e4
test eax, eax
jne 0x41e630
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41e655
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e60d
jmp 0x41e655
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e655
mov eax, ecx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x800a6a
ret
Function at 0x41eec4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0x801473
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x41eeff
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41ef18
lea eax, [ebp - 0x10]
mov edx, dword [0x81b2a4]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x41ef2b
lea eax, [ebp - 0x10]
mov edx, dword [0x81b2a4]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41ef37
adc edx, 0
mov edx, dword [edx*4 + 0x81a10c]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x41f045
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x41f038
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41f038
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x41f038
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41f038
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41f038
cmp dx, 0x150
ja 0x41f038
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x41f038
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41f038
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x41f05d
inc ebx
cmp ebx, 0x19
jne 0x41eef1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x80147a
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x10003b30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
xor eax, eax
nop dword [eax + eax]
mov edx, eax
mov ecx, eax
sar edx, 5
or ecx, 0x1f
cmp ecx, 0x68
lea edi, [ebx + edx*4]
mov ecx, 9
mov esi, 0x20
cmovge esi, ecx
xor edx, edx
bts edx, esi
xor ecx, ecx
cmp esi, 0x20
cmovae ecx, edx
add eax, 0x20
xor edx, ecx
dec edx
or dword [edi], edx
cmp eax, 0x68
jle 0x10003b40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10005610
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 0x10005671
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x10005654
cmp edi, 2
jb 0x10005654
cmp byte [esi], cl
jne 0x10005654
cmp byte [esi + 1], cl
jne 0x10005654
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x100350e0]
jmp 0x10005625
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x100350e0]
test edi, edi
jne 0x10005625
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x100056a0
cmp cl, 0x23
jne 0x10005687
cmp byte [esi], cl
jne 0x10005687
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 + 0x100350e0]
test cl, cl
jne 0x10005678
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
Function at 0x100057b0
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 0x100057c4
mov dword [ebx], 0
mov edx, 0x10034d6c
call fcn.100056b0
mov esi, eax
test esi, esi
je 0x100058b2
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 0x100058a8
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 0x100058a8
push esi
call edi
mov edi, eax
add esp, 4
mov dword [ebp + 8], edi
cmp edi, 0xffffffff
je 0x100058a8
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 0x100058a8
mov eax, dword [0x100c0c98]
test eax, eax
je 0x1000583c
inc dword [eax + 0xb0]
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 0x100058a8
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 0x1000588d
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x100c0c98]
add esp, 4
test eax, eax
je 0x1000587a
dec dword [eax + 0xb0]
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 0x1000589f
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 0x1000be50
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov bl, byte [ecx]
or eax, 0xffffffff
push esi
lea esi, [ecx + 1]
or ecx, 0xffffffff
push edi
test bl, bl
je 0x1000be8f
cmp bl, 0x23
jne 0x1000be71
cmp byte [esi], bl
jne 0x1000be71
cmp byte [esi + 1], bl
cmove eax, ecx
movzx edx, al
movzx ecx, bl
mov bl, byte [esi]
xor edx, ecx
shr eax, 8
inc esi
mov ecx, 0xffffffff
xor eax, dword [edx*4 + 0x100350e0]
test bl, bl
jne 0x1000be62
mov ecx, dword [0x100c0c98]
not eax
mov esi, dword [ecx + 0x3e00]
mov edi, dword [ecx + 0x3e08]
lea ebx, [edi + esi*8]
test esi, esi
je 0x1000bece
nop word [eax + eax]
mov edx, esi
shr edx, 1
cmp dword [edi + edx*8], eax
lea ecx, [edi + edx*8]
jae 0x1000bec8
lea edi, [ecx + 8]
or ecx, 0xffffffff
sub ecx, edx
add esi, ecx
jmp 0x1000beca
mov esi, edx
test esi, esi
jne 0x1000beb0
cmp edi, ebx
je 0x1000bedd
cmp dword [edi], eax
jne 0x1000bedd
mov eax, dword [edi + 4]
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x10017620
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 + 0x5254], 0
lea esi, [edi + 0x5258]
je 0x100176a2
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x1001765c
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.10019590
push dword [ebp + 8]
mov ecx, esi
mov dword [esi], 0
push ebx
call fcn.10005a40
mov edx, dword [esi]
mov ecx, 0x100c0c94
push dword [edi + 0x5254]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [edi + 0x5260]
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.10005a40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10017b60
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov bl, byte [ecx]
or eax, 0xffffffff
push esi
lea esi, [ecx + 1]
push edi
mov edi, dword [0x100c0c98]
test bl, bl
je 0x10017ba6
or edi, 0xffffffff
cmp bl, 0x23
jne 0x10017b87
cmp byte [esi], bl
jne 0x10017b87
cmp byte [esi + 1], bl
cmove eax, edi
movzx edx, al
movzx ecx, bl
mov bl, byte [esi]
xor edx, ecx
shr eax, 8
inc esi
xor eax, dword [edx*4 + 0x100350e0]
test bl, bl
jne 0x10017b78
mov edi, dword [0x100c0c98]
mov esi, dword [edi + 0x5218]
xor ecx, ecx
not eax
test esi, esi
jle 0x10017bcc
mov edi, dword [edi + 0x5220]
lea edx, [edi + 4]
nop dword [eax]
cmp dword [edx], eax
je 0x10017bd2
inc ecx
add edx, 0x24
cmp ecx, esi
jl 0x10017bc0
pop edi
pop esi
xor eax, eax
pop ebx
ret
lea eax, [ecx + ecx*8]
lea eax, [edi + eax*4]
pop edi
pop esi
pop ebx
ret
Function at 0x100216e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1002171a
mov eax, dword [0x100c0c98]
mov dword [esi + 4], 0
mov dword [esi], 0
test eax, eax
je 0x1002170d
dec dword [eax + 0xb0]
push ecx
call edi
add esp, 4
mov dword [esi + 8], 0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x1002174b
mov eax, dword [0x100c0c98]
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
test eax, eax
je 0x1002173e
dec dword [eax + 0xb0]
push ecx
call edi
add esp, 4
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x1002177c
mov eax, dword [0x100c0c98]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
test eax, eax
je 0x1002176f
dec dword [eax + 0xb0]
push ecx
call edi
add esp, 4
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x100217c9
mov eax, dword [0x100c0c98]
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
test eax, eax
je 0x100217bc
dec dword [eax + 0xb0]
push ecx
call edi
add esp, 4
mov dword [esi + 0x44], 0
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x100217fa
mov eax, dword [0x100c0c98]
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
test eax, eax
je 0x100217ed
dec dword [eax + 0xb0]
push ecx
call edi
add esp, 4
mov dword [esi + 0x50], 0
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x1002182b
mov eax, dword [0x100c0c98]
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
test eax, eax
je 0x1002181e
dec dword [eax + 0xb0]
push ecx
call edi
add esp, 4
mov dword [esi + 0x5c], 0
pop edi
lea ecx, [esi + 0x78]
pop esi
jmp fcn.100242f0