joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4019b0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x413c61
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x240]
mov dword fs:[0], eax
mov dword [esp + 0x14], edx
lea eax, [esp + 0x18]
mov byte [esp + 0x13], 0
push eax
push ecx
mov dword [esp + 0x20], 0
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor esi, esi
mov edi, eax
cmp dword [esp + 0x18], esi
jle 0x401a42
jmp 0x401a20
push str._quiet
push dword [edi + esi*4]
call fcn.00405d24
add esp, 8
test eax, eax
je 0x401a3d
inc esi
cmp esi, dword [esp + 0x18]
jl 0x401a20
jmp 0x401a42
mov byte [esp + 0x13], 1
xor ebx, ebx
xorps xmm0, xmm0
movq qword [esp + 0x2c], xmm0
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
xor eax, eax
mov dword [esp + 0x248], ebx
push 0x1fe
push eax
mov word [esp + 0x3c], ax
lea eax, [esp + 0x3e]
push eax
call fcn.004067c0
add esp, 0xc
lea ecx, [esp + 0x34]
call fcn.00402520
test eax, eax
js 0x401b2b
xorps xmm0, xmm0
movq qword [esp + 0x24], xmm0
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
lea eax, [esp + 0x34]
mov byte [esp + 0x248], 1
push eax
lea ecx, [esp + 0x28]
call fcn.00402340
test al, al
je 0x401b15
xorps xmm0, xmm0
movq qword [esp + 0x1c], xmm0
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
push 0x418ad0
lea ecx, [esp + 0x20]
mov byte [esp + 0x24c], 2
call fcn.00402340
test al, al
je 0x401b02
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x28]
call fcn.00402490
test eax, eax
jne 0x401af4
lea ebx, [eax + 2]
jmp 0x401b02
xor ebx, ebx
test eax, eax
setns bl
lea ebx, [ebx*2 + 1]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x401b1a
push eax
call fcn.00406362
add esp, 4
jmp 0x401b1a
mov ebx, 1
mov eax, dword [esp + 0x24]
test eax, eax
je 0x401b2b
push eax
call fcn.00406362
add esp, 4
xor ecx, ecx
cmp ebx, 3
ja case.default.0x401b32
jmp dword [ebx*4 + 0x401ba8]
mov ecx, 0x418874
jmp case.default.0x401b32
mov ecx, str.REINSTALLALL_REINSTALLMODEvamus
jmp case.default.0x401b32
mov ecx, str.REINSTALLALL__REINSTALLMODEvamus
jmp case.default.0x401b32
mov ecx, str.REINSTALLALL__REINSTALLMODEvamus_NEWERVERSIONINSTALLED1
cmp byte [esp + 0x13], 0
mov edx, 0x418874
mov eax, str._quiet
cmove eax, edx
push eax
push edx
push str.REBOOTReallySuppress
push ecx
push str._s__s__s__s
push 0x400
push dword [esp + 0x2c]
call fcn.00401400
add esp, 0x1c
mov ecx, dword [esp + 0x240]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.00405c41
mov esp, ebp
pop ebp
ret
Function at 0x4026b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4026c9
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402704
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x402700
lea ebx, [ebx]
cmp esi, edx
jae 0x402704
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x4026f0
cmp esi, edx
jb 0x40270b
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x403880
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push 0x418c30
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40390c
mov eax, dword [ebp - 8]
cmp eax, 1
je 0x4038ce
cmp eax, 2
jne 0x4038ea
mov ecx, dword [ebp - 0xc]
test esi, esi
je 0x403906
test ecx, ecx
je 0x403901
test cl, 1
jne 0x4038ea
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x403906
pop edi
mov eax, 0xd
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405c41
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00405c41
mov esp, ebp
pop ebp
ret 0xc

Function at 0x403920
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x403935
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
jmp 0x403940
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403940
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x404390
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 8]
mov edi, ecx
push eax
xor esi, esi
call dword [sym.imp.SensApi.dll_IsNetworkAlive]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
call ebx
test eax, eax
jne 0x4043cf
cmp dword [ebp - 0xc], esi
jne 0x4043cf
mov esi, 0x800704c6
jmp 0x404471
mov ecx, edi
call fcn.00404290
push 0
push 0
push 0
push 0
push str.DeviceHealth_HttpUtil_
mov dword [edi + 0x240], esi
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [edi + 4], eax
test eax, eax
jne 0x404409
call ebx
mov esi, eax
test esi, esi
jle 0x404471
movzx esi, si
or esi, 0x80070000
jmp 0x404471
lea eax, [edi + 0x1a]
push eax
lea ecx, [edi + 0x18]
push ecx
lea eax, [edi + 0x14]
lea edx, [edi + 0x10]
push eax
call fcn.00403e00
add esp, 0xc
test al, al
je 0x404471
movzx eax, word [edi + 0x18]
push 0
push eax
push dword [edi + 0x10]
push dword [edi + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [edi + 8], eax
test eax, eax
je 0x404454
cmp byte [edi + 0x1a], 0
mov dword [edi + 0x1c], 0x148
je 0x404469
mov dword [edi + 0x1c], 0x800148
jmp 0x404469
call ebx
mov esi, eax
test esi, esi
jle 0x404467
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x404471
push ecx
mov ecx, edi
call fcn.00404da0
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405c41
mov esp, ebp
pop ebp
ret 4
Function at 0x4044a0
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
cmp dword [edi + 0xc], 0
je 0x4045bb
push esi
call fcn.004045d0
mov esi, eax
test esi, esi
js 0x40455c
push ebx
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0
push 0
push 0x16
push dword [edi + 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40450c
call ebx
cmp eax, 0x7a
je 0x40450c
call ebx
mov esi, eax
test esi, esi
jle 0x40450e
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x40459c
mov eax, dword [ebp - 8]
mov dword [edi + 0x20], eax
test eax, eax
je 0x404589
push eax
call fcn.00405c33
add esp, 4
mov dword [edi + 0x24], eax
test eax, eax
je 0x40456c
push 0
lea ecx, [ebp - 8]
push ecx
push eax
push 0
push 0x16
push dword [edi + 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x404589
call ebx
test eax, eax
jle 0x404554
movzx eax, ax
or eax, 0x80070000
mov dword [edi + 0x20], 0
pop ebx
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405c41
mov esp, ebp
pop ebp
ret
pop ebx
pop esi
mov dword [edi + 0x20], 0
mov eax, 0x8007000e
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405c41
mov esp, ebp
pop ebp
ret
pop ebx
mov eax, esi
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405c41
mov esp, ebp
pop ebp
ret
call ebx
test eax, eax
jle 0x40455b
pop ebx
movzx eax, ax
pop esi
or eax, 0x80070000
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405c41
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.00405c41
mov esp, ebp
pop ebp
ret

Function at 0x4045d0
Capabilities:
Check http status code
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
lea eax, [ebp - 8]
mov dword [ecx + 0x244], 0x190
push eax
lea esi, [ecx + 0x244]
mov dword [ebp - 8], 4
push esi
push 0
push 0x20000013
push dword [ecx + 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x404641
mov eax, dword [esi]
cmp eax, 0x190
jae 0x40462d
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405c41
mov esp, ebp
pop ebp
ret
or eax, 0x80190000
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405c41
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x404653
movzx eax, ax
or eax, 0x80070000
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00405c41
mov esp, ebp
pop ebp
ret
Function at 0x404670
Capabilities:
Receive http response
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2008
call fcn.0040fc70
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
mov esi, ecx
jmp 0x4046a0
lea eax, [ebp - 0x2008]
mov dword [ebp - 0x2008], 0
push eax
push dword [esi + 0xc]
call edi
test eax, eax
je 0x404722
cmp dword [ebp - 0x2008], 0
jbe 0x40470d
lea eax, [ebp - 0x2008]
push eax
push 0x2000
lea eax, [ebp - 0x2004]
push eax
push dword [esi + 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x404722
push 0
lea eax, [ebp - 0x2008]
push eax
push dword [ebp - 0x2008]
lea ecx, [ebp - 0x2004]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x404722
cmp dword [ebp - 0x2008], 0
ja 0x4046a0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405c41
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov eax, 0x80004005
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405c41
mov esp, ebp
pop ebp
ret 4
Function at 0x404740
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 4], ebx
push edi
cmp dword [esi + 4], 0
je 0x40475b
cmp dword [esi + 8], 0
jne 0x404761
push ecx
call fcn.00404390
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x40484a
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4047a5
call edi
test eax, eax
jle 0x40479d
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x40484a
jmp 0x4047a8
mov dword [esi + 0x34], eax
lea ecx, [esi + 0x38]
xor edi, edi
mov edx, 0x104
sub ebx, ecx
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x4047d2
movzx eax, word [ebx + ecx]
test ax, ax
je 0x4047d2
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x4047b4
jmp 0x4047d6
test edx, edx
jne 0x4047de
sub ecx, 2
mov edi, 0x8007007a
xor eax, eax
mov word [ecx], ax
test edi, edi
js 0x404841
xor ebx, ebx
cmp dword [esi + 0x24c], eax
jbe 0x40482d
cmp ebx, dword [esi + 0x24c]
jae 0x40489f
cmp dword [esi + 4], 0
mov eax, dword [esi + 0x248]
je 0x40488b
push dword [eax + ebx*4]
mov ecx, esi
call fcn.00405050
mov edi, eax
test edi, edi
js 0x404890
push dword [esi + 0x34]
mov ecx, esi
call fcn.00404670
mov edi, eax
test edi, edi
js 0x404890
push dword [esi + 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x34], 0xffffffff
test edi, edi
jns 0x404880
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 4]
call edi
mov edi, eax
mov dword [esi + 0x240], edi
test edi, edi
jle 0x404861
movzx edi, di
or edi, 0x80070000
test ebx, ebx
je 0x404876
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x404876
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
mov eax, 0x80004005
cmovns edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, 0x80004005
inc ebx
cmp ebx, dword [esi + 0x24c]
jb 0x4047fd
jmp 0x40482d
push 0x80070057
call fcn.00401030
int3
Function at 0x4048b0
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
mov ecx, dword [ebp + 0x10]
test al, 2
push esi
push edi
mov edi, dword [ebp + 0x14]
push 0
movdqu xmmword [ebp - 0x1c], xmm0
push 0
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
push 0
push 1
cmovne eax, ecx
movq qword [ebp - 0xc], xmm0
push str.DeviceHealth_HttpUtil_
mov dword [ebp - 0x18], 3
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], 0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov esi, eax
test esi, esi
je 0x40494b
push edi
lea eax, [ebp - 0x1c]
push eax
push str.https:__dhupdateprod.blob.core.windows.net_dhupdate_dhinstlogconfig.xml
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
jne 0x404959
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2eef
jne 0x40494b
push edi
lea eax, [ebp - 0x1c]
mov dword [ebp - 8], 1
push eax
push str.https:__dhupdateprod.blob.core.windows.net_dhupdate_dhinstlogconfig.xml
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
jne 0x404959
mov dword [edi + 4], 0
mov dword [edi + 8], 0
test esi, esi
je 0x404964
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00405c41
mov esp, ebp
pop ebp
ret 0x10
Function at 0x405050
Capabilities:
Prepare http request
Receive http response

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
cmp dword [esi + 8], 0
je 0x4051d6
mov eax, dword [esi + 0xc]
test eax, eax
je 0x405086
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [esi + 0xc], 0
push dword [esi + 0x1c]
push 0
push 0
push 0
push dword [esi + 0x14]
push 0x418cbc
push dword [esi + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [esi + 0xc], eax
test eax, eax
je 0x4051d6
push 4
lea ecx, [ebp - 8]
mov dword [ebp - 8], 1
push ecx
push 0x3f
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x4051d6
test edi, edi
je 0x4050da
cmp dword [edi + 0x10], 0
mov dword [ebp - 0x10], 1
jne 0x4050e1
mov dword [ebp - 0x10], 0
test edi, edi
je 0x4050ea
mov eax, dword [edi + 0x14]
jmp 0x4050ec
xor eax, eax
push ebx
mov dword [ebp - 0x14], eax
mov ebx, eax
push 4
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
push 0x4d
push dword [esi + 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x40516b
cmp dword [ebp - 0x10], 0
je 0x405143
cmp ebx, dword [edi + 0x10]
jae 0x405121
mov eax, dword [edi + 0xc]
mov eax, dword [eax + ebx*4]
jmp 0x405123
xor eax, eax
test eax, eax
jne 0x40512e
mov ecx, 0x80070057
jmp 0x405193
push dword [edi + 8]
mov ecx, dword [esi + 4]
push eax
push dword [esi + 0xc]
call fcn.00404c10
mov ecx, eax
test ecx, ecx
js 0x405193
push 0
push 0
push 0
push 0
push 0
push 0
push dword [esi + 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x40516b
push 0
push dword [esi + 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x405186
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
test ecx, ecx
jle 0x405182
movzx ecx, cx
or ecx, 0x80070000
test ecx, ecx
jns 0x4051ac
jmp 0x405193
mov ecx, esi
call fcn.004044a0
mov ecx, eax
test ecx, ecx
jns 0x4051c1
cmp dword [ebp - 0x10], 0
je 0x4051ac
lea eax, [ebx + 1]
xor edx, edx
div dword [edi + 0x10]
mov ebx, edx
cmp ebx, dword [ebp - 0x14]
jne 0x4050f2
pop ebx
pop edi
mov eax, ecx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405c41
mov esp, ebp
pop ebp
ret 4
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405c41
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov eax, 0x80004005
pop edi
xor ecx, ebp
pop esi
call fcn.00405c41
mov esp, ebp
pop ebp
ret 4
Function at 0x4058b0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push 0
push 2
mov byte [ebp - 0x231], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov dword [ebp - 0x238], ebx
cmp ebx, 0xffffffff
je 0x40599e
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
call fcn.004067c0
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x405997
push edi
lea ecx, [ecx]
lea edi, [ebp - 0x20c]
mov eax, edi
push 0x5c
push eax
call fcn.00406453
add esp, 8
test eax, eax
je 0x40593a
lea edi, [eax + 2]
push 0x418cc8
push edi
call fcn.00405d24
add esp, 8
test eax, eax
jne 0x405984
mov edi, dword [esi + 4]
mov ebx, dword [ebp - 0x228]
mov byte [ebp - 0x231], 1
cmp edi, dword [esi + 8]
jb 0x405970
lea eax, [edi + 1]
mov ecx, esi
push eax
call fcn.00405360
test al, al
je 0x4059b4
mov eax, dword [esi]
lea eax, [eax + edi*4]
test eax, eax
je 0x40597b
mov dword [eax], ebx
inc dword [esi + 4]
mov ebx, dword [ebp - 0x238]
lea eax, [ebp - 0x230]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x405920
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x231]
xor ecx, ebp
pop esi
pop ebx
call fcn.00405c41
mov esp, ebp
pop ebp
ret
push 0x8007000e
call fcn.00401030
int3
Function at 0x40ed69
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040b02a
mov dword [ebp - 0x14], eax
cmp dword [0x41d210], esi
jne 0x40ee5c
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40ede9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40ef3c
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40ef3c
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40ef3c
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x41d210], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x41d214], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x41d218], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x41d220], eax
test eax, eax
je 0x40ee59
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x41d21c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40ee81
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40ee74
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40ee96
push 4
pop eax
jmp 0x40ef3e
cmp dword [ebp - 0x14], esi
je 0x40ee96
push dword [0x41d210]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40ee7b
mov eax, dword [0x41d21c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40eef4
cmp dword [0x41d220], edi
je 0x40eef4
push eax
call ebx
push dword [0x41d220]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40eef4
test eax, eax
je 0x40eef4
call ecx
test eax, eax
je 0x40eee9
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40eee9
test byte [ebp - 8], 1
jne 0x40eef4
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40ef24
mov eax, dword [0x41d214]
cmp eax, edi
je 0x40ef21
push eax
call ebx
test eax, eax
je 0x40ef21
call eax
mov esi, eax
test esi, esi
je 0x40ef21
mov eax, dword [0x41d218]
cmp eax, edi
je 0x40ef21
push eax
call ebx
test eax, eax
je 0x40ef21
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x41d210]
call ebx
test eax, eax
je 0x40ef3c
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40ef3e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405c41
mov esp, ebp
pop ebp
ret
Function at 0x10003120
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002e330
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x1003c080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.1000e5b9
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.1000dc4d
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.10003620
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret