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

Disassembly:
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0x10]
sub esp, 0xc
lea eax, [esp]
push eax
push 0x20019
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x455158
xor eax, eax
add esp, 0xc
ret
mov edx, dword [esp]
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0xc]
push eax
push 0
lea ecx, [esp + 0x18]
push ecx
push 0
push ebx
push edx
call ebp
test eax, eax
je 0x455190
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
push esi
mov esi, dword [esp + 0x24]
mov eax, dword [esi + 4]
test eax, eax
push edi
mov edi, dword [esp + 0x14]
je 0x4551ad
mov ecx, dword [esi]
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [esi]
push edi
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
lea ecx, [esp + 0x14]
push ecx
push eax
lea edx, [esp + 0x20]
push edx
push 0
mov dword [esi + 4], eax
mov eax, dword [esp + 0x20]
push ebx
push eax
mov dword [esi + 8], edi
call ebp
test eax, eax
je 0x455210
mov ecx, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call edi
mov edx, dword [esp + 0x2c]
push edx
call edi
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x455200
push eax
mov eax, dword [esi]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi + 4], edi
mov dword [esi + 8], edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov dword [esi + 0xc], ecx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call esi
mov eax, dword [esp + 0x2c]
push eax
call esi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret

Function at 0x456d20
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x24], 0
push edi
jne 0x456d81
mov edi, dword [esp + 0x10]
test edi, edi
je 0x456d81
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x456d81
mov eax, dword [esp + 0xc]
push eax
lea ecx, [esi + 0xdc]
call fcn.00458940
push 0
push 4
push 0
push 0xffffffffffffffff
push esi
push 0x4568a0
mov dword [esi + 0x11c], edi
call fcn.004b0d21
test eax, eax
mov dword [esi + 0x24], eax
je 0x456d81
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
mov eax, 1
pop esi
ret 8
pop edi
xor eax, eax
pop esi
ret 8
Function at 0x4581b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e996d
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x670f1c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.CPortForwardEngine.0
cmp dword [esi + 0x18], 0
mov dword [esp + 0x14], 5
je 0x45820e
mov dword [esi + 0x18], 0
call fcn.00455f10
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x45820e
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [esi + 0x14], 0
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea ecx, [esi + 0xf8]
call fcn.00435000
lea ecx, [esi + 0xdc]
call fcn.00435000
lea ecx, [esi + 0xc0]
call fcn.00435000
lea ecx, [esi + 0xa4]
call fcn.00435000
lea ecx, [esi + 0x58]
call fcn.00434da0
lea ecx, [esi + 0x30]
call fcn.00458d90
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x4587b0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4e96cf
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x670f1c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.004069f0
add eax, 0x10
mov dword [esi], eax
mov eax, dword [edi + 4]
sub eax, 0x10
push eax
mov dword [esp + 0x20], 0
call fcn.004069f0
add eax, 0x10
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
sub eax, 0x10
push eax
mov byte [esp + 0x24], 1
call fcn.004069f0
add eax, 0x10
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
sub eax, 0x10
push eax
mov byte [esp + 0x28], 2
call fcn.004069f0
add eax, 0x10
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x10]
sub eax, 0x10
push eax
mov byte [esp + 0x2c], 3
call fcn.004069f0
add eax, 0x10
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x14]
sub eax, 0x10
push eax
mov byte [esp + 0x30], 4
call fcn.004069f0
add eax, 0x10
mov dword [esi + 0x14], eax
mov edi, dword [edi + 0x18]
sub edi, 0x10
push edi
mov byte [esp + 0x34], 5
call fcn.004069f0
add esp, 0x1c
add eax, 0x10
mov dword [esi + 0x18], eax
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 0x45a010
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4e9b33
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x670f1c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
xor ebx, ebx
push ebx
call fcn.00411700
lea edi, [esi + 0xc]
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
fld qword [ebp + 8]
mov al, byte [ebp + 0x18]
fst qword [esi + 0x48]
fld qword [ebp + 0x10]
mov byte [esi + 0x42], al
fstp qword [esi + 0x50]
mov dword [esp + 0x30], ebx
fldz
mov dword [esi + 0x28], ebx
fst qword [esp + 0x1c]
mov dword [esi + 0x2c], ebx
fcompp
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov byte [esi + 0x40], bl
fnstsw ax
mov byte [esi + 0x41], bl
test ah, 0x41
jp 0x45a0dd
jmp 0x45a0a0
mov byte [esp + 0x14], bl
mov word [esp + 0x16], 1
mov dword [esp + 0x18], ebx
lea ecx, [esp + 0x14]
push ecx
mov ecx, edi
mov byte [esp + 0x34], 1
call fcn.0045a4e0
fld qword [esi + 0x50]
fadd qword [esp + 0x1c]
mov byte [esp + 0x30], bl
mov byte [esp + 0x14], bl
fst qword [esp + 0x1c]
fcomp qword [esi + 0x48]
fnstsw ax
test ah, 0x41
jnp 0x45a0a0
lea edx, [esi + 0x20]
push edx
mov ecx, esi
call fcn.004113f0
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x45a6b0
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
push 0x4ffbc0
lea eax, [ebx + 4]
push 4
push eax
call fcn.004c1687
mov eax, dword [esp + 0x1c]
mov byte [ebx + 7], 0
mov dword [ebx + 8], 1
movzx ecx, word [eax + 4]
mov word [ebx + 0xc], cx
mov edx, dword [eax + 6]
mov dword [ebx + 0xe], edx
movzx ecx, word [eax + 0xa]
mov word [ebx + 0x12], cx
mov edx, dword [eax + 0xc]
mov dword [ebx + 0x14], edx
mov ecx, dword [eax + 0x10]
mov dword [ebx + 0x18], ecx
mov edx, dword [eax + 0x14]
mov dword [ebx + 0x1c], edx
mov ecx, dword [eax + 0x18]
mov dword [ebx + 0x20], ecx
lea esi, [eax + 0x1c]
lea edi, [ebx + 0x24]
mov ecx, 0x80
rep movsd dword es:[edi], dword [esi]
lea esi, [eax + 0x11c]
lea edi, [ebx + 0x224]
mov ecx, 0x80
rep movsd dword es:[edi], dword [esi]
mov edx, dword [eax + 0x21c]
mov dword [ebx + 0x424], edx
mov ecx, dword [eax + 0x220]
mov dword [ebx + 0x428], ecx
mov edx, dword [eax + 0x224]
mov dword [ebx + 0x42c], edx
mov ecx, dword [eax + 0x228]
mov dword [ebx + 0x430], ecx
mov edx, dword [eax + 0x21c]
mov dword [ebx + 0x424], edx
mov ecx, dword [eax + 0x220]
mov dword [ebx + 0x428], ecx
mov edx, dword [eax + 0x224]
mov dword [ebx + 0x42c], edx
mov ecx, dword [eax + 0x228]
mov dword [ebx + 0x430], ecx
xor esi, esi
fld qword [eax + 0x23c]
add esp, 0xc
fstp qword [ebx + 0x444]
mov edx, dword [eax + 0x22c]
mov dword [ebx + 0x434], edx
mov ecx, dword [eax + 0x230]
mov dword [ebx + 0x438], ecx
mov edx, dword [eax + 0x234]
mov dword [ebx + 0x43c], edx
mov ecx, dword [eax + 0x238]
mov dword [ebx + 0x440], ecx
mov dx, word [eax + 0x244]
mov word [ebx + 0x44c], dx
movzx ecx, word [eax + 0x306]
mov word [ebx + 0x50e], cx
cmp word [eax + 0x244], si
jbe 0x45a814
lea edx, [ebx + 0x450]
lea ecx, [eax + 0x248]
mov di, word [ecx - 2]
mov word [edx - 2], di
mov edi, dword [ecx]
mov dword [edx], edi
movzx edi, word [eax + 0x244]
add esi, 1
add ecx, 6
add edx, 6
cmp esi, edi
jb 0x45a7f4
pop edi
pop esi
mov eax, ebx
pop ebx
ret 4
Function at 0x45ab40
Capabilities:
Enumerate pe sections

Disassembly:
mov edx, dword [esp + 0x18]
xor eax, eax
push esi
mov esi, ecx
mov cx, word [esp + 0x18]
mov dword [esi], vtable.CWzGridEngineer.0
mov word [esi + 0x20], ax
mov dword [esi + 0x22], eax
mov word [esi + 0x26], ax
mov dword [esi + 0x28], eax
mov word [esi + 0x2c], ax
mov word [esi + 0x32], cx
mov ecx, dword [esp + 0x24]
mov dword [esi + 0xc], ecx
mov ecx, dword [esp + 0x40]
mov dword [esi + 4], edx
mov edx, dword [esp + 0x20]
mov dword [esi + 0x18], ecx
mov ecx, dword [esp + 0x28]
cmp ecx, eax
mov dword [esi + 8], edx
mov edx, dword [esp + 0x30]
push edi
mov dword [esi + 0x2e], edx
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0xffffffff
je 0x45abb4
mov di, word [ecx]
mov word [esi + 0x26], di
mov edi, dword [ecx + 2]
mov dword [esi + 0x28], edi
mov cx, word [ecx + 6]
mov word [esi + 0x2c], cx
mov ecx, dword [esp + 0x30]
cmp ecx, eax
je 0x45abc9
mov di, word [ecx]
mov word [esi + 0x20], di
mov ecx, dword [ecx + 2]
mov dword [esi + 0x22], ecx
cmp edx, eax
je 0x45abd4
mov eax, dword [esi + 0x2e]
add word [eax], 1
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], eax
call fcn.004c7b9c
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0xc]
mov dword [esi + 0x4c], eax
mov eax, dword [esp + 0x48]
mov dword [esi + 0x44], ecx
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x48], edx
mov edx, dword [esp + 0x18]
mov dword [esi + 0x1c], eax
pop edi
mov dword [esi + 0x50], ecx
mov dword [esi + 0x54], edx
mov eax, esi
pop esi
ret 0x40

Function at 0x4628f0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4e9ff3
mov eax, dword fs:[0]
push eax
push ecx
push ebp
push esi
push edi
mov eax, dword [0x670f1c]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
xor ebp, ebp
mov dword [esi], vtable.CWz_HDSet.0
mov dword [esp + 0x1c], ebp
mov dword [esi + 0xc], ebp
mov dword [esi + 0x10], ebp
mov dword [esi + 0x14], ebp
mov dword [esi + 0x18], ebp
lea edi, [esi + 0x1c]
mov ecx, edi
mov byte [esp + 0x1c], 1
call fcn.0045bfc0
mov dword [edi + 4], eax
mov byte [eax + 0x11], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebp
mov dword [esi + 4], ebp
mov dword [esi + 0x28], ebp
mov dword [esi + 0x2c], ebp
mov dword [esi + 0x30], ebp
mov dword [esi + 0x34], ebp
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x10
ret
Function at 0x464ad0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4ea148
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x670f1c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov dword [esp + 8], 0
fld qword [esp + 0x28]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov cx, word [esp + 0x24]
mov dword [esi], eax
mov word [esi + 4], cx
fstp qword [esi + 6]
lea edx, [esp + 0x30]
push edx
lea ecx, [esi + 0xe]
mov dword [esp + 0x18], 0
call fcn.00460050
mov ax, word [esp + 0x40]
mov ecx, dword [esp + 0x42]
mov edx, dword [esp + 0x46]
mov word [esi + 0x1e], ax
mov eax, dword [esp + 0x4a]
mov dword [esi + 0x28], eax
mov eax, dword [esp + 0x34]
test eax, eax
mov dword [esi + 0x20], ecx
mov ecx, dword [esp + 0x4e]
mov dword [esi + 0x24], edx
mov dword [esi + 0x2c], ecx
je 0x464b5f
push eax
call fcn.004aef39
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x466e10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ea3a3
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x670f1c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
mov dword [esi], vtable.CWz_HDSet.0
mov eax, dword [edi + 4]
lea edx, [edi + 8]
lea ecx, [esi + 8]
push edx
mov dword [esp + 0x1c], 0
mov dword [esi + 4], eax
call fcn.004631a0
lea eax, [edi + 0x1c]
push eax
lea ecx, [esi + 0x1c]
mov byte [esp + 0x1c], 1
call fcn.00427340
mov ecx, dword [edi + 0x28]
mov dword [esi + 0x28], ecx
mov edx, dword [edi + 0x2c]
mov dword [esi + 0x2c], edx
mov eax, dword [edi + 0x30]
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0x34]
mov dword [esi + 0x34], ecx
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 0x46d8d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4ea96c
mov eax, dword fs:[0]
push eax
sub esp, 0x2b0
mov eax, dword [0x670f1c]
xor eax, esp
mov dword [esp + 0x2ac], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x670f1c]
xor eax, esp
push eax
lea eax, [esp + 0x2c4]
mov dword fs:[0], eax
mov esi, dword [esp + 0x2d4]
xor ebx, ebx
mov edi, ecx
mov dword [esp + 0x8c], 7
mov dword [esp + 0x88], ebx
mov word [esp + 0x78], bx
mov dword [esp + 0x2cc], ebx
mov dword [esp + 0x18], 0xffffffff
lea ebp, [ebx + 8]
nop
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0x1c]
mov eax, esi
push ecx
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], bx
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x46d963
sub eax, ecx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x30]
call fcn.00401930
push 0x4ffd04
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x68]
push eax
mov byte [esp + 0x2e0], 1
call fcn.00416bf0
mov edx, dword [0x66eb2c]
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x40], esp
push edx
push eax
push ecx
mov byte [esp + 0x2fc], 2
call fcn.00416bf0
add esp, 0xc
lea eax, [esp + 0x60]
push eax
mov ecx, edi
call fcn.0045fd10
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x80]
mov byte [esp + 0x2d8], 3
call fcn.00401640
mov ecx, dword [eax + 0x14]
mov eax, ecx
cmp eax, ecx
jae 0x46d9e8
xor eax, eax
cmp ecx, ebx
setne al
cmp eax, ebx
setne byte [esp + 0x17]
cmp dword [esp + 0x54], ebp
jb 0x46da09
mov ecx, dword [esp + 0x40]
push ecx
call fcn.004aef39
add esp, 4
cmp dword [esp + 0x70], ebp
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], bx
jb 0x46da2d
mov edx, dword [esp + 0x5c]
push edx
call fcn.004aef39
add esp, 4
cmp dword [esp + 0x38], ebp
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], bx
mov byte [esp + 0x2cc], bl
jb 0x46da58
mov eax, dword [esp + 0x24]
push eax
call fcn.004aef39
add esp, 4
cmp byte [esp + 0x17], bl
je 0x46da8d
mov ecx, dword [esp + 0x2d8]
push ecx
sub esp, 0x1c
mov edx, esp
mov dword [esp + 0x3c], esp
lea eax, [esp + 0x94]
push eax
push esi
push edx
call fcn.00416c80
add esp, 0xc
mov ecx, edi
call fcn.0046cb90
jmp 0x46d940
cmp dword [esp + 0x8c], ebp
jb 0x46daa3
mov ecx, dword [esp + 0x78]
push ecx
call fcn.004aef39
add esp, 4
mov ecx, dword [esp + 0x2c4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2ac]
xor ecx, esp
call fcn.004bfdfd
add esp, 0x2bc
ret 8
Function at 0x470900
Capabilities:
Get file size

Disassembly:
sub esp, 8
cmp dword [ecx + 0x204], 8
jb 0x470914
mov eax, dword [ecx + 0x1f0]
jmp 0x47091a
lea eax, [ecx + 0x1f0]
push esi
push 0
push 0x10000000
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x470944
xor eax, eax
xor edx, edx
pop esi
add esp, 8
ret
lea eax, [esp + 4]
push eax
push esi
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
pop esi
add esp, 8
ret

Function at 0x4716b0
Capabilities:
Check if file exists

Disassembly:
push ecx
push esi
mov esi, ecx
cmp byte [esi + 0x26e], 0
je 0x471714
cmp dword [esi + 0x204], 8
jb 0x4716ce
mov eax, dword [esi + 0x1f0]
jmp 0x4716d4
lea eax, [esi + 0x1f0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x471785
push 0x5001d0
push 2
push esi
call fcn.00418e80
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x500214
call fcn.00401430
push 0xffffcd2e
mov ecx, esi
call fcn.00470980
xor al, al
pop esi
pop ecx
ret
cmp dword [esi + 0x204], 8
jb 0x471725
mov eax, dword [esi + 0x1f0]
jmp 0x47172b
lea eax, [esi + 0x1f0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
test al, al
mov byte [esi + 0x26e], al
je 0x471785
call fcn.00419310
cmp dword [eax + 0x154], 0
je 0x471785
cmp dword [esi + 0x204], 8
jb 0x471760
mov eax, dword [esi + 0x1f0]
jmp 0x471766
lea eax, [esi + 0x1f0]
push 0
push 0x10000000
push 3
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x2a6], eax
mov al, 1
pop esi
pop ecx
ret
Function at 0x474890
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x18
push ebx
push ebp
mov ebp, dword [esp + 0x24]
push esi
push edi
push 0
mov esi, ecx
mov eax, dword [esi + 0x14]
lea ecx, [esp + 0x30]
push ecx
push 4
lea edx, [esp + 0x20]
push edx
push ebp
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 0x10]
mov eax, dword [eax]
lea edi, [esi + 0xc]
mov esi, edi
mov ebx, eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ebx
lea ecx, [ecx]
test esi, esi
mov ecx, dword [edi + 4]
mov dword [esp + 0x24], ecx
je 0x4748df
cmp esi, edi
je 0x4748e4
call fcn.004c000c
cmp ebx, dword [esp + 0x24]
je 0x47495c
test esi, esi
jne 0x4748f3
call fcn.004c000c
cmp ebx, dword [esi + 4]
jne 0x4748fd
call fcn.004c000c
mov esi, dword [ebx + 0x14]
movzx eax, word [esi + 0x10]
cmp eax, 1
ja 0x474946
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [esp + 0x30]
push ecx
push 4
lea edx, [esp + 0x1c]
push edx
push ebp
mov dword [esp + 0x24], eax
call ebx
mov ecx, dword [esp + 0x10]
mov edx, dword [esi]
push 0
lea eax, [esp + 0x30]
push eax
mov eax, dword [edx + 8]
push ecx
mov ecx, esi
call eax
push eax
push ebp
call ebx
lea ecx, [esp + 0x18]
call fcn.0048ed20
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
jmp 0x4748d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 4
Function at 0x4771f0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4eb10d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x670f1c]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov dword [esp + 0x1c], ecx
mov edi, dword [esp + 0x3c]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
xor esi, esi
push esi
lea eax, [esp + 0x40]
push eax
push 4
lea ecx, [esp + 0x24]
push ecx
push edi
mov dword [esp + 0x2c], esi
call ebp
xor ebx, ebx
cmp dword [esp + 0x18], esi
jg 0x477262
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4
xor esi, esi
push esi
lea edx, [esp + 0x40]
push edx
push 4
lea eax, [esp + 0x20]
push eax
push edi
mov dword [esp + 0x28], esi
call ebp
cmp dword [esp + 0x3c], 4
jne 0x47732a
push 0xc0
call fcn.004aef0e
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, esi
mov dword [esp + 0x34], esi
je 0x4772a3
mov ecx, eax
call fcn.00445770
mov esi, eax
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
mov dword [esp + 0x34], 0xffffffff
call eax
cmp dword [esp + 0x14], eax
mov edx, dword [esi]
jne 0x477348
mov eax, dword [edx + 4]
push 0
lea ecx, [esp + 0x40]
push ecx
mov ecx, esi
call eax
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
push eax
push edi
call ebp
mov ecx, dword [esp + 0x14]
cmp ecx, dword [esp + 0x3c]
jne 0x47736e
movzx edx, word [esi + 0x22]
mov eax, dword [esi + 0x1e]
push esi
mov dword [esp + 0x2a], eax
mov word [esp + 0x28], dx
mov ecx, dword [esp + 0x28]
movzx edx, word [esp + 0x2c]
sub esp, 8
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x28]
mov word [eax + 4], dx
call fcn.00477050
add ebx, 1
cmp ebx, dword [esp + 0x18]
jl 0x477260
jmp 0x477243
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x5278e0
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x24], 0x500d58
call fcn.004c0c8a
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x5278e0
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x24], 0x500d70
call fcn.004c0c8a
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x5278e0
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x28], 0x500d88
call fcn.004c0c8a
int3
Function at 0x47aab0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4eb1e8
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x670f1c]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov eax, ecx
xor ecx, ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax], vtable.CWz_DC_CS_ReportEx2.0
mov dword [eax + 0x3c], ecx
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], ecx
mov word [eax + 0x10], cx
mov dword [eax + 0x12], ecx
mov dword [eax + 0x16], ecx
mov dword [eax + 0x1a], ecx
mov dword [eax + 0x1e], ecx
mov dword [eax + 0x22], ecx
mov dword [eax + 0x26], ecx
mov dword [eax + 0x2a], ecx
mov word [eax + 0x2e], cx
mov dword [eax + 0x30], ecx
mov dword [eax + 0x34], ecx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
add esp, 0x10
ret
Function at 0x4807e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4eb76e
mov eax, dword fs:[0]
push eax
push ecx
push ebp
push esi
push edi
mov eax, dword [0x670f1c]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
xor edi, edi
mov dword [esi + 0xc], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi], vtable.CWz_DC_CS_ReportAdvanced.0
mov dword [esp + 0x1c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
lea ebp, [esi + 0x6c]
mov ecx, ebp
mov byte [esp + 0x1c], 1
call fcn.00479ef0
mov dword [ebp + 4], eax
mov byte [eax + 0x49], 1
mov eax, dword [ebp + 4]
mov dword [eax + 4], eax
mov eax, dword [ebp + 4]
mov dword [eax], eax
mov eax, dword [ebp + 4]
mov dword [eax + 8], eax
mov dword [ebp + 8], edi
mov dword [esi + 0x7c], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x84], edi
mov dword [esi + 0x10], edi
mov word [esi + 0x14], di
mov word [esi + 0x16], di
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov word [esi + 0x30], 1
mov word [esi + 0x32], di
mov dword [esi + 0x34], edi
mov word [esi + 0x38], di
mov dword [esi + 0x3a], edi
mov dword [esi + 0x3e], edi
mov dword [esi + 0x42], edi
mov dword [esi + 0x46], edi
mov dword [esi + 0x4a], edi
mov dword [esi + 0x4e], edi
mov word [esi + 0x52], di
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x10
ret