joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4053a0
Capabilities:
Accept command line arguments
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea edx, [ebp - 0x1c]
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.SHELL32.DLL_CommandLineToArgvW]
sub esp, 8
test eax, eax
mov esi, eax
je 0x405493
mov eax, dword [ebp - 0x1c]
shl eax, 2
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp - 0x1c]
mov edx, dword [ebp + 8]
test eax, eax
mov dword [ecx], eax
mov dword [edx], edi
je 0x40545f
xor ebx, ebx
test edi, edi
mov edx, eax
jle 0x405417
mov eax, dword [esi + ebx*4]
lea edi, [edx + ebx*4]
mov dword [esp], eax
call fcn.00405180
mov dword [edi], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
mov eax, dword [edx + ebx*4]
test eax, eax
je 0x40542b
add ebx, 1
cmp dword [ebp - 0x1c], ebx
jg 0x4053f3
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1e
mov dword [esp + 4], 1
mov dword [esp], str._nFATAL:_utf16_to_utf8_failed_n_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov dword [esp], 0xffffffff
call sub.msvcrt.dll_exit
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
mov dword [esp], str._nFATAL:_Malloc_failed_n_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov dword [esp], 0xffffffff
call sub.msvcrt.dll_exit
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x23
mov dword [esp + 4], 1
mov dword [esp], str._nFATAL:_CommandLineToArgvW_failed_n_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov dword [esp], 0xffffffff
call sub.msvcrt.dll_exit
mov esi, esi
lea edi, [edi]
Function at 0x4131d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebx, dword [esp + 0x70]
fldz
mov esi, dword [esp + 0x7c]
fst dword [esp + 0x38]
mov edi, dword [esp + 0x64]
fst dword [esp + 0x3c]
mov ebp, dword [esp + 0x74]
imul ecx, ebx, 0x2a
imul eax, esi, 0x54
test ebx, ebx
lea eax, [ecx + eax + 0x426b40]
mov dword [esp + 0x28], eax
jne 0x4133a8
fstp st(0)
fld dword [esi*4 + 0x426c90]
fstp dword [esp + 0x18]
fld dword [esi*4 + 0x426ca0]
fstp dword [esp + 0x14]
mov eax, dword [ebp + 4]
fldz
shl eax, 3
cmp edi, dword [esp + 0x68]
mov dword [esp + 0x10], eax
jge 0x41339b
mov esi, edi
mov edi, dword [esp + 0x6c]
nop
mov edx, dword [esp + 0x28]
cmp esi, 0x14
mov eax, 0x14
cmovle eax, esi
mov dword [esp + 0x74], ebp
mov ebp, edi
mov edi, esi
mov esi, dword [esp + 0x74]
add eax, eax
lea ebx, [edx + eax + 1]
add eax, edx
mov dword [esp + 0x20], ebx
xor ebx, ebx
mov dword [esp + 0x24], eax
bsr eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x14]
mov edx, dword [esp + 0x10]
xor eax, 0x1f
lea eax, [eax + ecx - 0x20]
sub edx, eax
cmp edx, 0xe
jg 0x413362
cmp edx, 1
jle 0x413318
mov dword [esp + 8], 2
fstp dword [esp + 0x1c]
mov dword [esp + 4], 0x426b20
mov dword [esp], esi
call fcn.00408450
mov ecx, eax
and eax, 1
sar ecx, 1
neg eax
xor eax, ecx
mov dword [esp + 0x2c], eax
fild dword [esp + 0x2c]
fld dword [esp + 0x1c]
jmp 0x4132d0
fxch st(1)
lea esi, [esi]
mov ecx, dword [esp + 0x60]
mov eax, dword [ecx + 8]
imul eax, ebx
add eax, edi
lea eax, [ebp + eax*4]
fld dword [eax]
fld dword [0x426d28]
fucomi st(1)
fcmovbe st(0), st(1)
fstp st(1)
fmul dword [esp + 0x14]
fadd st(1)
fadd st(2)
fstp dword [eax]
fadd st(1)
fxch st(1)
fmul dword [esp + 0x18]
fsubp st(1)
fstp dword [esp + ebx*4 + 0x38]
add ebx, 1
cmp ebx, dword [esp + 0x78]
jge 0x413344
fld dword [esp + ebx*4 + 0x38]
jmp 0x41326d
fld1
fchs
jne 0x4132c8
fstp st(0)
mov dword [esp + 4], 1
fstp dword [esp + 0x1c]
mov dword [esp], esi
call fcn.00408410
neg eax
mov dword [esp + 0x2c], eax
fild dword [esp + 0x2c]
fld dword [esp + 0x1c]
jmp 0x4132d0
mov dword [esp + 0x74], esi
mov esi, edi
mov edi, ebp
add esi, 1
mov ebp, dword [esp + 0x74]
cmp esi, dword [esp + 0x68]
je 0x4133a0
fld dword [esp + 0x38]
jmp 0x413240
mov eax, dword [esp + 0x20]
fstp dword [esp + 0x1c]
movzx eax, byte [eax]
shl eax, 6
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
movzx eax, byte [eax]
mov dword [esp], esi
shl eax, 7
mov dword [esp + 4], eax
call fcn.00419d40
mov dword [esp + 0x2c], eax
fild dword [esp + 0x2c]
fld dword [esp + 0x1c]
jmp 0x4132d0
fstp st(0)
lea esi, [esi]
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
fld dword [0x426d24]
fstp dword [esp + 0x18]
fstp dword [esp + 0x14]
jmp 0x413222
Function at 0x41aa50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x9c
mov eax, dword [esp + 0xb4]
mov edi, dword [esp + 0xb8]
mov esi, dword [esp + 0xb0]
movsx eax, byte [eax]
movsx edx, word [edi + 2]
mov ecx, eax
imul ecx, edx
add ecx, dword [edi + 8]
test edx, edx
jle 0x41aaa4
xor eax, eax
movzx edx, byte [ecx + eax]
shl edx, 7
mov word [esi + eax*2], dx
movsx edx, word [edi + 2]
add eax, 1
cmp edx, eax
jg 0x41aa84
mov eax, dword [esp + 0xb4]
movsx eax, byte [eax]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x20]
mov dword [esp + 4], eax
lea eax, [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 8], edi
call fcn.00417880
movsx eax, word [edi + 2]
movsx ebx, word [edi + 4]
test eax, eax
mov dword [esp + 0x1c], eax
jle 0x41ab4e
lea ecx, [esp + 0x50]
mov eax, dword [esp + 0x1c]
xor edx, edx
mov dword [esp + 0xb0], esi
mov esi, dword [esp + 0xb4]
mov dword [esp + 0xb8], edi
mov edi, ecx
jmp 0x41ab15
sub ecx, 0x66
mov ebp, ecx
movzx ecx, cx
sar ebp, 0x10
imul ecx, ebx
imul ebp, ebx
sar ecx, 0x10
add ebp, ecx
add edx, ebp
mov word [edi + eax*2 - 2], dx
sub eax, 1
je 0x41ab40
movzx ecx, byte [esp + eax + 0x1f]
movsx edx, dx
imul edx, ecx
movsx ecx, byte [esi + eax]
shl ecx, 0xa
sar edx, 8
cmp ecx, 0
jg 0x41aaf3
mov ebp, 0
je 0x41ab09
add ecx, 0x66
jmp 0x41aaf6
mov esi, dword [esp + 0xb0]
mov edi, dword [esp + 0xb8]
mov eax, dword [esp + 0x1c]
xor ebx, ebx
mov dword [esp + 4], esi
mov dword [esp + 8], eax
lea eax, [esp + 0x70]
mov dword [esp], eax
call fcn.0041af90
movsx eax, word [edi + 2]
lea edx, [esp + 0x50]
mov dword [esp + 0x1c], edx
test eax, eax
jg 0x41ac08
jmp 0x41ac31
bsr edx, eax
mov ecx, 0x18
xor edx, 0x1f
mov ebp, eax
sub ecx, edx
jne 0x41ac1c
mov eax, edx
and ebp, 0x7f
and eax, 1
cmp eax, 1
sbb eax, eax
and eax, 0x3486
sar edx, 1
add eax, 0x8000
mov ecx, edx
sar eax, cl
imul ecx, ebp, 0xd5
mov edx, eax
sar edx, 0x10
movzx ebp, ax
imul edx, ecx
imul ecx, ebp
sar ecx, 0x10
add ecx, edx
add ecx, eax
mov eax, dword [esp + 0x1c]
movsx ebp, word [esi + ebx*2]
movsx eax, word [eax + ebx*2]
shl eax, 0xe
cdq
idiv ecx
add ebp, eax
mov eax, 0x7fff
cmp ebp, 0x7fff
jg 0x41abf9
test ebp, ebp
mov eax, 0
cmovns eax, ebp
mov word [esi + ebx*2], ax
movsx eax, word [edi + 2]
add ebx, 1
cmp eax, ebx
jle 0x41ac31
movsx eax, word [esp + ebx*2 + 0x70]
shl eax, 0x10
test eax, eax
jg 0x41ab81
xor ecx, ecx
jmp 0x41abce
ror ebp, cl
test ecx, ecx
jns 0x41ab96
neg ecx
rol eax, cl
mov ebp, eax
jmp 0x41ab96
mov dword [esp + 8], eax
mov eax, dword [edi + 0x20]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.0041b0b0
add esp, 0x9c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x41bb00
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x41bbac
mov eax, dword [ebx]
xor edx, edx
mov byte [eax + 0x16], 0
mov eax, dword [ebx]
mov byte [eax + 0x17], 0
mov eax, dword [ebx]
mov byte [eax + 0x18], 0
mov eax, dword [ebx]
mov byte [eax + 0x19], 0
mov ebp, dword [ebx + 4]
xor eax, eax
mov esi, dword [ebx]
test ebp, ebp
jle 0x41bb62
mov edx, esi
add ebp, esi
xor eax, eax
nop
lea esi, [esi]
movzx ecx, byte [edx]
mov edi, eax
add edx, 1
shr eax, 0x18
shl edi, 8
xor ecx, eax
mov eax, dword [ecx*4 + 0x429520]
xor eax, edi
cmp edx, ebp
jne 0x41bb40
mov edx, eax
shr edx, 0x18
mov ebp, dword [ebx + 0xc]
test ebp, ebp
jle 0x41bb92
mov edx, dword [ebx + 8]
add ebp, edx
nop
movzx ecx, byte [edx]
mov edi, eax
add edx, 1
shr eax, 0x18
shl edi, 8
xor ecx, eax
mov eax, dword [ecx*4 + 0x429520]
xor eax, edi
cmp edx, ebp
jne 0x41bb70
mov edx, eax
shr edx, 0x18
mov byte [esi + 0x16], al
mov esi, dword [ebx]
mov ecx, eax
shr ecx, 8
shr eax, 0x10
mov byte [esi + 0x17], cl
mov ecx, dword [ebx]
mov byte [ecx + 0x18], al
mov eax, dword [ebx]
mov byte [eax + 0x19], dl
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x41d1a0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
lea ebx, [esp + 0x24]
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.0041d200
Function at 0x41dba0
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x41dbd8
xor edx, edx
nop
mov ecx, dword [eax + 0xc]
cmp ecx, ebx
ja 0x41dbce
add ecx, dword [eax + 8]
cmp ebx, ecx
jb 0x41dbda
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x41dbc0
xor eax, eax
pop ebx
pop esi
ret

Function at 0x41eac0
Capabilities:
Query environment variable

Disassembly:
push ebx
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x10], 1
mov dword [esp + 8], ebx
pop ebx
jmp fcn.0041e490
Function at 0x4010a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x492aea
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x4aeea0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x18], esi
call fcn.00442369
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x401146
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], str.bad_locale_name
call fcn.0045a982
push 0x4ab700
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], vtable.std::runtime_error.0
call fcn.00461ebb
push edi
push esi
call fcn.0044200e
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.0045a8cf
mov esp, ebp
pop ebp
ret 4
Function at 0x406020
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x492e37
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x4aeea0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
mov dword [edi], 0x4a4540
mov dword [edi + 0x60], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov eax, dword [edi]
lea esi, [edi + 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], 1
mov dword [edi + eax], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push ecx
lea eax, [ecx - 8]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
push esi
mov ecx, dword [eax + 4]
add ecx, edi
call fcn.00406dd0
mov dword [ebp - 4], 2
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [ecx + edi - 4], eax
mov ecx, esi
call fcn.00407490
lea eax, [esi + 4]
mov dword [esi + 0xc], eax
lea eax, [esi + 0x14]
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x4c], 0
mov byte [esi + 0x45], 0
lea ecx, [esi + 8]
mov dword [esi + 0x10], ecx
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, dword [0x4b4fc8]
mov dword [esi + 0x48], eax
mov dword [esi + 0x50], 0
mov dword [esi + 0x40], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x406150
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x492df2
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4aeea0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
mov dword [edi], 0x4a4540
mov dword [edi + 0x60], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov eax, dword [edi]
lea esi, [edi + 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], 1
mov dword [edi + eax], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push ecx
lea eax, [ecx - 8]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
push esi
mov ecx, dword [eax + 4]
add ecx, edi
call fcn.00406dd0
mov dword [ebp - 4], 2
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [ecx + edi - 4], eax
mov ecx, esi
call fcn.00407490
lea eax, [esi + 4]
mov dword [esi + 0xc], eax
lea eax, [esi + 0x14]
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x4c], 0
mov byte [esi + 0x45], 0
lea ecx, [esi + 8]
mov dword [esi + 0x10], ecx
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, dword [0x4b4fc8]
mov dword [esi + 0x50], 0
mov dword [esi + 0x48], eax
mov dword [esi + 0x40], 0
mov eax, dword [ebp + 0xc]
push ecx
or eax, 2
push eax
push dword [ebp + 8]
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00406e80
test eax, eax
jne 0x4062a1
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + edi + 0xc]
add ecx, edi
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x406299
or eax, 4
push 0
push eax
call fcn.00401bd0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x407090
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x492f18
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4aeea0]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x4aeea0]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x4071e4
cmp byte [ebx + 0x45], 0
je 0x4071e4
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x4070f0
xor al, al
jmp 0x4071e6
mov ecx, 0xf
mov byte [esp + 0x18], 0
xorps xmm0, xmm0
movq qword [esp + 0x18], xmm0
lea eax, [esp + 0x18]
cmp ecx, 0x10
cmovae eax, dword [esp + 0x18]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], 8
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
jmp 0x407130
cmp dword [esp + 0x2c], 0x10
mov ecx, dword [ebx + 0x40]
lea eax, [esp + 0x14]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x2c]
lea edi, [esp + 0x1c]
cmovae edi, dword [esp + 0x1c]
lea esi, [esp + 0x1c]
cmovae esi, dword [esp + 0x1c]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x407171
dec eax
je 0x407175
sub eax, 2
je 0x4071cb
xor bl, bl
jmp 0x4071cd
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp ecx, 0x10
lea eax, [esp + 0x18]
cmovae eax, edx
sub esi, eax
je 0x4071ac
push dword [ebx + 0x50]
cmp ecx, 0x10
push esi
lea eax, [esp + 0x20]
cmovae eax, edx
push 1
push eax
call fcn.0045be89
add esp, 0x10
cmp esi, eax
jne 0x40716d
cmp byte [ebx + 0x45], 0
je 0x4071cb
test esi, esi
jne 0x407130
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.00406d20
jmp 0x407130
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x4071e0
push dword [esp + 0x18]
call fcn.0045b2a0
add esp, 4
mov al, bl
jmp 0x4071e6
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0045a8cf
mov esp, ebp
pop ebp
ret
Function at 0x408450
Capabilities:
Copy file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4931b1
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x4aeea0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [ebp - 0x40]
call fcn.0040dbd0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.0040d4a0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push 0
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4084c5
xor bl, bl
jmp 0x4085d3
lea ecx, [ebp - 0x28]
call fcn.0040dd90
call fcn.00408aa0
test al, al
je 0x408578
lea ecx, [ebp - 0x28]
call fcn.0040dd90
push ecx
lea ecx, [ebp - 0xf8]
mov dword [ebp - 0x104], 0
mov dword [ebp - 0x100], 0
mov dword [ebp - 0xfc], 0
call fcn.00402100
mov byte [ebp - 4], 2
sub esp, 8
lea ecx, [ebp - 0xf8]
mov dword [ebp - method.ResOutStream.virtual_0], vtable.ResOutStream.0
call fcn.0040b8d0
mov byte [ebp - 4], 3
cmp dword [ebp - 0x14], 8
push 0xc8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 0x4a47fc
push eax
lea ecx, [ebp - 0x108]
call fcn.0040b590
lea ecx, [ebp - 0x108]
mov byte [ebp - 4], 4
call fcn.0040b7d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x108]
test al, al
jne 0x408573
call fcn.0040b660
xor bl, bl
jmp 0x4085d3
call fcn.0040b660
lea ecx, [ebp - 0x28]
call fcn.0040dd90
sub esp, 0x18
mov ecx, esp
push str..SERVER
call fcn.004028f0
lea ecx, [ebp - 0x28]
call fcn.00407fa0
add esp, 0x18
test al, al
jne 0x4085a2
xor bl, bl
jmp 0x4085d3
lea ecx, [ebp - 0x28]
call fcn.0040dd90
mov ecx, esi
call fcn.0040dfb0
cmp dword [esi + 0x14], 8
jb 0x4085b9
mov esi, dword [esi]
cmp dword [ebp - 0x14], 8
push 0xb
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne bl
cmp dword [ebp - 0x14], 8
jb 0x4085e4
push dword [ebp - 0x28]
call fcn.0045b2a0
add esp, 4
xor eax, eax
cmp dword [ebp - 0x2c], 8
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jb 0x408609
push dword [ebp - 0x40]
call fcn.0045b2a0
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045a8cf
mov esp, ebp
pop ebp
ret
Function at 0x409ce0
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40
mov eax, dword [0x4aeea0]
xor eax, esp
mov dword [esp + 0x3c], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x14], 8
mov edi, edx
jb 0x409d04
mov eax, dword [esi]
jmp 0x409d06
mov eax, esi
lea ecx, [esp + 8]
push ecx
push eax
call fcn.0045c20c
add esp, 8
test eax, eax
jne 0x409d22
mov eax, dword [esp + 0x20]
or eax, dword [esp + 0x24]
je 0x409d5a
mov edx, esi
mov ecx, edi
call fcn.00408630
test al, al
je 0x409d5a
cmp dword [esi + 0x14], 8
jb 0x409d39
mov eax, dword [esi]
jmp 0x409d3b
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [esi + 0x14], 8
jb 0x409d4a
mov esi, dword [esi]
and eax, 0xffffff7f
or eax, 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [esp + 0x44]
pop edi
pop esi
xor ecx, esp
call fcn.0045a8cf
mov esp, ebp
pop ebp
ret
Function at 0x40ac60
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x493626
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4aeea0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov bl, cl
push str.BFA31D7B_D1D1_40D5_A90C_A0909FFA0887
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push 0
push eax
mov dword [0x4b4fd4], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40acb8
cmp eax, 0x80
jne 0x40ad7b
push 8
call fcn.0045b2f0
mov esi, eax
add esp, 4
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x40ad12
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], 0
call fcn.00442982
mov dword [ebp - 0x28], 0x4a4a00
mov dword [ebp - 0x18], 0x408c20
push esi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00442a38
lea ecx, [ebp - 0x28]
call fcn.004429f3
push 8
mov dword [ebp - 4], 0xffffffff
call fcn.0045b2f0
mov esi, eax
add esp, 4
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], 2
test esi, esi
je 0x40ad76
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], 0
call fcn.00442982
mov dword [ebp - 0x28], 0x4a49f8
mov dword [ebp - 0x18], 0x409400
mov byte [ebp - 0x14], bl
push esi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.00442a38
lea ecx, [ebp - 0x28]
call fcn.004429f3
call fcn.0040c590
push dword [0x4b4fd4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045a8cf
mov esp, ebp
pop ebp
ret

Function at 0x40b3a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
mov eax, dword [eax + 8]
call eax
test al, al
je 0x40b3b2
xor eax, eax
pop esi
ret
cmp dword [esi + 0x20], 8
lea eax, [esi + 0xc]
jb 0x40b3bd
mov eax, dword [eax]
cmp dword [esi + 0x38], 8
lea ecx, [esi + 0x24]
jb 0x40b3c8
mov ecx, dword [ecx]
push eax
push ecx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [esi + 8], eax
test eax, eax
je 0x40b3ae
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [esi + 0x3c], eax
test eax, eax
je 0x40b3ae
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esi + 0x40], eax
test eax, eax
je 0x40b3ae
push dword [esi + 8]
mov byte [esi + 0x45], 1
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi + 0x48], eax
pop esi
ret