joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48e5c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f6e1b
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
mov eax, dword [0x51e080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 0xc]
sub eax, 1
jne 0x48e6b4
push 0x80
call fcn.004d3886
mov dword [ebp - 0x10], eax
push ebx
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.0048a6b0
mov dword [ebp - 4], 0xffffffff
push 0xf0
mov dword [ebx + 0x78], eax
call fcn.004d3886
mov dword [ebp - 0x10], eax
push ebx
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.0048b390
mov dword [ebp - 4], 0xffffffff
xorps xmm0, xmm0
mov ecx, dword [ebx + 0x78]
push 0xb8
mov dword [ebx + 0x7c], eax
movlpd qword [ebp - 0x18], xmm0
mov dword [ebp - 0x2c], 0x5a5ed8a9
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], 8
call fcn.004d3886
add esp, 4
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 2
push ecx
push ebx
mov ecx, eax
call fcn.0045ed10
mov ecx, dword [ebx + 0x60]
mov dword [ebx + 0x74], eax
push 1
mov ecx, dword [ecx + 0x2c0]
mov dword [eax + 0x70], ecx
mov eax, dword [ebx + 0x78]
push dword [eax + 0x54]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebx + 0x7c]
push 1
push dword [eax + 0x54]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DefWindowProcW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x48e950
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
mov ebx, ecx
push esi
push edi
push 0x100
mov eax, dword [ebx + 0x84]
mov dword [esp + 0x10], ebx
push dword [eax + 0x9c]
push dword [eax + 0x7c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea ecx, [eax + 1]
mov eax, dword [ebx + 0x84]
mov dword [eax + 0x98], ecx
mov ecx, dword [ebx + 0x84]
push dword [ecx + 0xa0]
lea edx, [ecx + 0x98]
mov ecx, dword [ecx + 0x9c]
call fcn.004520b0
mov ecx, dword [ebx + 0x84]
add esp, 4
mov edx, dword [ecx + 0x98]
mov ecx, dword [ecx + 0x9c]
call fcn.00452370
mov eax, dword [ebx + 0x84]
push dword [eax + 0x9c]
push dword [eax + 0x7c]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov esi, dword [ebx + 0x84]
cmp dword [esi + 0x98], 1
jbe 0x48ea7b
mov esi, dword [esi + 0x78]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 9
push 0x110a
push esi
call edi
mov ebx, eax
test ebx, ebx
je 0x48ea84
push 0
push 0
push 0x110a
push esi
call edi
cmp ebx, eax
je 0x48ea84
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 4
push eax
push 0
xorps xmm0, xmm0
mov dword [esp + 0x1c], ebx
push 0x113e
push esi
movlpd qword [esp + 0x28], xmm0
movlpd qword [esp + 0x30], xmm0
movlpd qword [esp + 0x38], xmm0
movlpd qword [esp + 0x40], xmm0
call edi
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 0x84]
mov ecx, dword [ecx + 0x60]
push dword [eax + 0x9c]
mov eax, dword [eax + 0x98]
mov ecx, dword [ecx + 0x4d4]
add eax, eax
or eax, 0x10000
push eax
push dword [esp + 0x3c]
call fcn.00450610
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x491420
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x51e080]
xor eax, esp
mov dword [esp + 0x30], eax
cmp dword [ebp + 8], 0x75616c8a
push ebx
push esi
push edi
mov esi, ecx
jne 0x4915ac
lea eax, [esp + 0x2c]
push eax
push dword [esi + 0x54]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x34]
mov dword [esi + 0x78], eax
mov eax, dword [esp + 0x38]
mov dword [esi + 0x7c], eax
mov eax, dword [esi + 0x68]
push dword [eax + 0x5c]
mov eax, dword [esi + 0x74]
push dword [eax + 0x7c]
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esi + 0x6c]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x10]
push 0x28
push eax
mov edx, dword [ecx]
call dword [edx]
mov edx, dword [esp + 0x10]
mov ecx, edx
lea edi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x491490
sub ecx, edi
lea eax, [esp + 0x24]
push eax
mov eax, dword [esi + 0x74]
sar ecx, 1
push ecx
push edx
push dword [eax + 0x7c]
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov ecx, dword [esp + 0x24]
mov edi, 1
add ecx, 6
mov dword [esi + 0x88], 6
mov dword [esi + 0x8c], 0
mov dword [esi + 0x90], ecx
mov eax, dword [esi + 0x7c]
sub eax, 4
mov dword [esp + 0x18], 0xb
mov dword [esi + 0x94], eax
lea ebx, [ecx + 4]
lea eax, [esi + 0x9c]
mov dword [esp + 0x14], eax
nop dword [eax]
mov ecx, dword [esi + 0x6c]
lea eax, [edi + 0x28]
push eax
lea eax, [esp + 0x14]
push eax
mov edx, dword [ecx]
call dword [edx]
mov edx, dword [esp + 0x10]
mov eax, edx
lea ecx, [eax + 2]
mov dword [esp + 0x1c], ecx
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x491520
sub eax, dword [esp + 0x1c]
lea ecx, [esp + 0x24]
push ecx
sar eax, 1
push eax
mov eax, dword [esi + 0x74]
push edx
push dword [eax + 0x7c]
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
add ecx, ebx
add dword [esp + 0x14], 0x10
mov dword [edx - 4], ebx
mov ebx, 3
mov dword [edx], 0
mov dword [edx + 4], ecx
mov eax, dword [esi + 0x7c]
sub eax, 4
mov dword [edx + 8], eax
xor edx, edx
mov eax, edi
inc edi
div ebx
xor ebx, ebx
test edx, edx
sete bl
lea ebx, [ebx*8 + 8]
add ebx, ecx
sub dword [esp + 0x18], 1
jne 0x491500
mov eax, dword [esi + 0x74]
push dword [esp + 0x20]
push dword [eax + 0x7c]
call dword [sym.imp.GDI32.dll_SelectObject]
push 0
push 0
push dword [esi + 0x54]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [esp + 0x3c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004d3878
mov esp, ebp
pop ebp
ret 0xc
Function at 0x494ee0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ecx + 0x9c]
xor edx, edx
push ebx
push esi
push edi
mov word [eax + 0x3fe], dx
mov eax, 0x200
mov edi, dword [ecx + 0x9c]
mov edx, dword [ecx + 0xa0]
mov dword [ebp - 0x20], 0x310030
mov dword [ebp - 0x1c], 0x330032
movzx ecx, word [edi]
mov dword [ebp - 0x18], 0x350034
mov dword [ebp - 0x14], 0x370036
mov dword [ebp - 0x10], 0x390038
mov dword [ebp - 0xc], 0x420041
mov dword [ebp - 8], 0x440043
mov dword [ebp - 4], 0x460045
test cx, cx
je 0x49504e
nop dword [eax]
cmp cx, 0x2f
je 0x49501e
movzx esi, word [edi]
mov ebx, esi
cmp esi, 0x2e
je 0x49501e
cmp esi, 0x5f
je 0x49501e
cmp esi, 0x2d
je 0x49501e
cmp esi, 0x40
je 0x49501e
cmp esi, 0x3a
je 0x49501e
lea ecx, [esi - 0x61]
cmp cx, 0x19
ja 0x494fa8
mov ecx, eax
dec eax
test ecx, ecx
je 0x495042
mov word [edx], si
jmp 0x49502b
lea ecx, [esi - 0x41]
cmp cx, 0x19
ja 0x494fc1
mov ecx, eax
dec eax
test ecx, ecx
je 0x495042
mov word [edx], bx
jmp 0x49502b
lea ecx, [ebx - 0x30]
cmp cx, 9
ja 0x494fd6
mov ecx, eax
dec eax
test ecx, ecx
je 0x495042
mov word [edx], bx
jmp 0x49502b
cmp ebx, 0x20
jne 0x494fec
mov ecx, eax
dec eax
test ecx, ecx
je 0x495042
mov ebx, 0x2b
mov word [edx], bx
jmp 0x49502b
cmp eax, 3
jb 0x495042
mov ebx, 0x25
sub eax, 3
mov word [edx], bx
movzx ecx, word [edi]
shr ecx, 4
and ecx, 0xf
movzx ecx, word [ebp + ecx*2 - 0x20]
mov word [edx + 2], cx
add edx, 4
movzx ecx, word [edi]
and ecx, 0xf
movzx ecx, word [ebp + ecx*2 - 0x20]
jmp 0x495028
mov ecx, eax
dec eax
test ecx, ecx
je 0x495042
mov cx, word [edi]
mov word [edx], cx
movzx ecx, word [edi + 2]
add edi, 2
add edx, 2
test cx, cx
jne 0x494f50
test eax, eax
jne 0x49504e
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov word [edx], ax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x495060
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
mov eax, dword [0x51e080]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x98], 0
je 0x495272
mov eax, dword [esi + 0x60]
mov eax, dword [eax + 0x4bc]
push dword [eax + 0x28]
push str.http:__127.0.0.1:_d_
push 0xffffffffffffffff
push 0x200
push dword [esi + 0x9c]
call fcn.00415570
add esp, 0x14
xor edi, edi
test ebx, ebx
je 0x495141
cmp ebx, 1
je 0x495141
cmp ebx, 2
jne 0x4950ce
push str.help2.html
jmp 0x495146
cmp ebx, 3
jne 0x4950da
push str.help3.html
jmp 0x495146
mov eax, dword [esi + 0x9c]
mov edi, eax
mov dword [esp + 0x14], 1
mov dword [esp + 0xc], eax
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x4950f1
sub edi, ecx
mov eax, 0x200
mov ecx, dword [esi + 0x60]
sar edi, 1
sub eax, edi
mov dword [esp + 0x10], eax
lea eax, [esp + 0x18]
mov ecx, dword [ecx + 0x4bc]
push eax
push ebx
push 0
call fcn.00478520
lea eax, [esp + 0x18]
push 0x20
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
lea ecx, [eax + edi*2]
call fcn.00453930
mov edi, dword [esp + 0x1c]
add esp, 8
jmp 0x495181
push str.help.html
mov eax, dword [esi + 0x60]
movzx eax, word [eax + 0x28c]
push eax
push str._d__s
push 0xffffffffffffffff
push 0x200
push dword [esi + 0xa0]
call fcn.00415570
push dword [esi + 0xa0]
push 0x200
push dword [esi + 0x9c]
call fcn.004de7d9
add esp, 0x24
mov ecx, esi
call fcn.00494ee0
test eax, eax
jne 0x4951c6
cmp dword [ebp + 0xc], eax
jne 0x4951ad
mov eax, dword [esi + 0x98]
push 0
push 0
push 0
mov ecx, dword [eax]
push 0
push dword [esi + 0xa0]
push eax
call dword [ecx + 0x2c]
jmp 0x4951c6
push 1
push 0
push 0
push dword [esi + 0xa0]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
test edi, edi
je 0x495272
mov esi, dword [esi + 0x60]
test ebx, ebx
je 0x495272
mov ecx, dword [esi + 0x49c]
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x10], 0x40
push eax
mov eax, dword [esi + 0x4a0]
add eax, 0x70
push eax
push ebx
call fcn.004a73f0
test eax, eax
jne 0x495272
cmp dword [esp + 0xc], 0x40
je 0x495226
push ecx
mov ecx, dword [esi + 0x49c]
push eax
mov eax, dword [esi + 0x4a0]
add eax, 0x70
push eax
push ebx
call fcn.004a7df0
jmp 0x495272
mov eax, dword [esp + 0x40]
test al, 2
je 0x495272
mov ecx, dword [esi + 0x49c]
and eax, 0xfffffffd
mov dword [esp + 0x40], eax
lea eax, [esp + 0x38]
push 0x40
push eax
mov eax, dword [esi + 0x4a0]
add eax, 0x70
push eax
push ebx
call fcn.004a72a0
mov ecx, dword [esi + 0x478]
push 0
push ebx
call fcn.0045bf70
mov ecx, dword [esi + 0x478]
push 1
push 0xa848126d
call fcn.00407030
mov ecx, dword [esp + 0x7c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004d3878
mov esp, ebp
pop ebp
ret 8
Function at 0x4958d0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
push edi
mov edi, ecx
mov esi, edi
nop dword [eax]
movzx eax, word [esi]
cmp eax, 0x5c
jne 0x49590b
xor eax, eax
push edi
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4958fe
push 0
push edi
call ebx
mov eax, 0x5c
mov word [esi], ax
add esi, 2
jmp 0x4958e0
test ax, ax
je 0x495915
add esi, 2
jmp 0x4958e0
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x49a1e0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x51e080]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
test esi, esi
je 0x49a2c9
mov edx, esi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x49a204
sub edx, ecx
sar edx, 1
cmp edx, 3
jb 0x49a2c9
cmp word [esi + 2], 0x3a
jne 0x49a2c9
cmp word [esi + 4], 0x5c
jne 0x49a2c9
mov ax, word [esi]
mov word [ebp - 0xc], ax
xor eax, eax
push 0x10
mov word [ebp - 6], ax
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x2c]
push eax
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 0xa], 0x5c003a
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x49a2c9
lea eax, [ebp - 0x2c]
push str.ntfs
push eax
call fcn.004e32a4
add esp, 8
test eax, eax
je 0x49a2c9
lea eax, [ebp - 0x2c]
push 0x50ea0c
push eax
call fcn.004e32a4
add esp, 8
test eax, eax
je 0x49a2bc
lea eax, [ebp - 0x2c]
push str.fat16
push eax
call fcn.004e32a4
add esp, 8
test eax, eax
je 0x49a2bc
lea eax, [ebp - 0x2c]
push str.fat32
push eax
call fcn.004e32a4
add esp, 8
test eax, eax
jne 0x49a2c9
mov eax, dword [edi + 0x4f0]
or dword [eax + 0x20], 0x2000
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004d3878
mov esp, ebp
pop ebp
ret 4
Function at 0x4a1790
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x51e080]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x50], edx
test ecx, ecx
je 0x4a191f
test eax, eax
je 0x4a191f
test edx, edx
je 0x4a191f
mov eax, dword [ecx]
cmp eax, 1
jne 0x4a17ed
mov eax, dword [ecx + 0x14]
mov esi, 0xc
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x20], 0xb96b43c5
mov dword [ebp - 0x18], eax
jmp 0x4a1820
cmp eax, 2
jne 0x4a191f
mov eax, dword [ecx + 0x14]
mov esi, 0x18
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x20], 0x66c3084d
mov dword [ebp - 0xc], eax
push 0x9c4
call fcn.004d3886
add esp, 4
mov dword [ebp - 0x54], eax
lea ecx, [ebp - 0x20]
mov dword [eax + 0x9c0], 0x271
push esi
push ecx
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x24]
push ecx
push eax
mov ecx, edi
call fcn.004a0ef0
mov ebx, dword [ebp - 0x48]
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x44], 0x320062
mov dword [ebp - 0x40], 0x300066
lea esi, [ebx*2 + 2]
mov dword [ebp - 0x3c], 0x650039
lea eax, [esi*2 + 2]
mov dword [ebp - 0x38], 0x360033
push eax
mov dword [ebp - 0x34], 0x640035
mov dword [ebp - 0x30], 0x630031
mov dword [ebp - 0x2c], 0x340037
mov dword [ebp - 0x28], 0x610038
call fcn.004d9a7e
mov ecx, dword [ebp - 0x4c]
mov edx, 0x23
add esp, 4
mov dword [ecx], eax
xor ecx, ecx
mov word [eax + esi*2], cx
mov ecx, dword [ebp - 0x50]
mov dword [ecx], esi
mov word [eax], dx
add eax, 2
test ebx, ebx
je 0x4a18ec
movzx ecx, byte [edi]
lea edi, [edi + 1]
shr ecx, 4
movzx ecx, word [ebp + ecx*2 - 0x44]
mov word [eax], cx
movzx ecx, byte [edi - 1]
and ecx, 0xf
movzx ecx, word [ebp + ecx*2 - 0x44]
mov word [eax + 2], cx
add eax, 4
sub ebx, 1
jne 0x4a18c3
push dword [ebp - 0x24]
mov word [eax], dx
call fcn.004d9a63
add esp, 4
push 0x9c4
push dword [ebp - 0x54]
call fcn.004d38b6
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004d3878
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 8]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d3878
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4a3960
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x51e080]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
push ebx
mov dword [ebp - 0x74], eax
lea ebx, [ecx + 0x50]
mov eax, dword [ebp + 8]
push esi
mov dword [ecx + 0x6c], eax
lea eax, [ebp - 0x68]
push edi
push eax
lea edi, [ecx + 0x58]
mov dword [ebp - 0x6c], ecx
lea eax, [ebp - 0x80]
mov dword [ebp - 0x68], edi
push eax
mov ecx, ebx
call fcn.004a6860
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x70], edi
mov esi, dword [eax + 8]
mov eax, dword [ebp + 0xc]
mov dword [ecx + 0x6c], eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x68], esi
push eax
mov ecx, ebx
call fcn.004a6860
mov edi, dword [ebp - 0x6c]
mov ebx, dword [eax + 8]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x64], 0x67452301
mov dword [ebp - 0x60], 0xefcdab89
mov dword [ebp - 0x5c], 0x98badcfe
mov dword [ebp - 0x58], 0x10325476
cmp esi, ebx
je 0x4a3a22
mov ecx, dword [edi + 0x14c]
lea eax, [ebp - 0x64]
push eax
mov eax, dword [esi + 0x10]
push 0x84
mov ecx, dword [ecx + 0x480]
add eax, 0x14
push eax
call fcn.004b2200
lea ecx, [ebp - 0x68]
call fcn.0041d8c0
mov esi, dword [ebp - 0x68]
cmp esi, ebx
jne 0x4a39f2
mov ecx, dword [edi + 0x14c]
lea eax, [ebp - 0x64]
push eax
mov ecx, dword [ecx + 0x480]
call fcn.004b2580
mov eax, dword [ebp - 0x74]
movups xmm0, xmmword [ebp - 0x64]
mov ecx, dword [ebp - 8]
pop edi
pop esi
movups xmmword [eax], xmm0
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.004d3878
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4a44d0
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ecx + 0x14c]
mov edx, dword [ebp + 8]
mov eax, dword [eax + 0x480]
mov dword [ebp - 4], eax
test edx, edx
je 0x4a45a0
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4a4597
push ebx
mov ebx, 0x5c
mov dword [esi + 0x18], 0
push edi
mov dword [esi], 0x67452301
xor ecx, ecx
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov dword [esi + 0x10], 0xc3d2e1f0
mov dword [esi + 0x60], 0
mov dword [esi + 0x14], ebx
mov eax, 0x40
mov edi, ebx
sub eax, ecx
cmp ebx, eax
cmovae edi, eax
lea eax, [esi + 0x20]
push edi
push edx
add eax, ecx
push eax
call fcn.004d6950
add dword [esi + 0x60], edi
sub ebx, edi
mov edx, dword [ebp + 8]
add esp, 0xc
mov ecx, dword [esi + 0x60]
add edx, edi
mov edi, dword [ebp - 4]
mov dword [ebp + 8], edx
cmp ecx, 0x40
jne 0x4a4580
push esi
mov ecx, edi
call fcn.004b2a40
mov edx, dword [ebp + 8]
xor ecx, ecx
mov dword [esi + 0x60], 0
test ebx, ebx
jne 0x4a4536
push esi
mov ecx, edi
call fcn.004b2720
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x4a5ca0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x51e080]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
test ebx, ebx
je 0x4a5d65
mov eax, dword [edi + 0xc]
cmp dword [eax + 0x34], 0
je 0x4a5d65
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [edi + 0x34]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x64], 0x67452301
mov dword [ebp - 0x60], 0xefcdab89
mov dword [ebp - 0x5c], 0x98badcfe
mov dword [ebp - 0x58], 0x10325476
test esi, esi
je 0x4a5d2a
mov ecx, dword [edi + 4]
lea eax, [ebp - 0x64]
push eax
push 0x84
lea eax, [esi + 8]
mov ecx, dword [ecx + 0x480]
push eax
call fcn.004b2200
mov esi, dword [esi + 4]
test esi, esi
jne 0x4a5d08
mov ecx, dword [edi + 4]
lea eax, [ebp - 0x64]
push eax
mov ecx, dword [ecx + 0x480]
call fcn.004b2580
movups xmm0, xmmword [ebp - 0x64]
movups xmmword [ebx], xmm0
mov eax, dword [edi + 0xc]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004d3878
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 8]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d3878
mov esp, ebp
pop ebp
ret 4
Function at 0x4a8330
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, ecx
test edi, edi
je 0x4a844c
mov edx, dword [ebp + 8]
lea eax, [esi + 0x10]
mov dword [ebp + 0x14], eax
cmp dword [esi + 0x28], edx
jne 0x4a8399
mov ecx, dword [ebp + 0xc]
cmp dword [esi + 0x2c], ecx
jne 0x4a8399
mov eax, dword [eax]
sub eax, dword [esi + 0x14]
cmp eax, edi
jb 0x4a839c
cmp dword [esi + 0x14], 0
jne 0x4a8371
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], ecx
mov eax, dword [esi + 0xc]
add eax, dword [esi + 0x14]
push edi
push dword [ebp + 0x10]
push eax
call fcn.004d6950
add dword [esi + 0x14], edi
add esp, 0xc
add dword [esi + 0x28], edi
adc dword [esi + 0x2c], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov dword [ebp + 0x14], eax
cmp dword [esi + 0x14], 0
je 0x4a83cd
push 0
push 0
push dword [esi + 0x24]
push dword [esi + 0x20]
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 0
lea eax, [ebp - 8]
push eax
push dword [esi + 0x14]
push dword [esi + 0xc]
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp + 8]
mov eax, edi
mov ecx, 0
add eax, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
adc ecx, eax
mov dword [ebp + 0xc], ecx
mov ecx, dword [ebp + 0x14]
cmp edi, dword [ecx]
jae 0x4a8417
push edi
push dword [ebp + 0x10]
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 4]
push dword [esi + 0xc]
mov dword [esi + 0x28], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x20], edx
mov dword [esi + 0x14], edi
mov dword [esi + 0x2c], eax
call fcn.004d6950
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0
push 0
push eax
push edx
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 0
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 0x10]
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 4]
mov dword [esi + 0x28], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x14], 0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4a9890
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x51e080]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
neg edx
push ebx
push esi
push edi
push 0
push 0x80
push 3
sbb edx, edx
mov ebx, ecx
and edx, 7
push 0
push edx
push accept
test eax, eax
jne 0x4a98c9
push dword [ebx + 0x1c]
jmp 0x4a98ca
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4a98f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 2
setne cl
lea eax, [ecx + 1]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004d3878
mov esp, ebp
pop ebp
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x50], eax
lea ecx, [eax - 0x40]
cmp ecx, 0x3ffffc0
ja 0x4a9a0d
push 0
lea eax, [ebp - 0x54]
push eax
push 0x40
lea eax, [ebp - 0x4c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a9a0d
cmp dword [ebp - 0x54], 0x40
jne 0x4a9a0d
cmp dword [ebp - 0x4c], 0xd5132dc6
jne 0x4a9a0d
mov edx, dword [ebx + 0x14]
cmp dword [edx + 8], 0
je 0x4a9975
add edx, 0xc
lea ecx, [ebp - 0x44]
mov esi, 0x1c
nop word [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4a9a0d
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4a9960
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x50]
lea esi, [eax + eax*2]
shl esi, 4
lea eax, [esi + 0x40]
cmp eax, ecx
jne 0x4a9a0d
cmp ecx, dword [ebx + 0x3c]
jbe 0x4a99ad
push dword [ebx + 0x38]
call fcn.004d9a63
push dword [ebp - 0x50]
call fcn.004d9a7e
mov dword [ebx + 0x38], eax
add esp, 8
mov eax, dword [ebp - 0x50]
mov dword [ebx + 0x3c], eax
mov eax, dword [ebx + 0x38]
lea ecx, [ebp - 0x54]
movups xmm0, xmmword [ebp - 0x4c]
mov dword [ebx + 0x40], eax
push 0
movups xmmword [eax], xmm0
push ecx
movups xmm0, xmmword [ebp - 0x3c]
push esi
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [ebp - 0x2c]
movups xmmword [eax + 0x20], xmm0
movups xmm0, xmmword [ebp - 0x1c]
movups xmmword [eax + 0x30], xmm0
mov eax, dword [ebx + 0x38]
add eax, 0x40
push eax
push edi
mov dword [ebx + 0x44], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a9a0d
cmp dword [ebp - 0x54], esi
jne 0x4a9a0d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004d3878
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d3878
mov esp, ebp
pop ebp
ret