joyce8/EMBER2024-capa huggingface dataset:
Function at 0x461f60
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x583ce0
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6531f0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov dword [esp + 0x1c], 1
mov eax, dword [0x66b0a0]
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x462062
push 0xc
call fcn.004fdddd
add esp, 4
cmp eax, ebx
je 0x461fbe
push eax
call fcn.004620d0
mov ebp, eax
jmp 0x461fc0
xor ebp, ebp
mov edi, 8
cmp dword [esp + 0x58], edi
jb 0x461fd9
mov eax, dword [esp + 0x44]
mov edx, eax
cmp eax, ebx
jne 0x461fdd
xor eax, eax
jmp 0x461ff1
lea edx, [esp + 0x44]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x461fe2
sub eax, esi
sar eax, 1
mov ebx, eax
push edx
mov eax, ebp
call fcn.004028e0
mov esi, dword [esp + 0x28]
cmp dword [esp + 0x3c], edi
jae 0x462009
lea esi, [esp + 0x28]
lea eax, [ebp + 8]
test esi, esi
jne 0x462014
xor ecx, ecx
jmp 0x462034
mov ecx, esi
lea edi, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x462020
sub ecx, edi
sar ecx, 1
mov edi, 8
push esi
mov ebx, ecx
call fcn.004028e0
push 0
push 0
push ebp
push 0x452c80
push 0
push 0
mov dword [ebp + 4], 0
call fcn.004ff05b
add esp, 0x18
mov dword [0x66b0a0], eax
xor ebx, ebx
jmp 0x462067
mov edi, 8
mov byte [esp + 0x1c], bl
cmp dword [esp + 0x3c], edi
jb 0x46207e
mov ecx, dword [esp + 0x28]
push ecx
call fcn.004fdb3f
add esp, 4
mov esi, 7
xor edx, edx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], dx
mov dword [esp + 0x1c], 0xffffffff
cmp dword [esp + 0x58], edi
jb 0x4620ad
mov eax, dword [esp + 0x44]
push eax
call fcn.004fdb3f
add esp, 4
xor ecx, ecx
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], ebx
mov word [esp + 0x44], cx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x462130
Capabilities:
Access peb ldr_data
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x584903
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6531f0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov dword [esp + 0x14], 0
push 0x19c
call fcn.004fdddd
add esp, 4
mov dword [esp + 8], eax
mov byte [esp + 0x14], 1
test eax, eax
je 0x46217b
call fcn.00423850
jmp 0x46217d
xor eax, eax
mov byte [esp + 0x14], 0
cmp dword [esp + 0x34], 8
mov esi, dword [esp + 0x20]
jae 0x462191
lea esi, [esp + 0x20]
lea edx, [eax + 4]
movzx ecx, word [esi]
mov word [edx], cx
add esi, 2
add edx, 2
test cx, cx
jne 0x462194
mov ecx, dword [esp + 0x38]
push 0
push 0
push eax
push 0x461af0
push 0
push 0
mov dword [eax], ecx
call fcn.004ff05b
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
cmp dword [esp + 0x34], 8
jb 0x4621dd
mov edx, dword [esp + 0x20]
push edx
call fcn.004fdb3f
add esp, 4
xor eax, eax
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x462210
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x583cab
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x6531f0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov dword [esp + 0x18], 1
push 0xc
call fcn.004fdddd
add esp, 4
mov dword [esp + 0xc], eax
mov byte [esp + 0x18], 2
test eax, eax
je 0x46225c
push eax
call fcn.004521b0
mov esi, eax
jmp 0x46225e
xor esi, esi
mov byte [esp + 0x18], 1
lea eax, [esp + 0x20]
mov edi, esi
call fcn.0040e9d0
lea edi, [esi + 4]
lea eax, [esp + 0x24]
call fcn.0040e9d0
mov eax, dword [esp + 0x28]
push 0
push 0
push esi
push 0x461b70
push 0
push 0
mov dword [esi + 8], eax
call fcn.004ff05b
add esp, 0x18
mov byte [esp + 0x18], 0
lea ecx, [esp + 0x20]
call fcn.00402750
mov dword [esp + 0x18], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.00402750
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret

Function at 0x4622d0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x57905b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x6531f0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [0x66b0bc]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor esi, esi
push esi
push eax
call edi
mov ebx, dword [esp + 0x28]
cmp eax, 0x102
je 0x462355
push 0x19c
call fcn.004fdddd
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], esi
cmp eax, esi
je 0x462332
call fcn.00423850
jmp 0x462334
xor eax, eax
mov dword [esp + 0x20], 0xffffffff
push esi
push esi
push eax
push 0x461ec0
push esi
push esi
mov dword [eax], ebx
call fcn.004ff05b
add esp, 0x18
mov dword [0x66b0bc], eax
mov ecx, dword [0x66b0bc]
push 0x493e0
push ecx
call edi
mov eax, dword [0x66b0bc]
lea edx, [esp + 0x10]
push edx
push eax
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
call fcn.00457020
cmp eax, esi
je 0x4623a8
cmp dword [esp + 0x10], 1
sete cl
movzx edx, cl
push edx
push ebx
mov ecx, eax
call fcn.004623c0
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x4693e0
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
sub esp, 8
push esi
lea eax, [esp + 8]
push eax
push 0x63739c
push 1
push 0
push 0x63738c
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [edi], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jge 0x469421
push esi
push str.CoCreateInstance_failed:_0x_08lx_n
jmp 0x469459
mov eax, dword [esp + 8]
mov ecx, dword [eax]
lea edx, [esp + 4]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov esi, eax
test esi, esi
jge 0x469440
push esi
push str.get_LocalPolicy_failed:_0x_08lx_n
jmp 0x469459
mov eax, dword [esp + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push edi
push eax
call edx
mov esi, eax
test esi, esi
jge 0x469461
push esi
push str.get_CurrentProfile_failed:_0x_08lx_n
call fcn.005000cf
add esp, 8
mov eax, dword [esp + 4]
test eax, eax
je 0x469471
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 8]
test eax, eax
je 0x469481
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, esi
pop esi
add esp, 8
ret

Function at 0x469cd0
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x6531f0]
xor eax, esp
mov dword [esp + 0x11c], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 4], 6
jb 0x469d2a
cmp dword [esp + 8], 0
jbe 0x469d1b
mov al, 1
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.004fdb4a
add esp, 0x120
ret
mov eax, 1
cmp word [esp + 0x114], ax
jae 0x469d2c
xor al, al
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.004fdb4a
add esp, 0x120
ret

Function at 0x469eb0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x57a918
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x6531f0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
push esi
call fcn.00469740
xor ebx, ebx
mov dword [esp + 0x14], ebx
lea eax, [esi + 0x50]
push eax
push 0x61aa84
push 1
push ebx
push 0x612e8c
mov dword [esi], vtable.ComWscManager.0
mov dword [eax], ebx
mov dword [esi + 0x94], ebx
mov dword [esi + 0x98], ebx
mov dword [esi + 0x9c], ebx
mov dword [esi + 0xa0], ebx
mov byte [esi + 0xa4], bl
mov byte [esi + 0xa5], bl
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x469f68
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x94], eax
cmp eax, ebx
je 0x469f68
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerW]
mov dword [esi + 0x9c], eax
cmp eax, ebx
je 0x469f68
push ebx
push ebx
push esi
push 0x46a230
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x98], eax
mov dword [esp + 0x14], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x46c4e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x577e9a
mov eax, dword fs:[0]
push eax
sub esp, 0x78
push ebx
push esi
push edi
mov eax, dword [0x6531f0]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov edi, dword [sym.imp.OLEAUT32.dll_VariantClear]
mov byte [esp + 0x17], 0
lea esi, [esp + 0x54]
mov ebx, 3
push esi
call edi
add esi, 0x10
sub ebx, 1
jne 0x46c523
lea eax, [esp + 0x44]
push eax
call edi
mov esi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, 0x400c
mov word [esp + 0x34], cx
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x44]
mov dword [esp + 0x58], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x5c], eax
mov eax, 8
push ecx
mov dword [esp + 0x64], edx
mov word [esp + 0x68], ax
call esi
mov dword [esp + 0x6c], eax
mov eax, dword [ebp + 0xc]
mov edx, 8
push eax
mov word [esp + 0x78], dx
call esi
mov edi, dword [ebp + 8]
mov edx, dword [edi + 0x44]
sub edx, dword [edi + 0x40]
xor esi, esi
sar edx, 2
lea ecx, [esp + 0x54]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x2c], 3
mov dword [esp + 0x24], ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1c], esi
test edx, edx
jbe 0x46c69b
jmp 0x46c5c5
mov esi, dword [esp + 0x1c]
mov eax, dword [edi + 0x44]
sub eax, dword [edi + 0x40]
sar eax, 2
cmp esi, eax
jb 0x46c5d7
call fcn.004fe843
mov ecx, dword [edi + 0x40]
mov esi, dword [ecx + esi*4]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x90], 1
mov dword [esp + 0x18], ebx
cmp esi, ebx
je 0x46c666
mov edx, dword [esi]
push ebx
push ebx
xor ecx, ecx
xor eax, eax
push ecx
push eax
mov eax, dword [edx + 0x14]
push esi
call eax
lea ecx, [esp + 0x18]
push ecx
push 0x637984
push esi
call dword [sym.imp.ole32.dll_CoUnmarshalInterface]
cmp eax, ebx
jl 0x46c666
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x46c666
mov edx, dword [eax]
mov edx, dword [edx + 0x18]
lea ecx, [esp + 0x20]
push ecx
push ebx
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x30]
push ecx
push 1
push 0x400
push 0x61aab4
push 0xd
push eax
call edx
cmp eax, ebx
jl 0x46c666
cmp word [esp + 0x44], 0xb
jne 0x46c661
cmp word [esp + 0x4c], 0xffff
jne 0x46c661
mov eax, dword [ebp + 0x14]
mov byte [eax], 1
mov byte [esp + 0x17], 1
mov dword [esp + 0x90], 0xffffffff
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x46c681
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [edi + 0x44]
sub ecx, dword [edi + 0x40]
mov eax, dword [esp + 0x1c]
inc eax
sar ecx, 2
mov dword [esp + 0x1c], eax
cmp eax, ecx
jb 0x46c5c1
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x46ce20
Capabilities:
Delete registry key

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x74
push 0xffffffffffffffff
push 0x57d380
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x6531f0]
xor eax, ebp
mov dword [ebp + 0x70], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x7c]
xor ebx, ebx
mov dword [ebp], ebx
lea ecx, [ebp]
push ecx
push eax
call dword [sym.imp.ole32.dll_StringFromCLSID]
cmp eax, ebx
jl 0x46ce86
mov edx, dword [ebp]
push edx
push 0x27
lea eax, [ebp + 0x20]
push eax
call fcn.004fe986
add esp, 0xc
mov ecx, dword [ebp]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [ebp - 0x14], 0x80004005
mov dword [ebp - 4], ebx
mov eax, str.CLSID_
lea ecx, [ebp - 0x30]
call fcn.0040c640
mov byte [ebp - 4], 1
push eax
lea edx, [ebp + 4]
push edx
lea edi, [ebp + 0x20]
call fcn.0044daf0
add esp, 8
mov byte [ebp - 4], 3
lea esi, [ebp - 0x30]
call fcn.0042f9c0
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x46cec9
lea eax, [ebp + 8]
push eax
push connect
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
cmp eax, ebx
jne 0x46cf41
mov eax, str.AppID_
lea ecx, [ebp - 0x4c]
call fcn.0040c640
mov bl, 4
mov byte [ebp - 4], bl
push eax
lea eax, [ebp - 0x30]
push eax
lea edi, [ebp + 0x20]
call fcn.0044daf0
add esp, 8
mov byte [ebp - 4], 5
push 0xffffffffffffffff
push 0
lea ecx, [ebp + 4]
call fcn.0040e380
mov byte [ebp - 4], bl
lea esi, [ebp - 0x30]
call fcn.0042f9c0
mov byte [ebp - 4], 3
lea esi, [ebp - 0x4c]
call fcn.0042f9c0
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x46cf2e
lea eax, [ebp + 8]
push eax
push connect
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test eax, eax
jne 0x46cf41
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0
lea esi, [ebp + 4]
call fcn.0042f9c0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x70]
xor ecx, ebp
call fcn.004fdb4a
add ebp, 0x74
mov esp, ebp
pop ebp
ret
Function at 0x46cf90
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x57d338
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x6531f0]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
push edi
mov eax, dword [0x6531f0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [esp + 0x40]
xor ecx, ecx
mov word [esp + 0x14], cx
mov ecx, eax
mov ebx, edx
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x46cfe5
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x14]
call fcn.0040e430
mov dword [esp + 0x38], 0
push 1
mov eax, 0x63132c
mov ecx, esi
call fcn.0040e2a0
mov ecx, eax
mov eax, ebx
lea esi, [eax + 2]
jmp 0x46d020
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x46d020
sub eax, esi
sar eax, 1
push eax
mov eax, ebx
call fcn.0040e2a0
cmp dword [esp + 0x28], 8
mov ecx, dword [esp + 0x14]
jae 0x46d046
lea ecx, [esp + 0x14]
test edi, edi
je 0x46d065
mov eax, edi
lea esi, [eax + 2]
nop
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x46d050
sub eax, esi
sar eax, 1
lea eax, [eax + eax + 2]
jmp 0x46d067
xor eax, eax
push 1
push eax
xor eax, eax
call fcn.00425af0
add esp, 8
test eax, eax
sete bl
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x28], 8
jb 0x46d095
mov edx, dword [esp + 0x14]
push edx
call fcn.004fdb3f
add esp, 4
xor eax, eax
mov word [esp + 0x14], ax
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov al, bl
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004fdb4a
add esp, 0x2c
ret

Function at 0x46d270
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x577e59
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6531f0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
mov ebp, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
xor eax, eax
mov dword [esp + 0x30], eax
mov esi, ebx
mov dword [esp + 0x18], eax
call fcn.0046da60
mov dword [esp + 0x30], 0
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
push 0
lea edx, [esp + 0x24]
push edx
push eax
push ebp
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x46d32d
mov esi, dword [ebx]
call fcn.00431b10
mov eax, dword [ebx]
push 0
lea ecx, [esp + 0x44]
push ecx
mov dword [esp + 0x48], edi
mov eax, dword [eax]
push edi
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46d30f
cmp dword [esp + 0x40], edi
je 0x46d32d
mov esi, dword [ebx]
cmp dword [esi + 4], 0
je 0x46d32d
mov eax, dword [esi]
push 0
push eax
call fcn.005004fd
add esp, 8
mov dword [esi], eax
mov dword [esi + 4], 0
mov eax, ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x46d350
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
xor esi, esi
xor ebp, ebp
push edi
test ebx, ebx
jb 0x46d3c6
ja 0x46d369
cmp esi, dword [esp + 0x20]
jae 0x46d3ca
mov ecx, dword [esp + 0x20]
sub ecx, esi
mov eax, ebx
sbb eax, ebp
test eax, eax
ja 0x46d385
jb 0x46d381
cmp ecx, 0x10000
jae 0x46d385
mov edi, ecx
jmp 0x46d38a
mov edi, 0x10000
mov ecx, dword [esp + 0x1c]
push 0
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x20]
push edi
lea edx, [esi + ecx]
push edx
push eax
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x46d3c6
mov eax, dword [esp + 0x10]
cmp eax, edi
jne 0x46d3c6
add esi, eax
adc ebp, 0
cmp ebp, ebx
jb 0x46d369
ja 0x46d3c6
cmp esi, dword [esp + 0x20]
jb 0x46d369
cmp esi, dword [esp + 0x20]
jne 0x46d3e7
cmp ebp, ebx
jne 0x46d3e7
or esi, ebp
je 0x46d3df
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret

Function at 0x46d3f0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x578e28
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x6531f0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
push 0
push 0
push 2
push 0
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], 0
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xffffffff
je 0x46d490
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push eax
push ecx
push edx
push esi
call fcn.0046d350
add esp, 0x10
test al, al
je 0x46d47f
mov dword [esp + 0x1c], 0xffffffff
push esi
call ebx
mov al, 1
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x14
ret
push esi
call ebx
or esi, 0xffffffff
push edi
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esp + 0x1c], 0xffffffff
cmp esi, 0xffffffff
je 0x46d4a0
push esi
call ebx
xor al, al
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x46d5c0
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x578df9
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6531f0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x38]
xor edi, edi
mov dword [esp + 0x30], edi
mov esi, ebx
mov dword [esp + 0x18], edi
call fcn.0046da60
mov dword [esp + 0x30], edi
mov eax, dword [esp + 0x3c]
push edi
push edi
push 3
push edi
push 7
push connect
mov esi, 1
push eax
mov dword [esp + 0x34], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
mov dword [esp + 0x24], ebp
mov dword [esp + 0x30], esi
cmp ebp, 0xffffffff
je 0x46d6b8
lea ecx, [esp + 0x1c]
push ecx
push ebp
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x46d6b8
mov ecx, dword [esp + 0x1c]
mov edx, ecx
and edx, dword [esp + 0x20]
cmp edx, 0xffffffff
je 0x46d6b8
push edi
push edi
lea eax, [esp + 0x1c]
push ebp
push eax
call fcn.0046d270
add esp, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x30], 2
mov esi, dword [ebx]
add dword [esi + 8], 0xffffffff
jne 0x46d680
call fcn.00431b10
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
inc dword [eax + 8]
mov dword [ebx], eax
mov byte [esp + 0x30], 1
mov eax, dword [esp + 0x14]
dec dword [eax + 8]
mov esi, eax
add eax, 8
cmp dword [eax], edi
jne 0x46d6b8
xor edi, edi
call fcn.00431b10
mov edx, dword [esp + 0x14]
push edx
call fcn.004fdb3f
add esp, 4
mov dword [esp + 0x14], edi
mov byte [esp + 0x30], 0
cmp ebp, edi
je 0x46d6c8
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret

Function at 0x46ea30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x577e19
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6531f0]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, dword [esp + 0x34]
xor ebx, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x14], ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esp + 0x2c], ebx
push 0x6332cc
push 0x4e27
push ebx
mov dword [esp + 0x20], 1
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, ebx
je 0x46eaec
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
cmp ebp, ebx
je 0x46eaec
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x2c], 1
cmp edi, ebx
je 0x46eadd
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
mov byte [esp + 0x2c], 2
mov dword [esi], eax
mov dword [esi + 4], ecx
mov byte [esp + 0x2c], 1
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov byte [esp + 0x2c], bl
cmp edi, ebx
je 0x46eaec
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret