joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402660
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x41d358]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x104
mov esi, ecx
mov dword [ebp - 0x210], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4026e8
push str.BingDesktop.msi
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x4026e8
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
lea eax, [ebp - 0x20c]
mov word [esi], dx
lea edx, [eax + 2]
jmp 0x4026d0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4026d0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
jmp 0x402701
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
push eax
mov eax, 0x41a264
call fcn.00403f20
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004084ab
mov esp, ebp
pop ebp
ret

Function at 0x403e30
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41589b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x41d358]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.004083bb
push 4
mov dword [ebp - 4], 0
call fcn.00408a2c
mov edi, eax
add esp, 4
test edi, edi
je 0x403eac
call fcn.00407829
mov dword [edi], eax
call fcn.004075e8
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0040751d
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x403ea2
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00407545
jmp 0x403eae
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 [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404f50
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28c
mov eax, dword [0x41d358]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [edi + 0x14], 0
push esi
je 0x405079
lea eax, [edi + 4]
push eax
lea ecx, [ebp - 0x22c]
lea esi, [edi + 0x20]
push ecx
call fcn.00404e50
mov eax, dword [ebp - 0x22c]
mov esi, 8
cmp dword [ebp - 0x218], esi
jae 0x404f9a
lea eax, [ebp - 0x22c]
mov edx, dword [ebp - 0x21c]
push edx
push eax
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.00408aac
push 0x40
lea ecx, [ebp - 0x284]
push 0
push ecx
call fcn.00410850
add esp, 0x1c
xor eax, eax
lea edx, [ebp - 0x23c]
push edx
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x288]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x210]
push ecx
push 0
mov dword [ebp - 0x288], 0x44
mov dword [ebp - 0x23c], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405062
mov edx, dword [ebp - 0x238]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x23c]
mov ecx, dword [ebp - 0x234]
mov dword [edi + 0x44], eax
mov dword [edi + 0x3c], ecx
cmp dword [ebp - 0x218], esi
jb 0x405051
mov edx, dword [ebp - 0x22c]
push edx
call fcn.00408630
add esp, 4
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004084ab
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x218], esi
jb 0x405079
mov eax, dword [ebp - 0x22c]
push eax
call fcn.00408630
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
pop esi
call fcn.004084ab
mov esp, ebp
pop ebp
ret

Function at 0x4050d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
test esi, esi
jne 0x4050f1
cmp dword [ebp + 0x1c], 8
jb 0x4050ec
mov eax, dword [ebp + 8]
push eax
call fcn.00408630
add esp, 4
xor al, al
pop ebx
pop ebp
ret
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x1c]
cmp edi, 8
jae 0x405100
lea eax, [ebp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405103
mov ecx, dword [ebp + 8]
sub eax, edx
sar eax, 1
cmp edi, 8
lea eax, [eax + eax + 2]
pop edi
jae 0x405122
lea ecx, [ebp + 8]
push eax
push ecx
push 1
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
cmp dword [ebp + 0x1c], 8
jb 0x405147
mov ecx, dword [ebp + 8]
push ecx
call fcn.00408630
add esp, 4
mov al, bl
pop ebx
pop ebp
ret
Function at 0x405150
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415a48
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x41d358]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, edx
xor esi, esi
mov edi, ecx
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x30], esi
cmp ebx, esi
jne 0x4051a8
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], esi
mov word [edi], ax
jmp 0x405280
lea ecx, [ebp - 0x34]
push ecx
push esi
lea edx, [ebp - 0x30]
push edx
push esi
push eax
push ebx
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x34], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
jne 0x405271
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], esi
mov ecx, dword [ebp - 0x34]
cmp ecx, esi
lea esi, [ebp - 0x2c]
ja 0x4051f3
or eax, 0xffffffff
call fcn.00404010
jmp 0x4051fd
mov ebx, ecx
call fcn.004052b0
mov ebx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x2c]
mov esi, 8
cmp dword [ebp - 0x18], esi
jae 0x40520d
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x34]
push ecx
push eax
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x30]
push edx
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405257
mov esi, dword [ebp - 0x3c]
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], eax
xor ecx, ecx
mov word [edi], cx
lea edi, [ebp - 0x2c]
call fcn.00403710
cmp dword [ebp - 0x18], 8
jb 0x405253
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00408630
add esp, 4
mov eax, esi
jmp 0x40528f
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], esi
jb 0x40526f
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00408630
add esp, 4
xor esi, esi
xor ecx, ecx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], esi
mov word [edi], cx
push esi
mov eax, 0x41a264
mov esi, edi
call fcn.00403f20
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004084ab
mov esp, ebp
pop ebp
ret
Function at 0x4056f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415a18
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x41d358]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov word [ebp - 0x2c], ax
xor ebx, ebx
push 0x34
mov eax, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
call fcn.00403f20
push 0x26
mov eax, str.BA6E3406_3BB9_433B_B9BF_ADC652DF3520
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00403870
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x405758
mov eax, esi
lea ecx, [ebp - 0x34]
push ecx
push 0x2001f
push ebx
push eax
push 0x80000002
mov dword [ebp - 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [ebp - 0x34]
xor esi, esi
mov edi, eax
cmp eax, ebx
je 0x4057ad
mov ecx, 4
lea edx, [ebp - 0x38]
push edx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], ecx
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x3c]
push edx
push ebx
push str.Version
push eax
mov dword [ebp - 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, dword [ebp - 0x30]
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], 8
jb 0x4057bf
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00408630
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004084ab
mov esp, ebp
pop ebp
ret
Function at 0x4057e0
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415d0b
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x41d358]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x88]
call fcn.00402340
xor eax, eax
mov dword [ebp - 4], eax
test bl, bl
je 0x40582a
cmp dword [ebp - 0x78], eax
je 0x4058f5
mov ecx, 0x17
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionRun
lea edi, [ebp - 0x6c]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x90]
push ecx
push 0x2001f
push eax
lea edx, [ebp - 0x6c]
push edx
push 0x80000001
mov dword [ebp - 0x90], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [ebp - 0x90]
test bl, bl
je 0x4058da
xor edi, edi
cmp esi, edi
jne 0x4058a1
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x8c]
push ecx
push edi
push 0x2001f
push edi
push edi
push edi
lea edx, [ebp - 0x6c]
push edx
push 0x80000001
mov dword [ebp - 0x8c], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, dword [ebp - 0x8c]
cmp esi, edi
je 0x4058f5
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x98], esp
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], edi
push edi
lea edx, [ebp - 0x88]
mov word [ecx], ax
push edx
or eax, 0xffffffff
call fcn.004039a0
mov ecx, 0x419fe0
call fcn.004050d0
add esp, 0x1c
jmp 0x4058ea
test esi, esi
je 0x4058f5
push 0x419fe0
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test esi, esi
je 0x4058f5
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x74], 8
jb 0x40590a
mov eax, dword [ebp - 0x88]
push eax
call fcn.00408630
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004084ab
mov esp, ebp
pop ebp
ret

Function at 0x405930
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x41d358]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x64]
push eax
push 0x2001f
mov ecx, 0x17
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionRun
lea edi, [ebp - 0x60]
rep movsd dword es:[edi], dword [esi]
push 0
lea ecx, [ebp - 0x60]
push ecx
push 0x80000001
mov dword [ebp - 0x64], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [ebp - 0x64]
test esi, esi
jne 0x40598b
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004084ab
mov esp, ebp
pop ebp
ret
push ebx
push 0xfe
call fcn.00408403
add esp, 4
lea edx, [ebp - 0x68]
push edx
push eax
lea eax, [ebp - 0x6c]
push eax
push 0
push 0x419fe0
push esi
mov dword [ebp - 0x6c], 1
mov dword [ebp - 0x68], 0xfe
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push esi
sete bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, bl
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.004084ab
mov esp, ebp
pop ebp
ret
Function at 0x406590
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415cd8
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x41d358]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
push 0x3c
lea ecx, [ebp - 0x84]
push ebx
push ecx
mov dword [ebp - 4], ebx
call fcn.00410850
add esp, 0xc
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x84], 0x3c
mov dword [ebp - 0x80], 0x40
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
call fcn.00402470
mov edi, eax
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00403710
mov esi, 8
mov byte [ebp - 4], bl
cmp dword [ebp - 0x34], esi
jb 0x406628
mov edx, dword [ebp - 0x48]
push edx
call fcn.00408630
add esp, 4
cmp dword [ebp - 0x18], esi
jb 0x406635
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x74], eax
jmp 0x40663b
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x74], ecx
lea edx, [ebp - 0x84]
push edx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x70], str._service
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
setne al
cmp al, bl
je 0x4066f2
mov eax, dword [ebp - 0x4c]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
push eax
call ebx
lea ecx, [ebp - 0x48]
call fcn.00401ea0
mov edi, eax
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00403710
mov esi, 8
cmp dword [ebp - 0x34], esi
jb 0x40669f
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.00408630
add esp, 4
cmp dword [ebp - 0x18], esi
jb 0x4066ac
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x74], edx
jmp 0x4066b2
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x74], eax
lea ecx, [ebp - 0x84]
push ecx
mov dword [ebp - 0x70], str.start_BingDictUpdateService
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4066e7
mov edx, dword [ebp - 0x4c]
push 0xffffffffffffffff
push edx
call ebx
cmp dword [ebp - 0x18], esi
jb 0x4066e3
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00408630
add esp, 4
mov al, 1
jmp 0x406705
cmp dword [ebp - 0x18], esi
jb 0x406703
mov ecx, dword [ebp - 0x2c]
push ecx
jmp 0x4066fb
cmp dword [ebp - 0x18], esi
jb 0x406703
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00408630
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004084ab
mov esp, ebp
pop ebp
ret
Function at 0x407290
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4159a8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x41d358]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x34], edi
call fcn.004025a0
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
cmp esi, edi
je 0x4073aa
cmp dword [ebp - 0x1c], edi
je 0x4073aa
push str.MSIFile
push 0x81
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x407304
mov dword [ebx + 0x10], eax
push eax
jmp 0x4073ae
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x407332
mov eax, 0x41a264
mov ecx, ebx
call fcn.00402c20
cmp dword [ebp - 0x18], 8
jb 0x4073d8
mov edx, dword [ebp - 0x2c]
push edx
jmp 0x4073d0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp dword [ebp - 0x18], 8
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
jae 0x407355
lea eax, [ebp - 0x2c]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, dword [ebp - 0x30]
push 0
lea ecx, [ebp - 0x34]
push ecx
push edi
mov esi, eax
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x34], edi
jne 0x4073a8
lea edi, [ebp - 0x2c]
mov eax, ebx
call fcn.00402c60
mov esi, edi
call fcn.00402c80
jmp 0x4073d8
xor edi, edi
mov dword [ebx + 0x10], edi
push edi
xor eax, eax
mov dword [ebx + 0x14], 7
mov word [ebx], ax
mov eax, 0x41a264
mov esi, ebx
call fcn.00403f20
cmp dword [ebp - 0x18], 8
jb 0x4073d8
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00408630
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004084ab
mov esp, ebp
pop ebp
ret

Function at 0x4084ab
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41d358]
jne 0x4084b5
repz ret
jmp fcn.0040c076
Function at 0x4143ec
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41d358]
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.0040e03d
and dword [ebp - 0x14], 0
cmp dword [0x41f320], 0
mov dword [ebp - 0x18], eax
jne 0x41449f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x414547
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x419eec
push ebx
call edi
test eax, eax
je 0x414547
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x41f320], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x41f324], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x41f328], eax
call edi
push eax
call esi
mov dword [0x41f330], eax
test eax, eax
je 0x41449f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x41f32c], eax
mov eax, dword [0x41f32c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4144f8
cmp dword [0x41f330], ecx
je 0x4144f8
push eax
call esi
push dword [0x41f330]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4144f8
test ebx, ebx
je 0x4144f8
call edi
test eax, eax
je 0x4144ef
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4144ef
test byte [ebp - 8], 1
jne 0x4144f8
or dword [ebp + 0x10], 0x200000
jmp 0x41452b
mov eax, dword [0x41f324]
cmp eax, dword [ebp - 0x18]
je 0x41452b
push eax
call esi
test eax, eax
je 0x41452b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41452b
mov eax, dword [0x41f328]
cmp eax, dword [ebp - 0x18]
je 0x41452b
push eax
call esi
test eax, eax
je 0x41452b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x41f320]
call esi
test eax, eax
je 0x414547
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x414549
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004084ab
leave
ret
Function at 0x404734
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00406954
test esi, esi
jne 0x40476a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00406abc
jmp 0x404788
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404678
mov edi, eax
test esi, esi
je 0x404788
cmp dword [ebx], 0
je 0x404788
dec esi
jmp 0x404771
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4056b4
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00405aa0
mov byte [esp], al
cmp byte [esp], 0
jne 0x40583d
test edi, edi
je 0x40583d
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405774
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x40574f
cmp edi, 0xffffffff
je 0x405713
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405713
mov byte [esp], 0
jmp 0x40583d
mov ebx, dword [esi]
cmp ebx, 1
jg 0x40574f
test ebx, ebx
jne 0x405748
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.004025a8
test eax, eax
jne 0x405748
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x40583d
pause
dec ebp
test ebp, ebp
jg 0x4056f8
cmp edi, 0xffffffff
je 0x405774
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405772
mov byte [esp], 0
jmp 0x40583d
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4056c2
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.004025a8
cmp ebx, eax
jne 0x405774
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004058b0
mov edx, eax
mov ebx, dword [0x5628c8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4057db
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4057d9
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4057db
xor edi, edi
cmp byte [esp], 0
je 0x405804
mov ebx, dword [esi]
test bl, 1
jne 0x40581d
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.004025a8
cmp ebx, eax
jne 0x4057e1
mov byte [esp + 1], 1
jmp 0x40581d
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.004025a8
cmp ebx, eax
jne 0x405804
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x40578e
cmp byte [esp], 0
je 0x40583d
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4065b8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x562050], 0
je 0x406619
cmp word [0x56232c], 0xd7b2
jne 0x4065e1
cmp dword [0x562334], 0
jbe 0x4065e1
mov eax, 0x562328
call dword [0x562344]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x406644
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x55c028], 0
jne 0x406635
push 0
push 0x55c78c
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406810
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x55c02c], 0
je 0x40683b
mov edx, edi
mov eax, esi
call dword [0x55c02c]
mov ebx, eax
jmp 0x40684c
mov eax, 8
call fcn.004043ac
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x562051], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x4067d8
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x406881
mov edx, 8
mov eax, ebx
call fcn.004043c8
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc