joyce8/EMBER2024-capa huggingface dataset:
Function at 0x448a60
Capabilities:
Get file version info

Disassembly:
sub esp, 0x34
push ebx
push esi
push edi
mov esi, ecx
push 0
lea ebx, [esi + 0x30]
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
jne 0x448a82
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x34
ret
push edi
call fcn.00451fde
push edi
push 0
push eax
mov dword [esi + 8], eax
call fcn.0045c2f0
mov eax, dword [esi + 8]
add esp, 0x10
push eax
push edi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x448a79
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.00448740
test eax, eax
je 0x448a79
mov eax, dword [esp + 0x14]
mov edx, eax
mov word [esi + 0xe], ax
mov eax, dword [esp + 0x18]
shr edx, 0x10
mov ecx, eax
mov word [esi + 0x12], ax
mov eax, dword [esp + 0x1c]
shr ecx, 0x10
mov word [esi + 0xc], dx
mov edx, eax
mov word [esi + 0x10], cx
mov word [esi + 0x16], ax
mov eax, dword [esp + 0x20]
mov ecx, eax
shr ecx, 0x10
mov word [esi + 0x18], cx
mov ecx, dword [esp + 0x2c]
shr edx, 0x10
mov word [esi + 0x14], dx
mov edx, dword [esp + 0x24]
mov word [esi + 0x1a], ax
mov eax, dword [esp + 0x28]
mov dword [esi + 0x24], ecx
push 0x104
lea ecx, [esi + 0x238]
push ecx
mov dword [esi + 0x1c], edx
mov edx, dword [esp + 0x38]
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x3c]
push 0x4952bc
mov ecx, esi
mov dword [esi + 0x28], edx
mov dword [esi + 0x2c], eax
call fcn.00448880
test eax, eax
je 0x448a79
push 0x104
lea edx, [esi + 0x648]
push edx
push 0x49529c
mov ecx, esi
call fcn.00448880
test eax, eax
je 0x448a79
push 0x104
lea eax, [esi + 0x440]
push eax
push 0x495284
mov ecx, esi
call fcn.00448880
neg eax
pop edi
sbb eax, eax
pop esi
neg eax
pop ebx
add esp, 0x34
ret
Function at 0x449020
Capabilities:
Create process on windows
Get comspec environment variable
Query environment variable
Self delete

Disassembly:
sub esp, 0x658
mov eax, dword [0x4ac13c]
xor eax, esp
mov dword [esp + 0x654], eax
push 0x104
lea eax, [esp + 0x40]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x449154
push 0x104
lea ecx, [esp + 0x40]
push ecx
mov edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x449154
push 0x104
lea eax, [esp + 0x450]
push eax
push str.COMSPEC
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x449154
push esi
push str._c_del
lea ecx, [esp + 0x24c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x24c]
push eax
call esi
push str.___nul
lea ecx, [esp + 0x24c]
push ecx
call esi
lea ecx, [esp + 4]
lea edx, [esp + 0x450]
lea eax, [esp + 0x248]
push ecx
mov dword [esp + 8], 0x3c
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], str.Open
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0xc], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x449153
mov edx, dword [esp + 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 0x40
push edx
call esi
push pe_nt_image_headers32
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0
lea eax, [esp + 0x44]
push eax
push 5
push 4
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
pop esi
mov ecx, dword [esp + 0x654]
xor ecx, esp
call fcn.0045b7a6
add esp, 0x658
ret
Function at 0x449db0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0xffffffffffffffff
push 0x48c703
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x4ac13c]
xor eax, esp
mov dword [esp + 0x248], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ac13c]
xor eax, esp
push eax
lea eax, [esp + 0x260]
mov dword fs:[0], eax
mov esi, dword [esp + 0x270]
mov ebp, dword [esp + 0x274]
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
mov dword [esp + 0x50], esi
mov word [esi + 4], bx
push 0x208
lea eax, [esp + 0x58]
push ebx
mov edi, 1
push eax
mov dword [esp + 0x274], ebx
mov dword [esp + 0x20], edi
call fcn.0045c2f0
add esp, 0xc
push edi
push 0x2b
lea ecx, [esp + 0x5c]
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x449f57
lea eax, [esp + 0x54]
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], bx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x449e63
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x58]
push edx
lea ecx, [esp + 0x3c]
call fcn.00402470
push str.TencentQQMiniDL
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x274], edi
call fcn.00412230
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
mov byte [esp + 0x274], 2
call fcn.00411bc0
mov edi, 8
cmp dword [esp + 0x30], edi
jb 0x449eca
mov edx, dword [esp + 0x1c]
push edx
call fcn.00451fd9
add esp, 4
cmp dword [esp + 0x4c], edi
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
mov byte [esp + 0x268], bl
jb 0x449ef5
mov eax, dword [esp + 0x38]
push eax
call fcn.00451fd9
add esp, 4
cmp dword [ebp + 0x14], ebx
je 0x449f3d
push ebp
lea ecx, [esp + 0x1c]
push 0x494618
push ecx
call fcn.00439d70
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
mov dword [esp + 0x274], 3
call fcn.00411bc0
cmp dword [esp + 0x30], edi
mov byte [esp + 0x268], bl
jb 0x449f3d
mov edx, dword [esp + 0x1c]
push edx
call fcn.00451fd9
add esp, 4
push esi
call fcn.00449790
add esp, 4
test al, al
jne 0x449f64
push esi
call fcn.004498f0
add esp, 4
cmp al, bl
jne 0x449f64
push ebx
push 0x49a2a8
mov ecx, esi
call fcn.00402470
mov eax, esi
mov ecx, dword [esp + 0x260]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.0045b7a6
add esp, 0x258
ret
Function at 0x449fb0
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x48c761
mov eax, dword fs:[0]
push eax
sub esp, 0x470
mov eax, dword [0x4ac13c]
xor eax, esp
mov dword [esp + 0x46c], eax
push ebx
push esi
push edi
mov eax, dword [0x4ac13c]
xor eax, esp
push eax
lea eax, [esp + 0x480]
mov dword fs:[0], eax
mov esi, dword [esp + 0x490]
xor ebx, ebx
test byte [0x4aea8c], 1
mov dword [esp + 0x10], ebx
jne 0x44a02b
or dword [0x4aea8c], 1
push 0x48ff30
mov dword [0x4aea88], 7
mov dword [0x4aea84], ebx
mov word [0x4aea74], bx
call fcn.0045c716
add esp, 4
cmp dword [0x4aea84], ebx
jne 0x44a1fd
push 0x208
lea eax, [esp + 0x278]
push ebx
push eax
call fcn.0045c2f0
add esp, 0xc
push 1
push 0x1a
lea ecx, [esp + 0x27c]
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
mov edi, 8
je 0x44a168
lea edx, [esp + 0x274]
push edx
lea ecx, [esp + 0x50]
call fcn.0040427f
push str.TencentQQMiniDL
push eax
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x494], ebx
call fcn.00412230
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
mov ecx, 0x4aea70
mov byte [esp + 0x494], 1
call fcn.00411bc0
cmp dword [esp + 0x48], edi
jb 0x44a0c1
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00451fd9
add esp, 4
cmp dword [esp + 0x64], edi
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], ebx
mov word [esp + 0x34], bx
mov dword [esp + 0x488], 0xffffffff
jb 0x44a0f0
mov edx, dword [esp + 0x50]
push edx
call fcn.00451fd9
add esp, 4
cmp dword [0x4aea88], edi
jb 0x44a12c
mov eax, dword [0x4aea74]
cmp eax, ebx
je 0x44a11d
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x44a118
and al, 0x10
cmp al, 0x10
sete al
cmp al, bl
jne 0x44a13e
mov eax, dword [0x4aea74]
cmp dword [0x4aea88], edi
jae 0x44a133
mov eax, 0x4aea74
jmp 0x44a137
mov eax, 0x4aea74
jmp 0x44a101
cmp eax, ebx
je 0x44a13e
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x4aea70
call fcn.00449790
add esp, 4
test al, al
jne 0x44a1fd
push 0x4aea70
call fcn.004498f0
add esp, 4
cmp al, bl
jne 0x44a1fd
push 0x208
lea eax, [esp + 0x6e]
push ebx
push eax
mov word [esp + 0x74], bx
call fcn.0045c2f0
add esp, 0xc
push 0x20a
lea ecx, [esp + 0x6c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x68]
push 0x5c
push edx
call fcn.0045e20a
add esp, 8
cmp eax, ebx
je 0x44a1a7
mov word [eax], bx
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x18]
call fcn.0040427f
push 0xffffffffffffffff
push ebx
push eax
mov ecx, 0x4aea70
mov dword [esp + 0x494], 2
call fcn.0040218f
cmp dword [esp + 0x2c], edi
mov dword [esp + 0x488], 0xffffffff
jb 0x44a1ec
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00451fd9
add esp, 4
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], bx
push 0xffffffffffffffff
push ebx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push 0x4aea70
mov ecx, esi
mov word [esi + 4], bx
call fcn.0040218f
mov eax, esi
mov ecx, dword [esp + 0x480]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x46c]
xor ecx, esp
call fcn.0045b7a6
add esp, 0x47c
ret
Function at 0x44a500
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x48c821
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x4ac13c]
xor eax, esp
mov dword [esp + 0x14c], eax
push ebx
push esi
mov eax, dword [0x4ac13c]
xor eax, esp
push eax
lea eax, [esp + 0x15c]
mov dword fs:[0], eax
xor ebx, ebx
push 0x7e
lea eax, [esp + 0xde]
push ebx
push eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], 1
mov word [esp + 0xe4], bx
call fcn.0045c2f0
add esp, 0xc
push 0x19
mov esi, 7
push str.SoftwareTencentQQMiniDL
lea ecx, [esp + 0xc4]
mov dword [esp + 0x20], 0x80
mov dword [esp + 0xdc], esi
mov dword [esp + 0xd8], ebx
mov word [esp + 0xc8], bx
call fcn.00402470
cmp dword [esp + 0xd4], 8
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x164], ebx
jae 0x44a5b7
lea eax, [esp + 0xc0]
lea ecx, [esp + 0xc]
push ecx
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x44a69e
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0xdc]
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebx
push str.Version
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x44a693
lea eax, [esp + 0xd8]
push eax
lea ecx, [esp + 0x20]
mov word [esp + 0x154], bx
call fcn.0040427f
push 1
push 1
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x44]
mov byte [esp + 0x170], 1
call fcn.00442100
cmp dword [esp + 0x34], 8
mov byte [esp + 0x164], 3
jb 0x44a64a
mov edx, dword [esp + 0x20]
push edx
call fcn.00451fd9
add esp, 4
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], bx
call fcn.00441eb0
lea ecx, [esp + 0x88]
mov byte [esp + 0x164], bl
call fcn.00437450
lea ecx, [esp + 0x88]
push ecx
mov dword [esp + 0x8c], 0x492650
call fcn.0047690c
add esp, 4
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0xd4], 8
mov esi, dword [esp + 0x10]
jb 0x44a6bc
mov eax, dword [esp + 0xc0]
push eax
call fcn.00451fd9
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x15c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x14c]
xor ecx, esp
call fcn.0045b7a6
add esp, 0x15c
ret

Function at 0x44b250
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x404
mov eax, dword [0x4ac13c]
xor eax, esp
mov dword [esp + 0x400], eax
push 0x400
lea eax, [esp + 4]
push 0
push eax
call fcn.0045c2f0
mov edx, dword [esp + 0x414]
lea ecx, [esp + 0x418]
push ecx
push edx
lea eax, [esp + 0x14]
push 0x400
push eax
call fcn.0045ee21
add esp, 0x1c
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.0045b7a6
add esp, 0x404
ret
Function at 0x44b9c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48c9d8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4ac13c]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
push 3
push 0x495590
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], 0
mov byte [esp + 0x10], 0
call fcn.004022c0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
push eax
push ecx
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x34], 0
call fcn.0044b710
add esp, 0xc
cmp dword [esp + 0x1c], 0x10
jb 0x44ba3b
mov eax, dword [esp + 8]
push eax
call fcn.00451fd9
add esp, 4
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
add esp, 0x28
ret

Function at 0x44ba50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48c9d8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4ac13c]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
push 3
push 0x495590
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], 0
mov byte [esp + 0x10], 0
call fcn.004022c0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
push eax
push ecx
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x34], 0
call fcn.0044b620
add esp, 0xc
cmp dword [esp + 0x1c], 0x10
jb 0x44bacb
mov eax, dword [esp + 8]
push eax
call fcn.00451fd9
add esp, 4
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
add esp, 0x28
ret
Function at 0x44d140
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 4], 0
jne 0x44d199
cmp dword [esi + 0xc], 0
jne 0x44d195
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 1
push 0
call edi
push 0
push 0
push 0
push 0
mov dword [0x4aeb0c], eax
call edi
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x10], eax
lea eax, [esi + 8]
push eax
push 0
push esi
push ecx
push 0
push 0
mov byte [0x4aeb08], 1
call fcn.0045d8a4
add esp, 0x18
mov dword [esi + 0xc], eax
pop edi
mov byte [esi + 4], 1
mov al, 1
pop esi
ret 4

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

Disassembly:
push 0xffffffffffffffff
push 0x48cdae
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ac13c]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
or eax, 0xffffffff
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov eax, dword [esp + 0x30]
mov dword [esi + 0xc], eax
xor ebx, ebx
lea ecx, [esi + 0x14]
mov dword [esi], 0x49591c
mov eax, 0xf
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x14], ebx
mov dword [esp + 0x20], ebx
mov byte [ecx + 4], bl
lea edi, [esi + 0x30]
mov dword [edi + 0x18], eax
mov dword [edi + 0x14], ebx
mov byte [edi + 4], bl
mov ebp, dword [esp + 0x28]
mov eax, ebp
lea edx, [eax + 1]
mov byte [esp + 0x20], 2
mov dword [esp + 0x30], edx
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x44e026
sub eax, dword [esp + 0x30]
push eax
push ebp
call fcn.004022c0
mov edx, dword [esp + 0x2c]
mov eax, edx
lea ebp, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x44e043
sub eax, ebp
push eax
push edx
mov ecx, edi
call fcn.004022c0
mov dword [esi + 0x10], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x4c], ebx
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc

Function at 0x44ebb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48cf08
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4ac13c]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x4ac13c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x3c]
xor ecx, ecx
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], ecx
mov byte [esp + 0xc], cl
mov dword [esp + 0x30], ecx
lea ecx, [esp + 8]
push ecx
push eax
call fcn.0044dd20
lea edx, [esp + 0x10]
push edx
push esi
call fcn.0040ed60
add esp, 0x10
cmp dword [esp + 0x20], 0x10
jb 0x44ec2a
mov eax, dword [esp + 0xc]
push eax
call fcn.00451fd9
add esp, 4
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0045b7a6
add esp, 0x2c
ret
Function at 0x44f720
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x48d003
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4ac13c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.std::locale::_Locimp.0
push esi
mov dword [esp + 0x18], 1
call fcn.004766c1
add esp, 4
cmp dword [esi + 0x30], 0x10
jb 0x44f771
mov eax, dword [esi + 0x1c]
push eax
call fcn.00451fd9
add esp, 4
xor eax, eax
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], eax
mov byte [esi + 0x1c], al
mov dword [esi], vtable.std::locale::facet.0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x45ac8b
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 8], 0
jne 0x45aca0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp + 8], eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x1c
pop esi
push esi
mov ebx, eax
lea eax, [ebp - 0x1c]
push 0
push eax
call fcn.0045c2f0
add esp, 0xc
push 0
push 4
mov dword [ebp - 0x1c], esi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [ebp - 0x1c]
push eax
push esi
call sub.KERNEL32.dll_Thread32First
jmp 0x45ad05
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x10]
jne 0x45acfb
cmp ebx, dword [ebp - 0x14]
je 0x45acfb
push dword [ebp - 0x14]
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenThread]
test eax, eax
je 0x45acfb
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
lea eax, [ebp - 0x1c]
push eax
push esi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x45acd6
pop esi
pop ebx
leave
ret
Function at 0x45b7a6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4ac13c]
jne 0x45b7b0
repz ret
jmp fcn.0046379c
Function at 0x4639b1
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4ac608]
je 0x4639cc
inc edi
cmp edi, 0x17
jb 0x4639bd
cmp edi, 0x17
jae 0x463b4c
push ebp
push 3
call fcn.0046de48
cmp eax, 1
pop ecx
je 0x463b18
push 3
call fcn.0046de48
test eax, eax
pop ecx
jne 0x463a00
cmp dword [0x4ac1c0], 1
je 0x463b18
cmp ebx, 0xfc
je 0x463b4b
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4b0f00
push ebp
call fcn.004619b3
add esp, 0xc
test eax, eax
je 0x463a36
push esi
push esi
push esi
push esi
push esi
call fcn.0045c732
add esp, 0x14
push 0x104
mov esi, 0x4b0f19
push esi
push 0
mov byte [0x4b101d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x463a7a
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004619b3
add esp, 0xc
test eax, eax
je 0x463a7a
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0045c732
add esp, 0x14
push esi
call fcn.0045fbd0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x463abf
push esi
call fcn.0045fbd0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4b1214
push 0x4974b4
sub ecx, eax
push ecx
push eax
call fcn.0045cf24
add esp, 0x14
test eax, eax
je 0x463abf
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0045c732
add esp, 0x14
jmp 0x463ac1
xor esi, esi
push 0x4974b0
push ebx
push ebp
call fcn.00461a18
add esp, 0xc
test eax, eax
je 0x463ae1
push esi
push esi
push esi
push esi
push esi
call fcn.0045c732
add esp, 0x14
push dword [edi*8 + 0x4ac60c]
push ebx
push ebp
call fcn.00461a18
add esp, 0xc
test eax, eax
je 0x463b03
push esi
push esi
push esi
push esi
push esi
call fcn.0045c732
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0046dc8b
add esp, 0xc
jmp 0x463b4b
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x463b4b
cmp ebp, 0xffffffff
je 0x463b4b
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4ac60c]
push dword [esi]
call fcn.0045fbd0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x46dc8b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0046313d
xor ebx, ebx
cmp dword [0x4b16c8], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x46dd61
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x46de41
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x49782c
push edi
call esi
cmp eax, ebx
je 0x46de41
push eax
call fcn.004630cf
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4b16c8], eax
call esi
push eax
call fcn.004630cf
mov dword [esp], 0x497808
push edi
mov dword [0x4b16cc], eax
call esi
push eax
call fcn.004630cf
mov dword [0x4b16d0], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00461740
test eax, eax
pop ecx
pop ecx
je 0x46dd2f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0045c732
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x46dd61
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004630cf
cmp eax, ebx
pop ecx
mov dword [0x4b16d8], eax
je 0x46dd61
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004630cf
pop ecx
mov dword [0x4b16d4], eax
mov eax, dword [0x4b16d4]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x46dde6
cmp dword [0x4b16d8], ecx
je 0x46dde6
push eax
call fcn.00463146
push dword [0x4b16d8]
mov esi, eax
call fcn.00463146
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x46dde6
cmp edi, ebx
je 0x46dde6
call esi
cmp eax, ebx
je 0x46ddb3
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x46ddb3
test byte [ebp - 0x18], 1
jne 0x46dde6
lea eax, [ebp - 0x10]
push eax
call fcn.00461777
test eax, eax
pop ecx
je 0x46ddce
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0045c732
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x46dddd
or dword [ebp + 0x10], 0x200000
jmp 0x46de21
or dword [ebp + 0x10], 0x40000
jmp 0x46de21
mov eax, dword [0x4b16cc]
cmp eax, dword [ebp - 8]
je 0x46de21
push eax
call fcn.00463146
cmp eax, ebx
pop ecx
je 0x46de21
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x46de21
mov eax, dword [0x4b16d0]
cmp eax, dword [ebp - 8]
je 0x46de21
push eax
call fcn.00463146
cmp eax, ebx
pop ecx
je 0x46de21
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4b16c8]
call fcn.00463146
cmp eax, ebx
pop ecx
je 0x46de41
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x46de43
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret