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

Disassembly:
push 0xffffffffffffffff
push 0x46d514
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
lea ecx, [esi + 0x44]
mov dword [esp + 0x14], 4
call fcn.00445dd0
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], 3
call fcn.00434db0
mov eax, dword [esi + 0xc]
mov edx, dword [0x4800dc]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x42ce7a
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x42ce7a
mov edx, dword [esi + 0xc]
sub edx, 0xc
push edx
call fcn.00457c3f
add esp, 4
mov eax, dword [esi + 8]
mov edx, dword [0x4800dc]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x42cea3
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x42cea3
mov edx, dword [esi + 8]
sub edx, 0xc
push edx
call fcn.00457c3f
add esp, 4
mov eax, dword [esi + 4]
mov edx, dword [0x4800dc]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x42cecc
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x42cecc
mov edx, dword [esi + 4]
sub edx, 0xc
push edx
call fcn.00457c3f
add esp, 4
mov eax, dword [esi]
mov edx, dword [0x4800dc]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x42cef3
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x42cef3
mov edx, dword [esi]
sub edx, 0xc
push edx
call fcn.00457c3f
add esp, 4
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x42cfb0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x46d514
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x4800d8]
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], eax
mov ecx, dword [0x4800d8]
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [esi + 4], ecx
mov edx, dword [0x4800d8]
mov dword [esi + 8], edx
mov eax, dword [0x4800d8]
mov dword [esi + 0xc], eax
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], 3
call fcn.00434f90
lea ecx, [esi + 0x44]
mov byte [esp + 0x14], 4
call fcn.00429d30
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x4c], ecx
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x10], 0xffffffff
mov dword [esi + 0x24], 1
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x42d050
Capabilities:
Check if file exists
Get file attributes
Inspect section memory permissions

Disassembly:
sub esp, 0x1c
mov eax, dword [0x480630]
xor eax, esp
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
push ebp
mov dword [esp + 4], eax
mov eax, dword [eax]
mov ebp, ecx
push eax
mov dword [esp + 0x14], ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42d08f
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.004570de
add esp, 0x1c
ret 4
push ebx
push esi
push edi
call fcn.004178f0
mov esi, eax
mov eax, 1
add ebp, 0x44
mov ecx, ebp
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
call fcn.00429d40
xor ebx, ebx
test eax, eax
je 0x42d13a
mov eax, dword [ebp]
xor edi, edi
test al, 1
je 0x42d0c8
mov edi, SysReAllocStringLen
test al, 2
je 0x42d0d2
or edi, 0x40000000
test al, 4
je 0x42d0dc
or edi, 0x20000000
test al, 8
je 0x42d0e6
or edi, 0x10000000
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov ecx, dword [esi]
push 0x221
push 0x20
push 2
lea edx, [esp + 0x2c]
push edx
push edi
push eax
push esi
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], bl
mov byte [esp + 0x3e], bl
mov byte [esp + 0x3f], bl
mov byte [esp + 0x40], bl
mov byte [esp + 0x41], 5
call dword [ecx + 0x40]
push eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
push edi
push ecx
push str.Set_File__s_Users_Access_Rights_0x_08X_return:__d
push 0x80
call fcn.004047f0
add esp, 0x30
mov ecx, ebp
call fcn.00429d50
test eax, eax
je 0x42d1c1
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x48]
xor edi, edi
test al, 1
je 0x42d157
mov edi, SysReAllocStringLen
test al, 2
je 0x42d161
or edi, 0x40000000
test al, 4
je 0x42d16b
or edi, 0x20000000
test al, 8
je 0x42d175
or edi, 0x10000000
mov ebp, dword [esp + 0x10]
mov eax, dword [ebp]
mov ecx, dword [esi]
push ebx
push 1
lea edx, [esp + 0x28]
push edx
push edi
push eax
push esi
mov byte [esp + 0x38], bl
mov byte [esp + 0x39], bl
mov byte [esp + 0x3a], bl
mov byte [esp + 0x3b], bl
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], 1
call dword [ecx + 0x40]
push eax
mov dword [esp + 0x30], eax
mov eax, dword [ebp]
push edi
push eax
push str.Set_File__s_Everyone_Access_Rights_0x_08X_return:__d
push 0x80
call fcn.004047f0
add esp, 0x2c
cmp dword [esp + 0x18], ebx
je 0x42d1e7
cmp dword [esp + 0x14], ebx
je 0x42d1e7
pop edi
pop esi
pop ebx
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.004570de
add esp, 0x1c
ret 4
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebx
pop ebp
xor ecx, esp
xor eax, eax
call fcn.004570de
add esp, 0x1c
ret 4
Function at 0x42eda0
Capabilities:
Check if file exists
Get file attributes
Inspect section memory permissions

Disassembly:
sub esp, 0x1c
mov eax, dword [0x480630]
xor eax, esp
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
push ebp
mov dword [esp + 4], eax
mov eax, dword [eax]
mov ebp, ecx
push eax
mov dword [esp + 0x14], ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42eddf
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.004570de
add esp, 0x1c
ret 4
push ebx
push esi
push edi
call fcn.004178f0
mov esi, eax
mov eax, 1
add ebp, 0x24
mov ecx, ebp
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
call fcn.00429d40
xor ebx, ebx
test eax, eax
je 0x42ee8a
mov eax, dword [ebp]
xor edi, edi
test al, 1
je 0x42ee18
mov edi, SysReAllocStringLen
test al, 2
je 0x42ee22
or edi, 0x40000000
test al, 4
je 0x42ee2c
or edi, 0x20000000
test al, 8
je 0x42ee36
or edi, 0x10000000
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov ecx, dword [esi]
push 0x221
push 0x20
push 2
lea edx, [esp + 0x2c]
push edx
push edi
push eax
push esi
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], bl
mov byte [esp + 0x3e], bl
mov byte [esp + 0x3f], bl
mov byte [esp + 0x40], bl
mov byte [esp + 0x41], 5
call dword [ecx + 0x40]
push eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
push edi
push ecx
push str.Set_File__s_Users_Access_Rights_0x_08X_return:__d
push 0x80
call fcn.004047f0
add esp, 0x30
mov ecx, ebp
call fcn.00429d50
test eax, eax
je 0x42ef11
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x28]
xor edi, edi
test al, 1
je 0x42eea7
mov edi, SysReAllocStringLen
test al, 2
je 0x42eeb1
or edi, 0x40000000
test al, 4
je 0x42eebb
or edi, 0x20000000
test al, 8
je 0x42eec5
or edi, 0x10000000
mov ebp, dword [esp + 0x10]
mov eax, dword [ebp]
mov ecx, dword [esi]
push ebx
push 1
lea edx, [esp + 0x28]
push edx
push edi
push eax
push esi
mov byte [esp + 0x38], bl
mov byte [esp + 0x39], bl
mov byte [esp + 0x3a], bl
mov byte [esp + 0x3b], bl
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], 1
call dword [ecx + 0x40]
push eax
mov dword [esp + 0x30], eax
mov eax, dword [ebp]
push edi
push eax
push str.Set_File__s_Everyone_Access_Rights_0x_08X_return:__d
push 0x80
call fcn.004047f0
add esp, 0x2c
cmp dword [esp + 0x18], ebx
je 0x42ef37
cmp dword [esp + 0x14], ebx
je 0x42ef37
pop edi
pop esi
pop ebx
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.004570de
add esp, 0x1c
ret 4
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebx
pop ebp
xor ecx, esp
xor eax, eax
call fcn.004570de
add esp, 0x1c
ret 4
Function at 0x42ff50
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x144
mov eax, dword [0x480630]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor eax, ebp
push esi
push edi
mov dword [esp + 0x14c], eax
mov esi, ecx
xor eax, eax
mov ecx, 0x26
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x9c
call ebx
test eax, eax
je 0x42ffb7
movzx ecx, word [esp + 0xa4]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x18]
mov dword [esi + 8], edx
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ecx
jmp 0x430001
xor eax, eax
lea edx, [esp + 0xb0]
mov ecx, 0x24
lea edi, [esp + 0xb4]
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 0xb4], 0x94
call ebx
mov eax, dword [esp + 0xc0]
mov ecx, dword [esp + 0xb4]
mov edx, dword [esp + 0xb8]
mov dword [esi + 4], 0
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], edx
mov eax, dword [esi + 8]
mov ecx, 1
cmp eax, ecx
jne 0x430010
mov dword [esi + 0x14], ecx
cmp eax, 2
jne 0x43001e
cmp dword [esi + 0xc], 4
jne 0x43001e
mov dword [esi + 0x18], ecx
cmp dword [esi + 0xc], 6
jne 0x430033
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x430030
mov dword [esi + 0x1c], ecx
jmp 0x430033
mov dword [esi + 0x20], ecx
push str.IsWow64Process
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x43005d
add esi, 0x24
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
mov ecx, dword [esp + 0x14c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004570de
mov esp, ebp
pop ebp
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x46d9ed
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
lea edi, [esi + 4]
mov ecx, edi
mov dword [esp + 8], esi
mov dword [esi], 0x4737dc
call fcn.00455330
mov dword [edi + 4], eax
mov byte [eax + 0x15], 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
xor eax, eax
mov dword [edi + 8], eax
mov dword [esp + 0x14], eax
mov eax, dword [0x4800d8]
mov dword [esi + 0x18], eax
mov ecx, dword [0x4800d8]
mov dword [esi + 0x1c], ecx
mov edx, dword [0x4800d8]
mov dword [esi + 0x20], edx
lea ecx, [esi + 0x24]
mov byte [esp + 0x14], 3
call fcn.00435540
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], 4
call fcn.00435540
lea ecx, [esi + 0x3c]
mov byte [esp + 0x14], 5
call fcn.00435540
lea ecx, [esi + 0x48]
mov byte [esp + 0x14], 6
call fcn.00435540
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x432070
Capabilities:
Inspect section memory permissions

Disassembly:
sub esp, 0x1c
mov eax, dword [0x480630]
xor eax, esp
push ebp
push esi
push edi
mov edi, dword [esp + 0x2c]
mov ebp, ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], edi
call fcn.004178f0
mov edi, dword [edi]
mov esi, eax
mov eax, dword [esi]
push 0xf003f
push edi
mov ecx, esi
call dword [eax + 0x48]
test eax, eax
mov dword [esp + 0xc], eax
je 0x432211
push ebx
add ebp, 0x28
mov ebx, 1
mov ecx, ebp
mov dword [esp + 0x14], ebx
call fcn.00429d40
test eax, eax
je 0x43214e
mov eax, dword [ebp]
xor edi, edi
test bl, al
je 0x4320db
mov edi, SysReAllocStringLen
test al, 2
je 0x4320e5
or edi, 0x40000000
test al, 4
je 0x4320ef
or edi, 0x20000000
test al, 8
je 0x4320f9
or edi, 0x10000000
mov eax, dword [esp + 0x10]
mov ecx, dword [esi]
push 0x221
push 0x20
push 2
lea edx, [esp + 0x2c]
push edx
push edi
push eax
push esi
mov byte [esp + 0x3c], 0
mov byte [esp + 0x3d], 0
mov byte [esp + 0x3e], 0
mov byte [esp + 0x3f], 0
mov byte [esp + 0x40], 0
mov byte [esp + 0x41], 5
call dword [ecx + 0x64]
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx]
mov ebx, eax
push ebx
push edi
push edx
push str.Set_Key__s_Users_Access_Rights_0x_08X_return:__d
push 0x80
call fcn.004047f0
add esp, 0x30
mov ecx, ebp
call fcn.00429d50
test eax, eax
je 0x4321df
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x2c]
xor edi, edi
test al, 1
je 0x43216f
mov edi, SysReAllocStringLen
test al, 2
je 0x432179
or edi, 0x40000000
test al, 4
je 0x432183
or edi, 0x20000000
test al, 8
je 0x43218d
or edi, 0x10000000
mov eax, dword [esp + 0x10]
mov ecx, dword [esi]
push 0
push 1
lea edx, [esp + 0x28]
push edx
push edi
push eax
push esi
mov byte [esp + 0x38], 0
mov byte [esp + 0x39], 0
mov byte [esp + 0x3a], 0
mov byte [esp + 0x3b], 0
mov byte [esp + 0x3c], 0
mov byte [esp + 0x3d], 1
call dword [ecx + 0x64]
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx]
push eax
push edi
push edx
push str.Set_Key__s_Everyone_Access_Rights_0x_08X_return:__d
push 0x80
mov dword [esp + 0x40], eax
call fcn.004047f0
add esp, 0x2c
mov ecx, dword [esp + 0x10]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x4c]
test ebx, ebx
pop ebx
je 0x432211
mov eax, dword [esp + 0x10]
test eax, eax
je 0x432211
pop edi
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.004570de
add esp, 0x1c
ret 4
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.004570de
add esp, 0x1c
ret 4
Function at 0x4363d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x46e09b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x4800d8]
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], eax
mov ecx, dword [0x4800d8]
mov dword [esp + 0x14], 0
mov dword [esi + 4], ecx
mov edx, dword [0x4800d8]
mov dword [esi + 8], edx
mov eax, dword [0x4800d8]
mov dword [esi + 0xc], eax
mov ecx, dword [0x4800d8]
mov dword [esi + 0x10], ecx
mov edx, dword [0x4800d8]
mov dword [esi + 0x14], edx
mov eax, dword [0x4800d8]
mov dword [esi + 0x18], eax
mov ecx, dword [0x4800d8]
mov dword [esi + 0x1c], ecx
lea edi, [esi + 0x40]
mov ecx, edi
mov byte [esp + 0x14], 7
call fcn.00435410
mov dword [edi + 4], eax
mov dword [edi + 8], 0
lea edi, [esi + 0x4c]
mov ecx, edi
mov byte [esp + 0x14], 8
call fcn.00435410
mov dword [edi + 4], eax
mov dword [edi + 8], 0
lea ecx, [esi + 0x58]
mov byte [esp + 0x14], 9
call fcn.00434f90
mov ecx, dword [esp + 0xc]
or eax, 0xffffffff
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x438530
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46e1ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push edi
xor ebp, ebp
push ebp
push ebp
mov ebx, ecx
mov eax, dword [ebx + 0x50]
push 0x1004
push eax
call esi
test eax, eax
jle 0x438708
mov ecx, dword [ebx + 0x50]
push 0xf000
push ebp
push 0x102c
push ecx
call esi
shr eax, 0xc
dec eax
je 0x4386f0
mov ecx, dword [ebx + 0x50]
xor edx, edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], edx
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x4c], edx
push edx
push 0x1005
push ecx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], 4
call esi
mov esi, dword [esp + 0x48]
neg eax
sbb eax, eax
and eax, esi
xor edx, edx
mov esi, eax
mov dword [esp + 0x18], edx
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x50]
rep stosd dword es:[edi], eax
mov eax, dword [0x4800d8]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x50], 0x44
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
mov dword [esp + 0xa8], edx
call fcn.0042c760
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 8]
test eax, eax
jne 0x438645
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax - 8]
add esi, 0x1c
test ecx, ecx
je 0x438675
push esi
lea ecx, [esp + 0x14]
call fcn.00404cd0
jmp 0x438675
mov ecx, dword [esi + 0x1c]
mov eax, dword [ecx - 8]
test eax, eax
je 0x438675
lea edx, [esp + 0x14]
push edx
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x1c], 0x20
call fcn.00403ab0
mov esi, dword [esi + 0x1c]
mov eax, dword [esi - 8]
push esi
push eax
lea ecx, [esp + 0x18]
call fcn.00403ab0
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x54]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4386b0
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x1c]
push edx
call esi
mov eax, dword [esp + 0x10]
mov edx, dword [0x4800dc]
lea ecx, [eax - 0xc]
cmp ecx, edx
mov dword [esp + 0xa4], 0xffffffff
je 0x4386ea
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4386ea
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00457c3f
add esp, 4
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebx + 0x50]
push 0
push 0
push 0x1004
push eax
inc ebp
call esi
cmp ebp, eax
jl 0x438574
mov ecx, dword [esp + 0x9c]
pop edi
xor eax, eax
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x439070
Capabilities:
Resume thread

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
push eax
push 4
mov esi, ecx
push esi
push 0x439060
push 0
push 0
mov dword [esp + 0x1c], 0
call fcn.00458630
add esp, 0x18
test eax, eax
mov dword [esi + 0x60], eax
je 0x4390af
push 0xfffffffffffffff1
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ecx, dword [esi + 0x60]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
pop ecx
ret
Function at 0x4390c0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
mov eax, dword [0x480630]
push ebx
xor eax, ebp
push esi
push edi
mov dword [esp + 0x134], eax
mov dword [esp + 0x24], ecx
xor eax, eax
mov byte [esp + 0x28], 0
mov ecx, 0x41
lea edi, [esp + 0x29]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x28]
push 0x105
push eax
call fcn.00403f50
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
add esp, 8
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
lea ecx, [esp + 0x40]
push ecx
call esi
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0xc], ebx
jne 0x439162
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x4391fe
push 0
push 0x80
push 3
push 0
push 7
push SysReAllocStringLen
lea edx, [esp + 0x40]
push edx
call esi
cmp eax, ebx
mov dword [esp + 0xc], eax
je 0x4391fe
mov ebx, eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea eax, [esi + 2]
push eax
call fcn.00456452
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x20], edi
je 0x4391c4
push 0
lea ecx, [esp + 0x18]
push ecx
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4391bb
push 0x400
mov byte [edi + esi], 0xa
mov byte [edi + esi + 1], 0
mov dword [esp + 0x1c], 0x400
call fcn.00456452
mov esi, eax
add esp, 4
test esi, esi
jne 0x4391c7
push edi
call fcn.00457c3f
add esp, 4
push ebx
jmp 0x4391f8
push 0xa
push edi
mov dword [esp + 0x24], 0
mov ebx, edi
call fcn.00457c44
add esp, 8
test eax, eax
mov dword [esp + 0x10], eax
jne 0x439217
push esi
call fcn.00457c3f
push edi
call fcn.00457c3f
mov ecx, dword [esp + 0x14]
add esp, 8
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x128]
xor ecx, ebp
call fcn.004570de
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x10]
mov ecx, eax
sub ecx, ebx
mov dword [esp + 0x14], ecx
je 0x439292
mov eax, dword [esp + 0x18]
inc ecx
cmp eax, ecx
jae 0x439247
push esi
call fcn.00457c3f
mov eax, dword [esp + 0x18]
push eax
mov dword [esp + 0x20], eax
call fcn.00456452
mov esi, eax
add esp, 8
test esi, esi
je 0x4392ba
mov ecx, dword [esp + 0x18]
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x14]
push eax
push ebx
push esi
call fcn.00457d8f
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx + 0x58]
add esp, 0xc
push esi
push edi
push 0x181
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x10]
inc edi
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x20]
lea ebx, [eax + 1]
cmp byte [ebx], 0
je 0x4391e4
push 0xa
push ebx
call fcn.00457c44
add esp, 8
test eax, eax
mov dword [esp + 0x10], eax
jne 0x439213
jmp 0x4391e4
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.00457c3f
mov ecx, dword [esp + 0x138]
add esp, 4
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004570de
mov esp, ebp
pop ebp
ret
Function at 0x4399a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46e276
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2a8
mov eax, dword [0x480630]
xor eax, ebp
push ebx
mov ebx, ecx
mov dword [esp + 0x2a4], eax
xor eax, eax
push esi
push edi
mov byte [esp + 0x1a0], 0
mov ecx, 0x40
lea edi, [esp + 0x1a1]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov ecx, 0x15
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x10]
mov ecx, dword [0x482dc8]
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x40]
lea edx, [esp + 0x1a0]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], 0x58
mov dword [esp + 0x2c], str.Setup_Log__.log_
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], 0x104
mov ecx, dword [eax + 0x3c]
mov dword [esp + 0x50], ecx
lea ecx, [esp + 0x78]
mov dword [esp + 0x5c], 0x4740d0
call fcn.00402db0
xor esi, esi
lea ecx, [esp + 0x78]
mov dword [esp + 0x2bc], esi
call fcn.00404910
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.comdlg32.dll_GetSaveFileNameA]
test eax, eax
mov eax, dword [esp + 0x180]
jne 0x439aa5
cmp eax, esi
je 0x439ba7
cmp dword [esp + 0x184], esi
je 0x439ba7
mov eax, dword [esp + 0x19c]
cmp eax, esi
je 0x439ba7
call eax
mov dword [esp + 0x184], esi
jmp 0x439ba7
cmp eax, esi
je 0x439ac6
cmp dword [esp + 0x184], esi
je 0x439ac6
mov eax, dword [esp + 0x19c]
cmp eax, esi
je 0x439ac6
call eax
mov dword [esp + 0x184], esi
push esi
push esi
push 2
push esi
push 1
push 0x40000000
lea eax, [esp + 0x1b8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x14], edi
je 0x439ba7
mov ecx, dword [ebx + 0x58]
push esi
lea eax, [ebx + 0x58]
push esi
push 0x18b
push ecx
mov dword [esp + 0x28], eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x439b1a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x439ba7
mov edi, dword [0x4800d8]
mov dword [esp + 0x10], edi
test ebx, ebx
mov byte [esp + 0x2bc], 1
jle 0x439b79
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x10]
push edx
push esi
call fcn.0041c0d0
push 0x470980
push 0x470980
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea ecx, [esp + 0x18]
call fcn.00403ab0
mov edi, dword [esp + 0x10]
mov eax, dword [edi - 8]
mov edx, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x20]
push ecx
push eax
push edi
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
inc esi
cmp esi, ebx
jl 0x439b30
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x4800dc]
lea ecx, [edi - 0xc]
cmp ecx, eax
je 0x439ba7
lea esi, [edi - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x439ba7
push esi
call fcn.00457c3f
add esp, 4
lea ecx, [esp + 0x78]
mov dword [esp + 0x2bc], 0xffffffff
call fcn.00402ef0
mov ecx, dword [esp + 0x2b4]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x2ac]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004570de
mov esp, ebp
pop ebp
ret