joyce8/EMBER2024-capa huggingface dataset:
Function at 0x442a40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [ebp - 8], esi
mov ecx, eax
test eax, eax
jne 0x442a5d
xor ebx, ebx
mov dword [ebp - 0xc], ebx
jmp 0x442a75
cmp byte [eax], 0
je 0x442a68
inc ecx
cmp byte [ecx], 0
jne 0x442a62
sub ecx, eax
and ecx, 0x3fffffff
mov ebx, ecx
mov dword [ebp - 0xc], ecx
mov ecx, dword [edx + 4]
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], ecx
test ecx, ecx
jle 0x442b57
mov ecx, dword [edx + 8]
mov dword [ebp - 0x10], ecx
push edi
nop
mov ecx, eax
cmp eax, 2
jge 0x442a9a
xor ecx, 1
mov edx, dword [ebp + 0xc]
shl ecx, 4
add ecx, dword [ebp - 0x10]
mov edi, dword [ecx + 0xc]
test edx, edx
je 0x442aea
mov esi, dword [ecx]
mov cl, byte [edx]
test cl, cl
je 0x442ad2
movzx eax, byte [esi]
movzx ecx, cl
mov cl, byte [ecx + 0x49cf10]
cmp cl, byte [eax + 0x49cf10]
jne 0x442acf
mov cl, byte [edx + 1]
inc edx
inc esi
test cl, cl
jne 0x442ab2
mov eax, dword [ebp - 4]
movzx edx, byte [edx]
movzx ecx, byte [esi]
movzx ecx, byte [ecx + 0x49cf10]
movzx edx, byte [edx + 0x49cf10]
sub edx, ecx
jne 0x442b46
cmp dword [edi + 0x24], 0
lea esi, [edi + 0x18]
je 0x442b24
mov ecx, dword [ebp + 8]
xor eax, eax
mov edx, ebx
test ebx, ebx
jle 0x442b1e
mov edi, edi
movzx edi, byte [ecx]
movzx edi, byte [edi + 0x49cf10]
lea ebx, [eax*8]
xor edi, ebx
dec edx
xor eax, edi
inc ecx
test edx, edx
jg 0x442b00
mov ebx, dword [ebp - 0xc]
xor edx, edx
div dword [esi]
jmp 0x442b26
xor edx, edx
mov eax, dword [ebp + 8]
push ebx
push eax
mov eax, esi
call fcn.004101f0
add esp, 8
test eax, eax
je 0x442b5d
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
test eax, eax
jne 0x442b56
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [ebp - 0x14]
jl 0x442a90
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 8], 0
jmp 0x442b43
Function at 0x442b70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
add eax, eax
push edi
mov edi, dword [edx + eax*8 + 0xc]
add edi, 0x18
mov dword [ebp - 8], edi
mov eax, esi
test esi, esi
je 0x442ba5
cmp byte [esi], 0
je 0x442b9e
inc eax
cmp byte [eax], 0
jne 0x442b98
sub eax, esi
and eax, 0x3fffffff
cmp dword [edi], 0
mov dword [ebp - 4], eax
je 0x442be9
mov edx, eax
xor eax, eax
mov ecx, esi
cmp edx, eax
jle 0x442bde
jmp 0x442bc0
movzx edi, byte [ecx]
movzx edi, byte [edi + 0x49cf10]
lea ebx, [eax*8]
xor edi, ebx
dec edx
xor eax, edi
inc ecx
test edx, edx
jg 0x442bc0
mov edi, dword [ebp - 8]
xor edx, edx
div dword [edi]
mov eax, dword [ebp - 4]
mov ebx, edx
jmp 0x442beb
xor ebx, ebx
push eax
push esi
mov edx, ebx
mov eax, edi
call fcn.004101f0
add esp, 8
test eax, eax
je 0x442c5d
mov esi, dword [eax + 8]
mov edx, ebx
mov ecx, edi
call fcn.00410290
test esi, esi
je 0x442c5d
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx + 0x10]
cmp eax, esi
jne 0x442c1f
mov eax, dword [esi + 0x20]
mov dword [ecx + 0x10], eax
jmp 0x442c38
test eax, eax
je 0x442c38
mov ecx, dword [eax + 0x20]
cmp ecx, esi
je 0x442c32
mov eax, ecx
test eax, eax
jne 0x442c23
jmp 0x442c38
mov ecx, dword [esi + 0x20]
mov dword [eax + 0x20], ecx
mov edx, dword [esi + 0x1c]
mov edi, dword [ebp + 8]
push edx
push edi
call fcn.0040cdd0
push esi
push edi
call fcn.0040cdd0
add esp, 0x10
or dword [edi + 0xc], 0x200
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
or dword [eax + 0xc], 0x200
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x442e50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
test ebx, ebx
je 0x442fff
mov esi, dword [ebp + 8]
test esi, esi
je 0x442e77
cmp dword [esi + 0x1f8], 0
jne 0x442e86
mov eax, 0xffff
add word [ebx + 0x20], ax
jne 0x442fff
mov edi, dword [ebx + 0x10]
mov dword [esp + 0x10], edi
test edi, edi
je 0x442f5b
mov ecx, dword [edi + 0x20]
mov dword [esp + 0x14], ecx
test esi, esi
je 0x442ead
cmp dword [esi + 0x1f8], 0
jne 0x442f37
mov ecx, dword [edi]
mov eax, ecx
test ecx, ecx
jne 0x442ebb
mov dword [esp + 0xc], ecx
jmp 0x442ed1
cmp byte [ecx], 0
je 0x442ec6
inc eax
cmp byte [eax], 0
jne 0x442ec0
sub eax, ecx
and eax, 0x3fffffff
mov dword [esp + 0xc], eax
mov esi, dword [edi + 0x24]
cmp dword [esi + 0x18], 0
je 0x442f0c
mov edx, dword [esp + 0xc]
xor eax, eax
cmp edx, eax
jle 0x442f03
movzx edi, byte [ecx]
movzx edi, byte [edi + 0x49cf10]
lea ebx, [eax*8]
xor edi, ebx
dec edx
xor eax, edi
inc ecx
test edx, edx
jg 0x442ee4
mov edi, dword [esp + 0x10]
xor edx, edx
div dword [esi + 0x18]
mov ebx, edx
jmp 0x442f0e
xor ebx, ebx
mov edx, dword [esp + 0xc]
mov eax, dword [edi]
push edx
push eax
mov edx, ebx
lea eax, [esi + 0x18]
call fcn.004101f0
add esp, 8
test eax, eax
je 0x442f31
mov edx, ebx
lea ecx, [esi + 0x18]
call fcn.00410290
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov eax, dword [edi + 0x1c]
push eax
push esi
call fcn.0040cdd0
push edi
push esi
call fcn.0040cdd0
mov edi, dword [esp + 0x24]
add esp, 0x10
mov dword [esp + 0x10], edi
test edi, edi
jne 0x442e95
push ebx
mov eax, esi
call fcn.0044e6f0
add esp, 4
push ebx
mov edi, esi
call fcn.00442de0
mov ecx, dword [ebx]
add esp, 4
push ecx
push esi
call fcn.0040cdd0
mov edx, dword [ebx + 0x28]
push edx
push esi
call fcn.0040cdd0
mov edi, dword [ebx + 0x1c]
add esp, 0x10
test edi, edi
je 0x442f9f
push edi
push esi
call fcn.00456dd0
push edi
push esi
call fcn.0040cdd0
add esp, 0x10
mov eax, dword [ebx + 0x2c]
push eax
push esi
call fcn.00439940
add esp, 8
test esi, esi
je 0x442fb9
cmp dword [esi + 0x1f8], 0
jne 0x442fc5
push 0
mov edi, ebx
call fcn.00464dc0
add esp, 4
cmp dword [ebx + 0x3c], 0
je 0x442ff5
xor edi, edi
cmp dword [ebx + 0x38], edi
jle 0x442fe8
mov ecx, dword [ebx + 0x3c]
mov edx, dword [ecx + edi*4]
push edx
push esi
call fcn.0040cdd0
inc edi
add esp, 8
cmp edi, dword [ebx + 0x38]
jl 0x442fd2
mov eax, dword [ebx + 0x3c]
push eax
push esi
call fcn.0040cdd0
add esp, 8
push ebx
push esi
call fcn.0040cdd0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x443010
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
shl eax, 4
add eax, dword [ecx + 8]
mov ecx, edi
test edi, edi
je 0x44303e
cmp byte [edi], 0
je 0x443036
nop
inc ecx
cmp byte [ecx], 0
jne 0x443030
sub ecx, edi
and ecx, 0x3fffffff
mov ebx, dword [eax + 0xc]
add ebx, 8
cmp dword [ebx], 0
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ebx
je 0x443089
xor eax, eax
mov esi, ecx
mov edx, edi
cmp ecx, eax
jle 0x44307e
lea esp, [esp]
movzx ecx, byte [edx]
movzx ecx, byte [ecx + 0x49cf10]
lea ebx, [eax*8]
xor ecx, ebx
dec esi
xor eax, ecx
inc edx
test esi, esi
jg 0x443060
mov ebx, dword [ebp - 8]
xor edx, edx
div dword [ebx]
mov ecx, dword [ebp - 4]
mov esi, edx
jmp 0x44308b
xor esi, esi
push ecx
push edi
mov edx, esi
mov eax, ebx
call fcn.004101f0
add esp, 8
test eax, eax
je 0x4430ab
mov edi, dword [eax + 8]
mov edx, esi
mov ecx, ebx
call fcn.00410290
jmp 0x4430ad
xor edi, edi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.00442e50
add esp, 8
or dword [esi + 0xc], 0x200
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x444c30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [edx + 8]
add eax, eax
mov ecx, dword [ecx + eax*8]
push ebx
push esi
mov eax, 0x4aaa34
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x18], eax
mov edi, dword [eax]
mov edx, dword [ebp + 8]
mov esi, dword [edx]
xor ebx, ebx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], ebx
mov eax, edi
cmp edi, ebx
jne 0x444c6e
mov dword [ebp - 4], ebx
jmp 0x444c81
cmp byte [edi], bl
je 0x444c77
inc eax
cmp byte [eax], bl
jne 0x444c72
sub eax, edi
and eax, 0x3fffffff
mov dword [ebp - 4], eax
mov eax, dword [esi + 4]
mov dword [ebp - 8], ebx
mov dword [ebp - 0x20], eax
cmp eax, ebx
jle 0x444d9b
jmp 0x444c9a
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov edx, ebx
cmp ebx, 2
jge 0x444ca4
xor edx, 1
test ecx, ecx
je 0x444cfb
mov esi, dword [esi + 8]
mov eax, ecx
mov cl, byte [ecx]
mov ebx, edx
add ebx, ebx
mov esi, dword [esi + ebx*8]
test cl, cl
je 0x444cdd
lea ebx, [ebx]
movzx ebx, byte [esi]
movzx ecx, cl
mov cl, byte [ecx + 0x49cf10]
cmp cl, byte [ebx + 0x49cf10]
jne 0x444cdd
mov cl, byte [eax + 1]
inc eax
inc esi
test cl, cl
jne 0x444cc0
movzx eax, byte [eax]
movzx ecx, byte [esi]
movzx ecx, byte [ecx + 0x49cf10]
movzx eax, byte [eax + 0x49cf10]
sub eax, ecx
mov ebx, dword [ebp - 8]
jne 0x444d66
mov esi, dword [ebp - 0x14]
mov ecx, dword [esi + 8]
add edx, edx
mov esi, dword [ecx + edx*8 + 0xc]
cmp dword [esi + 0x14], 0
je 0x444d3d
mov edx, dword [ebp - 4]
xor eax, eax
mov ecx, edi
cmp edx, eax
jle 0x444d33
movzx edi, byte [ecx]
movzx edi, byte [edi + 0x49cf10]
lea ebx, [eax*8]
xor edi, ebx
dec edx
xor eax, edi
inc ecx
test edx, edx
jg 0x444d15
mov edi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 8]
xor edx, edx
div dword [esi + 8]
jmp 0x444d3f
xor edx, edx
mov eax, dword [ebp - 4]
push eax
push edi
lea eax, [esi + 8]
call fcn.004101f0
add esp, 8
test eax, eax
je 0x444d5f
mov eax, dword [eax + 8]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x444d7a
jmp 0x444d69
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x444d69
mov eax, dword [ebp - 0x10]
inc ebx
mov dword [ebp - 8], ebx
cmp ebx, dword [ebp - 0x20]
jl 0x444c94
test eax, eax
je 0x444d98
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp + 8]
push edx
push edi
push eax
push str.DELETE_FROM__Q._s_WHERE__s_Q
push ecx
call fcn.004427c0
add esp, 0x18
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
add eax, 4
mov dword [ebp - 0x18], eax
cmp eax, 0x4aaa3c
jl 0x444c51
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x460eb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
add eax, eax
mov ebx, dword [edx + eax*8 + 0xc]
add ebx, 0x28
push edi
mov dword [ebp - 8], ebx
mov eax, esi
test esi, esi
je 0x460ee5
cmp byte [esi], 0
je 0x460ede
inc eax
cmp byte [eax], 0
jne 0x460ed8
sub eax, esi
and eax, 0x3fffffff
cmp dword [ebx], 0
mov dword [ebp - 4], eax
je 0x460f2a
mov edx, eax
xor eax, eax
mov ecx, esi
cmp edx, eax
jle 0x460f1e
jmp 0x460f00
movzx edi, byte [ecx]
movzx edi, byte [edi + 0x49cf10]
lea ebx, [eax*8]
xor edi, ebx
dec edx
xor eax, edi
inc ecx
test edx, edx
jg 0x460f00
mov ebx, dword [ebp - 8]
xor edx, edx
div dword [ebx]
mov eax, dword [ebp - 4]
mov dword [ebp - 8], edx
jmp 0x460f31
mov dword [ebp - 8], 0
mov edx, dword [ebp - 8]
push eax
push esi
mov eax, ebx
call fcn.004101f0
add esp, 8
test eax, eax
je 0x460ffa
mov edi, dword [eax + 8]
mov edx, dword [ebp - 8]
mov ecx, ebx
mov dword [ebp - 4], edi
call fcn.00410290
test edi, edi
je 0x460ffa
mov edx, dword [edi + 0x18]
cmp dword [edi + 0x14], edx
jne 0x460fb0
mov ecx, dword [edi + 4]
mov eax, ecx
test ecx, ecx
je 0x460f83
cmp byte [ecx], 0
je 0x460f7c
inc eax
cmp byte [eax], 0
jne 0x460f76
sub eax, ecx
and eax, 0x3fffffff
push ecx
add edx, 8
push edx
mov esi, eax
call fcn.004102e0
mov ecx, dword [eax + 0x40]
add eax, 0x40
add esp, 8
cmp ecx, edi
je 0x460fa9
lea esp, [esp]
lea eax, [ecx + 0x20]
mov ecx, dword [eax]
cmp ecx, edi
jne 0x460fa0
mov ecx, dword [eax]
mov edx, dword [ecx + 0x20]
mov dword [eax], edx
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 8]
push eax
mov ebx, esi
call fcn.00460090
mov ecx, dword [edi]
add esp, 4
push ecx
push esi
call fcn.0040cdd0
mov edx, dword [edi + 4]
push edx
push esi
call fcn.0040cdd0
mov eax, dword [edi + 0xc]
push eax
push esi
call fcn.00439940
mov edi, dword [edi + 0x10]
call fcn.004464e0
mov ecx, dword [ebp - 4]
push ecx
push esi
call fcn.0040cdd0
add esp, 0x20
or dword [esi + 0xc], 0x200
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x474e50
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x474e57
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x474f2d
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x49cb08]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x49cb08]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x49cb08]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x49cb08]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x49cb08]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x49cb08]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x49cb08]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x49cb08]
add ecx, 8
sub edx, 8
dec esi
jne 0x474e70
pop edi
test edx, edx
je 0x474f4a
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x49cb08]
inc ecx
dec edx
jne 0x474f31
not eax
pop esi
ret

Function at 0x474f50
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

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

Function at 0x474fa0
Capabilities:
Generate random numbers using the delphi lcg
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
push edi
xor al, bl
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x49cb08]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x49cb08]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret

Function at 0x475710
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ebx
imul esi, dword [ebp + 0xc]
cmp byte [edi], 0
je 0x475746
mov ecx, dword [ebp + 8]
mov edx, dword [edi + 4]
push 0
lea eax, [ebp + 0xc]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x47573c
mov byte [edi + 8], 1
mov eax, dword [ebp + 0xc]
xor edx, edx
div ebx
pop esi
pop ebp
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
lea edx, [ecx + esi]
cmp edx, eax
jbe 0x475757
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
add eax, ecx
mov ecx, dword [ebp + 8]
push esi
push eax
push ecx
call fcn.00482150
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div ebx
pop esi
pop ebp
ret
Function at 0x475780
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x4757b3
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 8]
push eax
push edi
lea ecx, [ebp - 1]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4757ae
mov byte [esi + 8], 1
mov edi, dword [ebp - 8]
jmp 0x4757de
mov eax, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x1c]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x4757c5
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0x14]
push edi
add edx, ebx
push edx
lea eax, [ebp - 1]
push eax
call fcn.00482150
add esp, 0xc
add ebx, edi
mov dword [esi + 0x1c], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x4757f3
movzx ecx, byte [ebp - 1]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x4757ed
cmp byte [esi + 8], 0
je 0x4757ed
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
Function at 0x475890
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp byte [esi], 0
je 0x4758d7
cmp byte [esi + 1], 0
je 0x4758df
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 ebx
je 0x4758f2
cmp byte [esi + 1], 0
je 0x4758e6
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, eax
sub ebx, dword [esi + 0xc]
mov dword [ebp - 4], ebx
jmp 0x4758fa
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x4758b1
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 4]
jmp 0x4758fa
mov eax, dword [esi + 0x1c]
mov dword [ebp - 4], eax
mov ebx, eax
push edi
mov edi, 0xffff
mov dword [ebp - 8], edi
cmp ebx, edi
jae 0x47590c
mov dword [ebp - 8], ebx
mov edi, ebx
push 0x404
call fcn.00480f77
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x475929
pop edi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 4
mov dword [ebp - 0x14], 0xffffffff
cmp edi, eax
jbe 0x475a3d
jmp 0x475949
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
add eax, 0x400
mov dword [ebp - 0xc], edi
cmp eax, edi
ja 0x475958
mov dword [ebp - 0xc], eax
mov eax, ebx
sub eax, dword [ebp - 0xc]
sub ebx, eax
mov dword [ebp - 0x1c], eax
cmp ebx, 0x404
jbe 0x47596f
mov ebx, 0x404
cmp byte [esi], 0
je 0x475994
cmp byte [esi + 1], 0
je 0x475a3d
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 0x475997
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebx
je 0x4759c0
mov ecx, dword [ebp - 0x10]
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 0x18]
push eax
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4759bb
mov byte [esi + 8], 1
mov eax, dword [ebp - 0x18]
jmp 0x4759e9
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebx]
cmp edx, ecx
jbe 0x4759d1
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
mov edx, dword [ebp - 0x10]
push edi
add ecx, eax
push ecx
push edx
call fcn.00482150
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebx
cmp eax, 1
jne 0x475a3d
lea eax, [ebx - 3]
test eax, eax
js 0x475a2b
lea esp, [esp]
mov ecx, dword [ebp - 0x10]
dec eax
cmp byte [eax + ecx], 0x50
jne 0x475a1f
cmp byte [eax + ecx + 1], 0x4b
jne 0x475a1f
cmp byte [eax + ecx + 2], 5
jne 0x475a1f
cmp byte [eax + ecx + 3], 6
je 0x475a25
test eax, eax
jns 0x475a00
jmp 0x475a2b
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x475a3d
mov edx, dword [ebp - 8]
cmp dword [ebp - 0xc], edx
jb 0x475940
mov eax, dword [ebp - 0x10]
push eax
call fcn.00480812
mov eax, dword [ebp - 0x14]
add esp, 4
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4768c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
cmp dword [esi], 0
push edi
jne 0x47695c
cmp dword [esi + 4], 0xffffffff
jne 0x47695c
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4768f0
sub eax, edx
sar eax, 1
movzx eax, word [esi + eax*2 + 0x242]
cmp eax, 0x5c
je 0x476927
cmp eax, 0x2f
je 0x476927
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x476914
mov eax, dword [0x49a334]
mov dword [edi], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp + 8]
push ecx
call fcn.00475670
add esp, 4
test eax, eax
jne 0x476942
mov eax, dword [ebp + 8]
pop edi
pop ebp
ret 4
call fcn.00475a60
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop edi
pop ebp
ret 4
mov eax, 0x1000000
pop edi
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4a93dc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x477054
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x477054
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x47713e
mov ecx, ebx
mov edx, ebx
cmp ax, 0x2f
je 0x477070
cmp ax, 0x5c
jne 0x477072
mov ecx, edx
movzx eax, word [edx + 2]
add edx, 2
test ax, ax
jne 0x477064
push edi
cmp ecx, ebx
je 0x4770b2
sub ecx, ebx
sar ecx, 1
lea edi, [ecx + ecx]
push edi
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.00482150
lea edx, [ebp - 0x414]
push edx
xor ecx, ecx
push esi
mov word [ebp + edi - 0x414], cx
call fcn.00477020
add esp, 0x14
xor eax, eax
mov word [ebp - 0x20c], ax
test esi, esi
je 0x4770df
lea edx, [ebp - 0x20c]
mov eax, esi
sub edx, esi
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4770d0
mov eax, ebx
mov edx, ebx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4770e3
lea edi, [ebp - 0x20c]
sub eax, edx
add edi, 0xfffffffe
lea esp, [esp]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x477100
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop edi
cmp eax, 0xffffffff
jne 0x47713e
push 0
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0048014c
mov esp, ebp
pop ebp
ret
Function at 0x477cf0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp byte [esi + 0x2d], 0
push edi
mov edi, dword [ebp + 0xc]
mov eax, ebx
je 0x477ddb
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x477d27
cmp dword [esi + 0x40], edi
jae 0x477d27
push eax
call fcn.00480641
add esp, 4
mov dword [esi + 0x3c], 0
cmp dword [esi + 0x3c], 0
jne 0x477d3f
lea eax, [edi + edi]
push eax
call fcn.0048069d
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
mov ecx, dword [esi + 0x3c]
push edi
push ebx
push ecx
call fcn.00482150
add esp, 0xc
xor ebx, ebx
test edi, edi
je 0x477dd8
mov edx, dword [esi + 0x3c]
mov cl, byte [ebx + edx]
mov edi, dword [esi + 0x30]
mov byte [ebp + 8], cl
movsx ecx, cl
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x49b2c8]
mov dword [ebp - 4], ecx
mov eax, dword [esi + 0x38]
shr edi, 8
xor dword [ebp - 4], edi
mov ecx, dword [ebp - 4]
mov dword [esi + 0x30], ecx
movzx ecx, cl
add ecx, dword [esi + 0x34]
mov edx, eax
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi + 0x34], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x49b2c8]
and edx, 0xfffd
mov dword [esi + 0x38], eax
mov ecx, dword [esi + 0x3c]
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
shr eax, 8
xor al, byte [ebp + 8]
inc ebx
mov byte [ebx + ecx - 1], al
cmp ebx, dword [ebp + 0xc]
jb 0x477d57
mov edi, dword [ebp + 0xc]
mov eax, dword [esi + 0x3c]
mov edx, dword [esi + 0x20]
test edx, edx
je 0x477e1a
mov ecx, dword [esi + 0x24]
lea ebx, [ecx + edi]
cmp ebx, dword [esi + 0x28]
jb 0x477dff
pop edi
mov dword [esi + 0x14], 0x30000
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
push eax
add ecx, edx
push ecx
call fcn.00482150
add esp, 0xc
add dword [esi + 0x24], edi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x477e3c
push 0
lea edx, [ebp + 0xc]
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
mov dword [esi + 0x14], 0x1000000
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8