joyce8/EMBER2024-capa huggingface dataset:
Function at 0x443e60
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x485b68
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 [0x4883fc]
push 0
lea ecx, [esp + 0x20]
call fcn.0047e430
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.004437c0
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.0047e35e
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.0047ac1f
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.0047ac1f
push 1
push 0
push 0
mov ecx, esi
call fcn.0047abc7
push 1
push 0
push 1
mov ecx, esi
call fcn.0047abc7
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0047e4a2
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x443fe0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x485b88
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.0047e430
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.004437c0
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.0047e35e
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [0x4883fc]
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 0x4440a4
cmp dword [esp + 0x40], 1
jne 0x4440a2
cmp ecx, eax
jge 0x4440a4
mov eax, ecx
cmp eax, 0xc8
jge 0x4440b0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00443e60
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [0x488400]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0047e4a2
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x4448a0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x485c33
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.00479040
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_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 [0x4880a4]
push eax
mov ecx, edi
call fcn.0047e6d8
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0047fbf4
test eax, eax
je 0x4449bc
mov ecx, dword [esp + 0x3c]
call fcn.0047e705
mov ecx, dword [esi + 0x1c]
mov ebp, dword [0x4883d4]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x444980
push edi
mov ecx, esi
call fcn.0047bd6d
mov ecx, esi
call fcn.00444b60
cmp dword [esp + 0x38], 1
jne 0x4449b5
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.0047bea8
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 0x446bc0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x446bf3
push esi
call fcn.00454f70
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x446bec
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 0x446c79
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x446c62
mov eax, dword [esi + 8]
test eax, eax
je 0x446c17
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 0x446c5e
cmp eax, 2
je 0x446c62
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x446c0a
cmp eax, 3
je 0x446c3d
cmp eax, 1
jne 0x446c0a
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 0x446c0a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x446c0a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00446ca0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x446c88
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00446ca0
add esp, 4
pop esi
ret
Function at 0x4024a0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x542348
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x594aa4]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
mov ecx, edi
call fcn.00406190
xor ebx, ebx
mov dword [esp + 0x20], ebx
mov eax, 7
xor ecx, ecx
mov dword [edi + 0x30], eax
mov dword [edi + 0x2c], ebx
mov word [edi + 0x1c], cx
xor edx, edx
mov dword [edi + 0x4c], eax
mov dword [edi + 0x48], ebx
mov word [edi + 0x38], dx
lea eax, [edi + 0x58]
mov byte [esp + 0x20], 2
push eax
mov dword [edi + 0x50], ebx
mov dword [edi + 0x54], ebx
call fcn.00401f90
lea esi, [edi + 0x2a8]
mov byte [esp + 0x20], 3
call fcn.0040c7b0
lea ecx, [edi + 0x2fc]
mov byte [esp + 0x20], 4
push ecx
mov dword [edi + 0x2f8], ebx
call fcn.004278a0
mov dword [edi + 0x318], ebx
lea esi, [edi + 0x31c]
mov byte [esp + 0x20], 6
xor edx, edx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
mov eax, ebp
mov word [esi + 4], dx
lea edx, [eax + 2]
jmp 0x402560
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x402560
sub eax, edx
sar eax, 1
push eax
push ebp
mov ecx, esi
call fcn.00408820
mov dword [edi + 0x338], ebx
mov dword [edi + 0x33c], ebx
xor eax, eax
mov dword [edi + 0x35c], 7
mov dword [edi + 0x358], ebx
mov word [edi + 0x348], ax
mov eax, 8
mov byte [esp + 0x20], al
mov byte [edi + 0x340], bl
cmp dword [esi + 0x18], eax
jb 0x4025b6
mov esi, dword [esi + 4]
jmp 0x4025b9
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, edi
mov dword [edi + 0x314], eax
call fcn.00402bf0
mov ecx, edi
call fcn.00403580
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
Function at 0x403a00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
push 0xb2c
mov ebx, ecx
call fcn.0048158c
add esp, 4
push 0xb2c
mov esi, eax
push 0
push esi
call fcn.004804c0
mov eax, dword [ebp + 8]
mov edx, esi
add esp, 0xc
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x403a34
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x403a6f
mov ecx, eax
lea edi, [ecx + 1]
lea ebx, [ebx]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x403a50
sub ecx, edi
je 0x403a6f
mov ecx, esi
sub ecx, eax
lea edx, [ecx + 0x104]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x403a65
push esi
push 0
push 0x403ba0
call fcn.00481d85
mov ecx, dword [ebx + 0x308]
lea esi, [ebx + 0x2fc]
add esp, 0xc
mov dword [esp + 0xc], eax
test ecx, ecx
jne 0x403a97
xor edx, edx
jmp 0x403a9f
mov edx, dword [esi + 0x14]
sub edx, ecx
sar edx, 2
mov edi, dword [esi + 0x10]
mov ebx, edi
sub ebx, ecx
sar ebx, 2
cmp ebx, edx
jae 0x403abe
mov dword [edi], eax
add edi, 4
mov dword [esi + 0x10], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp ecx, edi
jbe 0x403ac7
call fcn.00481387
mov eax, dword [esi]
push edi
push eax
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push eax
mov eax, esi
call fcn.00407410
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x404180
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x53ed98
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x594aa4]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
lea eax, [ecx + 0x154]
push eax
add ecx, 0x18
push ecx
lea ecx, [esp + 0xc]
push ecx
call fcn.0040abd0
add esp, 0xc
mov ecx, dword [esp + 0x30]
push 0xffffffffffffffff
push 0
push eax
mov dword [esp + 0x34], 0
call fcn.00406e30
cmp dword [esp + 0x1c], 8
jb 0x4041e5
mov edx, dword [esp + 8]
push edx
call fcn.0044687d
add esp, 4
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
add esp, 0x28
ret 4
Function at 0x405250
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x542ba6
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x594aa4]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
push esi
push edi
mov eax, dword [0x594aa4]
xor eax, esp
push eax
lea eax, [esp + 0x250]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, ecx
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x10], eax
lea eax, [ebx + 0x18]
push str.installedFileList.txt
push eax
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ecx
call fcn.0040ad40
add esp, 0xc
mov dword [esp + 0x258], 0
cmp dword [esp + 0x38], 8
mov eax, dword [esp + 0x24]
jae 0x4052da
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [ebx + 0x340], 0
je 0x4052f5
push esi
push ebx
mov ecx, edi
call fcn.00404e60
jmp 0x4052fa
call fcn.0040e750
push 0x18
call fcn.00446843
add esp, 4
test eax, eax
je 0x405320
mov ecx, dword [esp + 0x10]
mov dword [eax + 4], 0
mov dword [eax], vtable.CInstallPercent.0
mov dword [eax + 0x10], ecx
mov esi, eax
jmp 0x405322
xor esi, esi
mov dword [esp + 0x1c], esi
test esi, esi
je 0x405332
mov edx, dword [esi]
mov eax, dword [edx + 4]
push esi
call eax
mov byte [esp + 0x258], 1
cmp dword [ebx + 0x30], 8
jb 0x405345
mov eax, dword [ebx + 0x1c]
jmp 0x405348
lea eax, [ebx + 0x1c]
lea ecx, [esp + 0x1c]
push ecx
lea edi, [ebx + 0x318]
push eax
mov ebx, edi
call fcn.00414420
mov edx, dword [esp + 0x18]
add esp, 8
mov ebx, eax
test edx, edx
je 0x405378
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 8]
push ecx
push eax
push ecx
push eax
push 0
push 0
call edx
mov eax, dword [edi]
test eax, eax
je 0x40538c
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [edi], 0
mov edi, dword [esp + 0x14]
mov ecx, dword [edi + 0x314]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je 0x4053e0
mov edi, dword [esp + 0x18]
test edi, edi
je 0x4053f3
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x46]
push eax
mov word [esp + 0x48], dx
call fcn.004804c0
add esp, 0xc
push ebx
lea ecx, [esp + 0x40]
push 0x57d82c
push ecx
call fcn.00480cb9
add esp, 0xc
lea edx, [esp + 0x3c]
push edx
push ebx
call edi
jmp 0x4053f3
add edi, 0x2a8
mov ecx, edi
call fcn.0040cd10
push edi
call fcn.0040d440
mov byte [esp + 0x258], 0
test esi, esi
je 0x405407
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
cmp dword [esp + 0x38], 8
jb 0x40541b
mov edx, dword [esp + 0x24]
push edx
call fcn.0044687d
add esp, 4
mov ecx, dword [esp + 0x250]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.0047ff9f
mov esp, ebp
pop ebp
ret 0x14
Function at 0x405570
Capabilities:
Get file version info

Disassembly:
sub esp, 0x31c
mov eax, dword [0x594aa4]
xor eax, esp
mov dword [esp + 0x318], eax
push ebp
push esi
xor esi, esi
push 0x103
lea eax, [esp + 0x19]
push esi
mov dword [esp + 0x10], esi
push eax
mov byte [esp + 0x20], 0
call fcn.004804c0
add esp, 0xc
push 0x208
lea ecx, [esp + 0x11c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x11c]
push eax
mov dword [esp + 0x14], esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebp, eax
cmp ebp, esi
je 0x40565e
push edi
push ebp
push 2
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [esp + 0x10]
mov edi, eax
push edi
push ebp
push ecx
lea edx, [esp + 0x128]
push edx
call sub.VERSION.dll_GetFileVersionInfoW
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0x57d450
push edi
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [esp + 0xc]
mov cx, word [eax + 0x12]
mov dx, word [eax + 0x10]
mov di, word [eax + 0x16]
movzx eax, word [eax + 0x14]
push eax
movzx eax, di
push eax
movzx edx, dx
movzx eax, cx
push edx
push eax
lea ecx, [esp + 0x28]
push str._d._d._d._d
push ecx
call fcn.00481ac6
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor esi, esi
pop edi
mov dword [ebx + 0x14], esi
lea eax, [esp + 0x14]
pop esi
mov dword [ebx + 0x18], 0xf
mov byte [ebx + 4], 0
lea edx, [eax + 1]
pop ebp
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405675
sub eax, edx
push eax
lea edx, [esp + 0x10]
push edx
mov ecx, ebx
call fcn.00408260
mov ecx, dword [esp + 0x318]
xor ecx, esp
mov eax, ebx
call fcn.0047ff9f
add esp, 0x31c
ret
Function at 0x4084f0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x53e66b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x594aa4]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0047f117
push 4
mov dword [esp + 0x24], 0
call fcn.00446843
mov edi, eax
add esp, 4
test edi, edi
je 0x408572
call fcn.0047ef21
mov dword [edi], eax
call fcn.0047ed4f
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.0047ec73
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x408567
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.0047ec9b
jmp 0x408574
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
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 0x40ad40
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x53f8e8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x594aa4]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x40]
xor edi, edi
push 0xffffffffffffffff
push edi
xor eax, eax
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], edi
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], edi
mov word [esp + 0x20], ax
call fcn.00406e30
mov edx, dword [esp + 0x44]
mov eax, edx
mov dword [esp + 0x34], edi
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40ada0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.00408700
mov esi, dword [esp + 0x3c]
push 0xffffffffffffffff
push edi
xor edx, edx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push eax
mov ecx, esi
mov word [esi + 4], dx
call fcn.00406e30
cmp dword [esp + 0x28], 8
jb 0x40aded
mov eax, dword [esp + 0x14]
push eax
call fcn.0044687d
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x2c
ret
Function at 0x40c7b0
Capabilities:
Create thread
Delete file
Get process heap force flags
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x5422ae
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x594aa4]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
mov eax, dword [0x594aa4]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor ebx, ebx
lea ecx, [esi + 0x10]
mov dword [esi], ebx
mov dword [esi + 4], ebx
push ebx
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push 0x57d3dd
mov dword [esp + 0x14], esi
mov byte [ecx + 4], bl
call fcn.00408260
mov dword [esp + 0x38], ebx
xor eax, eax
mov dword [esi + 0x44], 7
mov dword [esi + 0x40], ebx
mov word [esi + 0x30], ax
push ebx
push ebx
push 1
mov byte [esp + 0x44], 1
push ebx
mov byte [esi + 0x48], bl
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0x57d450
push ecx
mov dword [esi + 4], eax
call fcn.0040e820
add esp, 4
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.0040ad40
add esp, 0xc
push 0x18
push 0x57d93c
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], 2
call fcn.00408700
cmp dword [esp + 0x28], 8
mov eax, dword [esp + 0x14]
jae 0x40c86f
lea eax, [esp + 0x14]
xor edx, edx
cmp edx, str.XMLRes
je 0x40c887
push eax
push str.XMLRes
lea ecx, [edx + 0x67]
call fcn.0040ea30
call fcn.0040cb30
test al, al
je 0x40c898
cmp dword [0x5ab524], ebx
jne 0x40c8b9
push 1
push str.ERROR
push 0x57dbf0
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [esp + 0x28], 8
mov eax, dword [esp + 0x14]
jae 0x40c8c8
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
push ebx
push 0x40c970
call fcn.00481d85
add esp, 0xc
cmp dword [esp + 0x28], 8
jb 0x40c8f2
mov eax, dword [esp + 0x14]
push eax
call fcn.0044687d
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0047ff9f
add esp, 0x34
ret
Function at 0x40c980
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x54028b
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x594aa4]
xor eax, esp
mov dword [esp + 0x240], eax
push esi
mov eax, dword [0x594aa4]
xor eax, esp
push eax
lea eax, [esp + 0x24c]
mov dword fs:[0], eax
push 0x206
xor esi, esi
lea ecx, [esp + 0x46]
xor eax, eax
push esi
push ecx
mov word [esp + 0x4c], ax
call fcn.004804c0
add esp, 0xc
push 0x104
lea edx, [esp + 0x44]
push edx
push str.TEMP
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xor eax, eax
mov word [esp + 0x28], ax
lea eax, [esp + 0x40]
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x40ca03
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00408820
push 0x57d980
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x260], esi
call fcn.0040ad40
mov esi, 8
add esp, 0xc
cmp dword [eax + 0x18], esi
jb 0x40ca4e
mov eax, dword [eax + 4]
jmp 0x40ca51
add eax, 4
xor ecx, ecx
cmp ecx, str.STATISCNF
je 0x40ca6b
push eax
push str.STATISCNF
mov ecx, 0x6a
call fcn.0040ea30
cmp dword [esp + 0x20], esi
jb 0x40ca7e
mov edx, dword [esp + 0xc]
push edx
call fcn.0044687d
add esp, 4
push 0x57d574
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.0040ad40
add esp, 0xc
cmp dword [eax + 0x18], esi
jb 0x40ca9f
mov eax, dword [eax + 4]
jmp 0x40caa2
add eax, 4
xor edx, edx
cmp edx, str.STATISCNF
je 0x40caba
push eax
push str.STATISCNF
lea ecx, [edx + 0x6b]
call fcn.0040ea30
cmp dword [esp + 0x20], esi
jb 0x40cacd
mov eax, dword [esp + 0xc]
push eax
call fcn.0044687d
add esp, 4
mov byte [edi + 0x48], 1
cmp dword [esp + 0x3c], esi
jb 0x40cae4
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0044687d
add esp, 4
mov ecx, dword [esp + 0x24c]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.0047ff9f
add esp, 0x250
ret
Function at 0x40e750
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5410a8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x594aa4]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, dword [0x594aa4]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
call fcn.0040e820
xor ecx, ecx
push 0xffffffffffffffff
push ecx
mov word [esp + 0x14], cx
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
call fcn.00406e30
mov dword [esp + 0x30], 0
cmp dword [esp + 0x20], 8
mov ecx, dword [esp + 0xc]
jae 0x40e7be
lea ecx, [esp + 0xc]
push edi
call fcn.0040e110
test al, al
jne 0x40e7ed
push 0
push 0
push 0x12
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
cmp dword [esp + 0x20], 8
jb 0x40e7e9
mov edx, dword [esp + 0xc]
push edx
call fcn.0044687d
add esp, 4
xor al, al
jmp 0x40e803
cmp dword [esp + 0x20], 8
jb 0x40e801
mov eax, dword [esp + 0xc]
push eax
call fcn.0044687d
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0047ff9f
add esp, 0x30
ret

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

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
test ebp, ebp
jne 0x40ea3f
xor al, al
pop ebp
ret 8
mov eax, dword [esp + 8]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx ecx, cx
push eax
push ecx
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x40eaed
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40eaed
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x18], eax
test eax, eax
je 0x40eaed
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0x57dc18
push ebp
mov ebx, eax
call fcn.00480455
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x40eaed
xor esi, esi
test ebx, ebx
jbe 0x40eadb
lea ecx, [ecx]
mov edi, ebx
sub edi, esi
cmp edi, 0x800
jbe 0x40eac1
mov edi, 0x800
mov edx, dword [esp + 0x18]
push ebp
push edi
lea eax, [esi + edx]
push 1
push eax
call fcn.0048030d
add esi, edi
add esp, 0x10
cmp esi, ebx
jb 0x40eab0
push ebp
call fcn.0048012f
add esp, 4
pop edi
pop esi
pop ebx
mov al, 1
pop ebp
ret 8
pop edi
pop esi
pop ebx
xor al, al
pop ebp
ret 8