joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403c60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x408460]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x144]
push eax
push ecx
push 0
mov byte [ebp - 0x13d], 0
mov dword [ebp - 0x144], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x403d00
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x13c]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x403cc7
push ebx
lea ecx, [ebp - 0x13c]
push ecx
push 1
push esi
call edi
add esp, 0x10
mov byte [ebp - 0x13d], 1
lea edx, [ebp - 0x148]
push edx
mov dword [ebp - 0x148], 0
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x403cf7
mov eax, dword [ebp - 0x148]
mov edx, dword [ebp - 0x144]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
cmp byte [ebp - 0x13d], 0
jne 0x403d0b
push ebx
push 0
push 1
push esi
call edi
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040423b
mov esp, ebp
pop ebp
ret

Function at 0x403ee0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x408460]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x144]
push ecx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x403f6e
mov ecx, dword [ebp - 0x144]
lea edx, [ebp - 0x148]
push edx
lea eax, [ebp - 0x13c]
push eax
push 0
push ecx
mov dword [ebp - 0x148], 0x136
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x403f41
mov byte [ebp - 0x13d], 0
jmp 0x403f58
push ebx
lea edx, [ebp - 0x13c]
push edx
push 0
push esi
mov byte [ebp - 0x13d], 1
call edi
add esp, 0x10
mov eax, dword [ebp - 0x144]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x13d], 0
jne 0x403f79
push ebx
push 0
push 0
push esi
call edi
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040423b
mov esp, ebp
pop ebp
ret

Function at 0x40423b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x408460]
jne 0x404245
repz ret
jmp fcn.004046da

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..rdata
nop
nop
mov ebx, 0x407ef8
mov ecx, 0x40b76b33
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
nop
nop
nop
mov eax, section._RDATA
nop
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x68fc66a0
nop
test eax, eax
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e06c
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x401148
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x425044]
jne 0x401152
repz ret
jmp fcn.00403213

Function at 0x40b1e9
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00406a68
xor ebx, ebx
cmp dword [0x4274c8], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x40b2be
push 0x41db78
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x40b229
xor eax, eax
jmp 0x40b382
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41db6c
push edi
call esi
cmp eax, ebx
je 0x40b222
push eax
call fcn.00406a05
mov dword [esp], 0x41db5c
push edi
mov dword [0x4274c8], eax
call esi
push eax
call fcn.00406a05
mov dword [esp], 0x41db48
push edi
mov dword [0x4274cc], eax
call esi
push eax
call fcn.00406a05
mov dword [0x4274d0], eax
lea eax, [ebp - 8]
push eax
call fcn.00405081
test eax, eax
pop ecx
pop ecx
je 0x40b28c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403321
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x40b2be
push 0x41db2c
push edi
call esi
push eax
call fcn.00406a05
cmp eax, ebx
pop ecx
mov dword [0x4274d8], eax
je 0x40b2be
push 0x41db14
push edi
call esi
push eax
call fcn.00406a05
pop ecx
mov dword [0x4274d4], eax
mov eax, dword [0x4274d4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x40b337
cmp dword [0x4274d8], esi
je 0x40b337
push eax
call fcn.00406a71
pop ecx
call eax
cmp eax, ebx
je 0x40b304
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4274d8]
call fcn.00406a71
pop ecx
call eax
test eax, eax
je 0x40b304
test byte [ebp - 0x18], 1
jne 0x40b337
lea eax, [ebp - 0xc]
push eax
call fcn.004050b8
test eax, eax
pop ecx
je 0x40b31f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403321
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x40b32e
or dword [ebp + 0x10], 0x200000
jmp 0x40b368
or dword [ebp + 0x10], 0x40000
jmp 0x40b368
mov eax, dword [0x4274cc]
cmp eax, esi
je 0x40b368
push eax
call fcn.00406a71
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40b368
mov eax, dword [0x4274d0]
cmp eax, esi
je 0x40b368
push dword [ebp - 4]
push eax
call fcn.00406a71
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x4274c8]
call fcn.00406a71
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40dc90
Capabilities:
Get common file path
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x425044]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
xor edi, edi
push 0x206
lea eax, [esp + 0x12]
push edi
push eax
mov word [esp + 0x18], di
call fcn.004054f0
add esp, 0xc
cmp esi, edi
mov dword [esp + 4], edi
je 0x40dd5d
mov eax, 0x41ec60
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40dcd3
sub eax, edx
sar eax, 1
je 0x40dd5d
lea ecx, [esp + 0xc]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x41ec60
lea edx, [esp + 0x10]
push 0x104
push edx
call fcn.00401187
push 0x41ec58
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00401392
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0x40dd5d
push eax
push 1
push 0x200
push esi
call fcn.00401a63
mov edx, dword [esp + 0x14]
push edx
call fcn.00401af1
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00401148
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
xor ecx, esp
call fcn.00401148
add esp, 0x214
ret

Function at 0x40dd80
Capabilities:
Get common file path
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x425044]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
xor edi, edi
push 0x206
lea eax, [esp + 0x12]
push edi
push eax
mov word [esp + 0x18], di
call fcn.004054f0
add esp, 0xc
cmp esi, edi
mov dword [esp + 4], edi
je 0x40de83
mov eax, 0x41ec7c
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40ddc3
sub eax, edx
sar eax, 1
je 0x40de83
cmp dword [0x4260c0], 3
jne 0x40de0a
push 0x104
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x41ec4c
lea edx, [esp + 0x10]
push 0x104
push edx
call fcn.00401187
add esp, 0xc
jmp 0x40de1a
lea eax, [esp + 0xc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x41ec7c
lea ecx, [esp + 0x10]
push 0x104
push ecx
call fcn.00401187
push 0x41ec50
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00401392
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0x40de83
push eax
push 1
push 0x200
push esi
call fcn.00401a63
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00401af1
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00401148
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
xor ecx, esp
call fcn.00401148
add esp, 0x214
ret
Function at 0x40dea0
Capabilities:
Get common file path
Write file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x425044]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
xor esi, esi
push 0x206
lea eax, [esp + 0x12]
push esi
push eax
mov word [esp + 0x18], si
call fcn.004054f0
add esp, 0xc
cmp edi, esi
je 0x40df86
mov eax, 0x41ed00
mov dword [esp + 4], esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x40dee3
sub eax, edx
sar eax, 1
je 0x40df0d
push 0x41ec20
lea ecx, [esp + 8]
push 0x41ed00
push ecx
call fcn.00401392
add esp, 0xc
jmp 0x40df48
lea edx, [esp + 0xc]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x41ec28
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.00401187
push 0x41ec44
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.00401392
add esp, 0x18
mov eax, dword [esp + 4]
cmp eax, esi
je 0x40df6b
push eax
push 1
push 0x200
push edi
call fcn.00401c87
mov eax, dword [esp + 0x14]
push eax
call fcn.00401af1
add esp, 0x14
mov eax, 1
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00401148
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00401148
add esp, 0x214
ret

Function at 0x40dfa0
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
call edi
cmp eax, 0xffffffff
je 0x40dff3
push esi
call edi
cmp eax, 0xffffffff
je 0x40dfee
test al, 1
je 0x40dfbe
xor eax, 1
test al, 4
je 0x40dfc5
xor eax, 4
test al, 2
je 0x40dfcc
xor eax, 2
test al, 0x20
je 0x40dfd3
xor eax, 0x20
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
jne 0x40dff3
or eax, 0xffffffff
pop edi
ret
push 0
push 0
push 2
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
pop edi
ret
Function at 0x40e220
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
push esi
push edi
mov edi, eax
mov esi, edx
jne 0x40e22f
pop edi
xor eax, eax
pop esi
ret
cmp edi, 8
not esi
jb 0x40e317
push ebp
mov ebp, edi
shr ebp, 3
movzx edx, byte [ecx]
xor edx, esi
and edx, 0xff
add ecx, 1
mov eax, esi
shr eax, 8
xor eax, dword [edx*4 + 0x41f2e8]
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x41f2e8]
movzx edx, byte [ecx + 1]
xor edx, eax
and edx, 0xff
add ecx, 1
shr eax, 8
xor eax, dword [edx*4 + 0x41f2e8]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x41f2e8]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x41f2e8]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x41f2e8]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x41f2e8]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x41f2e8]
add ecx, 1
sub edi, 8
sub ebp, 1
mov esi, eax
jne 0x40e240
pop ebp
test edi, edi
je 0x40e33c
jmp 0x40e320
movzx eax, byte [ecx]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x41f2e8]
add ecx, 1
sub edi, 1
jne 0x40e320
mov eax, esi
pop edi
not eax
pop esi
ret

Function at 0x40e600
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x414
mov eax, dword [0x425044]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
mov ebx, dword [esp + 0x420]
push edi
mov edi, dword [esp + 0x420]
test edi, edi
je 0x40e63d
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40e63d
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x40e71a
mov ecx, ebx
mov edx, ebx
movzx eax, ax
cmp ax, 0x2f
je 0x40e65c
cmp ax, 0x5c
jne 0x40e65e
mov ecx, edx
movzx eax, word [edx + 2]
add edx, 2
test ax, ax
jne 0x40e650
cmp ecx, ebx
push esi
je 0x40e6a1
sub ecx, ebx
sar ecx, 1
add ecx, ecx
mov esi, ecx
push esi
lea eax, [esp + 0x218]
push ebx
push eax
call fcn.004066a0
lea ecx, [esp + 0x220]
push ecx
push edi
mov word [esp + esi + 0x228], 0
call fcn.0040e600
add esp, 0x14
test edi, edi
mov word [esp + 0xc], 0
je 0x40e6c3
lea edx, [esp + 0xc]
mov eax, edi
sub edx, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40e6b4
mov eax, ebx
mov edx, ebx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e6c7
lea edi, [esp + 0xc]
sub eax, edx
add edi, 0xfffffffe
jmp 0x40e6e0
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40e6e0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0xc]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
pop esi
jne 0x40e71a
push 0
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esp + 0x418]
pop edi
pop ebx
xor ecx, esp
call fcn.00401148
add esp, 0x414
ret
Function at 0x40e820
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ebx
imul esi, dword [esp + 8]
cmp byte [edi], 0
je 0x40e852
mov ecx, dword [edi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40e848
mov byte [edi + 8], 1
mov eax, dword [esp + 8]
xor edx, edx
div ebx
pop esi
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
push ebp
lea ebp, [ecx + esi]
cmp ebp, eax
pop ebp
jbe 0x40e865
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
push esi
add eax, ecx
push eax
push edx
call fcn.004066a0
add dword [edi + 0x1c], esi
mov eax, esi
add esp, 0xc
xor edx, edx
div ebx
pop esi
ret

Function at 0x40eb60
Capabilities:
Hash data with crc32

Disassembly:
mov eax, dword [edx]
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4210a8]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
add eax, 1
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x4210a8]
mov dword [edx + 8], ecx
ret

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

Disassembly:
test ecx, ecx
push esi
push edi
mov edi, eax
mov esi, edx
jne 0x40ebbf
pop edi
xor eax, eax
pop esi
ret
cmp edi, 8
not esi
jb 0x40eca7
push ebp
mov ebp, edi
shr ebp, 3
movzx edx, byte [ecx]
xor edx, esi
and edx, 0xff
add ecx, 1
mov eax, esi
shr eax, 8
xor eax, dword [edx*4 + 0x4210a8]
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4210a8]
movzx edx, byte [ecx + 1]
xor edx, eax
and edx, 0xff
add ecx, 1
shr eax, 8
xor eax, dword [edx*4 + 0x4210a8]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4210a8]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4210a8]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4210a8]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4210a8]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4210a8]
add ecx, 1
sub edi, 8
sub ebp, 1
mov esi, eax
jne 0x40ebd0
pop ebp
test edi, edi
je 0x40eccc
jmp 0x40ecb0
movzx eax, byte [ecx]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x4210a8]
add ecx, 1
sub edi, 1
jne 0x40ecb0
mov eax, esi
pop edi
not eax
pop esi
ret
Function at 0x40f690
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
cmp byte [esi], 0
je 0x40f6d5
cmp byte [esi + 1], 0
je 0x40f6dd
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebp
je 0x40f6f2
cmp byte [esi + 1], 0
je 0x40f6e4
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, eax
sub ebp, dword [esi + 0xc]
mov dword [esp + 4], ebp
jmp 0x40f6fb
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x40f6ae
or eax, 0xffffffff
add esp, 0x18
ret
mov dword [esp + 4], 0
mov ebp, dword [esp + 4]
jmp 0x40f6fb
mov eax, dword [esi + 0x1c]
mov dword [esp + 4], eax
mov ebp, eax
push edi
mov edi, 0xffff
cmp ebp, edi
mov dword [esp + 0xc], edi
jae 0x40f70f
mov dword [esp + 0xc], ebp
mov edi, ebp
push ebx
push 0x404
call fcn.00401743
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x40f72d
pop ebx
pop edi
or eax, 0xffffffff
pop ebp
add esp, 0x18
ret
mov eax, 4
cmp edi, eax
mov dword [esp + 0x18], 0xffffffff
jbe 0x40f843
jmp 0x40f750
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0xc]
add eax, 0x400
cmp eax, edi
mov dword [esp + 0x14], edi
ja 0x40f761
mov dword [esp + 0x14], eax
mov eax, ebp
sub eax, dword [esp + 0x14]
sub ebp, eax
cmp ebp, 0x404
mov dword [esp + 0x20], eax
jbe 0x40f77a
mov ebp, 0x404
cmp byte [esi], 0
je 0x40f79f
cmp byte [esi + 1], 0
je 0x40f843
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x40f7a2
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebp
je 0x40f7ca
mov ecx, dword [esi + 4]
push 0
lea eax, [esp + 0x20]
push eax
push ebp
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40f7c4
mov byte [esi + 8], 1
mov eax, dword [esp + 0x1c]
jmp 0x40f7f0
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebp]
cmp edx, ecx
jbe 0x40f7db
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
push edi
add ecx, eax
push ecx
push ebx
call fcn.004066a0
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebp
cmp eax, 1
jne 0x40f843
lea eax, [ebp - 3]
test eax, eax
jl 0x40f82e
sub eax, 1
cmp byte [eax + ebx], 0x50
jne 0x40f81e
cmp byte [eax + ebx + 1], 0x4b
jne 0x40f81e
cmp byte [eax + ebx + 2], 5
jne 0x40f81e
cmp byte [eax + ebx + 3], 6
je 0x40f824
test eax, eax
jge 0x40f800
jmp 0x40f82e
mov edx, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 0
jne 0x40f843
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jb 0x40f744
push ebx
call fcn.00401d43
mov eax, dword [esp + 0x1c]
add esp, 4
pop ebx
pop edi
pop ebp
add esp, 0x18
ret
Function at 0x40f860
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x40f893
mov edx, dword [esi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push edi
lea ecx, [esp + 0x13]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40f88d
mov byte [esi + 8], 1
mov edi, dword [esp + 8]
jmp 0x40f8bf
mov eax, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x1c]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x40f8a5
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0x14]
push edi
add edx, ebx
push edx
lea eax, [esp + 0x13]
push eax
call fcn.004066a0
add esp, 0xc
add ebx, edi
mov dword [esi + 0x1c], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x40f8d6
movzx ecx, byte [esp + 3]
mov edx, dword [esp + 0xc]
mov dword [edx], ecx
xor eax, eax
add esp, 8
ret
cmp byte [esi], 0
je 0x40f8d0
cmp byte [esi + 8], 0
je 0x40f8d0
or eax, 0xffffffff
add esp, 8
ret

Function at 0x40f8f0
Capabilities:
Hash data with crc32

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
xor al, bl
movzx ebx, al
xor ebx, edx
shr edx, 8
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x4210a8]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
add edx, 1
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x4210a8]
pop ebx
mov dword [esi + 8], ecx
ret

Function at 0x4127b0
Capabilities:
Get common file path

Disassembly:
cmp dword [esi], 0
push edi
jne 0x412863
cmp dword [esi + 4], 0xffffffff
jne 0x412863
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, edi
lea edx, [eax + 2]
jmp 0x4127e0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4127e0
sub eax, edx
sar eax, 1
movzx eax, word [esi + eax*2 + 0x242]
cmp ax, 0x5c
je 0x412819
cmp ax, 0x2f
je 0x412819
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x412806
mov eax, dword [0x421540]
mov dword [edi], eax
push 0x20
call fcn.00401fcc
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
add esp, 4
mov byte [eax], 0
mov byte [eax + 1], 1
mov byte [eax + 0x10], 0
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], edx
mov dword [eax + 0x1c], 0
mov dword [eax + 0xc], 0
call fcn.00411e70
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop edi
ret 8
mov eax, 0x1000000
pop edi
ret 8
Function at 0x412870
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push edi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x41288e
pop edi
pop ebp
mov eax, 0xffffff9a
pop ebx
add esp, 0xc
ret
cmp dword [edi + 0x18], ebx
je 0x412882
cmp dword [edi + 0x7c], ebx
je 0x41289d
call fcn.00411a70
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00410f90
add esp, 0xc
test eax, eax
je 0x4128c4
pop edi
pop ebp
mov eax, 0xffffff99
pop ebx
add esp, 0xc
ret
push esi
push 0x84
call fcn.00401743
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x412905
push 0x4000
call fcn.00401743
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
add esp, 4
cmp eax, ebx
mov dword [esi], eax
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ebx
jne 0x412912
push esi
call fcn.00401d43
add esp, 4
pop esi
pop edi
pop ebp
mov eax, 0xffffff98
pop ebx
add esp, 0xc
ret
mov dword [esi + 0x40], ebx
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp dword [edi + 0x34], ebx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [esi + 0x64], edx
mov ecx, dword [edi]
mov dword [esi + 0x60], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0x68], edx
mov dword [esi + 0x18], ebx
cmp eax, ebx
jne 0x41295a
lea eax, [esi + 4]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.00412100
test eax, eax
jne 0x41295a
mov dword [esi + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [esi + 0x58], eax
mov ecx, dword [edi + 0x44]
mov dword [esi + 0x5c], ecx
mov dl, byte [edi + 0x30]
and dl, 1
mov byte [esi + 0x6c], dl
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0x412984
mov cl, byte [edi + 0x39]
mov byte [esi + 0x80], cl
jmp 0x41298d
mov dl, byte [edi + 0x3f]
mov byte [esi + 0x80], dl
mov al, byte [esi + 0x6c]
neg al
lea edx, [esi + 0x70]
mov dword [edx], 0x12345678
mov dword [esi + 0x74], 0x23456789
mov dword [esi + 0x78], 0x34567890
sbb eax, eax
and eax, 0xc
cmp ebp, ebx
mov dword [esi + 0x7c], eax
je 0x4129c6
mov cl, byte [ebp]
cmp cl, bl
je 0x4129c6
call fcn.0040eb60
add ebp, 1
jne 0x4129b5
mov ecx, dword [edi + 0x78]
mov edx, dword [esp + 0x18]
lea eax, [ecx + edx + 0x1e]
mov dword [esi + 0x3c], eax
mov dword [esi + 8], ebx
mov dword [edi + 0x7c], esi
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret