joyce8/EMBER2024-capa huggingface dataset:
Function at 0x82900
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x86204
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00083980
xor eax, eax
push ebp
push 0x8626e
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.00083790
test eax, eax
jle 0x86258
mov edx, 1
mov ecx, dword [ebp - 4]
movzx ecx, byte [ecx + edx - 1]
xor ecx, 0x6521458a
add ebx, ecx
mov ecx, ebx
shl ecx, 0xd
mov esi, ebx
shr esi, 0x13
or ecx, esi
sub ebx, ecx
inc edx
dec eax
jne 0x86236
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x86275
lea eax, [ebp - 4]
call fcn.000834e4
ret
Function at 0x8ce7c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x8cfa5
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, ebx
mov eax, esi
call fcn.0008cd68
mov eax, dword [ebx]
call fcn.00083790
cmp eax, 4
jg 0x8cec7
mov eax, ebx
call fcn.000834e4
jmp 0x8cf8a
mov eax, dword [ebx]
call fcn.00083790
mov edi, eax
test edi, edi
jle 0x8cef1
mov esi, 1
mov eax, ebx
call fcn.000839e8
mov edx, dword [ebx]
mov dl, byte [edx + esi - 1]
xor dl, 0x5c
mov byte [eax + esi - 1], dl
inc esi
dec edi
jne 0x8ced9
mov eax, dword [ebx]
movzx esi, byte [eax + 2]
mov eax, dword [ebx]
movzx edi, byte [eax + 3]
mov eax, ebx
mov ecx, 4
mov edx, 1
call fcn.00083a30
mov eax, ebx
mov ecx, edi
mov edx, 1
call fcn.00083a30
push ebx
mov eax, dword [ebx]
mov ecx, esi
mov edx, 1
call fcn.000839f0
cmp dword [ebx], 0
je 0x8cf8a
mov eax, dword [ebp - 8]
call fcn.00083790
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00083790
add esi, eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebx]
mov ecx, esi
mov edx, 1
call fcn.000839f0
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.000837dc
mov edx, dword [ebp - 0x10]
pop eax
call fcn.000838dc
je 0x8cf7c
mov eax, ebx
call fcn.000834e4
jmp 0x8cf8a
mov eax, ebx
mov ecx, esi
mov edx, 1
call fcn.00083a30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x8cfac
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00083508
ret
Function at 0x97668
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00083980
xor eax, eax
push ebp
push 0x977e3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.000834e4
xor ebx, ebx
mov esi, 0x11
push esi
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x97648]
call fcn.00084804
add esp, 4
mov eax, dword [ebp - 0xc]
mov dword [eax], 0x99935097
mov eax, dword [ebp - 0xc]
mov dword [eax + 4], 0x2c89d95b
mov eax, dword [ebp - 0xc]
mov dword [eax + 8], 0x6df8e950
mov eax, dword [ebp - 0xc]
mov dword [eax + 0xc], 0xdf4eff82
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x10], 0xe8ead4ad
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x14], 0xbb07f9ad
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x18], 0xb746652e
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x1c], 0x7f612d05
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x20], 0xd7520332
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x24], 0x20278d52
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x28], 0xfe2bf75e
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x2c], 0xba2aac6b
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x30], 0xd1823480
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x34], 0x5ef1f8a2
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x38], 0x2ac162ac
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x3c], 0x6ea634c0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x40], 0xf10ecec6
dec esi
test esi, esi
jl 0x97784
inc esi
xor edi, edi
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + edi*4]
mov eax, dword [ebp - 4]
call fcn.0009757c
mov ebx, eax
test ebx, ebx
jne 0x97784
inc edi
dec esi
jne 0x9776c
test ebx, ebx
jne 0x977ad
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov edx, 0x977fc
call fcn.000837dc
mov eax, dword [ebp - 0x10]
mov ecx, 0x9781c
xor edx, edx
call fcn.00097d84
jmp 0x977b7
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.000974c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x977ea
lea eax, [ebp - 0x10]
call fcn.000834e4
lea eax, [ebp - 0xc]
mov edx, dword [0x97648]
call fcn.00084810
lea eax, [ebp - 4]
call fcn.000834e4
ret
Function at 0x4d1a30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x82000]
push edi
jmp 0x4d1a4a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4d1a51
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4d1a40
mov eax, 1
add ebx, ebx
jne 0x4d1a63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4d1a74
jne 0x4d1a93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4d1a93
dec eax
add ebx, ebx
jne 0x4d1a80
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4d1a58
add ebx, ebx
jne 0x4d1a8f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4d1ae5
xor ecx, ecx
sub eax, 3
jb 0x4d1aab
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4d1b1a
sar eax, 1
mov ebp, eax
jmp 0x4d1ab6
add ebx, ebx
jne 0x4d1ab6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4d1a84
inc ecx
add ebx, ebx
jne 0x4d1ac4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4d1a84
add ebx, ebx
jne 0x4d1ad1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4d1ac6
jne 0x4d1ae2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4d1ac6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4d1b04
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4d1af6
jmp 0x4d1a46
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4d1b04
add edi, ecx
jmp 0x4d1a46
pop esi
mov edi, esi
mov ecx, 0x4397
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4d1b22
cmp byte [edi], 0x17
jne 0x4d1b22
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4d1b27
lea edi, [esi + 0xce000]
mov eax, dword [edi]
or eax, eax
je 0x4d1b9f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xe51a0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xe52e0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4d1b54
mov ecx, edi
jns 0x4d1b83
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xe52e4]
or eax, eax
je 0x4d1b99
mov dword [ebx], eax
add ebx, 4
jmp 0x4d1b71
call dword [esi + 0xe52f4]
mov ebp, dword [esi + 0xe52e8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4d1bd3
sub esp, 0xffffff80
jmp 0x466457
Function at 0x4028b0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x48c9b4], eax
push 0
push 0x10000
push 0x40000
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [0x48c9b0], eax
mov eax, dword [0x40d394]
mov dword [0x48c9a0], eax
mov ecx, dword [0x40d398]
mov dword [0x48c9a4], ecx
mov edx, dword [0x40d39c]
mov dword [0x48c9a8], edx
mov eax, dword [0x40d3a0]
mov dword [0x48c9ac], eax
call fcn.0040a7d0
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + ecx]
push eax
call fcn.00403c50
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [0x48c9b0]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x402940
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, 0x10000
div ecx
test edx, edx
jne 0x40295f
mov edx, dword [ebp + 8]
mov dword [ebp - 8], edx
jmp 0x402979
mov ecx, dword [ebp + 8]
add ecx, 0x10000
mov eax, dword [ebp + 8]
xor edx, edx
mov esi, 0x10000
div esi
sub ecx, edx
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov dword [ebp - 4], edx
push 0x40
push 0x2000
mov eax, dword [ebp - 4]
add eax, 0x10000
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0xc], eax
push 0x40
push 0x1000
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 4]
sub eax, dword [ebp + 8]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4036d0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004034e0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4036f7
mov eax, dword [ebp - 8]
jmp 0x403804
push 0
push 0
push 0
push 2
push 0
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x40371f
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x403804
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x403745
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x403804
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
add eax, dword [edx + 0x3c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 0xf8
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 4]
add edx, 0x78
mov dword [ebp - 0x24], edx
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x50]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x34]
push ecx
call fcn.00403480
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x403794
mov eax, dword [ebp - 8]
jmp 0x403804
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x50]
push eax
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x54]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 6]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00403650
add esp, 0x10
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
mov dword [edx], eax
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x40aad0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 8]
jbe 0x40aae6
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
jmp 0x40aaec
mov edx, dword [ebp + 8]
mov dword [ebp - 8], edx
push 4
push 0x1000
mov eax, dword [ebp - 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 8]
push ecx
call dword [0x48c9a0]
add esp, 4
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x18], eax
mov edx, dword [ebp - 4]
mov eax, dword [0x48c97c]
mov dword [edx + 0x30], eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [0x48c9b4]
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esp, ebp
pop ebp
ret

Function at 0x40ab60
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x40d004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x48c9b4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x50], eax
lea ecx, [ebp + 0x10]
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp + 8]
push edx
push str.NATIVE__EMU_CALLBACK_THUNK:__p_
call fcn.00401040
add esp, 8
mov dword [ebp - 0x48], 0
jmp 0x40aba8
mov eax, dword [ebp - 0x48]
add eax, 1
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
cmp ecx, dword [ebp + 0xc]
jae 0x40abf5
mov edx, dword [ebp - 0x4c]
add edx, 4
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx - 4]
mov dword [ebp + eax*4 - 0x44], edx
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp + eax*4 - 0x44]
push ecx
push 0x48c5f8
call fcn.00401040
add esp, 8
mov edx, dword [ebp + 0xc]
sub edx, 1
cmp dword [ebp - 0x48], edx
je 0x40abf3
push 0x48c5f4
call fcn.00401040
add esp, 4
jmp 0x40ab9f
push 0x48c5f0
call fcn.00401040
add esp, 4
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x50]
push eax
call dword [0x48c9a8]
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ada5
mov esp, ebp
pop ebp
ret
Function at 0x40ac60
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [0x40d004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov eax, dword [0x48c9b4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0xdc], eax
imul esi, dword [ebp + 8], 0x88
add esi, 0x40d6f0
mov ecx, 0x22
lea edi, [ebp - 0xcc]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0xd4], 0x10
mov ecx, dword [ebp - 0xd4]
push ecx
lea edx, [ebp - 0x44]
push edx
mov eax, dword [ebp - 0xdc]
push eax
call dword [0x48c9a4]
add esp, 0xc
lea ecx, [ebp - 0x8c]
push ecx
lea edx, [ebp - 0xcc]
push edx
push str.Calling__s__s_
call fcn.00401040
add esp, 0xc
mov dword [ebp - 0xd0], 0
jmp 0x40acfc
mov eax, dword [ebp - 0xd0]
add eax, 1
mov dword [ebp - 0xd0], eax
mov ecx, dword [ebp - 0xd0]
cmp ecx, dword [ebp - 0x48]
jae 0x40ad3c
mov edx, dword [ebp - 0xd0]
mov eax, dword [ebp + edx*4 - 0x44]
push eax
push 0x48c5dc
call fcn.00401040
add esp, 8
mov ecx, dword [ebp - 0x48]
sub ecx, 1
cmp dword [ebp - 0xd0], ecx
je 0x40ad3a
push 0x48c5d8
call fcn.00401040
add esp, 4
jmp 0x40aced
push 0x48c5d4
call fcn.00401040
add esp, 4
mov edx, dword [ebp - 0xd4]
push edx
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.0040ac30
add esp, 0xc
mov dword [ebp - 0xd8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, dword [ebp - 0xd8]
push edx
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0xcc]
push ecx
push str.__s__s_returned__p____error_code___d__n
call fcn.00401040
add esp, 0x14
mov eax, dword [ebp - 0xd8]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ada5
mov esp, ebp
pop ebp
ret

Function at 0x40b685
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40b6c4
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40b6c4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40b6c4
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40b6c4
cmp dword [ecx + 0x74], 0xe
jbe 0x40b6c4
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4017a0
Capabilities:
Hash data using crc32b

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor ecx, ecx
mov dword [ebp - 4], ecx
nop
xor eax, eax
test cl, 1
je 0x4017bb
bts eax, 7
shr ecx, 1
test cl, 1
je 0x4017c6
bts eax, 6
shr ecx, 1
test cl, 1
je 0x4017d1
bts eax, 5
shr ecx, 1
test cl, 1
je 0x4017dc
bts eax, 4
shr ecx, 1
test cl, 1
je 0x4017e7
bts eax, 3
shr ecx, 1
test cl, 1
je 0x4017f2
bts eax, 2
shr ecx, 1
test cl, 1
je 0x4017fd
bts eax, 1
test cl, 2
je 0x401806
bts eax, 0
shl eax, 0x18
mov ecx, eax
add eax, eax
sar ecx, 0x1f
and ecx, 0x4c11db7
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [ecx + ecx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [edx + edx]
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [ecx + ecx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [edx + edx]
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [ecx + ecx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [edx + edx]
xor ecx, eax
mov ebx, ecx
sar ebx, 0x1f
and ebx, 0x4c11db7
lea eax, [ecx + ecx]
xor ebx, eax
mov eax, dword [ebp - 4]
xor edx, edx
lea esi, [edi + eax*4]
lea ecx, [edx + 1]
test bl, 1
je 0x4018a2
mov eax, 0x20
sub eax, ecx
bts edx, eax
inc ecx
shr ebx, 1
cmp ecx, 0x21
jl 0x401893
mov ecx, dword [ebp - 4]
inc ecx
mov dword [esi], edx
mov dword [ebp - 4], ecx
cmp ecx, 0xff
jle 0x4017b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4018d0
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push 0x42cdac
push dword [ebp + 8]
mov dword [ebp - 4], ecx
push eax
mov dword [edi], 0xffffffff
mov dword [ebp + 0xc], 0
call fcn.0040fb04
add esp, 0xc
test eax, eax
je 0x401909
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 0xc
push ebx
push 0x400
call fcn.0040fb4b
add esp, 4
mov ebx, eax
mov dword [ebp + 8], ebx
push dword [ebp + 0xc]
test ebx, ebx
jne 0x401935
call fcn.0040fd62
add esp, 4
xor al, al
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
push 0x400
push 1
push ebx
call fcn.0040ff6b
add esp, 0x10
test eax, eax
je 0x40198b
push esi
nop word [eax + eax]
mov esi, ebx
mov ebx, dword [edi]
lea esi, [esi + 1]
movzx ecx, byte [esi - 1]
movzx edx, bl
xor edx, ecx
shr ebx, 8
mov ecx, dword [ebp - 4]
xor ebx, dword [ecx + edx*4]
mov dword [edi], ebx
sub eax, 1
jne 0x401952
push dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push 0x400
push 1
push ebx
call fcn.0040ff6b
add esp, 0x10
test eax, eax
jne 0x401950
pop esi
push ebx
call fcn.004100a6
push dword [ebp + 0xc]
call fcn.0040fd62
not dword [edi]
add esp, 8
mov al, 1
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40b6e0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
push 0x100
lea ebx, [esi + 0xc]
push ebx
call fcn.00412932
add esp, 0xc
push 0
push 0x20
push 3
push 0
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40b738
push ebx
lea eax, [esi + 0x218]
push str.__s__Could_not_open_file_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x40b75b
push eax
call fcn.0040ca09
add esp, 4
mov dword [esi + 4], 0
push dword [esi + 8]
call fcn.0040ca0e
add esp, 4
mov dword [esi + 4], eax
lea ecx, [ebp + 8]
mov dword [ebp + 8], 0
push 0
push ecx
push dword [esi + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40b7ab
push ebx
lea eax, [esi + 0x218]
push str.__s__Could_not_read_file_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x10c], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
pop edi
mov dword [esi + 0x214], eax
mov al, 1
pop esi
pop ebx
pop ebp
ret 4

Function at 0x40d0de
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40d11d
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40d11d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40d11d
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40d11d
cmp dword [ecx + 0x74], 0xe
jbe 0x40d11d
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4106d2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00425040
mov eax, dword [0x432040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00417eae
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x410714
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x410870
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00424f90
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x665eb0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00419bb4
mov ecx, dword [esi*4 + 0x665eb0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x410869
cmp eax, dword [ecx + edi + 0x24]
jne 0x410869
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x410869
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00419bb4
add esp, 0x14
test edx, edx
jl 0x410869
jg 0x4107df
test eax, eax
jb 0x410869
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x410869
jl 0x4107f9
cmp dword [ebp - 0x1008], eax
ja 0x410869
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x410817
test ebx, ebx
je 0x410850
cmp ecx, edi
jae 0x410850
mov al, byte [ecx]
cmp al, 0xd
jne 0x410831
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41083d
cmp byte [ecx + 1], 0xa
jne 0x41083d
inc ecx
jmp 0x41083d
movzx eax, al
movsx eax, byte [eax + 0x432248]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x410817
cmp edx, ebx
jne 0x410817
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41086e
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040c79c
leave
ret