joyce8/EMBER2024-capa huggingface dataset:
Function at 0x424404
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x35c
mov eax, dword [0x483260]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x103
xor ebx, ebx
push esi
lea eax, [ebp - 0x353]
push ebx
push eax
mov byte [ebp - 0x354], bl
call fcn.0043e330
push esi
lea eax, [ebp - 0x14b]
push ebx
push eax
mov byte [ebp - 0x14c], bl
call fcn.0043e330
push esi
lea eax, [ebp - 0x24f]
push ebx
push eax
mov byte [ebp - 0x250], bl
call fcn.0043e330
add esp, 0x24
push 7
pop ecx
mov esi, 0x478ff8
lea edi, [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x478f9c]
mov esi, 0x479014
lea edi, [ebp - 0x2c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, 0x478f90
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0xc], eax
mov eax, dword [0x478fa0]
movsw word es:[edi], word [esi]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x48]
movsb byte es:[edi], byte [esi]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x42449d
sub eax, ecx
mov esi, 0x237f
mov ecx, esi
lea edx, [ebp - 0x48]
call fcn.00422859
lea eax, [ebp - 0x2c]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4244bb
sub eax, ecx
mov ecx, esi
lea edx, [ebp - 0x2c]
call fcn.00422859
lea eax, [ebp - 0x18]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4244d4
sub eax, ecx
mov ecx, esi
lea edx, [ebp - 0x18]
call fcn.00422859
lea eax, [ebp - 0xc]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4244ed
sub eax, ecx
mov ecx, esi
lea edx, [ebp - 0xc]
call fcn.00422859
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueA]
lea eax, [ebp - 0x358]
push eax
lea eax, [ebp - 0x354]
push eax
lea eax, [ebp - 0x35c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push eax
mov edi, reloc.OLEAUT32.dll_SysReAllocString
mov ebx, 0x104
push edi
mov dword [ebp - 0x35c], 1
mov dword [ebp - 0x358], ebx
call esi
test eax, eax
je 0x424548
xor eax, eax
jmp 0x4245ab
lea eax, [ebp - 0x358]
push eax
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 0x35c]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x48]
push eax
push edi
mov dword [ebp - 0x358], ebx
call esi
test eax, eax
jne 0x424544
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 0x354]
push eax
push str._s_s_s
push ebx
lea edi, [ebp - 0x250]
call fcn.00422768
add esp, 0x14
test eax, eax
jl 0x424544
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
neg eax
sbb eax, eax
neg eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043b2b9
leave
ret
Function at 0x4245ba
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x483260]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x479014
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x18]
movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
xor ebx, ebx
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4245e5
sub eax, edx
mov ecx, 0x237f
lea edx, [ebp - 0x18]
call fcn.00422859
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x244], 0x22c
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
cmp edi, 0x3fffffff
jle 0x42461e
xor edi, edi
jmp 0x424636
lea eax, [edi + edi]
call fcn.0044dbb0
mov esi, esp
push 3
push edi
lea eax, [ebp - 0x18]
push eax
call fcn.004178a6
mov edi, eax
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x424683
lea eax, [ebp - 0x244]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x424673
push edi
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x424679
lea eax, [ebp - 0x244]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x424654
jmp 0x42467c
xor ebx, ebx
inc ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
lea esp, [ebp - 0x250]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043b2b9
leave
ret

Function at 0x4247d0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x483260]
xor eax, ebp
mov dword [ebp + 0x194], eax
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push eax
call fcn.0043e330
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x80]
push eax
push str.InstallLocation
xor esi, esi
push str.SoftWareMicrosoftWindowsCurrentVersionUninstallA9861883_31C5_4324_BD9A_DC9527EEB675_is1
inc esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x7c], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x42483a
xor eax, eax
jmp 0x424876
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.00402ad3
push str.LenovoTray.exe
push dword [ebp - 0x78]
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x424869
xor esi, esi
mov eax, dword [ebp - 0x78]
add eax, 0xfffffff0
call fcn.004031f6
mov eax, esi
mov ecx, dword [ebp + 0x194]
xor ecx, ebp
pop esi
call fcn.0043b2b9
add ebp, 0x198
leave
ret
Function at 0x42488c
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x483260]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0xc
mov eax, 0x46b775
call fcn.004438a7
xor eax, eax
push 0x206
push eax
mov word [ebp], ax
lea eax, [ebp + 2]
push eax
call fcn.0043e330
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x18]
push eax
push str.InstallPath
xor esi, esi
push str.SoftwareHuorongSysdiag
inc esi
push SysReAllocString
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x4248fe
xor eax, eax
jmp 0x42495d
lea eax, [ebp]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00402ad3
and dword [ebp - 4], 0
lea ebx, [ebp - 0x10]
call fcn.00406d96
push 0x22
mov edi, ebx
call fcn.0041333d
mov eax, ebx
call fcn.00406ddb
mov eax, ebx
call fcn.00424bc1
push str.binHipsTray.exe
push dword [ebp - 0x10]
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x424950
xor esi, esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004031f6
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0043b2b9
add ebp, 0x20c
leave
ret

Function at 0x424980
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x483260]
xor eax, ebp
mov dword [ebp + 0x190], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push eax
call fcn.0043e330
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
push str.Path
push str.SOFTWARE2345PCSafe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x7c], 1
mov dword [ebp - 0x80], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x4249ea
xor eax, eax
jmp 0x424a13
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
push str.2345SafeTray.exe
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
neg eax
sbb eax, eax
neg eax
mov ecx, dword [ebp + 0x190]
xor ecx, ebp
call fcn.0043b2b9
add ebp, 0x194
leave
ret

Function at 0x42639f
Capabilities:
Hash data with md5

Disassembly:
and dword [eax + 0x18], 0
and dword [eax + 0x14], 0
push esi
lea esi, [eax + 0x5c]
push 0x40
push esi
mov dword [eax + 4], 0x67452301
mov dword [eax + 8], 0xefcdab89
mov dword [eax + 0xc], 0x98badcfe
mov dword [eax + 0x10], 0x10325476
call fcn.00426c2b
mov byte [esi], 0x80
pop esi
ret

Function at 0x428006
Capabilities:
Hash data with md5

Disassembly:
and dword [eax + 4], 0
and dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
ret
Function at 0x428800
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x68
mov eax, dword [0x483260]
xor eax, esp
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x6c]
xor ecx, ecx
push esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
push eax
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x67452301
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
call fcn.0042e840
add esp, 4
lea esi, [esp + 8]
mov ecx, edi
call fcn.0042e8e0
mov ecx, dword [esp + 0x64]
pop esi
xor ecx, esp
call fcn.0043b2b9
add esp, 0x68
ret

Function at 0x428870
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x68
mov eax, dword [0x483260]
xor eax, esp
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x6c]
xor ecx, ecx
push esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
push eax
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x67452301
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
call fcn.0042e840
add esp, 4
lea esi, [esp + 8]
mov ecx, edi
call fcn.0042e8e0
mov ecx, dword [esp + 0x64]
pop esi
xor ecx, esp
call fcn.0043b2b9
add esp, 0x68
ret
Function at 0x4289e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov esi, eax
lea eax, [esp + 0x18]
push eax
push 0x20119
xor edi, edi
push edi
push str.SOFTWARE360MachineSignature
push reloc.OLEAUT32.dll_SysReAllocString
mov ebx, ecx
mov dword [esp + 0x30], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x428b71
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
lea ecx, [esp + 0x10]
push ecx
mov dword [esi + 0x10], eax
push ebx
mov dword [esi + 0x14], eax
lea edx, [esp + 0x1c]
push edx
mov dword [esi + 0x18], eax
push eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x28]
push str.Operator
mov edi, 0x400
push eax
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x428a73
cmp dword [esp + 0x14], 1
jne 0x428b58
mov eax, dword [esp + 0x10]
sub edi, eax
mov dword [esi], ebx
lea ebx, [eax + ebx]
je 0x428b58
mov eax, dword [esp + 0x18]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x10]
push ecx
push ebx
lea edx, [esp + 0x1c]
push edx
push 0
push str.IssueDate
push eax
mov dword [esp + 0x28], edi
call ebp
test eax, eax
jne 0x428ab8
cmp dword [esp + 0x14], 1
jne 0x428b58
mov eax, dword [esp + 0x10]
mov dword [esi + 4], ebx
sub edi, eax
add ebx, eax
test edi, edi
je 0x428b58
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
push ebx
lea edx, [esp + 0x1c]
push edx
push 0
push str.ExpirationDate
push eax
mov dword [esp + 0x28], edi
call ebp
test eax, eax
jne 0x428aef
cmp dword [esp + 0x14], 1
jne 0x428b58
mov eax, dword [esp + 0x10]
mov dword [esi + 8], ebx
sub edi, eax
add ebx, eax
test edi, edi
je 0x428b58
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
push ebx
lea edx, [esp + 0x1c]
push edx
push 0
push str.SignData
push eax
mov dword [esp + 0x28], edi
call ebp
test eax, eax
jne 0x428b58
cmp dword [esp + 0x14], 3
jne 0x428b58
mov eax, dword [esp + 0x10]
sub edi, eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], ebx
je 0x428b58
lea eax, [esi + 0xc]
call fcn.004288e0
test eax, eax
je 0x428b58
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov ecx, 0x400
sub ecx, edi
push eax
mov dword [edx], ecx
mov esi, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x429110
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x6c
mov eax, dword [0x483260]
xor eax, esp
mov dword [esp + 0x68], eax
push esi
lea eax, [esp + 8]
mov esi, edx
push eax
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x18], 0x67452301
mov dword [esp + 0x1c], 0xefcdab89
mov dword [esp + 0x20], 0x98badcfe
mov dword [esp + 0x24], 0x10325476
call fcn.0042c720
add esp, 8
test eax, eax
jne 0x42917b
pop esi
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0043b2b9
add esp, 0x6c
ret
mov eax, dword [esp + 0x74]
test eax, eax
jbe 0x429190
push esi
lea ecx, [esp + 0x14]
call fcn.0042e840
add esp, 4
lea esi, [esp + 0x10]
mov ecx, ebx
call fcn.0042e8e0
test edi, edi
je 0x4291ae
mov ecx, dword [esp + 0xc]
xor eax, eax
cmp ecx, dword [esp + 8]
sete al
mov dword [edi], eax
mov ecx, dword [esp + 0x6c]
pop esi
xor ecx, esp
mov eax, 1
call fcn.0043b2b9
add esp, 0x6c
ret

Function at 0x429210
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x64
mov eax, dword [0x483260]
xor eax, esp
mov dword [esp + 0x5c], eax
xor eax, eax
push esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
push edi
lea eax, [esp + 8]
mov edi, ecx
push eax
mov dword [esp + 0xc], 0x67452301
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
call fcn.0042c910
add esp, 4
test eax, eax
jne 0x42926e
pop edi
pop esi
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.0043b2b9
add esp, 0x64
ret
lea esi, [esp + 8]
mov ecx, ebx
call fcn.0042e8e0
mov ecx, dword [esp + 0x64]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.0043b2b9
add esp, 0x64
ret

Function at 0x429290
Capabilities:
Hash data using sha256

Disassembly:
sub esp, 0x74
mov eax, dword [0x483260]
xor eax, esp
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x78]
xor ecx, ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
push edi
lea ecx, [esp + 8]
push ecx
push eax
mov dword [esp + 0x10], 0x6a09e667
mov dword [esp + 0x14], 0xbb67ae85
mov dword [esp + 0x18], 0x3c6ef372
mov dword [esp + 0x1c], 0xa54ff53a
mov dword [esp + 0x20], 0x510e527f
mov dword [esp + 0x24], 0x9b05688c
mov dword [esp + 0x28], 0x1f83d9ab
mov dword [esp + 0x2c], 0x5be0cd19
call fcn.0042c9f0
add esp, 8
test eax, eax
jne 0x42930f
pop edi
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0043b2b9
add esp, 0x74
ret
mov eax, esi
lea edi, [esp + 8]
call fcn.0042def0
mov ecx, dword [esp + 0x74]
pop edi
xor ecx, esp
mov eax, 1
call fcn.0043b2b9
add esp, 0x74
ret

Function at 0x42a8d0
Capabilities:
Read file on windows

Disassembly:
push ecx
push 0
lea eax, [esp + 4]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42a8fb
push 0x474f2c
mov eax, 0x474f2c
call fcn.0042f500
add esp, 4
xor eax, eax
pop ecx
ret
mov eax, 1
cmp esi, dword [esp]
je 0x42a914
push 0x474f2c
call fcn.0042f7b0
add esp, 4
xor eax, eax
pop ecx
ret
Function at 0x42a920
Capabilities:
Write file on windows

Disassembly:
push ecx
push 0
lea eax, [esp + 4]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x42a94b
push 0x474f2c
mov eax, 0x474f2c
call fcn.0042f500
add esp, 4
xor eax, eax
pop ecx
ret
mov eax, 1
cmp esi, dword [esp]
je 0x42a964
push 0x474f2c
call fcn.0042f7b0
add esp, 4
xor eax, eax
pop ecx
ret

Function at 0x42a9e0
Capabilities:
Clear file content

Disassembly:
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x42aa00
push 0x474f2c
mov eax, 0x474f2c
call fcn.0042f500
add esp, 4
xor eax, eax
ret
mov eax, 1
ret

Function at 0x42aa10
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x20
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x42aa47
push 0x474f2c
mov eax, 0x474f2c
call fcn.0042f500
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x2c]
cmp esi, edi
ja 0x42ab6e
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x28]
jb 0x42aa69
cmp ecx, edx
jae 0x42ab6e
mov eax, edx
sub eax, ecx
mov ecx, edi
sbb ecx, esi
mov ebx, eax
shrd ebx, ecx, 0xf
shr ecx, 0xf
and eax, 0x7fff
mov dword [esp + 0x10], ebx
mov esi, eax
jne 0x42aa8e
mov esi, 0x8000
jmp 0x42aa93
inc ebx
mov dword [esp + 0x10], ebx
xor eax, eax
sub edx, esi
sbb edi, eax
mov eax, dword [esp + 0x40]
mov ebp, edi
xor edi, edi
mov ebx, edx
add eax, ebx
adc edi, ebp
cmp dword [esp + 0x10], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], 0
jbe 0x42ab6e
mov edi, edi
mov ecx, dword [esp + 0x34]
push 0
push 0
push ebp
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x42aa2b
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x34]
push 0
lea edx, [esp + 0x1c]
push edx
push esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42aa2b
cmp esi, dword [esp + 0x18]
jne 0x42ab7b
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x34]
push 0
push 0
push edi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x42aa2b
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x34]
push 0
lea ecx, [esp + 0x20]
push ecx
push esi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42aa2b
cmp esi, dword [esp + 0x1c]
jne 0x42ab7b
mov eax, dword [esp + 0x14]
add ebx, 0xffff8000
adc ebp, 0xffffffff
add dword [esp + 0x20], 0xffff8000
mov esi, 0x8000
adc edi, 0xffffffff
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x10]
jb 0x42aac0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret
push 0x474f2c
mov eax, 1
call fcn.0042f7b0
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret
Function at 0x42ad50
Capabilities:
Write file on windows

Disassembly:
push ecx
mov ecx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
mov edi, eax
mov eax, dword [esp + 0x20]
lea esi, [edi + 7]
shr esi, 3
add esi, esi
push eax
add esi, esi
add esi, esi
push esi
push ebp
push ecx
push ebx
call fcn.0042aa10
add esp, 0x14
test eax, eax
je 0x42ae24
mov edx, dword [esp + 0x14]
push 0
push 0
push ebp
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x42adfc
mov ecx, dword [esp + 0x1c]
push 0
lea eax, [esp + 0x10]
push eax
push edi
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42adfc
cmp edi, dword [esp + 0xc]
je 0x42adcf
push 0x474f2c
mov eax, 1
call fcn.0042f7b0
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret
sub esi, edi
je 0x42ae2b
mov edx, dword [esp + 0x20]
push esi
push 0
push edx
call fcn.0043e330
add esp, 0xc
xor eax, eax
add edi, dword [esp + 0x14]
push 0
push 0
adc eax, ebp
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x42ae15
push 0x474f2c
mov eax, 0x474f2c
call fcn.0042f500
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret
mov ecx, dword [esp + 0x20]
mov edx, ebx
call fcn.0042a920
test eax, eax
jne 0x42ae2b
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret
pop edi
pop esi
mov eax, 1
pop ebp
pop ecx
ret
Function at 0x42b6d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x28
mov eax, dword [0x483260]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
push ebx
push ebp
xor ebx, ebx
push esi
mov esi, ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ebx
cmp eax, ebx
jne 0x42b703
mov dword [esp + 0x10], 0xffffffff
jmp 0x42b709
mov eax, dword [eax]
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push ebx
push ebx
push ebp
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x42b737
push 0x474f2c
mov eax, 0x474f2c
call fcn.0042f500
add esp, 4
jmp 0x42b817
push 0
lea edx, [esp + 0x1c]
push edx
push 8
lea eax, [esp + 0x30]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42b767
push 0x474f2c
mov eax, 0x474f2c
call fcn.0042f500
add esp, 4
jmp 0x42b817
mov eax, 8
cmp dword [esp + 0x18], eax
je 0x42b789
mov eax, 1
push 0x474f2c
call fcn.0042f7b0
add esp, 4
jmp 0x42b817
cmp dword [esp + 0x40], ebx
je 0x42b7c5
mov ebx, eax
cmp dword [esp + 0x10], eax
jae 0x42b7ab
mov eax, 5
push 0x474f2c
call fcn.0042f7b0
add esp, 4
jmp 0x42b817
mov ecx, dword [esp + 0x24]
mov dx, word [esp + 0x28]
mov dword [esi], ecx
mov cx, word [esp + 0x2a]
mov word [esi + 4], dx
mov word [esi + 6], cx
jmp 0x42b80f
mov esi, dword [esp + 0x24]
cmp esi, dword [esp + 0x10]
jbe 0x42b7d3
mov ebx, esi
jmp 0x42b797
mov edx, dword [esp + 0x38]
xor ebx, ebx
push ebx
push ebx
push ebp
push edx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x42b7fc
push 0x474f2c
mov eax, 0x474f2c
call fcn.0042f500
add esp, 4
jmp 0x42b817
mov ecx, dword [esp + 0x20]
mov edx, edi
call fcn.0042a8d0
test eax, eax
je 0x42b817
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x42b821
mov dword [eax], ebx
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043b2b9
add esp, 0x28
ret