joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427d90
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfc
mov eax, dword [0x46af24]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.MSVCR100.dll__filelength]
add esp, 4
test eax, eax
jle 0x427fa4
test ebx, ebx
je 0x427fa4
cmp dword [ebp + 0x10], 0x10
jg 0x427fa4
push esi
push 0x200
call dword [sym.imp.MSVCR100.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x427df8
lea eax, [esi + 4]
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004534b8
mov esp, ebp
pop ebp
ret
push 0
push 0
push edi
call dword [sym.imp.MSVCR100.dll__lseek]
push 0x40
push esi
push edi
call dword [sym.imp.MSVCR100.dll__read]
add esp, 0x18
cmp eax, 0x40
jne 0x427eac
movzx eax, word [esi]
mov ecx, 0x4d5a
cmp ax, cx
je 0x427e5e
mov edx, 0x5a4d
cmp ax, dx
je 0x427e5e
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push eax
push ecx
push ebx
push edi
call fcn.00427c90
push esi
mov edi, eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 0x14
pop esi
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004534b8
mov esp, ebp
pop ebp
ret
cmp word [esi + 8], 4
jb 0x427f75
movzx eax, word [esi + 0x18]
cmp eax, 0x40
jae 0x427e82
movzx edx, word [esi + 6]
lea ecx, [eax + edx*4]
cmp ecx, 0x3c
jg 0x427f75
mov edx, dword [esi + 0x3c]
push 0
push edx
push edi
call dword [sym.imp.MSVCR100.dll__lseek]
push 0xf8
lea eax, [ebp - 0xfc]
push eax
push edi
call dword [sym.imp.MSVCR100.dll__read]
add esp, 0x18
cmp eax, 0xf8
je 0x427ecc
push esi
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
pop esi
pop edi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004534b8
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0xfc], 0x4550
jne 0x427f43
mov ax, word [ebp - 0xf8]
mov ecx, 0x14c
cmp ax, cx
je 0x427efd
mov edx, 0x14d
cmp ax, dx
je 0x427efd
mov ecx, 0x14e
cmp ax, cx
jne 0x427f43
mov edx, 0x10b
cmp word [ebp - 0xe4], dx
jne 0x427f43
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push eax
push ecx
push ebx
lea edx, [ebp - 0xfc]
push edx
push edi
call fcn.00427a90
add esp, 0x14
push esi
mov edi, eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
pop esi
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004534b8
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push eax
push ecx
push ebx
push esi
push edi
call fcn.00427970
add esp, 0x14
push esi
mov edi, eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
pop esi
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004534b8
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
push edx
push eax
push ebx
push esi
push edi
call fcn.00427970
push esi
mov edi, eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 0x18
pop esi
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004534b8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 8
pop ebx
call fcn.004534b8
mov esp, ebp
pop ebp
ret
Function at 0x427fc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x46af24]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push eax
mov byte [ebp - 0x14], 0
call dword [sym.imp.MSVCR100.dll__filelength]
add esp, 4
test eax, eax
jle 0x4280c5
cmp eax, edi
jle 0x4280c5
test ebx, ebx
je 0x4280c5
cmp dword [ebp + 0x14], 0x10
jg 0x4280c5
push esi
mov esi, eax
sub esi, edi
push esi
call dword [sym.imp.MSVCR100.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
jne 0x428046
pop esi
lea eax, [edi + 4]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004534b8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
push esi
push edi
push ecx
call dword [sym.imp.MSVCR100.dll__read]
add esp, 0xc
cmp eax, esi
je 0x428079
push edi
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
pop esi
pop edi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004534b8
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x6c]
push edx
call fcn.00429300
push esi
lea eax, [ebp - 0x6c]
push edi
push eax
call fcn.00429a10
lea ecx, [ebp - 0x6c]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.00429ac0
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x14]
push ecx
push ebx
call sub.MSVCR100.dll_memcpy
push edi
call dword [sym.imp.MSVCR100.dll_free]
add esp, 0x28
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004534b8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 8
pop ebx
call fcn.004534b8
mov esp, ebp
pop ebp
ret
Function at 0x428f30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
xor edi, edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
cmp dword [ebp + 8], edi
je 0x428f63
cmp dword [ebp + 0x14], edi
je 0x428f63
mov ebx, dword [ebp + 0xc]
cmp ebx, 0xffffffff
je 0x428f63
push edi
push edi
push ebx
call dword [sym.imp.MSVCR100.dll__lseek]
add esp, 0xc
cmp eax, 0xffffffff
jne 0x428f78
mov eax, dword [ebp + 0x1c]
cmp eax, edi
je 0x428f70
mov dword [eax], 4
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0xc], esi
test esi, esi
jne 0x428fc3
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push esi
push eax
push ebx
call dword [sym.imp.MSVCR100.dll__read]
add esp, 0xc
cmp eax, 0xffffffff
je 0x429080
cmp eax, esi
jne 0x429080
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 4]
pop esi
pop edi
mov dword [ecx], edx
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0xc]
mov eax, dword [esi]
mov ecx, dword [ebp + 0x10]
cmp eax, ecx
jae 0x429024
test eax, eax
je 0x429006
mov ecx, dword [ebp - 8]
add ecx, dword [ebp + 8]
sub eax, edi
push eax
push ecx
push ebx
call dword [sym.imp.MSVCR100.dll__read]
add esp, 0xc
cmp eax, 0xffffffff
je 0x429080
mov ecx, dword [esi]
mov edx, ecx
sub edx, edi
cmp eax, edx
jne 0x429080
sub ecx, edi
add dword [ebp - 8], ecx
add dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov edi, dword [esi + 8]
dec ecx
cmp edi, ecx
jae 0x428fa9
push 0
inc edi
push edi
push ebx
call dword [sym.imp.MSVCR100.dll__lseek]
add esp, 0xc
cmp eax, 0xffffffff
je 0x429080
mov ecx, dword [ebp + 0x10]
cmp dword [esi + 0x10], 0
je 0x42902e
cmp dword [esi], ecx
jb 0x429060
mov eax, dword [ebp - 8]
add eax, dword [ebp + 8]
mov esi, ecx
sub esi, edi
push esi
push eax
push ebx
call dword [sym.imp.MSVCR100.dll__read]
add esp, 0xc
cmp eax, 0xffffffff
je 0x429080
cmp eax, esi
jne 0x429080
add dword [ebp - 4], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0xc]
cmp dword [eax], edx
jae 0x428fa9
mov esi, eax
mov esi, dword [esi + 0x10]
mov dword [ebp - 0xc], esi
test esi, esi
jne 0x428fc0
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 4]
lea eax, [esi + 1]
pop esi
pop edi
mov dword [ecx], edx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x42908d
mov dword [eax], 0xd
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x429300
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret
Function at 0x42a540
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x46af24]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x5c], eax
mov eax, esi
shr eax, 6
xor ebx, ebx
push edi
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x58], 0x67452301
mov dword [ebp - 0x54], 0xefcdab89
mov dword [ebp - 0x50], 0x98badcfe
mov dword [ebp - 0x4c], 0x10325476
test eax, eax
je 0x42a5a8
mov edi, ecx
mov dword [ebp - 0x48], eax
mov ebx, eax
lea ecx, [ebp - 0x58]
push edi
push ecx
call fcn.00429e10
add esp, 8
add edi, 0x40
dec dword [ebp - 0x48]
jne 0x42a590
mov ecx, dword [ebp - 0x60]
mov edi, esi
and edi, 0x3f
shl ebx, 6
push edi
add ebx, ecx
lea edx, [ebp - 0x44]
push ebx
push edx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
lea ebx, [ebp + edi - 0x44]
cmp edi, 0x38
jae 0x42a5fe
mov eax, 0x38
sub eax, edi
push eax
push 0
push ebx
call sub.MSVCR100.dll_memset
lea edx, [ebp - 0x44]
lea ecx, [esi*8]
push edx
lea eax, [ebp - 0x58]
mov byte [ebx], 0x80
shr esi, 0x1d
push eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], esi
call fcn.00429e10
add esp, 0x14
jmp 0x42a64b
mov ecx, 0x40
sub ecx, edi
push ecx
push 0
push ebx
call sub.MSVCR100.dll_memset
lea edx, [ebp - 0x44]
push edx
lea eax, [ebp - 0x58]
push eax
mov byte [ebx], 0x80
call fcn.00429e10
push 0x38
lea ecx, [ebp - 0x44]
push 0
push ecx
call sub.MSVCR100.dll_memset
lea eax, [ebp - 0x44]
lea edx, [esi*8]
push eax
lea ecx, [ebp - 0x58]
shr esi, 0x1d
push ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], esi
call fcn.00429e10
add esp, 0x28
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x58]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x4c]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 4]
pop edi
mov dword [eax], edx
mov edx, dword [ebp - 0x50]
pop esi
xor ecx, ebp
mov dword [eax + 8], edx
pop ebx
call fcn.004534b8
mov esp, ebp
pop ebp
ret
Function at 0x42c5a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp edi, 0xffffffff
je 0x42c753
cmp dword [ebp + 0xc], ebx
je 0x42c753
cmp dword [ebp + 0x10], ebx
je 0x42c753
push esi
push 0x40
call dword [sym.imp.MSVCR100.dll_malloc]
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x42c64a
push ebx
push ebx
push edi
call dword [sym.imp.MSVCR100.dll__lseek]
add esp, 0xc
cmp eax, 0xffffffff
je 0x42c640
push 0x40
push esi
push edi
call dword [sym.imp.MSVCR100.dll__read]
add esp, 0xc
cmp eax, 0x40
jne 0x42c640
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x42c73d
mov eax, dword [esi + 0x3c]
lea ecx, [eax + 0x58]
add eax, 0x18
push ebx
push eax
push edi
mov dword [ebp - 8], ecx
call dword [sym.imp.MSVCR100.dll__lseek]
add esp, 0xc
cmp eax, 0xffffffff
je 0x42c640
push 4
lea edx, [ebp - 4]
push edx
push edi
call dword [sym.imp.MSVCR100.dll__read]
add esp, 0xc
cmp eax, 4
je 0x42c653
push esi
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x10b
cmp word [ebp - 4], ax
mov eax, dword [esi + 0x3c]
jne 0x42c668
add eax, 0x98
jmp 0x42c66d
add eax, 0xa8
push esi
mov dword [ebp + 8], eax
call dword [sym.imp.MSVCR100.dll_free]
mov ecx, dword [ebp + 8]
push ebx
push ecx
push edi
call dword [sym.imp.MSVCR100.dll__lseek]
add esp, 0x10
cmp eax, 0xffffffff
je 0x42c64a
push 8
lea edx, [ebp - 0x10]
push edx
push edi
call dword [sym.imp.MSVCR100.dll__read]
add esp, 0xc
cmp eax, 8
jne 0x42c64a
mov esi, dword [sym.imp.MSVCR100.dll_malloc]
push 0x14
call esi
add esp, 4
cmp eax, ebx
je 0x42c64a
mov ecx, dword [ebp - 8]
mov edi, dword [ebp + 0xc]
mov dword [eax], ecx
add ecx, 3
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
push 0x14
mov dword [edi], eax
call esi
add esp, 4
cmp eax, ebx
je 0x42c64a
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
add ecx, 7
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov ecx, dword [edi]
mov dword [ecx + 0x10], eax
cmp dword [ebp - 0x10], ebx
je 0x42c747
push 0x14
call esi
add esp, 4
cmp eax, ebx
je 0x42c64a
mov edx, dword [ebp - 0x10]
mov dword [eax + 4], ebx
mov dword [eax], edx
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
lea ecx, [edx + ecx - 1]
mov dword [eax + 8], ecx
mov edx, dword [edi]
mov ecx, dword [edx + 0x10]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x10]
pop esi
pop edi
mov dword [eax], edx
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
pop esi
pop edi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42e301
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x456b9e
call fcn.00453845
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x44], edi
je 0x42e3f3
cmp byte [esi + 0x49], 0
je 0x42e3f3
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x42e337
xor al, al
jmp 0x42e3f5
push edi
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x2c], 0
call fcn.0042e130
mov dword [ebp - 4], edi
lea ebx, [esi + 0x4c]
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x42e395
lea eax, [ebp - 0x2c]
mov ecx, eax
add eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x30]
push edx
push eax
push ecx
mov ecx, dword [esi + 0x44]
push ebx
call dword [sym.imp.MSVCP100.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x42e39a
dec eax
je 0x42e39e
dec eax
dec eax
je 0x42e3ef
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0042df39
mov al, bl
jmp 0x42e3f5
mov ecx, dword [ebp - 0x2c]
jmp 0x42e364
mov byte [esi + 0x49], 0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x42e3aa
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x30]
sub edi, eax
je 0x42e3d1
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x42e3bd
lea eax, [ebp - 0x2c]
push dword [esi + 0x54]
push edi
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x42e383
cmp byte [esi + 0x49], 0
je 0x42e3ef
test edi, edi
jne 0x42e356
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.0042e0cf
jmp 0x42e356
mov bl, 1
jmp 0x42e385
mov al, 1
call fcn.004538c8
ret
Function at 0x42e9e1
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x46af24]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push 0x2c
pop eax
xor ebx, ebx
push 0x40
mov word [ebp - 0x4c], ax
lea eax, [ebp - 0x44]
push ebx
push eax
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
call sub.MSVCR100.dll_memset
add esp, 0xc
cmp esi, ebx
je 0x42eb7e
cmp edi, ebx
je 0x42eb88
push ebx
push ebx
push 3
push ebx
push 3
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x50], eax
cmp eax, 0xffffffff
jne 0x42ea53
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
jmp 0x42eb88
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [ebp - 0x54], esi
shr esi, 4
inc esi
shl esi, 4
push esi
call dword [sym.imp.MSVCR100.dll_malloc]
mov edi, eax
pop ecx
cmp edi, ebx
jne 0x42ea84
call dword [sym.imp.MSVCR100.dll__errno]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x48]
mov dword [ecx], eax
jmp 0x42ead5
push esi
push ebx
push edi
call sub.MSVCR100.dll_memset
add esp, 0xc
push ebx
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x54]
push edi
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42eaad
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x42ea7d
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x48]
push 0x46a414
mov dword [eax], ebx
call fcn.0042ed24
mov esi, eax
pop ecx
cmp esi, ebx
jne 0x42eaf3
mov eax, dword [ebp - 0x48]
mov dword [eax], 0xa
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
je 0x42eb88
push edi
call dword [sym.imp.MSVCR100.dll_free]
pop ecx
jmp 0x42eb88
push dword [ebp - 0x54]
push edi
push esi
call fcn.0042edef
push esi
call fcn.0042eddd
add esp, 0x10
cmp dword [edi], 0x414e5369
jne 0x42eb70
cmp dword [edi + 4], 0x64
jne 0x42eb70
cmp dword [ebp + 0xc], 0xffffffff
jne 0x42eb1e
mov eax, edi
jmp 0x42eb8a
push 0xffffffffffffffff
lea eax, [edi + 0xc]
push eax
lea eax, [ebp - 0x44]
push 0x40
push eax
call dword [sym.imp.MSVCR100.dll_strncpy_s]
mov esi, dword [sym.imp.MSVCR100.dll_strtok_s]
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x44]
push eax
call esi
add esp, 0x1c
jmp 0x42eb6c
mov ecx, dword [ebp + 0xc]
cmp dword [edi + 0x2c], ecx
je 0x42eb1a
push eax
call dword [sym.imp.MSVCR100.dll_atoi]
pop ecx
cmp eax, dword [ebp + 0xc]
je 0x42eb1a
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x4c]
push eax
push ebx
call esi
add esp, 0xc
cmp eax, ebx
jne 0x42eb49
mov eax, dword [ebp - 0x48]
mov dword [eax], 0xb
jmp 0x42eae6
cmp edi, ebx
je 0x42eb88
mov dword [edi], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004534b8
leave
ret
Function at 0x42eee3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor eax, eax
push esi
mov dword [ebp - 4], eax
push edi
cmp dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
jne 0x42eefb
mov ecx, dword [ebp + 0xc]
push 4
xor eax, ecx
pop edi
mov edx, eax
shr edx, 0x18
mov cl, dl
and cl, 0x80
movzx esi, dl
movzx ecx, cl
neg ecx
sbb ecx, ecx
and dl, 1
and ecx, 0x14d
movzx edx, dl
lea ebx, [esi + esi]
xor ecx, ebx
and ecx, 0xff
neg edx
sbb edx, edx
and edx, 0xa6
mov ebx, esi
shr ebx, 1
xor edx, ebx
xor edx, ecx
mov ebx, edx
shl ebx, 8
xor ebx, ecx
shl ebx, 8
xor ebx, edx
xor eax, ebx
shl eax, 8
xor eax, esi
dec edi
jne 0x42ef00
inc dword [ebp - 4]
cmp dword [ebp - 4], 2
jl 0x42eeef
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42ef61
Capabilities:
Encode data using xor
Encrypt data using twofish

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
mov bl, byte [edi + 0x46a428]
mov al, bl
and al, 2
neg al
sbb al, al
and al, 0xb4
mov byte [ebp - 1], bl
and byte [ebp - 1], 1
mov dl, bl
mov esi, edi
sete cl
dec cl
and cl, 0x5a
shr dl, 2
xor dl, cl
xor dl, al
xor dl, bl
mov byte [ebp - 3], cl
mov cl, bl
shr cl, 1
xor cl, bl
shr cl, 1
cmp byte [ebp - 1], 0
sete bl
dec bl
and bl, 0xb4
xor cl, bl
xor cl, byte [ebp - 3]
mov bl, byte [edi + 0x46a528]
xor cl, al
xor cl, byte [edi + 0x46a428]
mov al, bl
and al, 2
neg al
sbb al, al
and al, 0xb4
mov byte [ebp - 3], al
mov byte [ebp - 1], bl
and byte [ebp - 1], 1
sete al
dec al
and al, 0x5a
mov byte [ebp - 2], al
mov al, bl
shr al, 2
xor al, byte [ebp - 2]
xor al, byte [ebp - 3]
xor al, bl
mov byte [ebp - 7], al
mov al, bl
shr al, 1
xor al, bl
shr al, 1
cmp byte [ebp - 1], 0
sete bl
dec bl
and bl, 0xb4
xor al, bl
xor al, byte [ebp - 2]
mov bl, byte [edi + 0x46a528]
xor al, byte [ebp - 3]
mov byte [ebp - 0xc], bl
xor al, bl
mov bl, byte [ebp - 7]
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], al
mov byte [ebp - 9], al
mov ebx, dword [ebp - 0xc]
mov dword [esi*4 + 0x46e0a0], ebx
mov bl, byte [edi + 0x46a428]
mov byte [ebp - 9], bl
mov byte [ebp - 0xc], cl
mov byte [ebp - 0xb], cl
mov byte [ebp - 0xa], dl
mov ebx, dword [ebp - 0xc]
mov dword [esi*4 + 0x46e4a0], ebx
mov bl, byte [ebp - 7]
mov byte [ebp - 0xc], bl
mov bl, byte [edi + 0x46a528]
mov byte [ebp - 0xb], al
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], al
mov eax, dword [ebp - 0xc]
mov dword [esi*4 + 0x46e8a0], eax
mov al, byte [edi + 0x46a428]
mov byte [ebp - 0xc], dl
mov byte [ebp - 0xb], al
mov byte [ebp - 0xa], cl
mov byte [ebp - 9], dl
mov eax, dword [ebp - 0xc]
inc edi
mov dword [esi*4 + 0x46eca0], eax
cmp edi, 0x100
jl 0x42ef6c
and dword [0x46a628], 0
pop edi
pop esi
pop ebx
leave
ret
Function at 0x431a10
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push 0
lea ecx, [ebp - 8]
push ecx
push edx
push esi
mov dword [ebp - 4], 0
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x431a48
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
mov edx, dword [eax + 8]
cmp dword [eax], 0
mov eax, dword [eax + 4]
push 0
lea ecx, [ebp - 4]
push ecx
push edx
push eax
push esi
je 0x431a67
call dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x431a6d
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x431a3d
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x431a80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x10]
mov edx, dword [ebp + 8]
push esi
mov esi, dword [edx]
push edi
mov edi, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
push 0
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push ecx
push esi
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x431abc
pop edi
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
lea ecx, [ebp + 8]
push ecx
push 0x4000
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop edi
pop esi
test eax, eax
jne 0x431adc
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop ebp
ret

Function at 0x431eb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor eax, eax
push esi
mov dword [ebp - 4], eax
push edi
mov edi, edi
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x14]
cmp dword [ecx + eax + 0x20], 0
lea esi, [ecx + eax + 8]
je 0x431f20
mov edi, dword [edx]
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov ebx, dword [esi + 0xc]
push 0
lea edx, [ebp - 8]
push edx
push eax
push edi
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x431f10
push 0
lea eax, [ebp - 0xc]
push eax
push 0x4000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x431f16
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 4]
mov dword [esi + 0x18], 0
add eax, 0x20
mov dword [ebp - 4], eax
cmp eax, 0x4000
jl 0x431ec0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret