joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406e60
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x42ff18
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43c024]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x30]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebp
call ebx
test eax, eax
jne 0x406f11
mov eax, ebp
call fcn.00406e00
cmp eax, 1
jne 0x406eb5
xor edi, edi
mov ecx, ebp
call fcn.004067a0
test al, al
je 0x406f88
push ebp
call ebx
test eax, eax
jne 0x406f11
xor edi, edi
push 4
lea esi, [esp + 0x18]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
call fcn.00404e70
mov eax, esi
push eax
push ebp
mov dword [esp + 0x30], edi
call fcn.00407f50
test al, al
je 0x406f73
cmp dword [esp + 0x18], edi
setne al
test al, al
je 0x406f73
mov esi, dword [esp + 0x14]
push esi
call ebx
test eax, eax
je 0x406f15
push esi
mov dword [esp + 0x2c], 0xffffffff
call fcn.00421bde
add esp, 4
mov al, 1
jmp 0x406f8a
mov eax, esi
call fcn.00406e00
cmp eax, 1
jne 0x406f3b
xor edi, edi
mov ecx, esi
call fcn.004067a0
test al, al
jne 0x406f39
mov dword [esp + 0x28], 0xffffffff
push esi
jmp 0x406f80
xor edi, edi
push esi
call ebx
push esi
test eax, eax
je 0x406f57
mov dword [esp + 0x2c], 0xffffffff
call fcn.00421bde
add esp, 4
mov al, 1
jmp 0x406f8a
call ebx
cmp eax, edi
push esi
setne bl
mov dword [esp + 0x2c], 0xffffffff
call fcn.00421bde
add esp, 4
mov al, bl
jmp 0x406f8a
mov dword [esp + 0x28], 0xffffffff
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00421bde
add esp, 4
xor al, al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 4

Function at 0x407670
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, eax
mov eax, dword [esi + 8]
cmp eax, 0x105
push edi
jg 0x40768f
cmp eax, 0x106
je 0x40768f
push 0x106
call fcn.00404e70
mov eax, dword [esi]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, dword [esi]
xor ecx, ecx
cmp word [edi], cx
je 0x4076b2
mov edx, edi
add edx, 2
inc ecx
cmp word [edx], 0
jne 0x4076a8
xor edx, edx
mov word [edi + ecx*2], dx
mov dword [esi + 4], ecx
dec eax
mov ecx, 0x103
cmp ecx, eax
sbb eax, eax
pop edi
inc eax
pop esi
ret

Function at 0x4076d0
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, eax
mov eax, dword [esi + 8]
cmp eax, 0x105
jg 0x4076ee
cmp eax, 0x106
je 0x4076ee
push 0x106
call fcn.00404e70
mov eax, dword [esi]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edx, dword [esi]
xor eax, eax
cmp word [edx], ax
je 0x40771a
mov ecx, edx
lea ebx, [ebx]
add ecx, 2
inc eax
cmp word [ecx], 0
jne 0x407710
xor ecx, ecx
mov word [edx + eax*2], cx
mov dword [esi + 4], eax
mov al, 1
pop esi
ret
Function at 0x407730
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, eax
mov eax, dword [esi + 8]
cmp eax, 0x105
push edi
jg 0x40774f
cmp eax, 0x106
je 0x40774f
push 0x106
call fcn.00404e70
mov eax, dword [esi]
push eax
mov eax, dword [esp + 0x10]
push 0
push 0x434980
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov edi, dword [esi]
xor ecx, ecx
cmp word [edi], cx
je 0x40777a
mov edx, edi
nop
add edx, 2
inc ecx
cmp word [edx], 0
jne 0x407770
xor edx, edx
mov word [edi + ecx*2], dx
pop edi
mov dword [esi + 4], ecx
pop esi
ret 4

Function at 0x407f50
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x42fb40
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43c024]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x54]
mov eax, dword [esp + 0x58]
xor ecx, ecx
mov dword [eax + 4], ecx
mov eax, dword [eax]
xor edx, edx
mov word [eax], dx
movzx eax, word [ebp]
xor edi, edi
cmp ax, cx
je 0x407f9e
inc edi
cmp word [ebp + edi*2], cx
jne 0x407f96
cmp edi, 1
movzx ebx, ax
jl 0x408109
cmp bx, 0x5c
je 0x408109
cmp bx, 0x2e
jne 0x407fd2
cmp edi, 1
je 0x408109
cmp edi, 2
jne 0x407fd2
cmp word [ebp + 2], bx
je 0x408109
push 4
lea esi, [esp + 0x18]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
call fcn.00404e70
cmp edi, 3
mov dword [esp + 0x4c], 0
jle 0x408019
cmp word [ebp + 2], 0x3a
jne 0x408019
cmp word [ebp + 4], 0x5c
jne 0x408019
cmp bx, 0x61
jb 0x408010
cmp bx, 0x7a
jbe 0x408081
add ebx, 0xffffffbf
cmp bx, 0x19
jbe 0x408081
mov eax, dword [esp + 0x1c]
cmp eax, 0x105
jg 0x408039
cmp eax, 0x106
je 0x408039
push 0x106
lea esi, [esp + 0x18]
call fcn.00404e70
mov eax, dword [esp + 0x14]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea esi, [esp + 0x14]
mov edi, eax
call fcn.00405f90
test edi, edi
je 0x408121
cmp edi, 0x104
ja 0x408121
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
cmp word [edx + ecx*2 - 2], 0x5c
je 0x408081
push 0x5c
mov eax, esi
call fcn.00404c40
mov ebx, 0x433f88
lea eax, [esp + 0x38]
call fcn.00404b30
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x30]
push edx
mov edi, eax
mov byte [esp + 0x54], 1
call fcn.00407a30
push ebp
lea ecx, [esp + 0x24]
mov bl, 2
push ecx
mov edi, eax
mov byte [esp + 0x54], bl
call fcn.00408390
mov edi, eax
mov eax, dword [esp + 0x58]
mov byte [esp + 0x4c], 3
call fcn.00404bf0
mov byte [esp + 0x4c], bl
mov edx, dword [esp + 0x20]
push edx
call fcn.00421bde
mov byte [esp + 0x50], 1
mov eax, dword [esp + 0x30]
push eax
call fcn.00421bde
mov byte [esp + 0x54], 0
mov ecx, dword [esp + 0x40]
push ecx
call fcn.00421bde
mov dword [esp + 0x58], 0xffffffff
mov edx, dword [esp + 0x20]
push edx
call fcn.00421bde
add esp, 0x10
mov al, 1
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 8
mov dword [esp + 0x4c], 0xffffffff
mov eax, dword [esp + 0x14]
push eax
call fcn.00421bde
add esp, 4
xor al, al
jmp 0x40810b
Function at 0x4082b0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
mov ebp, dword [esp + 0x10]
push edi
mov edi, eax
mov dword [esi], 0
mov eax, ebp
cmp ebp, 0x400000
jbe 0x4082d4
mov eax, 0x400000
mov edx, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x18]
push ecx
push eax
mov eax, dword [edx]
push edi
push eax
mov dword [esp + 0x28], 0
call ebx
mov ecx, dword [esp + 0x14]
add dword [esi], ecx
test eax, eax
je 0x40830a
test ecx, ecx
je 0x408302
add edi, ecx
sub ebp, ecx
jne 0x4082c5
pop edi
pop ebp
mov al, 1
pop ebx
ret 8
pop edi
pop ebp
xor al, al
pop ebx
ret 8

Function at 0x408790
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, eax
mov eax, dword [esi]
mov dword [esi + 4], 0
xor ecx, ecx
mov word [eax], cx
mov edx, dword [ebx]
push edi
push edx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, eax
test edi, edi
jne 0x4087bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
ret
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x4087d3
lea ecx, [edi + 1]
cmp ecx, eax
je 0x4087d3
push ecx
call fcn.00404e70
mov eax, dword [esi]
inc edi
push edi
push eax
mov eax, dword [ebx]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edi, dword [esi]
xor ecx, ecx
cmp word [edi], cx
je 0x4087fa
mov edx, edi
lea esp, [esp]
add edx, 2
inc ecx
cmp word [edx], 0
jne 0x4087f0
xor edx, edx
mov word [edi + ecx*2], dx
mov dword [esi + 4], ecx
test eax, eax
jne 0x408816
call dword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
ret
pop edi
mov al, 1
pop esi
ret
Function at 0x413780
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42f5c8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x43c024]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov dword [esp + 8], 0
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x30]
push edx
push eax
mov dword [esp + 0x24], 0
call fcn.00413600
mov esi, eax
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [esp + 8]
test eax, eax
je 0x4137e9
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 0x10
Function at 0x418b90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42fdb9
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
mov eax, dword [0x43c024]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x30]
push eax
push ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x28], 0
mov dword [esp + 0x10], 0
call fcn.00418a20
lea edx, [esp + 0xc]
mov dword [esp + 0x20], 0
push edx
mov dword [esp + 0xc], 1
call fcn.00405080
push ebx
mov ecx, eax
call fcn.00404fe0
mov eax, dword [esp + 0xc]
push eax
call fcn.00421bde
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop ebx
add esp, 0x1c
ret 0xc

Function at 0x419a70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42f3d8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebp
push edi
mov eax, dword [0x43c024]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x30]
xor eax, eax
xor ecx, ecx
mov word [esp + 0xc], ax
mov word [esp + 0xe], cx
mov dword [esp + 0x28], eax
mov byte [ebx], al
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x38]
mov dword [esi], eax
mov dword [esi + 4], eax
mov eax, dword [ebp]
mov edx, dword [eax]
mov edx, dword [edx + 0x18]
push 0xc
push ecx
push eax
call edx
mov edi, eax
test edi, edi
je 0x419aee
lea ecx, [esp + 0xc]
call fcn.00408620
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
add esp, 0x20
ret 8
mov ax, word [esp + 0xc]
cmp ax, 0x40
jne 0x419b08
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esi], eax
mov dword [esi + 4], ecx
jmp 0x419b40
test ax, ax
je 0x419b2f
lea ecx, [esp + 0xc]
call fcn.00408620
mov eax, 0x80004005
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
add esp, 0x20
ret 8
cmp byte [ebp + 0x2c], 0
je 0x419b43
mov edx, dword [ebp + 0x24]
mov dword [esi], edx
mov eax, dword [ebp + 0x28]
mov dword [esi + 4], eax
mov byte [ebx], 1
lea ecx, [esp + 0xc]
call fcn.00408620
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
add esp, 0x20
ret 8
Function at 0x41ae30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42e76e
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x43c024]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov eax, dword [ebx]
mov dword [esi], eax
test eax, eax
je 0x41ae66
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
lea edi, [ebx + 4]
lea eax, [esi + 4]
mov dword [esp + 0x14], 0
call fcn.00404b90
lea edi, [ebx + 0x10]
lea eax, [esi + 0x10]
mov byte [esp + 0x14], 1
call fcn.00404b90
mov byte [esp + 0x14], 2
mov eax, dword [ebx + 0x1c]
mov dword [esi + 0x1c], eax
mov ecx, dword [ebx + 0x20]
mov dword [esi + 0x20], ecx
mov edx, dword [ebx + 0x24]
mov dword [esi + 0x24], edx
mov eax, dword [ebx + 0x28]
mov dword [esi + 0x28], eax
mov cl, byte [ebx + 0x2c]
lea edi, [ebx + 0x30]
lea eax, [esi + 0x30]
mov byte [esi + 0x2c], cl
call fcn.00404b90
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4

Function at 0x41d5c0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x43ee44]
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
lea esi, [ebp + 0x118]
push esi
push 0x406180
push 0
push 0x1f6
push eax
call dword [sym.imp.USER32.dll_CreateDialogParamW]
test eax, eax
je 0x41d5f1
mov dword [esi + 4], eax
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x434850
lea edi, [ebp + 0x14]
push ecx
call fcn.00408390
call fcn.0041be90
mov bl, al
test bl, bl
je 0x41d62b
cmp byte [ebp + 0x169], 0
jne 0x41d62b
mov edx, dword [ebp + 0x11c]
push 1
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov al, byte [ebp + 0x169]
mov byte [ebp + 0x88], al
test bl, bl
je 0x41d643
mov ebx, dword [ebp + 0x11c]
jmp 0x41d645
xor ebx, ebx
mov edi, dword [esp + 0x28]
lea esi, [ebp + 0x70]
lea eax, [esi + 0x24]
call fcn.00404bf0
mov ecx, dword [0x43ee44]
push esi
push 0x406180
push 0
push 0x1f4
push ecx
mov dword [esi + 0x30], ebx
call dword [sym.imp.USER32.dll_DialogBoxParamW]
mov edi, dword [esp + 0x2c]
mov edx, dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
push edx
call esi
mov eax, 0x45
lea ecx, [esp + 0x14]
call fcn.0041b020
mov eax, dword [eax]
mov ecx, dword [ebp + 0x74]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov edx, dword [esp + 0x14]
push edx
call fcn.00421bde
mov eax, dword [ebp + 0x74]
add esp, 4
push 1
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [edi]
push 0xffffffffffffffff
push ecx
call esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 0xc
Function at 0x41e360
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x42f30e
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x43c024]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, dword [esp + 0x20]
lea esi, [edi + 4]
xor ebx, ebx
push 4
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call fcn.00404e70
lea esi, [edi + 0x10]
mov dword [esp + 0x18], ebx
push 4
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call fcn.00404e70
mov dword [edi + 0x20], ebx
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x30], ebx
mov dword [edi + 0x34], ebx
mov dword [edi + 0x38], 4
mov dword [edi + 0x28], vtable.CObjectVector_struct_CArc_.0
mov dword [edi + 0x40], ebx
mov dword [edi + 0x44], ebx
mov dword [edi + 0x48], ebx
mov dword [edi + 0x4c], 4
mov dword [edi + 0x3c], vtable.CObjectVector_class_CStringBase_wchar_t__.0
mov dword [edi + 0x50], ebx
mov dword [edi + 0x54], ebx
mov byte [edi + 0x58], bl
lea esi, [edi + 0x64]
mov byte [esp + 0x18], 3
push 4
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call fcn.00404e70
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x41f480
Capabilities:
Set registry value

Disassembly:
mov eax, 0x200c
call fcn.0042bbe0
mov eax, dword [0x43c024]
xor eax, esp
mov dword [esp + 0x2008], eax
push 0x2000
lea eax, [esp + 0xc]
push 0
push eax
call fcn.004285b0
add esp, 0xc
push 0x2000
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
lea edx, [esp + 4]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsCompatibility_AssistantPersisted
push SysReAllocStringLen
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edx, dword [esp]
push 4
lea eax, [esp + 8]
push eax
push 4
push 0
lea ecx, [esp + 0x18]
push ecx
push edx
mov dword [esp + 0x1c], 0x20
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x2008]
xor ecx, esp
call fcn.00421bcf
add esp, 0x200c
ret

Function at 0x41f530
Capabilities:
Set registry value

Disassembly:
sub esp, 0x41c
mov eax, dword [0x43c024]
xor eax, esp
mov dword [esp + 0x418], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x21a]
push ecx
mov word [esp + 0x21c], ax
call fcn.004285b0
add esp, 0xc
push 0x208
lea edx, [esp + 0x214]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.004285b0
push str.Applications_
lea edx, [esp + 0x18]
push 0x104
push edx
call fcn.00422728
lea eax, [esp + 0x228]
push 0x5c
push eax
call fcn.00422797
add eax, 2
push eax
lea ecx, [esp + 0x2c]
push 0x104
push ecx
call fcn.00422824
add esp, 0x2c
push 0
lea edx, [esp + 4]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
push SysReAllocStringLen
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov eax, dword [esp]
push 2
lea edx, [esp + 8]
push edx
push 1
xor ecx, ecx
push ecx
push str.IsHostApp
push eax
mov word [esp + 0x1c], cx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.00421bcf
add esp, 0x41c
ret
Function at 0x421bcf
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43c024]
jne 0x421bd9
repz ret
jmp fcn.00422a52

Function at 0x427635
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00424041
and dword [ebp - 4], 0
cmp dword [0x43ecd8], 0
mov ebx, eax
jne 0x4276e6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x427797
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x427797
push eax
call fcn.00423fcf
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43ecd8], eax
call esi
push eax
call fcn.00423fcf
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43ecdc], eax
call esi
push eax
call fcn.00423fcf
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43ece0], eax
call esi
push eax
call fcn.00423fcf
pop ecx
mov dword [0x43ece8], eax
test eax, eax
je 0x4276e6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00423fcf
pop ecx
mov dword [0x43ece4], eax
mov eax, dword [0x43ece4]
cmp eax, ebx
je 0x42773e
cmp dword [0x43ece8], ebx
je 0x42773e
push eax
call fcn.0042404a
push dword [0x43ece8]
mov esi, eax
call fcn.0042404a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x42773e
test edi, edi
je 0x42773e
call esi
test eax, eax
je 0x427735
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x427735
test byte [ebp - 0xc], 1
jne 0x42773e
or dword [ebp + 0x10], 0x200000
jmp 0x427777
mov eax, dword [0x43ecdc]
cmp eax, ebx
je 0x427777
push eax
call fcn.0042404a
pop ecx
test eax, eax
je 0x427777
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x427777
mov eax, dword [0x43ece0]
cmp eax, ebx
je 0x427777
push eax
call fcn.0042404a
pop ecx
test eax, eax
je 0x427777
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43ecd8]
call fcn.0042404a
pop ecx
test eax, eax
je 0x427797
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x427799
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40abc0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x44781c], eax
pop edi
pop esi
pop ebp
ret

Function at 0x40ac60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x43d100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x38], edx
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + ecx + 0x78]
add eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x20]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x30], 0
xor edx, edx
mov word [ebp - 0x20], dx
mov dword [ebp - 0x24], 0
jmp 0x40acd2
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp - 0x3c]
jae 0x40ad4e
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00403b60
push 0x14d
lea edx, [ebp - 0x1c]
push edx
call fcn.0040b240
add esp, 8
cmp eax, dword [ebp + 0xc]
jne 0x40ad38
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x24]
mov edx, dword [ebp - 0x24]
mov ax, word [ecx + edx*2]
mov word [ebp - 0x20], ax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x1c]
movzx eax, word [ebp - 0x20]
mov ecx, dword [edx + eax*4]
mov dword [ebp - 0x30], ecx
lea ecx, [ebp - 0x1c]
call fcn.00405300
jmp 0x40ad4e
mov edx, dword [ebp - 0x2c]
add edx, 4
mov dword [ebp - 0x2c], edx
lea ecx, [ebp - 0x1c]
call fcn.00405300
jmp 0x40acc9
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410ef6
mov esp, ebp
pop ebp
ret
Function at 0x411541
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x411580
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x411580
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x411580
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x411580
cmp dword [ecx + 0x74], 0xe
jbe 0x411580
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x41e0be
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4323c8
push 0x4323c0
push str.FlsAlloc
push 0x1e
call fcn.0041df29
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41e0f2
push dword [ebp + 8]
mov ecx, esi
call dword [0x42e194]
call esi
jmp 0x41e0f8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41e13c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4323d8
push 0x4323d0
push str.FlsGetValue
push 0x20
call fcn.0041df29
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41e173
push dword [ebp + 8]
mov ecx, esi
call dword [0x42e194]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x420c5a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004208fc

Function at 0x420c65
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00420a8b