joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409400
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
lea edx, [ebp - 0x10]
sub esp, 0x20
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x10], 4
mov dword [eax], 0
mov dword [esp + 0x10], eax
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], edx
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
mov ebx, eax
test eax, eax
je 0x4094a8
cmp eax, 2
je 0x4094d0
test byte [0x40c080], 2
jne 0x409468
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
mov eax, esi
call sym._wine_dbgstr_wn.constprop.0_2
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str.Error__ld_while_reading_value__s_n
mov dword [esp + 8], str.load_reg_dword
mov dword [esp + 4], 0x40c080
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_2
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
mov eax, dword [ebp - 0xc]
sub eax, 3
cmp eax, 1
ja 0x4094b9
cmp dword [ebp - 0x10], 4
je 0x40945c
mov ebx, 0x70c
test byte [0x40c080], 2
je 0x40945c
jmp 0x409468
lea esp, [ebp - 8]
xor ebx, ebx
mov eax, ebx
pop ebx
pop esi
pop ebp
ret

Function at 0x4095b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x409608
cmp byte [esi + ebx - 1], 0xa
je 0x4095dc
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x415184], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x409b70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov edi, dword [0x415194]
mov esi, dword [ebp + 8]
test edi, edi
je 0x409d30
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [0x415194]
movzx eax, al
bt eax, esi
jae 0x409d90
mov ecx, dword [0x415184]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], ecx
je 0x409c35
test byte [0x40c1a8], 8
jne 0x409cd0
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x40c1b8], 8
jne 0x409c80
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x409c04
cmp esi, 3
jbe 0x409c40
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x4112c8]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x409c04
mov ecx, dword [0x415194]
test ecx, ecx
je 0x409d70
mov dword [esp], 0x40c1b8
call dword [0x415194]
test al, 8
je 0x409bdb
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call sym._sprintf
add edi, eax
jmp 0x409bdb
mov ebx, dword [0x415194]
test ebx, ebx
je 0x409d50
mov dword [esp], 0x40c1a8
call dword [0x415194]
test al, 8
je 0x409bc6
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea edi, [ebx + eax]
jmp 0x409bce
mov ecx, sym._fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x415194
call sym._load_func.part.0
jmp 0x409b8d
mov ecx, sym._fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x415194
call sym._load_func.part.0
jmp 0x409cda
mov ecx, sym._fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x415194
call sym._load_func.part.0
jmp 0x409c8e
mov eax, 0xffffffff
jmp 0x409c35
Function at 0x409f10
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_narrow_argv
call sym.__initialize_narrow_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___argv
mov edi, dword [eax]
call sym.__get_initial_narrow_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._main
mov dword [esp], eax
call sym._exit
nop
nop
nop
Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
nop
mov ebx, 0x40915c
mov ecx, 0x5b740898
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x431024
nop
nop
mov eax, section..reloc
mov ebx, 0x42f3f8
nop
mov ecx, 0x6ab40526
nop
nop
nop
nop
nop
test eax, eax
je 0x431084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x1000c2c3
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x1000c250
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x1000c26e
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x1000c2cc
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x1000c2b3
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x1000c2bc
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x1000c2c6
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x1000c2a8
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x1000c232
mov dword [ebp + 8], esi
xor edi, edi
Function at 0x401070
Capabilities:
Compare security identifiers
Get token membership

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x453d26
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x104c
call fcn.0043e490
mov eax, dword [0x468620]
xor eax, esp
mov dword [esp + 0x1048], eax
push ebx
push esi
push edi
mov eax, dword [0x468620]
xor eax, esp
push eax
lea eax, [esp + 0x1060]
mov dword fs:[0], eax
lea eax, [esp + 0x38]
push eax
call fcn.00434b20
add esp, 4
lea ecx, [esp + 0x38]
push ecx
xor ebx, ebx
lea ecx, [esp + 0x24]
mov dword [esp + 0x106c], ebx
call fcn.00435b0c
mov edx, dword [esp + 0x20]
mov esi, 1
mov dword [esp + 0x10], esi
cmp dword [edx], 6
mov dword [esp + 0x30], ebx
mov word [esp + 0x34], 0x500
jl 0x4011c2
lea eax, [esp + 0x18]
push eax
push 0x20008
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x401211
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
push 0x1000
lea eax, [esp + 0x5c]
push eax
push 2
push ecx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov edx, dword [esp + 0x18]
push edx
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], ebx
jne 0x401153
mov dword [esp + 0x10], esi
jmp 0x40120d
lea eax, [esp + 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [esp + 0x58]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x40117f
mov dword [esp + 0x10], esi
jmp 0x40120d
xor esi, esi
mov dword [esp + 0x10], ebx
cmp dword [esp + 0x54], ebx
jbe 0x4011bb
lea edi, [esp + 0x58]
nop
mov edx, dword [edi]
mov eax, dword [esp + 0x14]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x4011b3
inc esi
add edi, 8
cmp esi, dword [esp + 0x54]
jb 0x401190
mov ecx, dword [esp + 0x14]
push ecx
jmp 0x401207
mov dword [esp + 0x10], 1
mov ecx, dword [esp + 0x14]
push ecx
jmp 0x401207
lea edx, [esp + 0x14]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [esp + 0x10], eax
cmp eax, ebx
je 0x40120d
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x401202
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x20]
mov byte [esp + 0x1068], bl
call fcn.004358f4
cmp dword [esp + 0x4c], 0x10
jb 0x401235
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0043a5c1
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x1060]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1048]
xor ecx, esp
call fcn.0043a0d5
mov esp, ebp
pop ebp
ret
Function at 0x407f30
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453f3b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x468620]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004381b6
push 4
mov dword [ebp - 4], 0
call fcn.0043a61d
mov edi, eax
add esp, 4
test edi, edi
je 0x407fb0
call fcn.00438083
mov dword [edi], eax
call fcn.00437e42
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00438177
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x407fa6
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0043819f
jmp 0x407fb2
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
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
Function at 0x41d970
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
pop ebp
ret
Function at 0x420890
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
add eax, 0x58
cmp dword [eax + 0x14], 8
mov word [ebp - 4], 0
mov dword [ebp - 8], 0
jb 0x4208ae
mov eax, dword [eax]
push 0x45f618
push eax
lea eax, [ebp - 8]
push eax
call fcn.0043e3e9
mov eax, dword [ebp - 8]
add esp, 0xc
test eax, eax
je 0x420908
push eax
push 2
lea ecx, [ebp - 4]
push 1
push ecx
call fcn.0043e8c7
mov edx, dword [ebp - 8]
push edx
call fcn.0043e138
mov al, byte [ebp - 4]
mov cl, byte [ebp - 3]
add esp, 0x14
cmp al, 0xff
jne 0x4208f0
cmp cl, 0xfe
je 0x4208f9
cmp cl, 0xff
jne 0x420902
cmp al, 0xfe
jne 0x420902
mov eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x420910
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
cmp dword [ebx + 0x9c], 1
push edi
jne 0x42094a
mov eax, ebx
call fcn.00420890
test al, al
jne 0x42094a
mov eax, dword [esi]
test eax, eax
je 0x420943
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
mov ecx, ebx
call fcn.004218d0
cmp dword [ebx + 0x6c], 8
jb 0x420955
mov eax, dword [ebx + 0x58]
jmp 0x420958
lea eax, [ebx + 0x58]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
push eax
call edi
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x4209f6
cmp dword [ebx + 0x6c], 8
jb 0x420985
mov eax, dword [ebx + 0x58]
jmp 0x420988
lea eax, [ebx + 0x58]
push 0
push 0x80
push 1
push 0
push 3
push 0x40000000
push eax
call edi
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x4209af
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, ebx
cmp dword [ecx + 0x9c], 1
push 0
lea edx, [ebp - 4]
push edx
jne 0x4209df
push 2
lea ecx, [ebp + 8]
push ecx
push eax
mov dword [ebp + 8], 0xfeff
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
push 3
lea ecx, [ebp + 8]
push ecx
push eax
mov word [ebp + 8], 0xbbef
mov byte [ebp + 0xa], 0xbf
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x420a10
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454f66
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x468620]
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 eax, dword [ebp + 8]
mov edi, ecx
lea ecx, [ebp - 0x218]
push ecx
push 0x104
mov dword [ebp - 0x274], eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ebx, ebx
mov esi, 7
test eax, eax
jne 0x420b14
mov word [ebp - 0x250], ax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x240], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x420a93
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x250]
call fcn.00401d50
cmp dword [ebp - 0x23c], 8
mov eax, dword [ebp - 0x250]
mov byte [ebp - 0x26d], bl
jae 0x420ad0
lea eax, [ebp - 0x250]
push ebx
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp eax, ebx
je 0x420ae9
cmp eax, 0xb7
je 0x420ae9
cmp eax, 0x50
jne 0x420af0
mov byte [ebp - 0x26d], 1
cmp dword [ebp - 0x23c], 8
jb 0x420b08
mov edx, dword [ebp - 0x250]
push edx
call fcn.0043a5c1
add esp, 4
cmp byte [ebp - 0x26d], bl
je 0x420be6
xor eax, eax
mov word [ebp - 0x234], ax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x224], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x420b32
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x234]
call fcn.00401d50
mov dword [ebp - 4], ebx
xor edx, edx
mov eax, edi
mov word [ebp - 0x26c], dx
mov dword [ebp - 0x258], esi
mov dword [ebp - 0x25c], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x420b71
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0x26c]
call fcn.00401d50
lea ecx, [ebp - 0x26c]
lea edi, [ebp - 0x234]
mov byte [ebp - 4], 1
call fcn.004254b0
mov esi, 8
mov byte [ebp - 4], bl
mov byte [ebp - 0x26d], al
cmp dword [ebp - 0x258], esi
jb 0x420bc7
mov eax, dword [ebp - 0x26c]
push eax
call fcn.0043a5c1
add esp, 4
cmp byte [ebp - 0x26d], bl
jne 0x420bea
cmp dword [ebp - 0x220], esi
jb 0x420be6
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.0043a5c1
add esp, 4
xor al, al
jmp 0x420c1b
mov ecx, dword [ebp - 0x274]
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x234]
push edx
add ecx, 0x58
call fcn.004017b0
cmp dword [ebp - 0x220], esi
jb 0x420c19
mov eax, dword [ebp - 0x234]
push eax
call fcn.0043a5c1
add esp, 4
mov al, 1
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.0043a0d5
mov esp, ebp
pop ebp
ret 4
Function at 0x420c40
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4560e8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x468620]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov eax, dword [0x468620]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [edi + 0x7c], 0
je 0x420cda
push 0xffffffffffffffff
xor ebx, ebx
push ebx
lea ecx, [edi + 0x58]
xor eax, eax
push ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], ax
call fcn.004017b0
mov dword [esp + 0x48], ebx
lea esi, [ebx + 8]
cmp dword [esp + 0x2c], ebx
jne 0x420ce1
cmp dword [edi + 0x50], esi
lea eax, [edi + 0x3c]
jb 0x420cbb
mov eax, dword [eax]
push edi
mov ecx, eax
call fcn.00420a10
test al, al
jne 0x420ce1
cmp dword [esp + 0x30], esi
jb 0x420cda
mov edx, dword [esp + 0x1c]
push edx
call fcn.0043a5c1
add esp, 4
xor al, al
jmp 0x420e20
cmp dword [edi + 0x78], ebx
lea eax, [edi + 0x78]
jne 0x420d10
mov edx, dword [edi]
push eax
mov eax, dword [edx]
mov ecx, edi
call eax
test al, al
jne 0x420d10
cmp dword [esp + 0x30], esi
jb 0x420cda
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0043a5c1
add esp, 4
xor al, al
jmp 0x420e20
cmp dword [edi + 0xa0], ebx
jne 0x420d32
push 4
call fcn.0043a61d
add esp, 4
cmp eax, ebx
je 0x420d2a
mov dword [eax], ebx
jmp 0x420d2c
xor eax, eax
mov dword [edi + 0xa0], eax
cmp dword [edi + 0x50], 8
lea esi, [edi + 0x3c]
jb 0x420d3d
mov esi, dword [esi]
sub esp, 0x1c
mov ecx, esp
mov dword [ecx + 0x10], ebx
xor edx, edx
mov eax, esi
mov dword [ecx + 0x14], 7
mov dword [esp + 0x30], esp
mov word [ecx], dx
lea ebx, [eax + 2]
lea ebx, [ebx]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x420d60
sub eax, ebx
sar eax, 1
push eax
push esi
call fcn.00401d50
mov esi, dword [edi + 0xa0]
call fcn.004257a0
mov eax, dword [edi + 0xa0]
mov eax, dword [eax]
test eax, eax
je 0x420e06
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x420e06
mov ecx, dword [edi + 0x78]
lea eax, [esp + 0x14]
lea esi, [edi + 0x78]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x420df7
cmp dword [esp + 0x18], 0
jl 0x420df7
jg 0x420dc3
cmp dword [esp + 0x14], 0xa00000
jb 0x420df7
mov eax, dword [esi]
test eax, eax
je 0x420dd6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
mov ecx, edi
call fcn.004218d0
mov edx, dword [edi]
mov eax, dword [edx]
push esi
mov ecx, edi
call eax
test al, al
jne 0x420df7
lea ecx, [esp + 0x1c]
call fcn.00401460
xor al, al
jmp 0x420e20
mov ecx, dword [edi + 0xa0]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [esp + 0x30], 8
mov byte [edi + 0x7d], 1
jb 0x420e1e
mov eax, dword [esp + 0x1c]
push eax
call fcn.0043a5c1
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0043a0d5
mov esp, ebp
pop ebp
ret
Function at 0x420ea0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x420eb0
push edi
sub eax, edx
push 2
sar eax, 1
push 0
mov edi, eax
mov eax, dword [esi + 0x78]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp + 8]
push 0
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [esi + 0x78]
lea edx, [edi + edi]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push edx
push eax
push ecx
mov dword [ebp - 4], 0
call edi
mov eax, dword [esi + 0x78]
push 0
lea edx, [ebp - 4]
push edx
push 4
push 0x45f634
push eax
mov dword [ebp - 4], 0
call edi
pop edi
mov esp, ebp
pop ebp
ret 4

Function at 0x420f20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x420f30
push edi
push 2
sub eax, edx
push 0
mov edi, eax
mov eax, dword [esi + 0x78]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esi + 0x78]
push 0
lea ecx, [ebp - 4]
push ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
push edx
mov dword [ebp - 4], 0
call edi
mov ecx, dword [esi + 0x78]
push 0
lea eax, [ebp - 4]
push eax
push 2
push 0x45f63c
push ecx
mov dword [ebp - 4], 0
call edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x423a00
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453d9b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x468620]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.004381b6
push 4
mov dword [ebp - 4], 0
call fcn.0043a61d
mov edi, eax
add esp, 4
test edi, edi
je 0x423a7c
call fcn.00438083
mov dword [edi], eax
call fcn.00437e42
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00438177
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x423a72
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0043819f
jmp 0x423a7e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
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 4
Function at 0x4257a0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [esi], 0
jne 0x4257e9
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x4257b4
lea eax, [ebp + 8]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
jne 0x4257e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x4257e9
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x4257dc
lea eax, [ebp + 8]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [esi], eax
cmp dword [esi], 0
push ebx
setne bl
cmp dword [ebp + 0x1c], 8
jb 0x425802
mov eax, dword [ebp + 8]
push eax
call fcn.0043a5c1
add esp, 4
mov al, bl
pop ebx
pop ebp
ret 0x1c