joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42aa90
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
call fcn.00425240
test eax, eax
je 0x42ab7f
mov ecx, edi
call fcn.00425240
mov ecx, eax
call fcn.004227a0
test eax, eax
jne 0x42ab7f
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x42ab7f
mov eax, dword [0xca4948]
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
jne 0x42aaf2
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
lea ecx, [esp + 0x10]
mov ebp, dword [esp + 0x24]
push 1
push ecx
mov ecx, dword [edi + 0x44]
lea edx, [esp + 0x1c]
shr ecx, 4
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x2c]
and ecx, 1
push eax
push ecx
push ebp
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov ecx, edi
call fcn.00425240
mov ecx, eax
call fcn.004229d0
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x28]
mov eax, 1
cmp ecx, eax
jne 0x42ab7f
cmp ebx, eax
jne 0x42ab7f
cmp dword [esp + 0x10], eax
jne 0x42ab65
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xcc]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [edi]
push eax
mov eax, dword [esp + 0x24]
push ecx
push ebp
push eax
mov ecx, edi
call dword [edx + 0xc0]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x42d7b0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x469698
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x42d7e9
inc eax
mov dword [esi + 0x10], eax
jmp 0x42d8fc
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x42d7fd
mov eax, 0xffffffc7
jmp 0x42d8fe
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x42d80e
cmp dword [esi + 8], eax
jne 0x42d7fd
cmp dword [esi + 8], eax
jne 0x42d827
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x42d827
mov eax, 0xffffffc7
jmp 0x42d8fe
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x42d83b
push eax
mov ecx, ebx
call fcn.0042cfe0
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.004022c0
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x42d86c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.004022e0
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.0042c750
test eax, eax
mov dword [esp + 0x38], eax
je 0x42d89f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0xc78fa8
call fcn.004024c0
mov eax, dword [esp + 0x38]
jmp 0x42d8fe
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.0042d610
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x42d8e3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.0042d630
mov esi, eax
test esi, esi
jne 0x42d913
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.0042d610
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x42d8b5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0xc78fa8
call fcn.004024c0
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0xc78fa8
call fcn.004024c0
mov eax, esi
jmp 0x42d8fe

Function at 0x4309c0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x430a20
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x430a20
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x430a20
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x430a20
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x430a60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x436930
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x469108
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.004638c3
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.004362d0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004637f1
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.004600b2
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.004600b2
push 1
push 0
push 0
mov ecx, esi
call fcn.0046005a
push 1
push 0
push 1
mov ecx, esi
call fcn.0046005a
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00463935
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x436ab0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x469108
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004638c3
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.004362d0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004637f1
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x436b74
cmp dword [esp + 0x40], 1
jne 0x436b72
cmp ecx, eax
jge 0x436b74
mov eax, ecx
cmp eax, 0xc8
jge 0x436b80
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00436930
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00463935
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x4372f0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x469b73
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0045e4d2
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00463b6b
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00465087
test eax, eax
je 0x43740c
mov ecx, dword [esp + 0x3c]
call fcn.00463b98
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4373d0
push edi
mov ecx, esi
call fcn.004611f9
mov ecx, esi
call fcn.00437570
cmp dword [esp + 0x38], 1
jne 0x437405
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00461334
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x439e20
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x439e53
push esi
call fcn.0043cf00
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x439e4c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x439ed9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x439ec2
mov eax, dword [esi + 8]
test eax, eax
je 0x439e77
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x439ebe
cmp eax, 2
je 0x439ec2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x439e6a
cmp eax, 3
je 0x439e9d
cmp eax, 1
jne 0x439e6a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x439e6a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x439e6a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00439f00
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x439ee8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00439f00
add esp, 4
pop esi
ret

Function at 0x44bdfc
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov ebx, eax
xor esi, esi
cmp ebx, esi
jne 0x44be18
xor eax, eax
jmp 0x44be8d
cmp word [ebx], si
je 0x44be2b
inc eax
inc eax
cmp word [eax], si
jne 0x44be1d
inc eax
inc eax
cmp word [eax], si
jne 0x44be1d
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
push esi
push esi
sub eax, ebx
push esi
sar eax, 1
inc eax
push eax
push ebx
push esi
push esi
mov dword [ebp - 0xc], eax
call edi
mov dword [ebp - 8], eax
cmp eax, esi
je 0x44be83
push eax
call fcn.0044feea
pop ecx
mov dword [ebp - 4], eax
cmp eax, esi
je 0x44be83
push esi
push esi
push dword [ebp - 8]
push eax
push dword [ebp - 0xc]
push ebx
push esi
push esi
call edi
test eax, eax
jne 0x44be77
push dword [ebp - 4]
call fcn.00447ce4
pop ecx
mov dword [ebp - 4], esi
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, dword [ebp - 4]
jmp 0x44be8c
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x450ce3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0xc975f8]
jne 0x450ced
repz ret
jmp fcn.00456e7d
Function at 0x455cbd
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0xc975f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0044c116
and dword [ebp - 0x14], 0
cmp dword [0xca7450], 0
mov dword [ebp - 0x18], eax
jne 0x455d70
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x455e18
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x455e18
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0xc833b0
push ebx
mov dword [0xca7450], eax
call edi
push eax
call esi
push 0xc8339c
push ebx
mov dword [0xca7454], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0xca7458], eax
call edi
push eax
call esi
mov dword [0xca7460], eax
test eax, eax
je 0x455d70
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0xca745c], eax
mov eax, dword [0xca745c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x455dc9
cmp dword [0xca7460], ecx
je 0x455dc9
push eax
call esi
push dword [0xca7460]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x455dc9
test ebx, ebx
je 0x455dc9
call edi
test eax, eax
je 0x455dc0
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x455dc0
test byte [ebp - 8], 1
jne 0x455dc9
or dword [ebp + 0x10], 0x200000
jmp 0x455dfc
mov eax, dword [0xca7454]
cmp eax, dword [ebp - 0x18]
je 0x455dfc
push eax
call esi
test eax, eax
je 0x455dfc
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x455dfc
mov eax, dword [0xca7458]
cmp eax, dword [ebp - 0x18]
je 0x455dfc
push eax
call esi
test eax, eax
je 0x455dfc
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0xca7450]
call esi
test eax, eax
je 0x455e18
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x455e1a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00450ce3
leave
ret
Function at 0x45f2c8
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45f300
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0045d37f
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045d357
jmp 0x45f30c
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4609b6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4609f8
call fcn.00466472
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4609f8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4609ef
xor eax, eax
jmp 0x460a00
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00460a06
pop edi
pop esi
pop ebx
ret 4

Function at 0x4669a2
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4669d0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4669ee
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00466908
jmp 0x4669ee
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4669ee
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00466908
test edi, edi
mov eax, edi
jne 0x4669d8
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x406170
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x104
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
mov edx, dword [esp + 0x114]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0xc]
test edx, edx
rep stosd dword es:[edi], eax
je 0x40626a
mov ecx, dword [esp + 0x118]
test ecx, ecx
je 0x40626a
mov eax, dword [esp + 0x11c]
test eax, eax
je 0x40626a
mov ebp, dword [esp + 0x120]
test ebp, ebp
je 0x40626a
add edx, 0xc
push ebx
push edx
lea edx, [esp + 0x14]
push 0x104
push edx
push 0x458948
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, 0x458948
lea eax, [esp + 0x10]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x406224
test cl, cl
je 0x406220
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x406224
add eax, 2
add esi, 2
test cl, cl
jne 0x4061fc
xor eax, eax
jmp 0x406229
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
pop ebx
jne 0x40623d
pop edi
pop esi
mov eax, 0x35d
pop ebp
add esp, 0x104
ret
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
add esp, 0x104
ret
pop edi
pop esi
mov eax, 0x34e
pop ebp
add esp, 0x104
ret

Function at 0x4070b0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x445c88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
push ebx
push ebp
push esi
push edi
and ecx, 0xffff
push eax
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.00418f27
mov edi, dword [esp + 0x3c]
push 0
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c], 0
call fcn.00418fea
lea ecx, [esp + 0x10]
mov ebp, eax
call fcn.00418fa0
test ebp, ebp
je 0x40714d
push edi
call fcn.0042192c
add esp, 4
test eax, eax
je 0x40714d
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], 0xffffffff
call fcn.00418f64
mov eax, 0x1ac
jmp 0x4071bb
push 0
push 0
push 1
push 0
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
call fcn.00441e26
mov eax, dword [eax + 0xc]
lea edx, [esp + 0x44]
push 0
push edx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4071a1
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], 0xffffffff
call fcn.00418f64
mov eax, 0x1bf
jmp 0x4071bb
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], 0xffffffff
call fcn.00418f64
xor eax, eax
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 0xc
Function at 0x4071d0
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x445cab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x914
push ebx
push ebp
mov ebx, ecx
push esi
push edi
lea ecx, [esp + 0x10]
call fcn.00418f27
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x80]
lea ebp, [ebx + 8]
rep stosd dword es:[edi], eax
push 0x45892c
push ebp
lea eax, [esp + 0x88]
push 0x457390
push eax
mov dword [esp + 0x93c], 0
call fcn.00420d08
add esp, 0x10
lea ecx, [esp + 0x80]
push 0
push ecx
lea ecx, [esp + 0x18]
call fcn.00418fea
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.00418fa0
test esi, esi
jne 0x407267
push str.UPDATE_SCRIPT_1_not_exist
call fcn.00411f40
add esp, 4
jmp 0x40739d
lea edx, [esp + 0x288]
mov ecx, ebx
push edx
push 0x45892c
call fcn.00406a90
test eax, eax
je 0x407292
push eax
push str.GetUpdateInfo_failed__d
call fcn.00411f40
add esp, 8
jmp 0x40739d
sub esp, 0x3c
mov ecx, 0xf
lea esi, [esp + 0x974]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x2c4]
mov ecx, ebx
push eax
call fcn.00406ea0
xor esi, esi
cmp eax, esi
je 0x4072f4
push esi
push esi
push 0x458c30
call fcn.004143f0
push eax
call fcn.00414490
add esp, 8
push eax
call fcn.0043c54c
push 0x45892c
call fcn.0042192c
lea ecx, [esp + 0x624]
push ecx
call fcn.0042192c
add esp, 8
jmp 0x40739d
push 4
push str.Notes
push 0x458bfc
call fcn.004143f0
push eax
call fcn.00414490
mov edx, dword [esp + 0x944]
add esp, 8
push eax
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x40739d
mov ecx, ebx
call fcn.004073d0
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x184]
push str.update.exe
rep stosd dword es:[edi], eax
push ebp
lea ecx, [esp + 0x18c]
push 0x457390
push ecx
mov dword [esp + 0x7c], esi
mov dword [esp + 0x78], esi
mov word [esp + 0x6c], si
mov dword [esp + 0x68], 0x101
call fcn.00420d08
add esp, 0x10
lea edx, [esp + 0x70]
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x184]
push edx
push eax
push esi
push esi
push 0x10
push 1
push esi
push esi
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
lea ecx, [esp + 0x10]
mov dword [esp + 0x92c], 0xffffffff
call fcn.00418f64
mov ecx, dword [esp + 0x924]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x920
ret 0x40
Function at 0x407940
Capabilities:
Get disk information

Disassembly:
mov eax, dword [0x458c90]
push ebx
mov bl, byte [esp + 8]
push esi
mov esi, ecx
and bl, 0xdf
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], eax
push ecx
mov byte [esp + 0x10], bl
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 6
ja case.default.0x40796c
jmp dword [eax*4 + 0x407a18]
movsx edx, bl
xor eax, eax
mov dword [esi + edx*4 - 0x100], 0
pop esi
pop ebx
ret 4
movsx eax, bl
mov dword [esi + eax*4 - 0x100], 1
pop esi
xor eax, eax
pop ebx
ret 4
movsx ecx, bl
xor eax, eax
mov dword [esi + ecx*4 - 0x100], 2
pop esi
pop ebx
ret 4
movsx edx, bl
xor eax, eax
mov dword [esi + edx*4 - 0x100], 3
pop esi
pop ebx
ret 4
movsx eax, bl
mov dword [esi + eax*4 - 0x100], 4
pop esi
xor eax, eax
pop ebx
ret 4
movsx ecx, bl
xor eax, eax
mov dword [esi + ecx*4 - 0x100], 5
pop esi
pop ebx
ret 4
movsx edx, bl
xor eax, eax
mov dword [esi + edx*4 - 0x100], 6
pop esi
pop ebx
ret 4
movsx ecx, bl
mov dword [esi + ecx*4 - 0x100], eax
pop esi
xor eax, eax
pop ebx
ret 4

Function at 0x40794a
Capabilities:
Get disk information

Disassembly:
mov eax, dword [0x458c90]
push ebx
mov bl, byte [esp + 8]
push esi
mov esi, ecx
and bl, 0xdf
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], eax
push ecx
mov byte [esp + 0x10], bl
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 6
ja case.default.0x40796c
jmp dword [eax*4 + 0x407a18]
movsx edx, bl
xor eax, eax
mov dword [esi + edx*4 - 0x100], 0
pop esi
pop ebx
ret 4
movsx eax, bl
mov dword [esi + eax*4 - 0x100], 1
pop esi
xor eax, eax
pop ebx
ret 4
movsx ecx, bl
xor eax, eax
mov dword [esi + ecx*4 - 0x100], 2
pop esi
pop ebx
ret 4
movsx edx, bl
xor eax, eax
mov dword [esi + edx*4 - 0x100], 3
pop esi
pop ebx
ret 4
movsx eax, bl
mov dword [esi + eax*4 - 0x100], 4
pop esi
xor eax, eax
pop ebx
ret 4
movsx ecx, bl
xor eax, eax
mov dword [esi + ecx*4 - 0x100], 5
pop esi
pop ebx
ret 4
movsx edx, bl
xor eax, eax
mov dword [esi + edx*4 - 0x100], 6
pop esi
pop ebx
ret 4
movsx ecx, bl
mov dword [esi + ecx*4 - 0x100], eax
pop esi
xor eax, eax
pop ebx
ret 4