joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406d40
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x43a00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
cmp byte [ebx + 0x77], 0
je 0x406e2a
push esi
xor esi, esi
cmp dword [ebx + 0xd8], esi
jne 0x406e17
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
call fcn.00406c2a
mov eax, dword [ebp - 0xc]
cmp dword [eax - 0xc], esi
je 0x406db2
lea edx, [ebp - 0xc]
mov dword [ebp - 8], esi
lea ecx, [ebp - 8]
call fcn.00408766
mov esi, dword [ebp - 8]
mov ecx, esi
call fcn.00406320
test al, al
jne 0x406dbc
mov ecx, esi
call fcn.00404866
test eax, eax
jns 0x406dbc
lea ecx, [esi - 0x10]
call fcn.004015d2
mov eax, dword [ebp - 0xc]
lea ecx, [eax - 0x10]
call fcn.004015d2
jmp 0x406e29
mov al, byte [ebx + 0x79]
push edi
push 0x20
mov byte [ebp - 8], al
call fcn.0041d76c
pop ecx
mov edx, eax
xor eax, eax
push 8
pop ecx
push dword [ebp - 8]
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0xc]
mov ecx, edx
push edi
call fcn.00407893
mov dword [ebx + 0xd8], eax
test eax, eax
jne 0x406e06
push edi
push dword [ebx + 0x54]
push str.LOG_SYSTEM:___s_:_ERROR___Cannot_create_log_writer_to__s
call fcn.00408b86
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [esi - 0x10]
call fcn.004015d2
lea ecx, [edi - 0x10]
call fcn.004015d2
pop edi
mov eax, dword [ebx + 0xd8]
test eax, eax
je 0x406e29
push eax
mov ecx, ebx
call fcn.00407663
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040ca14
leave
ret

Function at 0x406fc4
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x43a00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
cmp byte [esi + 0x7a], 1
jne 0x40700a
lea ecx, [ebp - 8]
call fcn.004065ca
push dword [eax]
push str.LOG_SYSTEM:___s_:_ERROR___Calling_the_logging_system_after_it_has_been_shut_down__n
call fcn.00408b86
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 8]
lea ecx, [eax - 0x10]
call fcn.004015d2
xor al, al
jmp 0x40703b
cmp byte [esi + 0x50], 1
jne 0x407014
mov al, 1
jmp 0x40703b
and dword [ebp - 0xc], 0
lea eax, [esi + 0x58]
and dword [ebp - 8], 0
lea ecx, [ebp - 0xc]
push eax
call fcn.00405f4d
mov ecx, esi
call fcn.00406efe
lea ecx, [ebp - 0xc]
mov bl, al
call fcn.00405f78
mov al, bl
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ca14
leave
ret
Function at 0x407893
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x43a00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, ecx
mov dword [edi], fcn.00407a70
mov dword [edi + 4], 0x989680
mov word [edi + 8], bx
mov byte [edi + 0xa], al
mov byte [edi + 0xb], 1
call fcn.004015fb
push eax
lea ecx, [edi + 0xc]
call fcn.00401fbb
push esi
lea ecx, [edi + 0x14]
mov dword [edi + 0x10], ebx
call fcn.00401cfa
mov dword [edi + 0x18], ebx
call fcn.004015fb
push eax
lea ecx, [edi + 0x1c]
call fcn.00401fbb
movzx ebx, byte [0x43be81]
neg ebx
sbb ebx, ebx
and ebx, 0x43bd80
je 0x407973
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
mov ecx, ebx
call fcn.004076f2
mov esi, dword [ebp - 8]
cmp dword [esi - 0xc], 0
je 0x407952
push esi
push 0x989680
push str.MaxLogFileSize
push str.LoggingSettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [edi + 4], eax
xor eax, eax
push esi
inc eax
push eax
push str.LogFileWide
push str.LoggingSettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
setne al
jmp 0x40795c
xor eax, eax
mov dword [edi + 4], 0x989680
inc eax
lea edx, [ebx + 0x54]
mov byte [edi + 0xb], al
push edx
lea ecx, [edi + 0x1c]
call fcn.00401cac
lea ecx, [esi - 0x10]
call fcn.004015d2
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ca14
leave
ret 8
Function at 0x407b7e
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x43a00c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
lea edx, [ebp - 8]
push ebx
push esi
push edi
mov edi, ecx
lea ebx, [edi + 0x14]
mov ecx, dword [ebx]
call fcn.0040643f
mov eax, dword [ebp - 8]
cmp eax, dword [edi + 4]
jbe 0x407bb3
mov ecx, edi
call fcn.00407cfe
xor eax, eax
cmp byte [edi + 0xa], al
setne al
xor esi, esi
push esi
push 0x80
lea eax, [eax*2 + 2]
push eax
push esi
push 3
push 0x40000000
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 0x18], eax
cmp eax, 0xffffffff
jne 0x407bed
mov dword [edi + 0x18], esi
xor al, al
jmp 0x407c81
mov edx, ebx
mov dword [ebp - 8], esi
lea ecx, [ebp - 8]
call fcn.00408766
mov esi, dword [ebp - 8]
lea edx, [ebp - 9]
xor ebx, ebx
mov ecx, esi
inc ebx
mov byte [ebp - 9], bl
call 0x4063a9
cmp byte [ebp - 9], 0
jne 0x407c4e
mov ecx, dword [edi + 0x18]
call fcn.004064c1
test al, al
jne 0x407c4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x407c77
cmp byte [edi + 0xb], 0
je 0x407c77
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push 0
push eax
push 2
push 0x42e1fc
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x407c77
push dword [edi + 0x14]
push dword [edi + 0x1c]
push str.LOG_SYSTEM:___s_:_ERROR___Log_path__s_has_a_reparse_point
call fcn.00408b86
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [edi + 0x18], 0
xor bl, bl
lea ecx, [esi - 0x10]
call fcn.004015d2
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ca14
leave
ret

Function at 0x407c90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x43a00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
mov esi, ecx
push ebx
push 0x80
push 5
push ebx
push 3
push 0x40000000
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp dword [esi + 0x18], 0xffffffff
mov edi, eax
jne 0x407ccb
xor al, al
jmp 0x407cef
cmp byte [esi + 0xb], bl
je 0x407ce6
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
push 2
push 0x42e1fc
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ca14
leave
ret
Function at 0x407d91
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x43a00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x18
mov dword [ebp - 0x7c], ecx
lea edi, [ebp - 0x68]
pop ecx
mov esi, str.SYSTEMCurrentControlSetControlSession_Manager
lea eax, [ebp - 0x78]
rep movsd dword es:[edi], dword [esi]
push eax
push 0x20019
xor ebx, ebx
lea eax, [ebp - 0x68]
push ebx
push eax
push 0x80000002
movsw word es:[edi], word [esi]
mov dword [ebp - 0x78], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407ec1
push 7
pop esi
lea eax, [ebp - 0x74]
mov dword [ebp - 0x74], ebx
push eax
push ebx
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x6c], esi
push eax
push ebx
mov edi, str.PendingFileRenameOperations
push edi
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x407ec1
cmp dword [ebp - 0x6c], esi
jne 0x407ec1
push dword [ebp - 0x74]
call fcn.0041d79c
push dword [ebp - 0x74]
mov esi, eax
push ebx
push esi
mov dword [ebp - 0x80], esi
call fcn.0040d7b0
add esp, 0x10
lea eax, [ebp - 0x74]
push eax
push esi
push ebx
push ebx
push edi
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x407eb6
mov edi, dword [ebp - 0x74]
shr edi, 1
lea eax, [edi - 2]
cmp eax, 0xffffd
ja 0x407eb6
cmp word [esi + edi*2 - 4], bx
jne 0x407eb6
cmp word [esi + edi*2 - 2], bx
jne 0x407eb6
mov eax, dword [ebp - 0x7c]
lea ecx, [ebp - 0x70]
add eax, 0x14
mov dword [ebp - 0x70], ebx
push eax
mov edx, str.___
call fcn.00408104
mov esi, dword [ebp - 0x70]
pop ecx
test edi, edi
je 0x407ea2
mov eax, dword [ebp - 0x80]
push esi
lea eax, [eax + ebx*2]
push eax
mov dword [ebp - 0x7c], eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x407ea5
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc ebx
add ebx, eax
cmp ebx, edi
jb 0x407e7d
or ebx, 0xffffffff
cmp ebx, 0xffffffff
lea ecx, [esi - 0x10]
setne bl
call fcn.004015d2
mov esi, dword [ebp - 0x80]
push esi
call fcn.0040d645
pop ecx
mov al, bl
jmp 0x407ec3
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ca14
leave
ret

Function at 0x40808f
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
jne 0x40809c
xor al, al
pop esi
ret
push 0x1f4
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4080d5
cmp eax, 0x80
je 0x4080d5
push dword [esi + 0xc]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_acquire_logging_mutex__s_n
call fcn.00408b86
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [esi + 9], 0
jmp 0x408098
mov al, 1
pop esi
ret
Function at 0x408636
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x43a00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov word [ebp - 0xc], 0x500
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], ebx
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 8], eax
test eax, eax
je 0x40869c
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
neg eax
sbb eax, eax
and dword [ebp - 8], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 8]
test eax, eax
mov ecx, dword [ebp - 4]
setne al
xor ecx, ebp
pop ebx
call fcn.0040ca14
leave
ret

Function at 0x408cba
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x43a00c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
cmp edi, 0x80000003
jne 0x408ce7
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0040ca14
leave
ret
push esi
push 0x802
lea eax, [ebp - 0x808]
push 0
push eax
call fcn.0040d7b0
mov esi, dword [0x43bd7c]
lea ecx, [ebp - 0x80c]
xor edx, edx
call fcn.0040611f
push dword [ebp + 0xc]
lea eax, [ebp - 0x808]
push str.baselogging.cc
push 0
push esi
push dword [ebp - 0x80c]
push edi
push str.Exception__x_in__s__s__u_r_n_r_n_hs:_d_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 0x80c]
add esp, 0x2c
lea ecx, [ecx - 0x10]
call fcn.004015d2
lea ecx, [ebp - 0x808]
call fcn.00409605
push 0x250012
push str.Exception
lea eax, [ebp - 0x808]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop esi
sub eax, 3
je 0x408d7b
sub eax, 1
jne 0x408d73
int3
xor eax, eax
inc eax
jmp 0x408cda
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x409605
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebx
push edi
mov edi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0
mov ebx, eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x409674
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ebx, [ebx*2 + 2]
push ebx
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x409650
push ebx
push edi
push eax
call fcn.0040d910
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x40966b
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
pop edi
pop ebx
jmp dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop ebx
ret
Function at 0x40a7e8
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x43a00c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, edx
mov esi, ecx
call fcn.004015fb
push eax
lea ecx, [ebp - 8]
call fcn.00401fbb
mov dword [ebp - 0xc], esi
mov edx, 0x811c9dc5
xor ecx, ecx
movzx eax, byte [ebp + ecx - 0xc]
xor eax, edx
imul edx, eax, 0x1000193
inc ecx
cmp ecx, 4
jb 0x40a81e
push edx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040c647
mov ecx, dword [0x43be88]
mov eax, dword [eax + 4]
test eax, eax
jne 0x40a84e
mov eax, ecx
cmp eax, ecx
je 0x40a860
add eax, 0xc
lea ecx, [ebp - 8]
push eax
call fcn.00401cac
jmp 0x40a876
or esi, 0x4000
lea edx, [ebp - 8]
mov ecx, esi
call fcn.00404994
mov esi, eax
test esi, esi
js 0x40a8e5
mov eax, dword [ebp - 8]
xor edx, edx
mov esi, dword [edi]
inc edx
mov edi, 0x104
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, edi
or edx, ecx
jge 0x40a89b
push edi
lea ecx, [ebp - 8]
call fcn.004020b5
mov eax, dword [ebp - 8]
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0xffffffffffffffff
lea ecx, [ebp - 8]
mov esi, eax
call fcn.004031c1
test esi, esi
jne 0x40a8ba
mov esi, 0x80040709
jmp 0x40a8e5
mov esi, dword [ebp - 8]
test esi, esi
jne 0x40a8c5
xor eax, eax
jmp 0x40a8cc
push esi
call fcn.00415d8d
pop ecx
push eax
push esi
mov ecx, ebx
call fcn.00401ef9
cmp byte [ebp + 8], 0
je 0x40a8e3
mov ecx, dword [ebp - 8]
call fcn.00404866
xor esi, esi
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.004015d2
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ca14
leave
ret

Function at 0x40d353
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40d392
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40d392
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40d392
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40d392
cmp dword [ecx + 0x74], 0xe
jbe 0x40d392
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x41d370
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41d39d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41d39d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1f6ac60
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.sect_1
lea edi, [esi - 0x1294000]
push edi
jmp 0x1f6ac7a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1f6ac81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1f6ac70
mov eax, 1
add ebx, ebx
jne 0x1f6ac93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1f6aca4
jne 0x1f6acc3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1f6acc3
dec eax
add ebx, ebx
jne 0x1f6acb0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x1f6ac88
add ebx, ebx
jne 0x1f6acbf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x1f6ad15
xor ecx, ecx
sub eax, 3
jb 0x1f6acdb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1f6ad4a
sar eax, 1
mov ebp, eax
jmp 0x1f6ace6
add ebx, ebx
jne 0x1f6ace6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1f6acb4
inc ecx
add ebx, ebx
jne 0x1f6acf4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1f6acb4
add ebx, ebx
jne 0x1f6ad01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1f6acf6
jne 0x1f6ad12
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1f6acf6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1f6ad34
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1f6ad26
jmp 0x1f6ac76
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1f6ad34
add edi, ecx
jmp 0x1f6ac76
pop esi
mov edi, esi
mov ecx, 0xaea0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1f6ad52
cmp byte [edi], 0x36
jne 0x1f6ad52
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x1f6ad57
lea edi, [esi + 0x1b67000]
mov eax, dword [edi]
or eax, eax
je 0x1f6adcf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1b82bf4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1b82d70]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1f6ad84
mov ecx, edi
jns 0x1f6adb3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1b82d78]
or eax, eax
je 0x1f6adc9
mov dword [ebx], eax
add ebx, 4
jmp 0x1f6ada1
call dword [esi + 0x1b82d74]
mov ebp, dword [esi + 0x1b82d7c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
lea ebx, [esi - 0x1000]
lea edi, [ebx + 0x1b6ae2a]
push edi
xor eax, eax
stosb byte es:[edi], al
pop ecx
dec ecx
push eax
push 1
push ebx
call ecx
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x1f6ae1b
sub esp, 0xffffff80
jmp 0x4e44db
Function at 0x4026f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428b5d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x438040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xorps xmm0, xmm0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
call fcn.00401840
mov esi, eax
add esp, 4
test esi, esi
jne 0x4027a2
mov ecx, edi
call fcn.0040dee0
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40277d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x4027a2
cmp dword [ebp - 0x14], 0xf
lea ecx, [ebp - 0x2c]
push 0
push ecx
push dword [ebp - 0x18]
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x4027d2
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4027c8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4027ef
push ecx
push edx
call fcn.0040e95e
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e950
mov esp, ebp
pop ebp
ret
call fcn.00411edc
int3
Function at 0x402800
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428b9d
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x438040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp + 8]
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40285e
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x402986
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
push 0
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [ebp - 0x18]
mov edx, eax
mov dword [ebp - 0x30], edx
cmp edx, esi
ja 0x4028a7
cmp dword [ebp - 0x14], 0xf
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], edx
cmova ecx, dword [ebp - 0x28]
mov byte [edx + ecx], 0
jmp 0x4028ed
mov eax, dword [ebp - 0x14]
mov ecx, edx
sub ecx, esi
sub eax, esi
mov dword [ebp - 0x2c], ecx
push ecx
cmp ecx, eax
ja 0x4028dc
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
push 0
cmova eax, dword [ebp - 0x28]
add esi, eax
mov dword [ebp - 0x18], edx
push esi
call fcn.004105f0
mov eax, dword [ebp - 0x2c]
add esp, 0xc
mov byte [esi + eax], 0
jmp 0x4028ed
push ecx
mov byte [ebp - 0x2c], 0
push dword [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040b4d0
cmp dword [ebp - 0x14], 0xf
lea ecx, [ebp - 0x30]
push 0
push ecx
push dword [ebp - 0x30]
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x38]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x34]
push eax
call fcn.00401840
mov esi, eax
add esp, 4
test esi, esi
jne 0x40294d
push eax
push eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x34]
push esi
push eax
push dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
cmova ecx, dword [ebp - 0x28]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x402984
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40297a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4029a1
push ecx
push edx
call fcn.0040e95e
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e950
mov esp, ebp
pop ebp
ret
call fcn.00411edc
int3
Function at 0x403680
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428d05
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x438040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x18], ebx
push 0
push 0
push 3
push 0
push 5
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 0
call fcn.0040db30
mov ecx, eax
cmp edi, 0xffffffff
jne 0x403701
test ecx, ecx
je 0x4037c2
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ecx, ecx
je 0x4037c2
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
push 0
push edi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov dword [ebp - 0x14], ebx
test ebx, ebx
js 0x4037b8
mov ecx, dword [esi - 8]
mov edx, 1
sub edx, dword [esi - 4]
sub ecx, ebx
or ecx, edx
jge 0x40374b
push ebx
lea ecx, [ebp - 0x10]
call fcn.0040d6f0
mov esi, dword [ebp - 0x10]
cmp ebx, dword [esi - 8]
jg 0x4037b8
push 0
lea eax, [ebp - 0x14]
mov dword [esi - 0xc], ebx
push eax
mov byte [ebx + esi], 0
push dword [ebp - 0x14]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea ebx, [esi - 0x10]
mov ecx, ebx
call fcn.0040d4d0
mov esi, dword [ebp - 0x18]
add eax, 0x10
mov byte [ebp - 4], 0
mov dword [esi], eax
or eax, 0xffffffff
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x403793
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4037a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
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
push 0x80070057
call fcn.0040d910
push 0x80004005
call fcn.0040d910
int3