joyce8/EMBER2024-capa huggingface dataset:
Function at 0x491bf0
Capabilities:
Delete registry value

Disassembly:
push 0xffffffffffffffff
push 0x4e9058
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x50e74c]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50e74c]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor esi, esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
mov dword [esp + 0x40], eax
lea ecx, [esp + 0x1c]
test esi, esi
jne 0x491c7a
push 9
push str.Software_
jmp 0x491c81
push 0x15
push str.SoftwareWow6432Node_
call fcn.00403120
push 6
push str.HaoZip
lea ecx, [esp + 0x24]
call fcn.00479c40
cmp dword [esp + 0x30], 8
lea ecx, [esp + 0x18]
push ecx
push 0x20006
lea eax, [esp + 0x24]
cmovae eax, dword [esp + 0x24]
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call ebp
test eax, eax
jne 0x491cee
push str.Value
push dword [esp + 0x1c]
call edi
push str.Value2
push dword [esp + 0x1c]
call edi
push str.Value3
push dword [esp + 0x1c]
call edi
push str.Value4
push dword [esp + 0x1c]
call edi
push dword [esp + 0x18]
call ebx
mov dword [esp + 0x40], 0xffffffff
cmp dword [esp + 0x30], 8
jb 0x491d09
push dword [esp + 0x1c]
call fcn.004c515a
add esp, 4
xor eax, eax
mov dword [esp + 0x30], 7
inc esi
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
cmp esi, 2
jb 0x491c36
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004c515f
add esp, 0x30
ret
Function at 0x491d50
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4e90f0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x50e74c]
xor eax, esp
mov dword [esp + 0x30], eax
mov eax, dword [0x50e74c]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov dword [esp + 0x40], 0
xor eax, eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
mov byte [esp + 0x40], 1
lea edx, [esp + 0x1c]
xor ecx, ecx
call fcn.00487010
test al, al
je 0x491e1f
lea eax, [esp + 0x48]
push eax
lea edx, [esp + 0x20]
lea ecx, [esp + 8]
call fcn.00496f50
add esp, 4
mov byte [esp + 0x40], 2
lea eax, [esp + 4]
cmp dword [esp + 0x18], 8
cmovae eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [esp + 0x40], 1
cmp dword [esp + 0x18], 8
jb 0x491e08
push dword [esp + 4]
call fcn.004c515a
add esp, 4
xor eax, eax
mov dword [esp + 0x18], 7
mov dword [esp + 0x14], 0
mov word [esp + 4], ax
lea edx, [esp + 0x1c]
mov ecx, 0x19
call fcn.00487010
test al, al
je 0x491e8f
lea eax, [esp + 0x48]
push eax
lea edx, [esp + 0x20]
lea ecx, [esp + 8]
call fcn.00496f50
add esp, 4
mov byte [esp + 0x40], 3
lea eax, [esp + 4]
cmp dword [esp + 0x18], 8
cmovae eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [esp + 0x40], 1
cmp dword [esp + 0x18], 8
jb 0x491e78
push dword [esp + 4]
call fcn.004c515a
add esp, 4
xor eax, eax
mov dword [esp + 0x18], 7
mov dword [esp + 0x14], 0
mov word [esp + 4], ax
mov byte [esp + 0x40], 0
cmp dword [esp + 0x30], 8
jb 0x491ea7
push dword [esp + 0x1c]
call fcn.004c515a
add esp, 4
xor eax, eax
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
mov dword [esp + 0x40], 0xffffffff
cmp dword [esp + 0x5c], 8
jb 0x491ed9
push dword [esp + 0x48]
call fcn.004c515a
add esp, 4
xor eax, eax
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], 0
mov word [esp + 0x48], ax
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004c515f
add esp, 0x40
ret 0x18
Function at 0x494320
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
push 0
push dword [0x70dbde]
push dword [0x70dbe4]
call fcn.004c821b
movzx eax, word [0x70dbf6]
imul eax, dword [0x70dbf0]
imul eax, dword [0x70dbec]
cdq
and edx, 7
add eax, edx
sar eax, 3
push eax
call fcn.004c472f
movzx ecx, word [0x70dbf6]
imul ecx, dword [0x70dbf0]
push dword [0x70dbe4]
mov dword [0x70dc14], eax
push 1
imul ecx, dword [0x70dbec]
shr ecx, 3
push ecx
push eax
call fcn.004c80e0
mov ax, word [0x70dbf6]
mov esi, dword [0x70dbf0]
mov ecx, dword [0x70dbec]
shr ax, 3
movzx ebp, ax
mov ebx, ebp
mov dword [esp + 0x34], ecx
mov eax, ebx
mov dword [esp + 0x38], esi
imul eax, esi
imul eax, ecx
push eax
call fcn.004c472f
lea edi, [esi - 1]
mov edx, eax
mov eax, dword [esp + 0x38]
add esp, 0x24
imul edi, ebx
mov dword [0x70dc10], edx
imul edi, eax
add edi, edx
test esi, esi
je 0x494460
mov esi, ebx
lea ebx, [edi + 2]
imul esi, eax
mov eax, dword [0x70dc14]
sub eax, edx
add ebx, eax
sub edx, dword [0x70dc14]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], esi
lea esp, [esp]
xor eax, eax
test esi, esi
je 0x494456
mov ecx, ebx
mov edx, ebp
sub ecx, edi
add ecx, 0xfffffffe
mov dword [esp + 0x14], ecx
cmp ebp, 1
jne 0x494422
lea edx, [eax + edi]
mov cl, byte [ecx + edx]
mov byte [edx], cl
jmp 0x49444a
cmp ebp, 3
jne 0x494450
mov edx, dword [esp + 0x1c]
lea esi, [eax + edi]
movzx ecx, byte [ecx + esi]
add edx, ebx
mov byte [edx + eax], cl
movzx ecx, byte [ebx + eax - 1]
mov byte [eax + edi + 1], cl
movzx ecx, byte [ebx + eax]
mov byte [esi], cl
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov edx, ebp
add eax, edx
cmp eax, esi
jb 0x494413
sub edi, esi
sub ebx, esi
dec dword [esp + 0x18]
jne 0x494400
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x4949c0
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
push edi
push 0x4f4108
push dword [esp + 0x14]
call fcn.004c6cad
push 0x4f40fc
push dword [esp + 0x20]
mov dword [0x70dbe4], eax
call fcn.004c6cad
push dword [0x70dbe4]
mov dword [0x70dbd0], eax
push 1
push 0xe
push 0x70dbd4
call fcn.004c80e0
push dword [0x70dbe4]
push 1
push 0x28
push 0x70dbe8
call fcn.004c80e0
add esp, 0x30
call fcn.00494320
call fcn.00494470
push dword [0x70dbe4]
call fcn.004c6f6f
add esp, 4
push dword [0x70dbd0]
call fcn.004c6f6f
mov esi, dword [0x70dc14]
add esp, 4
mov edi, 0x8123
test esi, esi
je 0x494a61
push esi
call fcn.004c59f9
mov eax, dword [0x70dc14]
add esp, 4
test esi, esi
cmovne eax, edi
mov dword [0x70dc14], eax
mov esi, dword [0x70dc10]
test esi, esi
je 0x494a83
push esi
call fcn.004c59f9
mov eax, dword [0x70dc10]
add esp, 4
test esi, esi
cmovne eax, edi
mov dword [0x70dc10], eax
pop edi
pop esi
pop ecx
ret 8
Function at 0x495fb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4e9820
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x50e74c]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
mov eax, dword [0x50e74c]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x34], 0
push 0xffffffffffffffff
push eax
push ecx
mov dword [esp + 0x44], 0
lea ecx, [esp + 0x30]
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], ax
call fcn.00403000
mov dword [esp + 0x48], 0
mov ecx, dword [esp + 0x34]
cmp ecx, 2
jb 0x496081
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x24]
cmp edx, 8
cmovae eax, dword [esp + 0x24]
cmp word [eax], 0x22
jne 0x496081
cmp edx, 8
lea eax, [esp + 0x24]
cmovae eax, dword [esp + 0x24]
cmp word [eax + ecx*2 - 2], 0x22
jne 0x496081
lea eax, [ecx - 2]
push eax
push 1
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x14]
call fcn.00495a00
add esp, 8
mov byte [esp + 0x48], 1
lea ecx, [esp + 0x24]
push eax
call fcn.00402a50
mov byte [esp + 0x48], 0
lea ecx, [esp + 0xc]
call fcn.00402a90
mov edx, 0x4fff04
lea ecx, [esp + 0x24]
call fcn.00495820
cmp dword [esp + 0x38], 8
lea eax, [esp + 0x24]
cmovae eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov dword [esp + 0x48], 0xffffffff
cmp dword [esp + 0x38], 8
jb 0x4960c5
push dword [esp + 0x24]
call fcn.004c515a
add esp, 4
xor eax, eax
mov dword [esp + 0x38], 7
mov word [esp + 0x24], ax
mov al, bl
mov dword [esp + 0x34], 0
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.004c515f
add esp, 0x44
ret
Function at 0x496100
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4e9820
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x50e74c]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
mov eax, dword [0x50e74c]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x34], 0
push 0xffffffffffffffff
push eax
push ecx
mov dword [esp + 0x44], 0
lea ecx, [esp + 0x30]
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], ax
call fcn.00403000
mov dword [esp + 0x48], 0
mov ecx, dword [esp + 0x34]
cmp ecx, 2
jb 0x4961d1
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x24]
cmp edx, 8
cmovae eax, dword [esp + 0x24]
cmp word [eax], 0x22
jne 0x4961d1
cmp edx, 8
lea eax, [esp + 0x24]
cmovae eax, dword [esp + 0x24]
cmp word [eax + ecx*2 - 2], 0x22
jne 0x4961d1
lea eax, [ecx - 2]
push eax
push 1
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x14]
call fcn.00495a00
add esp, 8
mov byte [esp + 0x48], 1
lea ecx, [esp + 0x24]
push eax
call fcn.00402a50
mov byte [esp + 0x48], 0
lea ecx, [esp + 0xc]
call fcn.00402a90
mov edx, 0x4fff04
lea ecx, [esp + 0x24]
call fcn.00495820
cmp dword [esp + 0x38], 8
lea eax, [esp + 0x24]
cmovae eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x496201
test al, 0x10
jne 0x496201
mov bl, 1
jmp 0x496203
xor bl, bl
mov dword [esp + 0x48], 0xffffffff
cmp dword [esp + 0x38], 8
jb 0x49621e
push dword [esp + 0x24]
call fcn.004c515a
add esp, 4
xor eax, eax
mov dword [esp + 0x38], 7
mov word [esp + 0x24], ax
mov al, bl
mov dword [esp + 0x34], 0
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.004c515f
add esp, 0x44
ret
Function at 0x496260
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4e9820
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x50e74c]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
mov eax, dword [0x50e74c]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x34], 0
push 0xffffffffffffffff
push eax
push ecx
mov dword [esp + 0x44], 0
lea ecx, [esp + 0x30]
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], ax
call fcn.00403000
mov dword [esp + 0x48], 0
mov ecx, dword [esp + 0x34]
cmp ecx, 2
jb 0x496331
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x24]
cmp edx, 8
cmovae eax, dword [esp + 0x24]
cmp word [eax], 0x22
jne 0x496331
cmp edx, 8
lea eax, [esp + 0x24]
cmovae eax, dword [esp + 0x24]
cmp word [eax + ecx*2 - 2], 0x22
jne 0x496331
lea eax, [ecx - 2]
push eax
push 1
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x14]
call fcn.00495a00
add esp, 8
mov byte [esp + 0x48], 1
lea ecx, [esp + 0x24]
push eax
call fcn.00402a50
mov byte [esp + 0x48], 0
lea ecx, [esp + 0xc]
call fcn.00402a90
mov edx, 0x4fff04
lea ecx, [esp + 0x24]
call fcn.00495820
cmp dword [esp + 0x38], 8
lea eax, [esp + 0x24]
cmovae eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x496361
test al, 0x10
je 0x496361
mov bl, 1
jmp 0x496363
xor bl, bl
mov dword [esp + 0x48], 0xffffffff
cmp dword [esp + 0x38], 8
jb 0x49637e
push dword [esp + 0x24]
call fcn.004c515a
add esp, 4
xor eax, eax
mov dword [esp + 0x38], 7
mov word [esp + 0x24], ax
mov al, bl
mov dword [esp + 0x34], 0
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.004c515f
add esp, 0x44
ret
Function at 0x496520
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4e98a8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x50e74c]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50e74c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [esi + 0x10]
xor edi, edi
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test ebx, ebx
je 0x49660b
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x496573
mov ecx, dword [esi]
jmp 0x496575
mov ecx, esi
mov edx, 0x2f
cmp dx, word [ecx + edi*2]
mov edx, 0x5c
je 0x496596
cmp eax, 8
jb 0x49658e
mov eax, dword [esi]
jmp 0x496590
mov eax, esi
cmp dx, word [eax + edi*2]
jne 0x496602
push edi
push 0
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
call fcn.00495ce0
mov dword [esp + 0x38], 0
cmp dword [esp + 0x24], 0
je 0x4965d4
lea ecx, [esp + 0x14]
call fcn.00495fb0
test al, al
jne 0x4965d4
cmp dword [esp + 0x28], 8
lea eax, [esp + 0x14]
push 0
cmovae eax, dword [esp + 0x18]
push eax
call ebp
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x28], 8
jb 0x4965ef
push dword [esp + 0x14]
call fcn.004c515a
add esp, 4
xor eax, eax
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], eax
mov word [esp + 0x14], ax
inc edi
cmp edi, ebx
jb 0x496567
mov ecx, esi
call fcn.00495fb0
test al, al
jne 0x496627
cmp dword [esi + 0x14], 8
jb 0x496620
mov eax, dword [esi]
jmp 0x496622
mov eax, esi
push 0
push eax
call ebp
mov ecx, esi
call fcn.00496260
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.004c515f
add esp, 0x28
ret

Function at 0x496d10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4e99d0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x50e74c]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
mov eax, dword [0x50e74c]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov esi, ecx
push 2
sub esp, 8
call fcn.00496ed0
cmp eax, 0xffffffff
jne 0x496d6c
cmp dword [esi + 0x14], 8
jb 0x496d59
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
jmp 0x496dbe
lea ecx, [esp + 0xc]
call fcn.00498c50
mov dword [esp + 0x58], 0
lea edx, [esp + 0xc]
mov ecx, esi
call fcn.004991b0
mov bl, al
mov dword [esp + 0x58], 0xffffffff
cmp dword [esp + 0x48], 8
jb 0x496da5
push dword [esp + 0x34]
call fcn.004c515a
add esp, 4
xor eax, eax
mov dword [esp + 0x48], 7
mov word [esp + 0x34], ax
mov al, bl
mov dword [esp + 0x44], 0
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004c515f
add esp, 0x50
ret
Function at 0x497420
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4e9af9
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x50e74c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x10], edi
push 0x18
call fcn.004c5c7f
add esp, 4
mov dword [edi + 0x20], eax
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esp + 0x38], 0
lea esi, [edi + 0x24]
mov dword [esi], 0
xor eax, eax
mov byte [esi + 4], 0
mov dword [esi + 0x1c], 7
mov dword [esi + 0x18], 0
mov dword [esp + 0x14], esi
mov word [esi + 8], ax
mov byte [esp + 0x38], 2
lea ecx, [esp + 0x18]
push eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 0x10], 0xffffffff
mov dword [edi + 0x14], 0xffffffff
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
push 0x4f3da4
mov byte [edi + 8], al
mov dword [edi + 0x18], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x1c], eax
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], eax
mov word [esp + 0x20], ax
call fcn.00403120
mov byte [esp + 0x38], 3
sub esp, 8
lea eax, [esp + 0x20]
mov ecx, esi
push eax
call fcn.00499e80
mov byte [esp + 0x38], 2
cmp dword [esp + 0x2c], 8
jb 0x497504
push dword [esp + 0x18]
call fcn.004c515a
add esp, 4
xor eax, eax
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
mov dword [esp + 0x38], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x30
ret
Function at 0x497a40
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x4e9c28
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x50e74c]
xor eax, esp
mov dword [esp + 4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50e74c]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esi + 8]
test edi, edi
jne 0x497a82
xor al, al
jmp 0x497b47
add edi, 0x20
mov dword [esp + 0x14], edi
je 0x497a98
mov eax, dword [edi]
test eax, eax
je 0x497a98
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x24], 0
mov eax, dword [esi + 8]
cmp dword [eax + 4], 0
je 0x497b22
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
lea ebx, [esi + 4]
push 1
push ebx
call ebp
mov eax, dword [esi + 8]
add eax, 0xc
push eax
push 4
push esi
push 0x497540
push 0
push 0
call fcn.004c8a38
mov ecx, dword [esi + 8]
add esp, 0x18
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 8]
cmp dword [eax + 0x10], 0
je 0x497b0b
mov byte [eax + 8], 1
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x24]
test eax, eax
je 0x497af6
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 8]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x497b0b
mov bl, 1
jmp 0x497b24
push 0xffffffffffffffff
push ebx
call ebp
dec eax
jne 0x497b1a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
call fcn.004976f0
xor bl, bl
mov dword [esp + 0x24], 0xffffffff
test edi, edi
je 0x497b45
mov eax, dword [edi]
test eax, eax
je 0x497b3d
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0x14], 0
mov al, bl
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.004c515f
add esp, 0x14
ret

Function at 0x4983b0
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x50e74c]
xor eax, esp
mov dword [esp + 4], eax
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push edi
push eax
push dword [ecx]
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4983ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4983ff
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.004c515f
add esp, 8
ret 4
mov ecx, dword [esp + 8]
xor eax, eax
add eax, edi
mov dword [esi], eax
mov al, 1
adc ecx, 0
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0xc]
pop edi
pop esi
xor ecx, esp
call fcn.004c515f
add esp, 8
ret 4
Function at 0x4984b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4e9e16
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x50e74c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov byte [esi], 0
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
mov word [esi + 4], ax
mov dword [esp + 0x18], eax
lea ecx, [esi + 0x1c]
push 0xffffffffffffffff
push eax
push dword [esp + 0x28]
mov dword [esi + 0x30], 7
mov dword [esi + 0x2c], eax
mov word [esi + 0x1c], ax
call fcn.00403000
mov byte [esp + 0x18], 1
cmp dword [esi + 0x2c], 0
jne 0x49852b
push 3
push 0x4fff18
lea ecx, [esi + 0x1c]
call fcn.00403120
mov dword [esp + 0x18], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x498850
Capabilities:
Get file size
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4e9ea8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x50e74c]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50e74c]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [esp + 0x5c]
mov esi, dword [esp + 0x50]
mov eax, dword [esp + 0x58]
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
test ecx, ecx
je 0x4988a6
mov dword [ecx], 0
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x100000
mov dword [eax], 0
mov eax, dword [esp + 0x54]
jmp 0x4988c0
push 0
mov ebx, eax
mov dword [esp + 0x34], 0
cmp eax, 0x100000
lea eax, [esp + 0x34]
push eax
cmova ebx, ecx
push ebx
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
cmp dword [edi + 0x1c], 0
je 0x4989e1
test eax, eax
je 0x4989e1
mov ecx, dword [esp + 0x30]
cmp ecx, ebx
jae 0x4989e5
call ebp
mov dword [esp + 0x18], eax
lea eax, [esp + 0x38]
push eax
push dword [edi]
mov dword [esp + 0x40], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x49894a
call ebp
test eax, eax
je 0x49894a
xorps xmm0, xmm0
movlpd qword [esp + 0x24], xmm0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
jmp 0x498955
mov eax, dword [esp + 0x38]
xor ecx, ecx
add ecx, esi
adc eax, 0
push 0
push dword [esp + 0x1c]
push eax
push ecx
sub esp, 0x18
xor eax, eax
mov ecx, esp
mov dword [esp + 0x40], esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [edi + 4]
push eax
call fcn.00403000
mov dword [esp + 0x70], 0
mov ecx, dword [edi + 0x1c]
mov eax, dword [ecx]
mov dword [esp + 0x70], 0xffffffff
call dword [eax + 0x18]
mov esi, dword [esp + 0x14]
test eax, eax
jne 0x4989e1
push eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x38]
push ebx
add eax, esi
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x30]
neg eax
sbb eax, eax
add ecx, dword [esp + 0x34]
and eax, 0x7fffbffb
mov dword [esp + 0x30], ecx
add eax, 0x80004005
jne 0x498907
jmp 0x4989e5
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x20]
add dword [edx], ecx
test eax, eax
jne 0x498a12
test ecx, ecx
je 0x498a0e
mov eax, dword [esp + 0x54]
add esi, ecx
sub eax, ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x54], eax
mov ecx, 0x100000
jne 0x4988c0
mov al, 1
jmp 0x498a1e
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x498a1c
mov dword [ecx], eax
xor al, al
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004c515f
add esp, 0x38
ret 0x10