joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4440e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x444119
cmp byte [esi + 0x44], bl
jne 0x444112
mov byte [esi + 0x44], 1
mov dword [esi + 0x48], 2
mov eax, dword [str.Failed_to_open_file]
push eax
lea ecx, [esi + 0x4c]
call fcn.00405380
or eax, 0xffffffff
mov dword [esi + 0x70], eax
mov dword [esi + 0x6c], eax
xor al, al
pop ebx
pop ebp
ret 4
push edi
mov edi, dword [esi + 0x18]
test edi, edi
je 0x444132
mov ecx, edi
mov edx, dword [ecx]
mov eax, dword [edx]
mov edi, dword [edi + 0x40]
push 1
call eax
test edi, edi
jne 0x444121
xor eax, eax
push 2
push eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
or edi, 0xffffffff
push ebx
mov dword [esi + 8], edi
mov dword [esi + 4], edi
call fcn.004628f3
push ebx
call fcn.00462804
mov ecx, dword [ebp + 8]
push 0
push 0
push ecx
mov ebx, eax
call fcn.004628f3
add esp, 0x1c
test ebx, ebx
jg 0x444196
cmp byte [esi + 0x44], 0
jne 0x44418e
mov byte [esi + 0x44], 1
mov dword [esi + 0x48], 0xc
mov edx, dword [str.Error_document_empty.]
push edx
lea ecx, [esi + 0x4c]
call fcn.00405380
mov dword [esi + 0x70], edi
mov dword [esi + 0x6c], edi
pop edi
xor al, al
pop ebx
pop ebp
ret 4
lea eax, [ebx + 1]
push eax
call fcn.0045ea51
mov ecx, dword [ebp + 8]
push ecx
push 1
mov edi, eax
push ebx
push edi
mov byte [edi], 0
call fcn.00461ed2
add esp, 0x14
cmp eax, 1
je 0x4441f3
push edi
call fcn.0045f531
add esp, 4
cmp byte [esi + 0x44], 0
jne 0x4441eb
mov byte [esi + 0x44], 1
mov dword [esi + 0x48], 2
mov edx, dword [str.Failed_to_open_file]
push edx
lea ecx, [esi + 0x4c]
call fcn.00405380
or eax, 0xffffffff
mov dword [esi + 0x70], eax
mov dword [esi + 0x6c], eax
pop edi
xor al, al
pop ebx
pop ebp
ret 4
mov byte [edi + ebx], 0
cmp byte [edi], 0
mov eax, edi
mov ecx, edi
je 0x44421c
mov dl, byte [eax]
cmp dl, 0xd
jne 0x444213
mov byte [ecx], 0xa
inc eax
inc ecx
cmp byte [eax], 0xa
jne 0x444217
jmp 0x444216
mov byte [ecx], dl
inc ecx
inc eax
cmp byte [eax], 0
jne 0x444200
push 0
mov byte [ecx], 0
mov eax, dword [esi]
mov edx, dword [eax + 8]
push 0
push edi
mov ecx, esi
call edx
push edi
call fcn.0045f531
add esp, 4
xor eax, eax
cmp byte [esi + 0x44], al
pop edi
sete al
pop ebx
pop ebp
ret 4
Function at 0x445110
Capabilities:
Create directory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x31c
mov eax, dword [0x5246f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x103
lea eax, [ebp - 0x107]
mov ebx, ecx
mov esi, dword [ebx + 0x28]
push 0
push eax
mov edi, edx
mov byte [ebp - 0x108], 0
call fcn.00463ac0
push edi
lea ecx, [ebp - 0x108]
push 0x104
push ecx
call fcn.0046296f
push 0x515034
lea edx, [ebp - 0x108]
push 0x104
push edx
call fcn.004629ce
push esi
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.004629ce
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x30e]
push edx
mov word [ebp - 0x310], cx
call fcn.00463ac0
add esp, 0x3c
push 0x104
lea eax, [ebp - 0x310]
push eax
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [ebp - 0x310]
push edx
xor edi, edi
call esi
test eax, eax
je 0x445225
lea esp, [esp]
movzx eax, word [ebp + edi*2 - 0x310]
cmp eax, 0x5c
je 0x4451f2
cmp eax, 0x2f
jne 0x445217
xor eax, eax
push eax
lea ecx, [ebp - 0x310]
push ecx
mov word [ebp + edi*2 - 0x310], ax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, 0x5c
mov word [ebp + edi*2 - 0x310], dx
lea eax, [ebp - 0x310]
push eax
inc edi
call esi
cmp edi, eax
jne 0x4451e0
mov edi, dword [ebx + 0x38]
lea ecx, [ebp - 0x318]
push ecx
mov esi, ebx
mov dword [ebp - 0x314], 0x23
mov dword [ebp - 0x318], 0
call fcn.00447030
test eax, eax
jne 0x4452b5
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
lea edx, [ebp - 0x310]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x445287
pop edi
pop esi
lea eax, [ebx + 0x23]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045f522
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x318]
push ebx
lea eax, [ebp - 0x31c]
push eax
push edi
push ecx
push esi
mov dword [ebp - 0x31c], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4452ae
mov dword [ebp - 0x314], ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x314]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045f522
mov esp, ebp
pop ebp
ret

Function at 0x445c10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 0xc]
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push eax
push esi
push 1
push ecx
call fcn.00461ed2
sub esi, eax
add esp, 0x10
neg esi
sbb eax, eax
and eax, str._read_write_error
pop esi
pop ebp
ret 8
Function at 0x44ae90
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x52c380], ecx
inc edx
cmp edx, 0x100
jb 0x44ae92
ret

Function at 0x44af40
Capabilities:
Encode data using xor

Disassembly:
or eax, 0xffffffff
test ecx, ecx
je 0x44af6a
push esi
jmp 0x44af50
movzx esi, byte [edx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x52c380]
inc edx
dec ecx
jne 0x44af50
pop esi
ret
Function at 0x44b9d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ecx]
and esi, 7
mov dword [ebp - 4], 0
cmp eax, 5
jae 0x44b9f2
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
lea edx, [edx + eax - 4]
push ebx
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], edx
push edi
mov edi, dword [ebp - 4]
mov eax, dword [ebp + 8]
add edi, eax
cmp edi, edx
jae 0x44ba20
mov cl, byte [edi]
and cl, 0xfe
cmp cl, 0xe8
je 0x44ba20
inc edi
cmp edi, edx
jb 0x44ba11
mov ebx, edi
sub ebx, eax
mov eax, ebx
sub eax, dword [ebp - 8]
mov dword [ebp - 4], ebx
cmp edi, edx
jae 0x44bb27
cmp eax, 3
jbe 0x44ba57
xor esi, esi
mov al, byte [edi + 4]
mov dword [ebp - 8], ebx
test al, al
je 0x44ba94
cmp al, 0xff
je 0x44ba94
and esi, 3
add esi, esi
or esi, 1
inc ebx
mov dword [ebp - 4], ebx
jmp 0x44ba05
lea ecx, [eax - 1]
shl esi, cl
and esi, 7
je 0x44ba3b
movzx eax, byte [esi + 0x50906c]
mov ecx, edi
sub ecx, eax
cmp byte [esi + 0x509064], 0
mov al, byte [ecx + 4]
je 0x44ba80
test al, al
je 0x44ba80
cmp al, 0xff
jne 0x44ba3b
and esi, 3
add esi, esi
mov dword [ebp - 8], ebx
or esi, 1
inc ebx
mov dword [ebp - 4], ebx
jmp 0x44ba05
movzx ecx, byte [edi + 2]
movzx edx, al
movzx eax, byte [edi + 3]
shl edx, 8
or edx, eax
movzx eax, byte [edi + 1]
shl edx, 8
or edx, ecx
shl edx, 8
or edx, eax
sub edx, ebx
lea eax, [edx - 5]
test esi, esi
je 0x44baf7
movzx edx, byte [esi + 0x50906c]
add edx, edx
add edx, edx
add edx, edx
mov ecx, 0x18
sub ecx, edx
mov ebx, eax
shr ebx, cl
mov cl, bl
test cl, cl
je 0x44bade
cmp cl, 0xff
jne 0x44baf4
mov ebx, dword [ebp - 4]
mov ecx, 0x20
sub ecx, edx
mov edx, 1
shl edx, cl
dec edx
xor edx, eax
jmp 0x44bab2
mov ebx, dword [ebp - 4]
mov ecx, eax
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [edi + 4], cl
mov edx, eax
shr edx, 0x10
mov ecx, eax
shr ecx, 8
add ebx, 5
mov byte [edi + 3], dl
mov edx, dword [ebp - 0xc]
mov byte [edi + 2], cl
mov byte [edi + 1], al
mov dword [ebp - 4], ebx
jmp 0x44ba05
cmp eax, 3
jbe 0x44bb3c
mov edx, dword [ebp + 0xc]
pop edi
xor esi, esi
mov eax, ebx
pop ebx
mov dword [edx], esi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0xc]
lea ecx, [eax - 1]
shl esi, cl
pop edi
mov eax, ebx
pop ebx
and esi, 7
mov dword [edx], esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x44fc90
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d98ab
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5246f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0045f375
push 4
mov dword [ebp - 4], 0
call fcn.0045f789
mov edi, eax
add esp, 4
test edi, edi
je 0x44fd0c
call fcn.0045eed8
mov dword [edi], eax
call fcn.0045ec97
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0045efc1
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x44fd02
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0045efe9
jmp 0x44fd0e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x453e30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4da128
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5246f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [esi], ebx
lea eax, [esi + 0x14]
push eax
lea ecx, [ebp - 0xd]
mov dword [ebp - 4], ebx
call fcn.00403640
push 8
call fcn.0045f789
add esp, 4
cmp eax, ebx
je 0x453f42
push eax
push 8
mov dword [esi], eax
xor edi, edi
call fcn.00407860
add esp, 8
cmp eax, ebx
je 0x453e9a
xor ecx, ecx
mov dword [eax], edi
mov dword [eax + 4], ecx
mov ecx, dword [esi]
mov dword [ecx], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
lea edi, [esi + 0x18]
mov dword [ebp - 4], 1
mov dword [ebp - 0x14], edi
mov dword [edi], ebx
lea edx, [edi + 0x14]
push edx
lea ecx, [ebp - 0xd]
mov byte [ebp - 4], 2
call fcn.00403640
push 8
call fcn.0045f789
add esp, 4
cmp eax, ebx
je 0x453f2b
push eax
push 8
mov dword [edi], eax
call fcn.00407860
add esp, 8
cmp eax, ebx
je 0x453eef
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov eax, dword [edi]
mov dword [eax], edi
lea ecx, [esi + 0x30]
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
call fcn.00404d30
lea ecx, [esi + 0x60]
call fcn.00404d30
mov word [esi + 0x7c], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push ebx
lea ecx, [ebp - 0x20]
call fcn.00405810
push 0x51d1cc
lea ecx, [ebp - 0x20]
push ecx
call fcn.00463ba8
push ebx
lea ecx, [ebp - 0x20]
call fcn.00405810
push 0x51d1cc
lea edx, [ebp - 0x20]
push edx
call fcn.00463ba8
int3
Function at 0x458110
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [esi + 0x10], 0
jne 0x458120
mov al, 1
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.00404d10
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
setne al
test al, al
je 0x458149
mov ecx, esi
call fcn.00404d10
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x45811a
cmp dword [esi + 0x10], 0
je 0x458180
mov ecx, esi
call fcn.004055b0
cmp eax, 2
jb 0x458180
push edi
mov ecx, esi
call fcn.00404e90
mov edi, eax
add edi, dword [esi + 0x10]
push esi
lea ecx, [ebp - 4]
call fcn.004045c0
mov dword [ebp - 4], edi
cmp byte [edi - 1], 0x3a
pop edi
sete al
test al, al
jne 0x45811a
push 0
mov ecx, esi
call fcn.00404d10
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
neg eax
sbb eax, eax
neg eax
mov esp, ebp
pop ebp
ret
Function at 0x4593a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4dcb12
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x5246f0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, edx
mov eax, dword [ebp + 8]
lea esi, [esp + 0x1c]
mov dword [edi + 4], ebx
mov dword [edi + 8], eax
mov byte [edi + 0xc], cl
call fcn.004591f0
lea edx, [esp + 0x14]
mov dword [esp + 0x38], 0
push edx
mov ecx, esi
mov dword [esp + 0x18], ebx
call fcn.0045abd0
mov esi, eax
push esi
lea eax, [edi + 0x10]
call fcn.0045a8a0
mov eax, dword [esi + 0x10]
mov dword [edi + 0x20], eax
mov dword [esp + 0x38], 1
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x1c]
mov dword [esp + 0x10], ecx
push edx
lea ecx, [esp + 0x14]
call fcn.004045c0
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x1c]
mov dword [esp + 0x14], ecx
push edx
lea ecx, [esp + 0x18]
call fcn.004045c0
mov eax, dword [esp + 0x14]
push esi
push eax
lea edi, [esp + 0x20]
lea esi, [esp + 0x24]
call fcn.0045af20
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0045f517
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x45c4b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db088
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x5246f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push str.other
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x150], ebx
call fcn.004053b0
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x150]
push eax
lea ecx, [ebp - 0x149]
lea edi, [ebp - 0x154]
mov dword [ebp - 0x154], ebx
mov dword [ebp - 0x150], ebx
mov byte [ebp - 0x149], bl
call fcn.0045c660
add esp, 4
test al, al
jne 0x45c566
push 0x11c
lea ecx, [ebp - 0x148]
push ebx
push ecx
call fcn.00463ac0
add esp, 0xc
lea edx, [ebp - 0x148]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x45c55d
mov edx, dword [ebp - 0x144]
mov ecx, dword [ebp - 0x140]
mov al, byte [ebp - 0x2e]
jmp 0x45c578
lea eax, [ebp - 0x2c]
push eax
jmp 0x45c62e
mov edx, dword [ebp - 0x154]
mov ecx, dword [ebp - 0x150]
mov al, byte [ebp - 0x149]
cmp al, 3
setne al
cmp edx, 0xa
jne 0x45c596
cmp al, bl
mov eax, str.Win10
jne 0x45c590
mov eax, str.WinServer2016
push eax
jmp 0x45c622
cmp edx, 6
jne 0x45c5f2
cmp ecx, 3
jne 0x45c5b1
cmp al, bl
mov eax, str.Win8.1
jne 0x45c5ae
mov eax, str.WinServer2012R2
push eax
jmp 0x45c622
cmp ecx, 2
jne 0x45c5c7
cmp al, bl
mov eax, str.Win8
jne 0x45c5c4
mov eax, str.WinServer2012
push eax
jmp 0x45c622
cmp ecx, 1
jne 0x45c5dd
cmp al, bl
mov eax, str.Win7
jne 0x45c5da
mov eax, str.WinServer2008R2
push eax
jmp 0x45c622
cmp ecx, ebx
jne 0x45c62a
cmp al, bl
mov eax, str.WinVista
jne 0x45c5ef
mov eax, str.WinServer2008
push eax
jmp 0x45c622
cmp edx, 5
jne 0x45c62a
cmp ecx, 2
jne 0x45c60d
cmp al, bl
mov eax, str.WinXPPro
jne 0x45c60a
mov eax, str.WinServer2003
push eax
jmp 0x45c622
cmp ecx, 1
jne 0x45c619
push str.WinXP
jmp 0x45c622
cmp ecx, ebx
jne 0x45c62a
push str.Win2000
lea ecx, [ebp - 0x2c]
call fcn.00405380
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, esi
call fcn.00404720
lea ecx, [ebp - 0x2c]
call fcn.00405520
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045f522
mov esp, ebp
pop ebp
ret
Function at 0x45cb10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4dcf58
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
mov eax, dword [0x5246f0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
test eax, eax
jne 0x45cb59
xor al, al
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [ecx + 0x10], 0
je 0x45cb44
mov dl, byte [eax + 8]
test dl, dl
je 0x45cb44
cmp dl, 7
jne 0x45cb44
and dword [esp + 0x14], 0xfffffe00
mov dword [esp + 0x18], 0
push eax
lea eax, [esp + 0x10]
lea edx, [esp + 0x20]
mov dword [esp + 0x3c], 1
call fcn.00452710
cmp byte [esp + 0x24], 0
lea ecx, [esp + 0x1c]
setne bl
call fcn.00451aa0
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], 0xffffffff
call fcn.00451aa0
mov al, bl
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x45d0a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db558
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x5246f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, ecx
xor esi, esi
mov dword [ebp - 0x34], eax
cmp ebx, esi
je 0x45d1a4
mov edi, dword [ebp + 0xc]
cmp edi, esi
je 0x45d1a4
mov eax, dword [eax + 4]
cmp eax, esi
je 0x45d1a0
cmp eax, 0xffffffff
je 0x45d1a0
push esi
lea ecx, [ebp - 0x30]
push ecx
push edi
push ebx
push eax
mov dword [ebp - 0x30], esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x45d144
add esi, dword [ebp - 0x30]
mov edi, dword [ebp + 0xc]
cmp esi, edi
jae 0x45d1a4
mov ecx, dword [ebp - 0x34]
push 0
lea edx, [ebp - 0x30]
push edx
mov edx, dword [ecx + 4]
sub edi, esi
push edi
lea eax, [ebx + esi]
push eax
push edx
mov dword [ebp - 0x30], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x45d111
mov eax, dword [ebp - 0x34]
add eax, 8
lea esi, [ebp - 0x2c]
call fcn.00457b60
mov ebx, eax
mov dword [ebp - 4], 0
call fcn.0045d6f0
mov esi, eax
call fcn.0045d460
mov esi, eax
push edi
lea eax, [esi + 0x50]
push eax
call fcn.00458970
call fcn.0045d4a0
mov ecx, ebx
mov esi, eax
call fcn.004587e0
mov esi, eax
call fcn.00458870
mov ecx, 0x45d790
test ecx, ecx
je 0x45d198
mov edi, eax
call fcn.0045d7b0
lea ecx, [ebp - 0x2c]
call fcn.00405520
xor al, al
jmp 0x45d1a6
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045f522
mov esp, ebp
pop ebp
ret 8
Function at 0x45ddf0
Capabilities:
Check if file exists
Get file size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi + 0x20]
sub esp, 8
push ebx
xor ebx, ebx
push edi
cmp eax, ebx
je 0x45de0a
cmp eax, 0xffffffff
jne 0x45de96
mov dword [esi + 0x20], ebx
cmp dword [esi + 0x14], ebx
je 0x45dea5
lea ecx, [esi + 4]
call fcn.00404d10
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
setne al
cmp al, bl
je 0x45dea5
lea ecx, [esi + 4]
call fcn.00404d10
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x45dea5
lea ecx, [esi + 4]
call fcn.00404d10
push ebx
push ebx
push 3
push ebx
push ebx
push Ordinal_4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x45dea5
lea eax, [ebp - 8]
push eax
push edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x45de9e
mov ecx, dword [ebp - 4]
cmp ecx, ebx
jl 0x45de9e
mov eax, dword [ebp - 8]
jg 0x45de87
cmp eax, ebx
jbe 0x45de9e
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x20], edi
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov al, 1
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45deb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
sub esp, 8
push esi
mov esi, eax
mov eax, dword [ebp + 8]
mov dword [eax], 0
push edi
mov byte [ecx], 0
test ebx, ebx
je 0x45df6d
call fcn.0045ddf0
test al, al
je 0x45df6d
mov edx, dword [esi + 0x34]
xor edi, edi
cmp edx, dword [esi + 0x2c]
jg 0x45df3f
jl 0x45def2
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x28]
jae 0x45df3f
cmp edi, 0x400
jae 0x45df3f
push 0
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [esi + 0x20]
mov edx, 0x400
sub edx, edi
push edx
lea eax, [edi + ebx]
push eax
push ecx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45df68
mov eax, dword [ebp - 4]
add edi, eax
add dword [esi + 0x30], eax
adc dword [esi + 0x34], 0
mov edx, dword [esi + 0x34]
cmp edx, dword [esi + 0x2c]
jl 0x45def2
jg 0x45df3f
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x28]
jb 0x45def2
mov ecx, dword [ebp + 8]
mov dword [ecx], edi
mov edx, dword [esi + 0x34]
cmp edx, dword [esi + 0x2c]
jl 0x45df77
jg 0x45df56
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x28]
jb 0x45df77
mov ecx, dword [ebp + 0xc]
mov eax, 1
mov byte [ecx], al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
call fcn.0045ddc0
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 0xc]
xor eax, eax
pop edi
mov byte [ecx], al
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x45f522
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5246f0]
jne 0x45f52c
repz ret
jmp fcn.00466785
Function at 0x474af8
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5246f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004679fc
and dword [ebp - 0x14], 0
cmp dword [0x5289e0], 0
mov dword [ebp - 0x18], eax
jne 0x474bab
push 0x4e3830
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x474c53
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4e3824
push ebx
call edi
test eax, eax
je 0x474c53
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x4e3814
push ebx
mov dword [0x5289e0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x5289e4], eax
call edi
push eax
call esi
push 0x4e37e4
push ebx
mov dword [0x5289e8], eax
call edi
push eax
call esi
mov dword [0x5289f0], eax
test eax, eax
je 0x474bab
push 0x4e37cc
push ebx
call edi
push eax
call esi
mov dword [0x5289ec], eax
mov eax, dword [0x5289ec]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x474c04
cmp dword [0x5289f0], ecx
je 0x474c04
push eax
call esi
push dword [0x5289f0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x474c04
test ebx, ebx
je 0x474c04
call edi
test eax, eax
je 0x474bfb
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x474bfb
test byte [ebp - 8], 1
jne 0x474c04
or dword [ebp + 0x10], 0x200000
jmp 0x474c37
mov eax, dword [0x5289e4]
cmp eax, dword [ebp - 0x18]
je 0x474c37
push eax
call esi
test eax, eax
je 0x474c37
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x474c37
mov eax, dword [0x5289e8]
cmp eax, dword [ebp - 0x18]
je 0x474c37
push eax
call esi
test eax, eax
je 0x474c37
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5289e0]
call esi
test eax, eax
je 0x474c53
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x474c55
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045f522
leave
ret

Function at 0x47a370
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x5c
push 0
push esi
call fcn.00463ac0
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov eax, 1
pop esi
ret