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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov dword [ebp - 8], ebx
mov edi, 1
cmp byte [esi], 0
je 0x41411b
push 0
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 1]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x414116
mov byte [esi + 8], 1
mov edi, dword [ebp - 8]
jmp 0x414148
mov ebx, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
lea eax, [ebx + 1]
cmp eax, ecx
jbe 0x41412c
mov edi, ecx
sub edi, ebx
mov eax, dword [esi + 0x10]
add eax, ebx
push edi
push eax
lea eax, [ebp - 1]
push eax
call fcn.0056f220
lea eax, [ebx + edi]
add esp, 0xc
mov ebx, dword [ebp - 8]
mov dword [esi + 0x18], eax
cmp edi, 1
jne 0x41415c
movzx eax, byte [ebp - 1]
mov dword [ebx], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x414153
cmp byte [esi + 8], 0
je 0x414153
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x414220
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
mov edi, ecx
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [edi], 0
je 0x414254
cmp byte [edi + 1], 0
je 0x41424d
push 2
push 0
push 0
push dword [edi + 4]
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x41425a
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x14]
mov dword [edi + 0x18], eax
cmp byte [edi], 0
push ebx
je 0x41427d
cmp byte [edi + 1], 0
je 0x414276
push 1
push 0
push 0
push dword [edi + 4]
call ecx
sub eax, dword [edi + 0xc]
jmp 0x414280
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x41428f
mov eax, dword [edi + 0x18]
mov ebx, 0xffff
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ebx
cmp eax, ebx
jae 0x414294
mov ebx, eax
mov dword [ebp - 0xc], eax
push esi
push 0x404
call fcn.0057d9c9
mov esi, eax
add esp, 4
test esi, esi
jne 0x4142af
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
mov eax, 4
mov dword [ebp - 0x10], 0
cmp ebx, eax
jbe 0x4143aa
mov edx, dword [ebp - 4]
add eax, 0x400
cmp eax, ebx
mov ecx, eax
mov eax, 0x404
cmova ecx, ebx
sub edx, ecx
mov dword [ebp - 0x1c], ecx
cmp ecx, 0x404
mov dword [ebp - 0x18], edx
mov ebx, ecx
cmova ebx, eax
cmp byte [edi], 0
je 0x41430e
cmp byte [edi + 1], 0
je 0x4143aa
mov eax, dword [edi + 0xc]
push 0
push 0
add eax, edx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x414311
mov dword [edi + 0x18], edx
cmp byte [edi], 0
mov ecx, ebx
mov dword [ebp - 8], ebx
je 0x414339
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
push esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x414334
mov byte [edi + 8], 1
mov eax, dword [ebp - 0x14]
jmp 0x414362
mov edx, dword [edi + 0x18]
lea eax, [edx + ebx]
cmp eax, dword [edi + 0x14]
jbe 0x41434c
mov ecx, dword [edi + 0x14]
sub ecx, edx
mov dword [ebp - 8], ecx
push ecx
mov ecx, dword [edi + 0x10]
add ecx, edx
push ecx
push esi
call fcn.0056f220
mov eax, dword [ebp - 8]
add esp, 0xc
add dword [edi + 0x18], eax
xor edx, edx
div ebx
cmp eax, 1
jne 0x4143aa
lea eax, [ebx - 3]
test eax, eax
jle 0x41439c
dec eax
cmp byte [eax + esi], 0x50
jne 0x41438e
cmp byte [eax + esi + 1], 0x4b
jne 0x41438e
cmp byte [eax + esi + 2], 5
jne 0x41438e
cmp byte [eax + esi + 3], 6
je 0x414394
test eax, eax
jg 0x414372
jmp 0x41439c
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
jne 0x4143aa
mov eax, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0xc]
cmp eax, ebx
jb 0x4142c3
push esi
call fcn.00577f41
mov eax, dword [ebp - 0x10]
add esp, 4
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4157e0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5f9e74]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, edx
push esi
mov esi, ecx
test ebx, ebx
je 0x4158a6
mov al, byte [ebx]
test al, al
je 0x4158a6
push edi
mov edi, ebx
mov ecx, ebx
cmp al, 0x2f
je 0x415818
cmp al, 0x5c
jne 0x41581a
mov edi, ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x415810
cmp edi, ebx
je 0x415856
sub edi, ebx
lea eax, [ebp - 0x108]
push edi
push ebx
push eax
call fcn.0057d7dd
add esp, 0xc
cmp edi, 0x104
jae 0x4158b6
lea edx, [ebp - 0x108]
mov byte [ebp + edi - 0x108], 0
mov ecx, esi
call fcn.004157e0
lea ecx, [ebp - 0x20c]
sub ecx, esi
nop
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x415860
mov esi, ebx
nop
mov al, byte [ebx]
inc ebx
test al, al
jne 0x415870
lea edi, [ebp - 0x20c]
sub ebx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x415880
mov ecx, ebx
lea eax, [ebp - 0x20c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00568e6a
mov esp, ebp
pop ebp
ret
call fcn.0056948c
int3
Function at 0x415b80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push 0x23c
mov ebx, ecx
call fcn.00427083
mov esi, eax
add esp, 4
mov dword [ebp - 4], esi
test esi, esi
je 0x415bb7
mov dword [esi], 0
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0x134], 0xffffffff
jmp 0x415bb9
xor esi, esi
cmp dword [esi], 0
jne 0x415c14
cmp dword [esi + 4], 0xffffffff
jne 0x415c14
push edi
lea edi, [esi + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x415bd8
mov ax, word [0x5d3568]
mov word [edi], ax
lea eax, [ebp - 4]
push eax
push ecx
mov ecx, ebx
call fcn.00413fc0
add esp, 8
pop edi
test eax, eax
jne 0x415c04
mov eax, dword [ebp - 4]
jmp 0x415c19
mov ecx, eax
call fcn.004143c0
mov dword [esi], eax
mov eax, dword [0x60536c]
jmp 0x415c19
mov eax, 0x1000000
mov dword [0x605368], eax
test eax, eax
je 0x415c38
push 0x23c
push esi
call fcn.00568e9e
add esp, 8
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 8
call fcn.00427083
add esp, 4
mov dword [eax + 4], esi
pop esi
mov dword [eax], 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4162f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x18], 0
je 0x4163b2
mov eax, dword [esi + 0x20]
push ebx
mov ebx, dword [esi + 0x1c]
push edi
mov edi, dword [ebp + 0xc]
add ebx, edi
cmp ebx, eax
jb 0x416391
add eax, eax
push 0
cmp eax, ebx
cmova ebx, eax
push ebx
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x416353
push ebx
push 0
push 0
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 4], eax
test eax, eax
jne 0x416361
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov eax, 0x300
pop esi
mov esp, ebp
pop ebp
ret 8
push dword [esi + 0x20]
push dword [esi + 0x18]
push eax
call fcn.0056f220
add esp, 0xc
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x20], ebx
mov dword [esi + 4], eax
mov ecx, dword [esi + 0x1c]
add ecx, dword [esi + 0x18]
push edi
push dword [ebp + 8]
push ecx
call fcn.0056f220
add esp, 0xc
mov eax, edi
add dword [esi + 0x1c], edi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi]
test eax, eax
je 0x4163dc
push 0
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret 8
mov dword [esi + 0xc], 0x1000000
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x416670
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59084b
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x5f9e74]
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 ebx, ecx
mov dword [ebp - 0x90], vtable.CBaseFile.0
mov dword [ebp - 0x88], 0
mov byte [ebp - 0x8c], 0
mov dword [ebp - 4], 0
cmp dword [ebx + 0x14], 0x10
jb 0x4166cc
mov eax, dword [ebx]
jmp 0x4166ce
mov eax, ebx
push 0x11
push eax
lea ecx, [ebp - 0x90]
call fcn.00404180
mov byte [ebp - 0x81], al
test al, al
jne 0x4166ed
xor bl, bl
jmp 0x41681f
push 0x2d000
call fcn.004270ba
add esp, 4
mov edi, eax
cmp byte [ebp - 0x8c], 0
mov eax, dword [ebp - 0x88]
je 0x41673d
test eax, eax
je 0x41673d
push eax
push 0x2d000
push 1
push edi
call fcn.0057379c
push dword [ebp - 0x88]
mov esi, eax
call fcn.005724c4
or ecx, 0xffffffff
add esp, 0x14
test eax, eax
mov eax, dword [ebp - 0x88]
cmovne esi, ecx
jmp 0x41673f
xor esi, esi
mov byte [ebp - 0x18], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x80], 0x67452301
mov dword [ebp - 0x7c], 0xefcdab89
mov dword [ebp - 0x78], 0x98badcfe
mov dword [ebp - 0x74], 0x10325476
test esi, esi
jle 0x4167c2
push esi
push edi
lea ecx, [ebp - 0x80]
call fcn.004055c0
cmp esi, 0x2d000
jl 0x4167bc
cmp byte [ebp - 0x8c], 0
je 0x4167bc
mov eax, dword [ebp - 0x88]
test eax, eax
je 0x4167d9
push eax
push 0x2d000
push 1
push edi
call fcn.0057379c
push dword [ebp - 0x88]
mov esi, eax
call fcn.005724c4
add esp, 0x14
test eax, eax
jne 0x4167bc
test esi, esi
jg 0x416771
mov eax, dword [ebp - 0x88]
test eax, eax
je 0x4167d9
push eax
call fcn.0057235f
add esp, 4
test eax, eax
jne 0x4167e0
mov dword [ebp - 0x88], eax
mov byte [ebp - 0x8c], 0
push edi
call fcn.004270c3
add esp, 4
cmp byte [ebp - 0x18], 0
jne 0x4167fb
lea ecx, [ebp - 0x80]
call fcn.00405670
mov byte [ebp - 0x18], 1
add ebx, 0x18
jne 0x416812
call fcn.00573c36
mov dword [eax], 0x16
call fcn.00571ae1
jmp 0x416819
movups xmm0, xmmword [ebp - 0x28]
movups xmmword [ebx], xmm0
mov bl, byte [ebp - 0x81]
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x90], vtable.CBaseFile.0
test eax, eax
je 0x41683c
push eax
call fcn.0057235f
add esp, 4
mov al, bl
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.00568e6a
mov esp, ebp
pop ebp
ret
Function at 0x416860
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5903ff
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5f9e74]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4168ea
test al, 1
je 0x4168ea
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4168ea
mov eax, dword [0x605350]
test eax, eax
jne 0x4168d9
push 0x3c
call fcn.00427083
add esp, 4
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x4168d2
mov ecx, eax
call fcn.004048d0
jmp 0x4168d4
xor eax, eax
mov dword [0x605350], eax
push edi
push str._COMEBACK_:set__s_not_readonly_failed_n
push 2
push eax
call fcn.00404c70
add esp, 0x10
cmp dword [esi + 0x14], 0x10
jb 0x4168f2
mov esi, dword [esi]
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
dec eax
neg eax
sbb eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4171a0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x5f9e74]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x124
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x140], edx
mov esi, ecx
mov dword [ebp - 0x130], pe_nt_image_headers32
push 0
push eax
mov dword [ebp - 0x134], esi
call fcn.0056ecf0
add esp, 0xc
push 0
push 0xf
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
lea eax, [ebp - 0x130]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32First]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4172b3
nop dword [eax]
lea eax, [ebp - 0x10c]
push esi
push eax
call fcn.0057df3f
add esp, 8
test eax, eax
jne 0x41729d
push dword [ebp - 0x128]
mov dword [ebp - 0x138], 0xffffffff
push 1
push 0x1fffff
mov dword [ebp - 0x13c], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x417297
lea eax, [ebp - 0x13c]
push eax
push 0xf00ff
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x41726f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call edi
jmp 0x417297
push esi
call edi
lea eax, [ebp - 0x138]
push eax
push dword [ebp - 0x128]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x417297
mov eax, dword [ebp - 0x140]
cmp eax, dword [ebp - 0x138]
je 0x4172cd
mov esi, dword [ebp - 0x134]
lea eax, [ebp - 0x130]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x417210
test ebx, ebx
je 0x4172ba
push ebx
call edi
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00568e6a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x13c]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00568e6a
mov esp, ebp
pop ebp
ret
Function at 0x417c60
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x590a1b
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x5f9e74]
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 dword [ebp - 0x90], edx
mov dword [ebp - 0x8c], vtable.CBaseFile.0
mov dword [ebp - 0x84], 0
mov byte [ebp - 0x88], 0
push 0x11
push ecx
lea ecx, [ebp - 0x8c]
mov dword [ebp - 4], 0
call fcn.00404180
mov bl, al
test bl, bl
je 0x417dff
push 0x2d000
call fcn.004270ba
add esp, 4
mov edi, eax
cmp byte [ebp - 0x88], 0
mov eax, dword [ebp - 0x84]
je 0x417d1e
test eax, eax
je 0x417d1e
push eax
push 0x2d000
push 1
push edi
call fcn.0057379c
push dword [ebp - 0x84]
mov esi, eax
call fcn.005724c4
or ecx, 0xffffffff
add esp, 0x14
test eax, eax
mov eax, dword [ebp - 0x84]
cmovne esi, ecx
jmp 0x417d20
xor esi, esi
mov byte [ebp - 0x18], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x80], 0x67452301
mov dword [ebp - 0x7c], 0xefcdab89
mov dword [ebp - 0x78], 0x98badcfe
mov dword [ebp - 0x74], 0x10325476
test esi, esi
jle 0x417da3
push esi
push edi
lea ecx, [ebp - 0x80]
call fcn.004055c0
cmp esi, 0x2d000
jl 0x417d9d
cmp byte [ebp - 0x88], 0
je 0x417d9d
mov eax, dword [ebp - 0x84]
test eax, eax
je 0x417dba
push eax
push 0x2d000
push 1
push edi
call fcn.0057379c
push dword [ebp - 0x84]
mov esi, eax
call fcn.005724c4
add esp, 0x14
test eax, eax
jne 0x417d9d
test esi, esi
jg 0x417d52
mov eax, dword [ebp - 0x84]
test eax, eax
je 0x417dba
push eax
call fcn.0057235f
add esp, 4
test eax, eax
jne 0x417dc1
mov dword [ebp - 0x84], eax
mov byte [ebp - 0x88], 0
push edi
call fcn.004270c3
add esp, 4
cmp byte [ebp - 0x18], 0
jne 0x417ddc
lea ecx, [ebp - 0x80]
call fcn.00405670
mov byte [ebp - 0x18], 1
mov eax, dword [ebp - 0x90]
test eax, eax
jne 0x417df8
call fcn.00573c36
mov dword [eax], 0x16
call fcn.00571ae1
jmp 0x417dff
movups xmm0, xmmword [ebp - 0x28]
movups xmmword [eax], xmm0
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0x8c], vtable.CBaseFile.0
test ecx, ecx
je 0x417e1c
push ecx
call fcn.0057235f
add esp, 4
mov al, bl
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.00568e6a
mov esp, ebp
pop ebp
ret
Function at 0x417e40
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x590a5f
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5f9e74]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
push 0
push esi
call fcn.00572444
add esp, 8
test eax, eax
jne 0x417ed9
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x417ed9
test al, 1
je 0x417ed9
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x417ed9
mov eax, dword [0x605350]
test eax, eax
jne 0x417ec8
push 0x3c
call fcn.00427083
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x417ec1
mov ecx, eax
call fcn.004048d0
jmp 0x417ec3
xor eax, eax
mov dword [0x605350], eax
push esi
push str._DTLCopyFile_:set__s_not_readonly_failed_n
push 2
push eax
call fcn.00404c70
add esp, 0x10
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
dec eax
neg eax
sbb eax, eax
inc 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 0x418330
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x418345
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x418386
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x418382
nop word [eax + eax]
cmp esi, edx
jae 0x418386
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x418370
cmp esi, edx
jb 0x41838b
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret

Function at 0x418410
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.0042ab2d

Function at 0x419630
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push 0x5d3564
push dword [ebp + 8]
mov dword [ebp - 8], ecx
call fcn.0057228b
mov esi, eax
add esp, 8
test esi, esi
je 0x41966a
push 2
push 0
push esi
call fcn.00573ba2
add esp, 0xc
test eax, eax
je 0x419673
push esi
call fcn.0057235f
add esp, 4
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
push ebx
push esi
call fcn.005735c5
push 0
mov ebx, eax
push 0
push esi
mov dword [ebp + 8], ebx
call fcn.00573ba2
add esp, 0x10
test eax, eax
je 0x4196a3
push esi
call fcn.0057235f
add esp, 4
xor al, al
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4
push edi
push ebx
call fcn.004270ba
add esp, 4
mov edi, eax
push esi
test edi, edi
jne 0x4196c7
call fcn.0057235f
add esp, 4
xor al, al
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4
push ebx
push 1
push edi
call fcn.0057379c
push esi
mov ebx, eax
call fcn.0057235f
add esp, 0x14
cmp ebx, dword [ebp + 8]
jne 0x4196ee
mov edx, ebx
mov ecx, edi
call fcn.00405480
cmp ebx, 0x5c
ja 0x419704
push 1
push edi
call fcn.00568e9e
add esp, 8
xor al, al
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 8]
mov edx, 0x5c
push 0x5c
push edi
call fcn.00407f20
mov ecx, dword [ebp - 8]
add esp, 8
mov dword [ebp - 4], 0x5c
call fcn.00419bb0
lea eax, [ebx - 0x5c]
mov byte [ebp + 0xb], 1
cmp eax, 0x410
jb 0x4197c9
nop dword [eax + eax]
push 0x410
call fcn.00427083
mov esi, eax
add esp, 4
mov dword [ebp - 0xc], esi
test esi, esi
je 0x419768
push 0x410
push 0
push esi
call fcn.0056ecf0
add esp, 0xc
jmp 0x41976a
xor esi, esi
mov dword [ebp - 0xc], esi
test esi, esi
je 0x4197bd
mov eax, dword [ebp - 4]
mov edx, 0x410
add eax, edi
mov ecx, esi
push 0x410
push eax
call fcn.00407f20
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0xc]
add esp, 8
lea ecx, [ecx + 0x5c]
push eax
call fcn.00408f50
mov ecx, dword [ebp - 4]
mov eax, ebx
add ecx, 0x410
sub eax, ecx
mov dword [ebp - 4], ecx
cmp eax, 0x410
jae 0x419740
mov al, byte [ebp + 0xb]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 8]
mov byte [ebp + 0xb], 0
call fcn.00419bb0
mov al, byte [ebp + 0xb]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x419930
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, ecx
push ebx
mov dword [ebp - 4], ebx
call fcn.00419ac0
test al, al
jne 0x41994d
pop ebx
mov esp, ebp
pop ebp
ret 4
push esi
push edi
mov edi, dword [ebx + 0x60]
sub edi, dword [ebx + 0x5c]
sar edi, 2
imul esi, edi, 0x410
mov dword [ebp - 0x14], edi
add esi, 0x5c
push esi
mov dword [ebp - 0x10], esi
call fcn.004270ba
mov ebx, eax
add esp, 4
mov dword [ebp - 0x18], ebx
test ebx, ebx
je 0x419a81
push 0x5c
push dword [ebp - 4]
mov edx, esi
mov ecx, ebx
call fcn.00407f20
xor ecx, ecx
add esp, 8
mov dword [ebp - 0xc], ecx
mov edx, 0x5c
mov dword [ebp - 8], edx
test edi, edi
je 0x419a3c
lea edi, [ebx + 0x5c]
mov eax, dword [ebp - 4]
sub esi, edx
mov eax, dword [eax + 0x5c]
mov ebx, dword [eax + ecx*4]
test edi, edi
jne 0x4199c2
call fcn.00573c36
mov dword [eax], 0x16
jmp 0x419a0f
test ebx, ebx
je 0x4199df
cmp esi, 0x410
jb 0x4199df
push 0x410
push ebx
push edi
call fcn.0056f220
add esp, 0xc
jmp 0x419a14
push esi
push 0
push edi
call fcn.0056ecf0
add esp, 0xc
test ebx, ebx
jne 0x4199fc
call fcn.00573c36
mov dword [eax], 0x16
jmp 0x419a0f
cmp esi, 0x410
jae 0x419a14
call fcn.00573c36
mov dword [eax], 0x22
call fcn.00571ae1
mov ecx, dword [ebp - 0xc]
add edi, 0x410
mov edx, dword [ebp - 8]
inc ecx
mov esi, dword [ebp - 0x10]
add edx, 0x410
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], ecx
cmp ecx, dword [ebp - 0x14]
jb 0x4199a6
mov ebx, dword [ebp - 0x18]
xor ecx, ecx
test esi, esi
jle 0x419a60
mov eax, ecx
and eax, 0x800003ff
jns 0x419a52
dec eax
or eax, 0xfffffc00
inc eax
mov al, byte [eax + 0x5d35e8]
xor byte [ecx + ebx], al
inc ecx
cmp ecx, esi
jl 0x419a42
push 0x5d3560
push dword [ebp + 8]
call fcn.0057228b
mov edi, eax
add esp, 8
test edi, edi
jne 0x419a8c
push 1
push ebx
call fcn.00568e9e
add esp, 8
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
push esi
push 1
push ebx
call fcn.00572f8f
push edi
call fcn.0057235f
push 1
push ebx
call fcn.00568e9e
add esp, 0x1c
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4