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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
xor eax, eax
push 0x56332c
mov dword [ebp - 8], eax
mov byte [ebp - 4], al
mov word [ebp - 3], ax
mov byte [ebp - 1], al
lea eax, [ebp - 8]
push esi
push eax
call fcn.0050e643
add esp, 0xc
test eax, eax
jne 0x4068f4
mov ecx, dword [ebp - 8]
push ecx
push 1
lea edx, [ebp - 4]
push 2
push edx
call fcn.0050fa19
mov eax, dword [ebp - 8]
push eax
call fcn.0051025e
add esp, 0x14
cmp byte [ebp - 4], 0x4d
jne 0x4068f4
cmp byte [ebp - 3], 0x5a
jne 0x4068f4
mov ecx, esi
call fcn.00406900
cmp eax, 1
jne 0x4068f4
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x406900
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5351e8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x584c30]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [ebp - 0x30]
call fcn.0041a3e5
push 0
push esi
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0
call fcn.0041a48c
test eax, eax
je 0x40695b
lea ecx, [ebp - 0x30]
call fcn.0041a0e7
lea ecx, [ebp - 0x30]
call fcn.0041a124
mov edi, eax
jmp 0x40695e
mov edi, dword [ebp - 0x14]
lea ecx, [ebp - 0x30]
call fcn.0041a001
push 0x56332c
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.0050e643
add esp, 0xc
test eax, eax
jne 0x4069d1
mov ecx, dword [ebp - 0x10]
push eax
push 0x3c
push ecx
call fcn.00510112
mov edx, dword [ebp - 0x10]
push edx
push 4
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.0050fa19
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
push ecx
call fcn.0051025e
add esp, 0x20
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
call fcn.0041a417
cmp esi, edi
ja 0x4069e0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
call fcn.0041a417
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x406b50
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe2c
mov eax, dword [0x584c30]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
push 0x3fe
mov esi, ecx
lea ecx, [ebp - 0x416]
xor eax, eax
push edi
push ecx
mov dword [ebp - 0xe2c], edi
mov word [ebp - 0x418], ax
call fcn.00511ef0
lea edx, [ebp - 0xe18]
add esp, 0xc
mov dword [ebp - 0xe1c], edi
mov eax, esi
sub edx, esi
mov edi, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, di
jne 0x406ba0
lea edx, [ebp - 0xe2c]
push edx
lea eax, [ebp - 0xe18]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
lea ecx, [esi + 1]
push ecx
call fcn.0050f32b
add esp, 4
mov ebx, eax
push ebx
push esi
push edi
lea edx, [ebp - 0xe18]
push edx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x406ca4
lea eax, [ebp - 0xe20]
push eax
lea ecx, [ebp - 0xe28]
push ecx
push str.VarFileInfoTranslation
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x406ca4
mov edx, dword [ebp - 0xe20]
shr edx, 2
test edx, edx
jle 0x406ca4
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [ebp - 0xe28]
mov ecx, dword [eax + edi*4]
rol ecx, 0x10
push ecx
lea edx, [ebp - 0x18]
push str._08X
push edx
call esi
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x618]
push str.StringFileInfo_sFileVersion
push ecx
mov dword [ebp - 0xe24], 0x200
call esi
add esp, 0x18
lea edx, [ebp - 0xe24]
push edx
lea eax, [ebp - 0xe1c]
push eax
lea ecx, [ebp - 0x618]
push ecx
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x406c96
mov edx, dword [ebp - 0xe1c]
push edx
lea eax, [ebp - 0x418]
push 0x200
push eax
call fcn.0051018e
add esp, 0xc
mov ecx, dword [ebp - 0xe20]
inc edi
shr ecx, 2
cmp edi, ecx
jl 0x406c24
test ebx, ebx
je 0x406cb1
push ebx
call fcn.0050ef8d
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
lea eax, [ebp - 0x418]
pop ebx
call fcn.0050e062
mov esp, ebp
pop ebp
ret
Function at 0x406cd0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x584c30]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x1fe
mov esi, ecx
push eax
lea ecx, [ebp - 0x206]
push ecx
mov word [ebp - 0x208], ax
call fcn.00511ef0
add esp, 0xc
push 0
push 0x8000000
push 3
push 0
push 1
push SysReAllocStringLen
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0
push 0
push 0x8000002
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
test ebx, ebx
jne 0x406d55
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050e062
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
push 0
test esi, esi
jne 0x406d91
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call esi
push ebx
call esi
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050e062
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x3c]
mov eax, dword [edx + esi + 8]
cdq
add eax, 0xb6109100
push 0x989680
adc edx, 2
push edx
push eax
call fcn.005136c0
mov dword [ebp - 0x220], eax
mov eax, edx
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x21c], edx
push ecx
lea edx, [ebp - 0x220]
push edx
sar eax, 0x1f
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
movzx eax, word [ebp - 0x20c]
movzx ecx, word [ebp - 0x20e]
movzx edx, word [ebp - 0x210]
push eax
movzx eax, word [ebp - 0x212]
push ecx
movzx ecx, word [ebp - 0x216]
push edx
movzx edx, word [ebp - 0x218]
push eax
push ecx
push edx
push str._d__02d__02d__02d:_02d:_02d
lea eax, [ebp - 0x208]
push 0x100
push eax
call fcn.0050e750
add esp, 0x24
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x406e2f
push edi
call esi
push ebx
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
lea eax, [ebp - 0x208]
pop ebx
call fcn.0050e062
mov esp, ebp
pop ebp
ret
Function at 0x406fc0
Capabilities:
Check if file exists
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1210
call fcn.00512be0
mov eax, dword [0x584c30]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x7fe
xor esi, esi
lea ecx, [ebp - 0xa0a]
xor eax, eax
push esi
push ecx
mov word [ebp - 0xa0c], ax
call fcn.00511ef0
push 0x7fe
lea eax, [ebp - 0x120a]
xor edx, edx
push esi
push eax
mov word [ebp - 0x120c], dx
call fcn.00511ef0
push 0x206
lea edx, [ebp - 0x20a]
xor ecx, ecx
push esi
push edx
mov word [ebp - 0x20c], cx
call fcn.00511ef0
mov eax, dword [edi + 0xc8]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
add esp, 0x24
push esi
push esi
push 0x1004
push eax
mov dword [ebp - 0x1210], esi
call ebx
test eax, eax
jle 0x4071cb
push esi
lea ecx, [edi + 0xa8]
call fcn.0041a7b5
cmp eax, 1
jne 0x407174
push 0x400
lea ecx, [ebp - 0xa0c]
push ecx
push 0
push esi
lea ecx, [edi + 0xa8]
call fcn.00412dc5
lea edx, [ebp - 0xa0c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x407174
lea eax, [ebp - 0xa0c]
push eax
lea ecx, [ebp - 0x120c]
push 0x400
push ecx
call fcn.0051018e
lea edx, [ebp - 0x120c]
push edx
call fcn.0050fc20
lea eax, [ebp - 0x120c]
push 0x5c
push eax
call fcn.0050e68a
add esp, 0x18
test eax, eax
je 0x4070d6
xor ecx, ecx
mov word [eax], cx
lea edx, [ebp - 0x120c]
push edx
call fcn.0050fc20
add esp, 4
cmp dword [0x58dac0], 1
jne 0x407114
push 0x5633f0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x407109
push eax
push 0x5633f0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [ebp - 0xa0c]
call fcn.00409bd0
lea eax, [ebp - 0xa0c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x407158
lea ecx, [ebp - 0xa0c]
push ecx
push str._s.mal
lea edx, [ebp - 0x20c]
push 0x104
push edx
call fcn.0050e750
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0xa0c]
push ecx
call fcn.0050fc8d
add esp, 0x18
mov edx, dword [edi + 0xc8]
push 0
push esi
push 0x1008
push edx
call ebx
dec esi
mov dword [ebp - 0x1210], 1
mov eax, dword [edi + 0xc8]
push 0
push 0
push 0x1004
push eax
inc esi
call ebx
cmp esi, eax
jl 0x407053
cmp dword [ebp - 0x1210], 1
jne 0x4071cb
push 0x5628c8
lea ecx, [edi + 0x618]
call fcn.0042291f
push 0x5628c8
lea ecx, [edi + 0x5a4]
call fcn.0042291f
push 0
push 0x5629d8
push str.Deleted_successfully
mov ecx, edi
call fcn.0041e439
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0050e062
mov esp, ebp
pop ebp
ret
Function at 0x409200
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x584c30]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x7fc
lea eax, [ebp - 0x804]
push 0
push eax
mov esi, ecx
mov dword [ebp - 0x808], 0x30
call fcn.00511ef0
push 0x400
lea ecx, [ebp - 0x808]
push esi
push ecx
call fcn.0050ee9e
add esp, 0x18
push 0
push 0x2000000
push 3
push 0
push 0
push 0x20000
lea edx, [ebp - 0x808]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp esi, 0xffffffff
jne 0x40928c
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050e062
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0050e062
mov esp, ebp
pop ebp
ret

Function at 0x409d40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x584c30]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x7fe
mov esi, ecx
push eax
lea ecx, [ebp - 0x802]
push ecx
mov word [ebp - 0x804], ax
call fcn.00511ef0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x409def
test al, 0x10
je 0x409def
push esi
push 0x5632b4
lea edx, [ebp - 0x804]
push 0x400
push edx
call fcn.0050e750
add esp, 0x10
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x409e3f
lea ecx, [ebp - 0x804]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea edx, [ebp - 0x804]
push edx
mov esi, eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push esi
lea eax, [ebp - 0x804]
push eax
push edi
call fcn.0040e730
add esp, 0xc
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050e062
mov esp, ebp
pop ebp
ret
push esi
push 0x5632b4
lea ecx, [ebp - 0x804]
push 0x400
push ecx
call fcn.0050e750
add esp, 0x10
lea edx, [ebp - 0x804]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x409e3f
push ebx
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push edi
mov ecx, 2
lea esi, [ebp - 0x804]
mov ebx, eax
call fcn.0040e640
add esp, 4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0050e062
mov esp, ebp
pop ebp
ret
Function at 0x40c520
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, eax
xor ebx, ebx
push edi
mov dword [ebp - 4], 0
mov dword [esi + 0x6af80], 2
cmp dword [esi + 0x6af90], ebx
je 0x40c73e
lea ebx, [ebx]
cmp dword [esi + 0x6af90], 3
jb 0x40c5a7
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [ecx + esi + 0x1af72]
mov edx, dword [esi + 0x6af7c]
shl edx, 5
xor eax, edx
and eax, 0x7fff
mov dword [esi + 0x6af7c], eax
mov eax, dword [esi + eax*4 + 0x4af70]
and ecx, 0x7fff
mov dword [esi + ecx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af84]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x6af7c]
mov dword [esi + eax*4 + 0x4af70], ecx
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x40c5e7
mov edx, dword [esi + 0x6af84]
sub edx, ecx
cmp edx, 0x7efa
ja 0x40c5e7
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x40c5d2
mov dword [esi + 0x6afa0], eax
mov eax, ecx
call fcn.0040c240
mov ebx, eax
mov eax, dword [esi + 0x6af90]
cmp ebx, eax
jbe 0x40c5e7
mov ebx, eax
mov eax, dword [esi + 0x6af84]
mov ecx, esi
cmp ebx, 3
jb 0x40c6cb
sub eax, dword [esi + 0x6af88]
lea edx, [ebx - 3]
call fcn.0040b9f0
sub dword [esi + 0x6af90], ebx
mov ecx, dword [esi + 0x6af90]
mov dword [ebp - 8], eax
cmp ebx, dword [esi + 0x6af98]
ja 0x40c694
cmp ecx, 3
jb 0x40c694
mov edi, 1
sub ebx, edi
lea esp, [esp]
add dword [esi + 0x6af84], edi
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [esi + edx + 0x1af72]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
xor ecx, eax
and ecx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov ecx, dword [esi + ecx*4 + 0x4af70]
and edx, 0x7fff
sub ebx, edi
mov dword [esi + edx*4 + 0x2af70], ecx
mov edx, dword [esi + 0x6af84]
mov dword [ebp - 4], ecx
mov ecx, dword [esi + 0x6af7c]
mov dword [esi + ecx*4 + 0x4af70], edx
jne 0x40c630
add dword [esi + 0x6af84], edi
mov eax, dword [ebp - 8]
jmp 0x40c6e6
add dword [esi + 0x6af84], ebx
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [edx + esi + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx edx, byte [edx + esi + 0x1af71]
shl ecx, 5
xor edx, ecx
xor ebx, ebx
and edx, 0x7fff
mov dword [esi + 0x6af7c], edx
jmp 0x40c6e6
movzx edx, byte [eax + esi + 0x1af70]
xor eax, eax
call fcn.0040b9f0
dec dword [esi + 0x6af90]
inc dword [esi + 0x6af84]
test eax, eax
je 0x40c720
mov eax, dword [esi + 0x6af74]
test eax, eax
js 0x40c6fd
lea ecx, [eax + esi + 0x1af70]
jmp 0x40c6ff
xor ecx, ecx
mov edi, dword [esi + 0x6af84]
push 0
sub edi, eax
push ecx
mov eax, esi
call fcn.0040b830
mov ecx, dword [esi + 0x6af84]
add esp, 8
mov dword [esi + 0x6af74], ecx
cmp dword [esi + 0x6af90], 0x106
jae 0x40c731
call fcn.0040c3e0
cmp dword [esi + 0x6af90], 0
jne 0x40c550
mov eax, dword [esi + 0x6af74]
test eax, eax
js 0x40c751
lea ecx, [eax + esi + 0x1af70]
jmp 0x40c753
xor ecx, ecx
mov edi, dword [esi + 0x6af84]
push 1
sub edi, eax
push ecx
mov eax, esi
call fcn.0040b830
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d340
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x40d347
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x40d41d
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 + 0x563d00]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x563d00]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x563d00]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x563d00]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x563d00]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x563d00]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x563d00]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x563d00]
add ecx, 8
sub edx, 8
dec esi
jne 0x40d360
pop edi
test edx, edx
je 0x40d43a
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x563d00]
inc ecx
dec edx
jne 0x40d421
not eax
pop esi
ret
Function at 0x40d8c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [esi + 0x18], 0
je 0x40d98c
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
push ebx
push edi
mov edi, dword [ebp + 0xc]
add eax, edi
cmp eax, ecx
jb 0x40d96b
add ecx, ecx
cmp ecx, eax
jbe 0x40d8f0
mov edi, ecx
mov dword [ebp - 4], edi
jmp 0x40d8f5
mov dword [ebp - 4], eax
mov edi, eax
push 0
push edi
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
test ebx, ebx
je 0x40d92a
push edi
push 0
push 0
push 0xf001f
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x40d937
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 0x300
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x18]
push ecx
push edx
push edi
call fcn.00514300
mov eax, dword [esi + 0x18]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 4]
mov dword [esi + 0x18], edi
mov edi, dword [ebp + 0xc]
mov dword [esi + 0x20], edx
mov dword [esi + 4], ebx
mov ecx, dword [esi + 0x1c]
mov eax, dword [ebp + 8]
add ecx, dword [esi + 0x18]
push edi
push eax
push ecx
call fcn.00514300
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi]
test eax, eax
je 0x40d9b7
mov ecx, dword [ebp + 0xc]
push 0
lea edx, [ebp - 4]
push edx
mov edx, dword [ebp + 8]
push ecx
push edx
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
mov dword [esi + 0xc], 0x1000000
xor eax, eax
mov esp, ebp
pop ebp
ret 8

Function at 0x40dce0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [esi + 0x58]
push edi
test ecx, ecx
je 0x40dd27
mov eax, dword [esi + 0x60]
mov edi, dword [esi + 0x5c]
cmp eax, edi
jae 0x40dd64
sub edi, eax
cmp edi, edx
jbe 0x40dcfe
mov edi, edx
push edi
add eax, ecx
push eax
push ebx
call fcn.00514300
mov eax, dword [esi + 0x4c]
add dword [esi + 0x60], edi
add dword [esi + 0x48], edi
add esp, 0xc
mov edx, edi
mov ecx, ebx
call fcn.0040d340
mov dword [esi + 0x4c], eax
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x50]
test eax, eax
je 0x40dd5d
push 0
lea ecx, [ebp - 4]
push ecx
push edx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40dd64
mov edi, dword [ebp - 4]
mov eax, dword [esi + 0x4c]
add dword [esi + 0x48], edi
mov edx, edi
mov ecx, ebx
call fcn.0040d340
mov dword [esi + 0x4c], eax
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0xc], 0x1000000
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x40deb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, eax
push edi
mov dword [ebp - 4], 0
lea ebx, [esi + 0x68]
mov ecx, dword [esi + 0x58]
test ecx, ecx
je 0x40def7
mov eax, dword [esi + 0x60]
mov edi, dword [esi + 0x5c]
cmp eax, edi
jae 0x40df4a
sub edi, eax
cmp edi, 0x4000
jbe 0x40dee5
mov edi, 0x4000
push edi
add eax, ecx
push eax
push ebx
call fcn.00514300
add esp, 0xc
add dword [esi + 0x60], edi
jmp 0x40df18
mov eax, dword [esi + 0x50]
test eax, eax
je 0x40df43
push 0
lea ecx, [ebp - 8]
push ecx
push 0x4000
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40df4a
mov edi, dword [ebp - 8]
mov eax, dword [esi + 0x4c]
add dword [esi + 0x48], edi
mov edx, edi
mov ecx, ebx
call fcn.0040d340
mov dword [esi + 0x4c], eax
test edi, edi
je 0x40df4a
cmp edi, 0xffffffff
je 0x40df4a
push edi
push ebx
call fcn.0040d8c0
cmp eax, edi
jne 0x40df59
add dword [ebp - 4], edi
jmp 0x40dec5
mov dword [esi + 0xc], 0x1000000
mov edx, dword [ebp - 4]
pop edi
mov dword [esi + 0x64], edx
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x60000
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413fb8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x414000
call fcn.0041c4e6
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x414000
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x414043
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x41402c
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x41402c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x414040
mov ecx, dword [esi + 0x68]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x415e16
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0041c4e6
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x415e4f
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00415a53
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x415ead
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x415ed1
cmp dword [edi + 0x74], 0
jne 0x415ed1
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.0041c4e6
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00415e6e
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8