joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433630
Capabilities:
Access peb ldr_data

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f8490
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
mov eax, dword [0x534090]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], edi
lea esi, [edi + 4]
mov dword [edi], 0
mov dword [esi], 0
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x2c]
mov dword [edi + 0x1c], eax
mov edx, str.BDREINIT
mov eax, dword [ebx + 0xc]
mov dword [edi + 0x20], eax
mov dword [edi + 0x28], 0x12c
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0x538e40
call fcn.00435310
mov dword [ebp - 0x30], eax
cmp esi, eax
je 0x433740
mov ecx, dword [esi + 0x14]
cmp ecx, 8
jb 0x433714
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x433707
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x433798
mov eax, edx
push ecx
push eax
call fcn.004cb66f
mov eax, dword [ebp - 0x30]
add esp, 8
xor ecx, ecx
mov word [esi], cx
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], 7
movups xmm0, xmmword [eax]
movups xmmword [esi], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x433776
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43376c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x433798
push edx
push ecx
call fcn.004cb66f
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004cb63e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
call fcn.004d05ef
int3
Function at 0x434210
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword fs:[0x2c]
push ebx
push esi
mov esi, ecx
xor bl, bl
push edi
mov edi, dword [eax]
mov dword [ebp - 8], esi
nop dword [eax + eax]
mov eax, dword [0x538ef0]
cmp eax, dword [edi + 4]
jg 0x43431a
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x43425c
mov ecx, esi
call fcn.00435140
test al, al
jne 0x434230
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x434274
push eax
push ecx
push 1
push dword [ebp + 8]
call fcn.004d4b21
add esp, 0x10
jmp 0x434285
push dword [ebp + 8]
push 0x5141c8
push eax
call fcn.004341e0
add esp, 0xc
cmp dword [0x538efc], 0
mov ecx, eax
jl 0x4342ee
jg 0x43429b
cmp dword [0x538ef8], 0
jb 0x4342ee
lea eax, [esi + 0x28]
mov dword [ebp + 0xc], eax
mov eax, ecx
mov esi, dword [ebp + 0xc]
cdq
mov ebx, eax
mov dword [ebp - 4], edx
mov dword [ebp + 8], ebx
nop
mov eax, dword [esi]
add ebx, eax
mov edi, dword [esi + 4]
mov edx, edi
mov ecx, dword [ebp - 4]
mov dword [ebp + 0xc], eax
adc ecx, edi
lock cmpxchg8b qword [esi]
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
cmp eax, ecx
jne 0x4342b0
cmp edx, edi
jne 0x4342b0
mov esi, dword [ebp - 8]
cmp edi, dword [0x538efc]
jl 0x4342ec
jg 0x4342e8
cmp ecx, dword [0x538ef8]
jb 0x4342ec
mov bl, 1
jmp 0x4342ee
xor bl, bl
lea edx, [esi + 0x30]
mov eax, 1
lock xadd dword [edx], eax
inc eax
cmp eax, 1
jne 0x43430f
xor ecx, ecx
xchg dword [edx], ecx
push dword [esi + 0x1c]
call fcn.004d520d
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x538ef0
call fcn.004cb7e5
add esp, 4
cmp dword [0x538ef0], 0xffffffff
jne 0x434241
mov eax, dword [esi + 0x34]
push 0x538ef0
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov dword [0x538ef8], ecx
mov dword [0x538efc], eax
call fcn.004cb79b
add esp, 4
jmp 0x434241
Function at 0x434de0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [edx + 4]
push edi
mov edi, ecx
test esi, esi
je 0x434e23
cmp dword [esi], 0
je 0x434e23
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x538f20]
cmp eax, dword [ecx + 4]
jg 0x434e28
mov cl, byte [edi]
mov eax, edi
test cl, cl
je 0x434e1e
mov dl, byte [0x538f24]
xor cl, dl
mov byte [eax], cl
inc eax
mov cl, byte [eax]
test cl, cl
jne 0x434e13
sub eax, edi
pop edi
pop esi
ret
pop edi
xor eax, eax
pop esi
ret
push 0x538f20
call fcn.004cb7e5
add esp, 4
cmp dword [0x538f20], 0xffffffff
jne 0x434e05
mov al, byte [esi + 1]
sub al, byte [esi + 3]
sub al, byte [esi + 2]
add al, byte [esi]
push 0x538f20
mov byte [0x538f24], al
call fcn.004cb79b
add esp, 4
jmp 0x434e05
Function at 0x4366a0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f8825
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x534090]
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, ecx
mov eax, dword fs:[0x2c]
mov edx, dword [eax]
mov eax, dword [0x538f44]
cmp eax, dword [edx + 4]
jg 0x436843
mov ecx, dword [0x538f4c]
test ecx, ecx
jl 0x436828
mov esi, dword [0x538f48]
jg 0x436704
cmp esi, 2
jb 0x436828
mov eax, dword [edi + 0x28]
cdq
sub eax, esi
sbb edx, ecx
sub eax, 1
sbb edx, 0
mov dword [ebp - 0x5c], edx
js 0x436828
jg 0x436725
test eax, eax
jb 0x436828
push eax
lea eax, [ebp - 0x58]
push eax
lea ecx, [edi + 0x30]
call fcn.00435600
mov esi, eax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea ecx, [edi + 0x30]
call fcn.00435d40
push esi
push eax
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.004370f0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x436792
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x436788
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x436880
push edx
push ecx
call fcn.004cb66f
add esp, 8
mov edx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x4367e0
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4367d6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x436880
push edx
push ecx
call fcn.004cb66f
add esp, 8
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x436828
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43681e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x436885
push edx
push ecx
call fcn.004cb66f
add esp, 8
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.004cb63e
mov esp, ebp
pop ebp
ret
push 0x538f44
call fcn.004cb7e5
add esp, 4
cmp dword [0x538f44], 0xffffffff
jne 0x4366e5
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x1c]
push 0x538f44
mov dword [0x538f48], eax
mov dword [0x538f4c], ecx
call fcn.004cb79b
add esp, 4
jmp 0x4366e5
call fcn.004d05ef
call fcn.004d05ef
int3
Function at 0x436b80
Capabilities:
Encode data using xor
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ecx]
mov dword [ebp - 8], ecx
push ebx
push esi
mov ebx, dword [eax]
mov dword [ebp - 4], ebx
push edi
cmp edx, 8
jne 0x436ba4
cmp dword [ecx + 8], 2
je 0x436ba4
or ebx, 2
mov dword [ebp - 4], ebx
mov esi, dword [ecx + 4]
mov edi, dword [ebp + 8]
test esi, esi
je 0x436bfe
cmp dword [esi], 0
je 0x436bfe
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x538ee8]
cmp eax, dword [ecx + 4]
jg 0x436ccc
movzx ecx, word [edi]
mov esi, edi
mov edx, edi
test cx, cx
je 0x436bf8
mov bl, byte [0x538eec]
nop
add esi, 2
lea edx, [edx + 1]
xor cl, bl
mov byte [edx - 1], cl
movzx eax, word [esi]
mov cl, al
test ax, ax
jne 0x436be0
mov ebx, dword [ebp - 4]
sub esi, edi
sar esi, 1
jmp 0x436c00
xor esi, esi
test bl, 1
je 0x436c0c
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test bl, 2
je 0x436c2b
test esi, esi
je 0x436c21
mov ecx, dword [ebp - 8]
push esi
push edi
call fcn.00434360
jmp 0x436c2b
push ecx
mov ecx, dword [ebp - 8]
push edi
call fcn.00436890
test bl, 4
je 0x436cba
mov esi, dword [0x53916c]
mov edx, dword [esi]
cmp edx, 0xffffffff
jne 0x436c8a
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov ecx, dword [esi + 4]
add ecx, 0x2710
cmp eax, ecx
jbe 0x436cba
mov edx, dword [esi]
cmp edx, 0xffffffff
jne 0x436c8a
push 0
push 0x80
push 3
push 0
push 7
push 0xc0000000
push str..GlobalProcmonDebugLogger
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov edx, dword [esi]
mov dword [esi + 4], eax
cmp edx, 0xffffffff
je 0x436cba
mov ecx, edi
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x436c90
push 0
sub ecx, esi
lea eax, [ebp - 8]
push eax
push 0
sar ecx, 1
push 0
lea eax, [ecx + ecx]
push eax
push edi
push 0x95358204
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test bl, 8
je 0x436cc5
push edi
call fcn.00436a00
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x538ee8
call fcn.004cb7e5
add esp, 4
cmp dword [0x538ee8], 0xffffffff
jne 0x436bcc
mov al, byte [esi + 1]
sub al, byte [esi + 3]
sub al, byte [esi + 2]
add al, byte [esi]
push 0x538ee8
mov byte [0x538eec], al
call fcn.004cb79b
add esp, 4
jmp 0x436bcc
Function at 0x445b30
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
test edi, edi
jne 0x445b4b
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
push ebx
push 0x34
lea ebx, [esi + 4]
mov dword [esi + 0x44], 0
push 0
push ebx
mov dword [esi + 0x40], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x3c], 0
call fcn.004cd810
mov eax, dword [esi + 0x38]
add esp, 0xc
test eax, eax
je 0x445b8f
push eax
call fcn.004d48e7
add esp, 4
mov dword [esi + 0x38], 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp + 8], eax
test eax, eax
je 0x445c1e
push eax
call fcn.004dacb4
add esp, 4
mov dword [esi + 0x38], eax
test eax, eax
je 0x445c1e
push eax
push dword [ebp + 8]
push 0
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x445c1e
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push 0x511c94
push dword [esi + 0x38]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x445c1e
mov eax, dword [ebp + 8]
movups xmm0, xmmword [eax]
movups xmmword [ebx], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [ebx + 0x10], xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [ebx + 0x20], xmm0
mov eax, dword [eax + 0x30]
mov dword [ebx + 0x30], eax
xor eax, eax
cmp dword [ebx], 0xfeef04bd
sete al
mov dword [esi + 0x48], eax
cmp dword [esi + 0x48], 0
je 0x445c61
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push str.VarFileInfoTranslation
push dword [esi + 0x38]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x445c5b
mov eax, dword [ebp + 8]
mov dword [esi + 0x3c], eax
mov eax, dword [ebp - 4]
shr eax, 2
mov dword [esi + 0x44], eax
cmp dword [esi + 0x3c], 0
jne 0x445ca1
push 0x34
push 0
push ebx
mov dword [esi + 0x44], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x3c], 0
call fcn.004cd810
mov eax, dword [esi + 0x38]
add esp, 0xc
test eax, eax
je 0x445ca1
push eax
call fcn.004d48e7
add esp, 4
mov dword [esi + 0x38], 0
mov eax, dword [esi + 0x48]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x445e10
Capabilities:
Hash data using sha256

Disassembly:
mov dword [ecx], 0x6a09e667
mov dword [ecx + 4], 0xbb67ae85
mov dword [ecx + 8], 0x3c6ef372
mov dword [ecx + 0xc], 0xa54ff53a
mov dword [ecx + 0x10], 0x510e527f
mov dword [ecx + 0x14], 0x9b05688c
mov dword [ecx + 0x18], 0x1f83d9ab
mov dword [ecx + 0x1c], 0x5be0cd19
mov dword [ecx + 0x20], 0
mov dword [ecx + 0x24], 0
ret
Function at 0x447d30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f937d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x534090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [edi]
mov edx, dword [eax + 4]
lea eax, [edx - 0x18]
mov dword [edx + edi - 4], eax
mov eax, dword [edi]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov esi, dword [eax + 4]
add esi, edi
mov ecx, esi
call fcn.004325a0
mov eax, dword [ebp + 8]
mov dword [esi + 0x38], eax
mov eax, dword [esi + 0x30]
mov dword [esi + 0x3c], 0
mov ebx, dword [eax + 4]
mov ecx, ebx
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebx]
call dword [eax + 4]
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 1
push eax
call fcn.004380d0
add esp, 4
mov ecx, dword [eax]
push 0x20
mov edx, dword [ecx + 0x30]
mov ecx, eax
call edx
movzx eax, ax
mov dword [ebp + 8], eax
mov byte [ebp - 4], 0
test ebx, ebx
je 0x447df0
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 8]
test eax, eax
je 0x447ded
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov eax, dword [ebp + 8]
cmp dword [esi + 0x38], 0
mov word [esi + 0x40], ax
jne 0x447e0a
mov eax, dword [esi + 0xc]
mov ecx, esi
push 0
or eax, 4
push eax
call fcn.00432b60
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x447e20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f93a0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x534090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.004cb682
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.004b53f3
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
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 0x44d190
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x534090]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, edx
push ebx
push esi
lea esi, [esp + 0x14]
mov dword [esp + 0x10], eax
mov dword [eax], 0
mov eax, esi
push edi
mov edi, 0x104
sub ecx, eax
lea eax, [edi + 0x7ffffefa]
test eax, eax
je 0x44d1e4
movzx eax, word [ecx + esi]
test ax, ax
je 0x44d1e4
mov word [esi], ax
add esi, 2
sub edi, 1
jne 0x44d1c6
test edi, edi
lea eax, [esi - 2]
push 0x515dc4
cmovne eax, esi
xor ecx, ecx
mov word [eax], cx
lea ecx, [esp + 0x1c]
call fcn.00448b30
lea eax, [esp + 0x18]
push eax
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov esi, eax
test esi, esi
jne 0x44d281
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x44d241
xor ebx, ebx
mov eax, dword [esp + 0x14]
mov dword [eax], ebx
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.004cb63e
mov esp, ebp
pop ebp
ret
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xc9
call fcn.00449240
add esp, 4
mov edi, eax
xor ebx, ebx
test edi, edi
jns 0x44d224
push edi
push ecx
mov ecx, dword [ebp + 4]
lea edx, [ebx + 0x62]
call fcn.004491f0
mov ecx, dword [esp + 0x22c]
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004cb63e
mov esp, ebp
pop ebp
ret
xor ebx, ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x44d29a
mov edx, 0x95
jmp 0x44d349
test eax, eax
je 0x44d2af
cmp eax, 0x102
je 0x44d2af
mov edx, 0x96
jmp 0x44d381
mov edi, dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov dword [esp + 0xc], ebx
test eax, eax
jne 0x44d2f8
lea eax, [esp + 0xc]
push eax
push 1
push esi
call edi
test eax, eax
jne 0x44d2d2
mov edx, 0x9e
jmp 0x44d349
inc dword [esp + 0xc]
push 0
push 1
push esi
call edi
test eax, eax
jne 0x44d2ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12a
je 0x44d368
mov edx, 0xa3
jmp 0x44d381
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ebx
push eax
push 1
push esi
call edi
test eax, eax
jne 0x44d311
mov edx, 0xad
jmp 0x44d349
cmp dword [esp + 0x10], ebx
je 0x44d31e
mov edx, 0xae
jmp 0x44d381
push 0
push 1
push esi
call edi
test eax, eax
jne 0x44d37c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12a
jne 0x44d37c
push 0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x44d35d
mov edx, 0xb4
push ecx
mov ecx, dword [ebp + 4]
call fcn.00449240
mov edi, eax
add esp, 4
test edi, edi
jns 0x44d36c
jmp 0x44d397
test eax, eax
je 0x44d368
mov edx, 0xb5
jmp 0x44d381
mov ebx, dword [esp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x44d3c6
jmp 0x44d224
mov edx, 0xb1
push 0x8000ffff
push ecx
mov ecx, dword [ebp + 4]
call fcn.004491f0
add esp, 8
mov edi, 0x8000ffff
push edi
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xcf
call fcn.004491f0
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x44d254
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0x93e
call fcn.00449290
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0x93e
call fcn.00449290
int3
Function at 0x47ed90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x534090]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, 0xffff
mov esi, ecx
cmp ax, di
jne 0x47edc5
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cb63e
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push ebx
mov ecx, dword [eax]
test ecx, ecx
je 0x47ee03
mov edx, dword [esi + 0x30]
mov ebx, dword [edx]
lea eax, [ecx + ebx*2]
cmp ecx, eax
jae 0x47ee03
lea ecx, [ebx - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], di
pop ebx
mov ax, di
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cb63e
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x47eecf
mov ebx, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [ebx], eax
jne 0x47ee2d
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [ebx], ecx
mov eax, dword [esi + 0x1c]
sar edx, 1
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x47ee3a
push dword [esi + 0x4c]
push edi
jmp 0x47ee78
movzx eax, di
mov dword [ebp - 0x28], eax
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x47eea2
sub eax, 1
je 0x47eea2
sub eax, 2
jne 0x47eecf
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.004dd0c5
mov ecx, 0xffff
add esp, 8
cmp ax, cx
movzx eax, di
jne 0x47eed4
pop ebx
pop edi
mov eax, ecx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cb63e
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub ebx, eax
je 0x47eebf
push dword [esi + 0x4c]
push ebx
push 1
push eax
call fcn.004d4b21
add esp, 0x10
cmp ebx, eax
jne 0x47eecf
lea eax, [ebp - 0x28]
mov byte [esi + 0x3e], 1
cmp dword [ebp - 0x30], eax
jne 0x47eded
mov eax, 0xffff
mov ecx, dword [ebp - 4]
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.004cb63e
mov esp, ebp
pop ebp
ret 4
Function at 0x47f090
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x534090]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x47f154
cmp byte [esi + 0x3e], 0
je 0x47f154
mov eax, dword [esi]
push edi
push 0xffff
call dword [eax + 0xc]
mov ecx, 0xffff
cmp cx, ax
je 0x47f142
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x47f10a
sub eax, 1
je 0x47f10e
sub eax, 2
jne 0x47f142
mov byte [esi + 0x3e], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cb63e
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3e], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x47f12b
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004d4b21
add esp, 0x10
cmp edi, eax
jne 0x47f142
cmp byte [esi + 0x3e], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cb63e
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cb63e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.004cb63e
mov esp, ebp
pop ebp
ret

Function at 0x486b20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
mov ecx, 0x400000
mov dword [ebp - 4], 0
cmp dword [ebp + 0x10], ecx
lea eax, [ebp - 4]
push eax
cmovbe ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push ecx
push dword [ebp + 0xc]
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 0x14]
test eax, eax
setne dl
test ecx, ecx
je 0x486b5e
mov eax, dword [ebp - 4]
mov dword [ecx], eax
test dl, dl
je 0x486b6a
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x486b7f
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret 0x10
jle 0x486b89
movzx eax, ax
or eax, 0x80070000
mov esp, ebp
pop ebp
ret 0x10

Function at 0x486c30
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x486c7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x486c7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x486c6c
mov eax, 0x80004005
pop edi
mov esp, ebp
pop ebp
ret 8
jle 0x486c91
movzx eax, ax
or eax, 0x80070000
pop edi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, edi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 8
Function at 0x486ca0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
mov ecx, 0x400000
mov dword [ebp - 4], 0
cmp dword [ebp + 0x10], ecx
push eax
cmovbe ecx, dword [ebp + 0x10]
push ecx
push dword [ebp + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 0x14]
test eax, eax
mov eax, dword [ebp - 4]
setne dl
add dword [esi + 0x10], eax
adc dword [esi + 0x14], 0
pop esi
test ecx, ecx
je 0x486ce7
mov dword [ecx], eax
test dl, dl
je 0x486cf3
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x486d08
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret 0x10
jle 0x486d12
movzx eax, ax
or eax, 0x80070000
mov esp, ebp
pop ebp
ret 0x10