joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a110
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, 0x104c
call fcn.00410854
sub esp, 0x104c
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40a139
jmp 0x40a31b
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call fcn.00412c2c
mov dword [ebp - 0x1014], eax
cmp dword [ebp - 0x1014], 0
jne 0x40a15b
jmp 0x40a31b
mov eax, dword [ebp - 0x1014]
sub eax, 1
mov ecx, dword [ebp - 0xc]
movzx eax, word [ecx + eax*2]
cmp eax, 0xa
setne dl
and dl, 1
movzx eax, dl
mov dword [0x423db8], eax
cmp dword [0x423dbc], 0
jne 0x40a191
call fcn.0040a010
mov eax, esp
mov dword [eax], 0xfffffff5
call sub.KERNEL32.DLL_GetStdHandle
sub esp, 4
mov dword [ebp - 0x10], eax
mov eax, dword [0x423dbc]
mov ecx, eax
sub ecx, 3
mov dword [ebp - 0x1018], eax
mov dword [ebp - 0x101c], ecx
je 0x40a2a8
jmp 0x40a1c2
mov eax, dword [ebp - 0x1018]
sub eax, 2
mov dword [ebp - 0x1020], eax
je 0x40a225
jmp 0x40a1d5
mov eax, dword [ebp - 0x1018]
sub eax, 1
mov dword [ebp - 0x1024], eax
jne 0x40a31b
jmp 0x40a1ec
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1014]
lea esi, [ebp - 0x1014]
mov edi, esp
mov dword [edi + 0xc], esi
mov dword [edi + 8], edx
mov dword [edi + 4], ecx
mov dword [edi], eax
mov dword [edi + 0x10], 0
call sub.KERNEL32.DLL_WriteConsoleW
sub esp, 0x14
mov dword [ebp - 0x1028], eax
jmp 0x40a31b
lea eax, [ebp - 0x1010]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1014]
mov esi, esp
mov dword [esi + 0x10], eax
mov dword [esi + 0xc], edx
mov dword [esi + 8], ecx
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0x1000
mov dword [esi + 4], 0
mov dword [esi], 0
call sub.KERNEL32.DLL_WideCharToMultiByte
sub esp, 0x20
lea ecx, [ebp - 0x1010]
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1014]
lea esi, [ebp - 0x1014]
mov edi, esp
mov dword [edi + 0xc], esi
mov dword [edi + 8], edx
mov dword [edi + 4], ecx
mov dword [edi], eax
mov dword [edi + 0x10], 0
call sub.KERNEL32.DLL_WriteFile
sub esp, 0x14
mov dword [ebp - 0x102c], eax
jmp 0x40a31b
mov eax, 0x1000
lea ecx, [ebp - 0x1010]
mov edx, dword [ebp - 0xc]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], 0x1000
mov dword [ebp - 0x1030], eax
call fcn.0040fbc8
lea eax, [ebp - 0x1010]
mov dword [esp], eax
call fcn.00412fec
lea ecx, [ebp - 0x1010]
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1014]
lea esi, [ebp - 0x1014]
mov edi, esp
mov dword [edi + 0xc], esi
mov dword [edi + 8], edx
mov dword [edi + 4], ecx
mov dword [edi], eax
mov dword [edi + 0x10], 0
call sub.KERNEL32.DLL_WriteFile
sub esp, 0x14
mov dword [ebp - 0x1034], eax
add esp, 0x104c
pop esi
pop edi
pop ebp
ret
Function at 0x40a7cc
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [eax + 0x14], 0
mov dword [eax + 0x10], 0
mov eax, dword [ebp - 4]
mov dword [eax], 0x67452301
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0xefcdab89
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0x98badcfe
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 0x10325476
add esp, 4
pop ebp
ret
Function at 0x40c93c
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x28c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
lea edi, [ebp - 0x260]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.00412fa0
lea ecx, [0x420fdc]
lea edx, [ebp - 0x260]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [ebp - 0x268], eax
call fcn.0040bbac
lea ecx, [ebp - 0x15c]
lea edx, [ebp - 0x260]
mov esi, esp
mov dword [esi + 8], ecx
mov dword [esi], edx
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 1
mov dword [esi + 4], 0
mov dword [ebp - 0x26c], eax
call sub.KERNEL32.DLL_FindFirstFileExA
sub esp, 0x18
mov ecx, 0xffffffff
mov dword [ebp - 0x160], eax
cmp dword [ebp - 0x160], ecx
jne 0x40c9ee
mov dword [ebp - 0xc], 0
jmp 0x40cb6f
mov dword [ebp - 0x264], 0
mov eax, dword [ebp - 0x15c]
and eax, 0x10
cmp eax, 0
je 0x40cb25
lea eax, [0x420fde]
lea ecx, [ebp - 0x15c]
add ecx, 0x2c
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00412f50
cmp eax, 0
je 0x40cb23
lea eax, [0x420fe0]
lea ecx, [ebp - 0x15c]
add ecx, 0x2c
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00412f50
cmp eax, 0
je 0x40cb23
lea eax, [ebp - 0x260]
mov ecx, dword [ebp - 0x10]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00412fa0
lea ecx, [ebp - 0x15c]
lea edx, [ebp - 0x260]
add ecx, 0x2c
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [ebp - 0x270], eax
call fcn.0040bbac
lea ecx, [ebp - 0x15c]
lea edx, [ebp - 0x260]
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], edi
mov dword [ebp - 0x274], eax
call esi
cmp eax, 0
jne 0x40caca
jmp 0x40cb4e
mov eax, dword [ebp - 0x264]
add eax, 1
mov dword [ebp - 0x264], eax
cmp dword [ebp - 0x14], 0
je 0x40cb21
mov eax, 1
lea ecx, [ebp - 0x260]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
mov dword [esp], ecx
mov dword [esp + 4], 1
mov dword [esp + 8], edx
mov dword [esp + 0xc], esi
mov dword [ebp - 0x278], eax
call fcn.0040c93c
mov ecx, dword [ebp - 0x264]
add ecx, eax
mov dword [ebp - 0x264], ecx
jmp 0x40cb23
jmp 0x40cb25
mov eax, dword [ebp - 0x160]
lea ecx, [ebp - 0x15c]
mov edx, esp
mov dword [edx + 4], ecx
mov dword [edx], eax
call sub.KERNEL32.DLL_FindNextFileA
sub esp, 8
cmp eax, 0
jne 0x40cb49
jmp 0x40cb4e
jmp 0x40c9f8
mov eax, dword [ebp - 0x160]
mov ecx, esp
mov dword [ecx], eax
call sub.KERNEL32.DLL_FindClose
sub esp, 4
mov ecx, dword [ebp - 0x264]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x27c], eax
mov eax, dword [ebp - 0xc]
add esp, 0x28c
pop esi
pop edi
pop ebp
ret
Function at 0x40cb7c
Capabilities:
Hash data using sha224

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [eax + 0x24], 0
mov dword [eax + 0x20], 0
mov eax, dword [ebp - 4]
mov dword [eax], 0xc1059ed8
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0x367cd507
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0x3070dd17
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 0xf70e5939
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 0xffc00b31
mov eax, dword [ebp - 4]
mov dword [eax + 0x14], 0x68581511
mov eax, dword [ebp - 4]
mov dword [eax + 0x18], 0x64f98fa7
mov eax, dword [ebp - 4]
mov dword [eax + 0x1c], 0xbefa4fa4
add esp, 4
pop ebp
ret

Function at 0x40cbec
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [eax + 0x24], 0
mov dword [eax + 0x20], 0
mov eax, dword [ebp - 4]
mov dword [eax], 0x6a09e667
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0xbb67ae85
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0x3c6ef372
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 0xa54ff53a
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 0x510e527f
mov eax, dword [ebp - 4]
mov dword [eax + 0x14], 0x9b05688c
mov eax, dword [ebp - 4]
mov dword [eax + 0x18], 0x1f83d9ab
mov eax, dword [ebp - 4]
mov dword [eax + 0x1c], 0x5be0cd19
add esp, 4
pop ebp
ret
Function at 0x40d408
Capabilities:
Hash data using sha224

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [eax + 0x44], 0
mov dword [eax + 0x40], 0
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0xcbbb9d5d
mov dword [eax], 0xc1059ed8
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 0x629a292a
mov dword [eax + 8], 0x367cd507
mov eax, dword [ebp - 4]
mov dword [eax + 0x14], 0x9159015a
mov dword [eax + 0x10], 0x3070dd17
mov eax, dword [ebp - 4]
mov dword [eax + 0x1c], 0x152fecd8
mov dword [eax + 0x18], 0xf70e5939
mov eax, dword [ebp - 4]
mov dword [eax + 0x24], 0x67332667
mov dword [eax + 0x20], 0xffc00b31
mov eax, dword [ebp - 4]
mov dword [eax + 0x2c], 0x8eb44a87
mov dword [eax + 0x28], 0x68581511
mov eax, dword [ebp - 4]
mov dword [eax + 0x34], 0xdb0c2e0d
mov dword [eax + 0x30], 0x64f98fa7
mov eax, dword [ebp - 4]
mov dword [eax + 0x3c], 0x47b5481d
mov dword [eax + 0x38], 0xbefa4fa4
add esp, 4
pop ebp
ret

Function at 0x40d4b8
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [eax + 0x44], 0
mov dword [eax + 0x40], 0
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0x6a09e667
mov dword [eax], 0xf3bcc908
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 8], 0x84caa73b
mov eax, dword [ebp - 4]
mov dword [eax + 0x14], 0x3c6ef372
mov dword [eax + 0x10], 0xfe94f82b
mov eax, dword [ebp - 4]
mov dword [eax + 0x1c], 0xa54ff53a
mov dword [eax + 0x18], 0x5f1d36f1
mov eax, dword [ebp - 4]
mov dword [eax + 0x24], 0x510e527f
mov dword [eax + 0x20], 0xade682d1
mov eax, dword [ebp - 4]
mov dword [eax + 0x2c], 0x9b05688c
mov dword [eax + 0x28], 0x2b3e6c1f
mov eax, dword [ebp - 4]
mov dword [eax + 0x34], 0x1f83d9ab
mov dword [eax + 0x30], 0xfb41bd6b
mov eax, dword [ebp - 4]
mov dword [eax + 0x3c], 0x5be0cd19
mov dword [eax + 0x38], 0x137e2179
add esp, 4
pop ebp
ret
Function at 0x40df34
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x13c
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x14], eax
mov eax, esp
mov dword [eax + 4], ecx
mov dword [eax + 8], 0x100
mov dword [eax], 0
call sub.KERNEL32.DLL_GetModuleFileNameA
sub esp, 0xc
lea ecx, [ebp - 0x118]
mov edx, dword [ebp - 0x14]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [ebp - 0x12c], eax
call fcn.0040bfec
lea eax, [ebp - 0x118]
lea ecx, [ebp - 0x120]
mov edx, esp
mov dword [edx + 4], ecx
mov dword [edx], eax
call sub.VERSION.DLL_GetFileVersionInfoSizeA
sub esp, 8
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0
ja 0x40dfba
mov dword [ebp - 0x10], 0
jmp 0x40e0fc
mov eax, dword [ebp - 0x120]
mov dword [esp], eax
call fcn.004105f8
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x120]
mov edx, dword [ebp - 0x18]
mov esi, esp
mov dword [esi + 0xc], edx
mov dword [esi + 8], eax
mov dword [esi], ecx
mov dword [esi + 4], 0
call sub.VERSION.DLL_GetFileVersionInfoA
sub esp, 0x10
lea ecx, [ebp - 0x11c]
mov edx, dword [ebp - 0x18]
lea esi, [ebp - 0x120]
mov edi, esp
mov dword [edi + 0xc], esi
mov dword [edi + 8], ecx
mov dword [edi], edx
mov dword [edi + 4], 0x421424
mov dword [ebp - 0x130], eax
call sub.VERSION.DLL_VerQueryValueA
sub esp, 0x10
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
je 0x40e05f
cmp dword [ebp - 0x120], 4
jne 0x40e05f
mov eax, dword [ebp - 0x11c]
movzx eax, word [eax]
shl eax, 0x10
mov ecx, dword [ebp - 0x11c]
movzx ecx, word [ecx + 2]
or eax, ecx
mov dword [ebp - 0x124], eax
jmp 0x40e069
mov dword [ebp - 0x124], 0x40904e4
lea eax, str.StringFileInfo_08XFileDescription
lea ecx, [ebp - 0x118]
mov edx, dword [ebp - 0x124]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.0041494c
lea ecx, [ebp - 0x11c]
lea edx, [ebp - 0x118]
mov esi, dword [ebp - 0x18]
lea edi, [ebp - 0x120]
mov ebx, esp
mov dword [ebx + 0xc], edi
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [ebx], esi
mov dword [ebp - 0x134], eax
call sub.VERSION.DLL_VerQueryValueA
sub esp, 0x10
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
je 0x40e0e8
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x11c]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00412fa0
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.00410608
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
add esp, 0x13c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x411668
Capabilities:
Read file via mapping

Disassembly:
push edi
push esi
sub esp, 0x14
call sub.KERNEL32.DLL_GetCurrentProcessId
mov ecx, eax
and ecx, 0xf
mov cl, byte [ecx + str.0123456789ABCDEF_8A]
mov byte [0x421e4e], cl
mov ecx, eax
shr ecx, 4
and ecx, 0xf
mov cl, byte [ecx + str.0123456789ABCDEF_8A]
mov byte [0x421e4d], cl
mov ecx, eax
shr ecx, 8
and ecx, 0xf
mov cl, byte [ecx + str.0123456789ABCDEF_8A]
mov byte [0x421e4c], cl
mov ecx, eax
shr ecx, 0xc
and ecx, 0xf
mov cl, byte [ecx + str.0123456789ABCDEF_8A]
mov byte [0x421e4b], cl
mov ecx, eax
shr ecx, 0x10
and ecx, 0xf
mov cl, byte [ecx + str.0123456789ABCDEF_8A]
mov byte [0x421e4a], cl
mov ecx, eax
shr ecx, 0x14
and ecx, 0xf
mov cl, byte [ecx + str.0123456789ABCDEF_8A]
mov byte [0x421e49], cl
mov ecx, eax
shr ecx, 0x18
and ecx, 0xf
mov cl, byte [ecx + str.0123456789ABCDEF_8A]
mov byte [0x421e48], cl
shr eax, 0x1c
mov al, byte [eax + str.0123456789ABCDEF_8A]
mov byte [0x421e47], al
mov dword [esp + 8], str.LocalFastMM_PID________
mov dword [esp + 4], 0
mov dword [esp], 4
call sub.KERNEL32.DLL_OpenFileMappingA
sub esp, 0xc
mov esi, eax
test esi, esi
je 0x411773
mov dword [esp], esi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 4
call sub.KERNEL32.DLL_MapViewOfFile
sub esp, 0x14
mov edi, dword [eax]
mov dword [esp], eax
call sub.KERNEL32.DLL_UnmapViewOfFile
sub esp, 4
mov dword [esp], esi
call sub.KERNEL32.DLL_CloseHandle
sub esp, 4
jmp 0x411775
xor edi, edi
mov eax, edi
add esp, 0x14
pop esi
pop edi
ret

Function at 0x411788
Capabilities:
Read file via mapping

Disassembly:
sub esp, 0x18
xor eax, eax
mov ecx, fcn.00412052
cmp dword [0x4216e4], ecx
jne 0x41188d
mov ecx, fcn.004123d6
cmp dword [0x4216e8], ecx
jne 0x41188d
mov ecx, fcn.004125ce
cmp dword [0x4216ec], ecx
jne 0x41188d
mov ecx, fcn.004128e8
cmp dword [0x4216f0], ecx
jne 0x41188d
mov ecx, 0x410988
cmp dword [0x4216f4], ecx
jne 0x41188d
xor eax, eax
mov ecx, 0x410998
cmp dword [0x4216f8], ecx
jne 0x41188d
mov ecx, dword [0x425238]
test ecx, ecx
jne 0x41188d
call fcn.00411668
mov ecx, eax
xor eax, eax
test ecx, ecx
jne 0x41188d
mov dword [esp + 0x14], str.LocalFastMM_PID________
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 4
mov dword [esp + 4], 0
mov dword [esp], 0xffffffff
call sub.KERNEL32.DLL_CreateFileMappingA
sub esp, 0x18
mov dword [0x425238], eax
mov dword [esp], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 2
call sub.KERNEL32.DLL_MapViewOfFile
sub esp, 0x14
mov dword [eax], fcn.00412052
mov dword [esp], eax
call sub.KERNEL32.DLL_UnmapViewOfFile
sub esp, 4
mov eax, 1
add esp, 0x18
ret
Function at 0x413924
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov esi, dword [esp + 0x3c]
cmp dword [0x422348], esi
jbe 0x413524
mov edx, dword [esp + 0x44]
lea ecx, [edx + 1]
xor eax, eax
cmp ecx, 2
jb 0x413530
mov eax, dword [esi*4 + 0x42234c]
test ah, 0x40
je 0x413538
xor edi, edi
test ah, 2
je 0x413544
xor eax, eax
jmp 0x413530
mov dword [esp], 0xfffffffa
call fcn.00414138
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
jmp 0x413924
test edx, edx
jne 0x41354c
xor eax, eax
jmp 0x413530
mov ebx, dword [esp + 0x40]
sub edx, edi
mov dword [esp + 0x10], edx
mov dword [esp + 8], edx
mov dword [esp + 4], ebx
mov dword [esp], esi
call 0x413924
mov ebp, eax
test ebp, ebp
je 0x4136a5
mov dword [esp + 0x18], edi
mov eax, 0xffffffff
cmp ebp, 0xffffffff
je 0x413530
mov dword [esp + 8], ebp
mov dword [esp], ebx
mov dword [esp + 4], 0x1a
call fcn.00412c48
test eax, eax
je 0x4135a8
or byte [esi*4 + 0x42234d], 2
mov ebp, eax
sub ebp, ebx
je 0x4136a1
mov dword [esp + 0x1c], eax
lea edi, [ebp + ebx - 1]
cmp byte [ebp + ebx - 1], 0xd
jne 0x4135db
mov dword [esp + 4], edi
mov dword [esp], esi
mov dword [esp + 8], 1
call 0x413924
mov ecx, eax
mov eax, 0xffffffff
cmp ecx, 0xffffffff
je 0x413530
mov dword [esp + 0x24], edi
lea eax, [ebx + ebp]
mov dword [esp + 0x20], eax
mov dword [esp + 0xc], ebp
mov edi, ebx
mov esi, ebx
mov dword [esp + 0x14], ebx
jmp 0x413601
add edi, ebp
inc ebx
mov esi, ebx
mov ebp, dword [esp + 0x20]
mov eax, ebp
sub eax, esi
mov dword [esp + 8], eax
mov dword [esp], esi
mov dword [esp + 4], 0xd
call fcn.00412c48
mov ebx, eax
test ebx, ebx
cmove ebx, ebp
mov ebp, ebx
sub ebp, esi
cmp esi, edi
je 0x41363c
mov dword [esp + 8], ebp
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.00412d0c
mov eax, dword [esp + 0x24]
cmp ebx, eax
jb 0x4135fc
mov ebx, dword [esp + 0x14]
sub edi, ebx
add ebp, edi
mov edi, dword [esp + 0x18]
add edi, ebp
mov eax, dword [esp + 0xc]
cmp eax, dword [esp + 0x10]
jae 0x41367d
cmp dword [esp + 0x1c], 0
sete al
mov esi, dword [esp + 0x3c]
test byte [esi*4 + 0x42234d], 0x20
sete cl
test ebp, ebp
jne 0x4136a5
and cl, al
jne 0x413691
jmp 0x4136a5
cmp dword [esp + 0x1c], 0
sete al
test ebp, ebp
mov esi, dword [esp + 0x3c]
jne 0x4136a5
test al, al
je 0x4136a5
add ebx, ebp
mov edx, dword [esp + 0x44]
cmp edi, edx
jb 0x413550
jmp 0x4136a5
mov edi, dword [esp + 0x18]
mov eax, edi
jmp 0x413530
push esi
sub esp, 0x18
mov eax, dword [esp + 0x20]
cmp dword [0x422348], eax
jbe 0x413971
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov eax, dword [eax*4 + 0x4274dc]
lea esi, [esp + 0x14]
mov dword [esp + 0xc], esi
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
mov dword [esp + 0x10], 0
call sub.KERNEL32.DLL_ReadFile
sub esp, 0x14
cmp eax, 1
jne 0x41397f
mov eax, dword [esp + 0x14]
jmp 0x413995
mov dword [esp], 6
call fcn.00414138
jmp 0x413995
call sub.KERNEL32.DLL_GetLastError
mov ecx, eax
xor eax, eax
cmp ecx, 0x6d
je 0x413995
mov dword [esp], ecx
call fcn.00414138
add esp, 0x18
pop esi
ret
jmp 0x4134ec
Function at 0x4139ac
Capabilities:
Write file on windows

Disassembly:
push esi
sub esp, 0x18
mov eax, dword [esp + 0x20]
cmp dword [0x422348], eax
jbe 0x4139f9
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov eax, dword [eax*4 + 0x4274dc]
lea esi, [esp + 0x14]
mov dword [esp + 0xc], esi
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
mov dword [esp + 0x10], 0
call sub.KERNEL32.DLL_WriteFile
sub esp, 0x14
cmp eax, 1
jne 0x413a07
mov eax, dword [esp + 0x14]
jmp 0x413a0c
mov dword [esp], 6
call fcn.00414138
jmp 0x413a0c
call fcn.004141b8
add esp, 0x18
pop esi
ret
Function at 0x416efc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [esp + 0x48]
test ah, 0xc0
je 0x4132d8
mov ebx, eax
jmp 0x4132e7
mov ecx, dword [0x422418]
mov ebx, 0xc000
and ebx, dword [ecx]
or ebx, eax
mov edi, ebx
shr edi, 1
and edi, 0x4000
xor edi, 0x4000
or edi, ebx
mov eax, ebx
and eax, 0x700
cmp eax, 0x1ff
ja 0x413315
cmp eax, 0x100
jne 0x41335b
mov ebp, 4
jmp 0x413360
cmp eax, 0x2ff
ja 0x413325
cmp eax, 0x200
jne 0x41335b
jmp 0x41334d
cmp eax, 0x4ff
ja 0x41333a
cmp eax, 0x300
jne 0x41335b
mov ebp, 2
jmp 0x413360
mov ebp, 1
cmp eax, 0x500
je 0x413360
cmp eax, 0x600
jne 0x413354
mov ebp, 5
jmp 0x413360
cmp eax, 0x700
je 0x413360
mov ebp, 3
mov eax, ebx
and eax, 0x100
mov dword [esp + 0x1c], eax
je 0x413398
lea eax, [esp + 0x4c]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x50]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x4c]
and eax, dword [0x421e94]
mov edx, 1
mov ecx, 0x80
test al, 0x80
cmove ecx, edx
jmp 0x4133af
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call sub.KERNEL32.DLL_GetFileAttributesA
sub esp, 4
xor ecx, ecx
cmp eax, 0xffffffff
cmovne ecx, eax
mov eax, 0x80000000
mov edx, ebx
and edx, 3
je 0x4133d1
cmp edx, 2
jne 0x4133c7
mov eax, 0xc0000000
jmp 0x4133d1
cmp edx, 1
jne 0x4133f7
mov eax, 0x40000000
mov edx, ebx
mov esi, edx
and ebx, 0x70
xor edx, edx
cmp ebx, 0x10
je 0x41340d
cmp ebx, 0x30
jne 0x4133eb
mov edx, 2
jmp 0x41340d
cmp ebx, 0x20
jne 0x413408
mov edx, 1
jmp 0x41340d
mov dword [esp], 1
call fcn.00414138
jmp 0x4134e3
mov edx, 3
mov ebx, esi
test bl, 4
je 0x41341f
cmp eax, 0x80000000
sete dl
movzx edx, dl
mov dword [esp + 0x24], 0xc
mov dword [esp + 0x28], 0
shr ebx, 7
and ebx, 1
xor ebx, 1
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ebp
lea ecx, [esp + 0x24]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x44]
mov dword [esp], eax
mov dword [esp + 0x18], 0
call sub.KERNEL32.DLL_CreateFileA
sub esp, 0x1c
mov esi, eax
cmp esi, 0xffffffff
je 0x4134bc
mov dword [esp], esi
call fcn.00413234
mov dword [esp], esi
mov ecx, edi
or ecx, 0x2000
test eax, eax
cmove ecx, edi
and ecx, 0xfffff8ff
mov dword [esp + 4], ecx
call fcn.00413d78
cmp eax, 0xffffffff
jne 0x4134e3
mov dword [esp], 4
call fcn.00414138
mov dword [esp], esi
call sub.KERNEL32.DLL_CloseHandle
sub esp, 4
mov eax, 0xffffffff
jmp 0x4134e3
call sub.KERNEL32.DLL_GetLastError
movzx eax, ax
cmp eax, 0x6e
jne 0x4134db
mov ecx, 0x50
mov eax, 2
cmp dword [esp + 0x1c], 0
cmovne eax, ecx
mov dword [esp], eax
call fcn.00414138
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
jmp 0x4132c4
Function at 0x416f0c
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov esi, dword [esp + 0x3c]
cmp dword [0x422348], esi
jbe 0x413524
mov edx, dword [esp + 0x44]
lea ecx, [edx + 1]
xor eax, eax
cmp ecx, 2
jb 0x413530
mov eax, dword [esi*4 + 0x42234c]
test ah, 0x40
je 0x413538
xor edi, edi
test ah, 2
je 0x413544
xor eax, eax
jmp 0x413530
mov dword [esp], 0xfffffffa
call fcn.00414138
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
jmp 0x413924
test edx, edx
jne 0x41354c
xor eax, eax
jmp 0x413530
mov ebx, dword [esp + 0x40]
sub edx, edi
mov dword [esp + 0x10], edx
mov dword [esp + 8], edx
mov dword [esp + 4], ebx
mov dword [esp], esi
call 0x413924
mov ebp, eax
test ebp, ebp
je 0x4136a5
mov dword [esp + 0x18], edi
mov eax, 0xffffffff
cmp ebp, 0xffffffff
je 0x413530
mov dword [esp + 8], ebp
mov dword [esp], ebx
mov dword [esp + 4], 0x1a
call fcn.00412c48
test eax, eax
je 0x4135a8
or byte [esi*4 + 0x42234d], 2
mov ebp, eax
sub ebp, ebx
je 0x4136a1
mov dword [esp + 0x1c], eax
lea edi, [ebp + ebx - 1]
cmp byte [ebp + ebx - 1], 0xd
jne 0x4135db
mov dword [esp + 4], edi
mov dword [esp], esi
mov dword [esp + 8], 1
call 0x413924
mov ecx, eax
mov eax, 0xffffffff
cmp ecx, 0xffffffff
je 0x413530
mov dword [esp + 0x24], edi
lea eax, [ebx + ebp]
mov dword [esp + 0x20], eax
mov dword [esp + 0xc], ebp
mov edi, ebx
mov esi, ebx
mov dword [esp + 0x14], ebx
jmp 0x413601
add edi, ebp
inc ebx
mov esi, ebx
mov ebp, dword [esp + 0x20]
mov eax, ebp
sub eax, esi
mov dword [esp + 8], eax
mov dword [esp], esi
mov dword [esp + 4], 0xd
call fcn.00412c48
mov ebx, eax
test ebx, ebx
cmove ebx, ebp
mov ebp, ebx
sub ebp, esi
cmp esi, edi
je 0x41363c
mov dword [esp + 8], ebp
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.00412d0c
mov eax, dword [esp + 0x24]
cmp ebx, eax
jb 0x4135fc
mov ebx, dword [esp + 0x14]
sub edi, ebx
add ebp, edi
mov edi, dword [esp + 0x18]
add edi, ebp
mov eax, dword [esp + 0xc]
cmp eax, dword [esp + 0x10]
jae 0x41367d
cmp dword [esp + 0x1c], 0
sete al
mov esi, dword [esp + 0x3c]
test byte [esi*4 + 0x42234d], 0x20
sete cl
test ebp, ebp
jne 0x4136a5
and cl, al
jne 0x413691
jmp 0x4136a5
cmp dword [esp + 0x1c], 0
sete al
test ebp, ebp
mov esi, dword [esp + 0x3c]
jne 0x4136a5
test al, al
je 0x4136a5
add ebx, ebp
mov edx, dword [esp + 0x44]
cmp edi, edx
jb 0x413550
jmp 0x4136a5
mov edi, dword [esp + 0x18]
mov eax, edi
jmp 0x413530
push esi
sub esp, 0x18
mov eax, dword [esp + 0x20]
cmp dword [0x422348], eax
jbe 0x413971
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov eax, dword [eax*4 + 0x4274dc]
lea esi, [esp + 0x14]
mov dword [esp + 0xc], esi
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
mov dword [esp + 0x10], 0
call sub.KERNEL32.DLL_ReadFile
sub esp, 0x14
cmp eax, 1
jne 0x41397f
mov eax, dword [esp + 0x14]
jmp 0x413995
mov dword [esp], 6
call fcn.00414138
jmp 0x413995
call sub.KERNEL32.DLL_GetLastError
mov ecx, eax
xor eax, eax
cmp ecx, 0x6d
je 0x413995
mov dword [esp], ecx
call fcn.00414138
add esp, 0x18
pop esi
ret
jmp 0x4134ec