joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415d40
Capabilities:
Create service
Persist via windows service
Start service

Disassembly:
sub esp, 0x210
mov eax, dword [0x436090]
mov edx, dword [esp + 0x220]
push ebp
mov dword [esp + 0x210], eax
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0xc]
push ecx
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
ja 0x415d8e
call ebp
test eax, eax
je 0x415ea4
call ebp
test eax, eax
jne 0x415e90
push ebx
push esi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
jne 0x415dbb
call ebp
test eax, eax
je 0x415ebd
call ebp
mov esi, eax
test esi, esi
jne 0x415e81
push edi
mov ecx, dword [esp + 0x228]
mov edx, dword [esp + 0x224]
push 0
push 0
push str.Tcpip
push 0
push 0
lea eax, [esp + 0x28]
push eax
push 1
push 2
push 0x20
push 0xf01ff
push ecx
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov edi, eax
test edi, edi
jne 0x415e08
call ebp
test eax, eax
je 0x415ec4
call ebp
mov esi, eax
test esi, esi
jne 0x415e75
call fcn.00415380
mov eax, dword [esp + 0x22c]
test eax, eax
je 0x415e2b
push eax
mov eax, dword [esp + 0x228]
push eax
mov eax, ebx
call fcn.00415720
add esp, 8
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x415e4c
call ebp
test eax, eax
je 0x415ecb
call ebp
mov esi, eax
test esi, esi
jne 0x415e75
mov ecx, dword [esp + 0x230]
mov edx, dword [esp + 0x228]
mov eax, dword [esp + 0x224]
push ecx
push edx
push eax
push str.installed_service___s____s__at___s__n
push 0
call fcn.00415870
add esp, 0x14
xor esi, esi
test edi, edi
je 0x415e80
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
test ebx, ebx
je 0x415e8c
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop esi
pop ebx
pop ebp
mov ecx, dword [esp + 0x20c]
call fcn.0042373b
add esp, 0x210
ret
mov ecx, dword [esp + 0x210]
mov eax, 0xffffe5d0
pop ebp
call fcn.0042373b
add esp, 0x210
ret
mov esi, 0xffffe59d
jmp 0x415e81
mov esi, 0xffffe5b6
jmp 0x415e75
mov esi, 0xffffe5bf
jmp 0x415e75
Function at 0x415ee0
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
test ebp, ebp
jne 0x415f14
call ebx
test eax, eax
je 0x415fbf
call ebx
test eax, eax
jne 0x415fb9
mov eax, dword [esp + 0x28]
push esi
push edi
push 0x10024
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x415f3f
call ebx
test eax, eax
je 0x415fca
call ebx
mov esi, eax
test esi, esi
jne 0x415fa1
lea ecx, [esp + 0x10]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x415f5d
call ebx
test eax, eax
je 0x415fd1
call ebx
mov esi, eax
test esi, esi
jne 0x415fa1
cmp dword [esp + 0x14], 1
je 0x415f72
lea edx, [esp + 0x10]
push edx
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x415f8b
call ebx
test eax, eax
je 0x415fd8
call ebx
mov esi, eax
test esi, esi
jne 0x415fa1
mov eax, dword [esp + 0x30]
push eax
push str.Removed_service___s__n
push 0
call fcn.00415870
add esp, 0xc
xor esi, esi
test edi, edi
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x415fae
push edi
call ebx
test ebp, ebp
je 0x415fb5
push ebp
call ebx
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
pop ebp
mov eax, 0xffffe59d
pop ebx
add esp, 0x1c
ret
mov esi, 0xffffe5b9
jmp 0x415fa1
mov esi, 0xffffe59e
jmp 0x415fa1
mov esi, 0xffffe5ba
jmp 0x415fa1
Function at 0x416520
Capabilities:
Resume thread

Disassembly:
push esi
push 0x30
call fcn.00423687
mov esi, eax
add esp, 4
test esi, esi
jne 0x416538
mov eax, 0xfffefffd
pop esi
ret
mov edx, dword [esp + 0x10]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebp
push edi
push 0
xor eax, eax
push 0
mov ecx, 0xc
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x20]
mov dword [esi], eax
mov eax, dword [esp + 0x1c]
push 0
push 0
mov dword [esi + 0x28], eax
mov dword [esi + 0x14], ecx
mov dword [esi + 0x18], edx
call ebx
test eax, eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xc], eax
jne 0x416590
call ebp
test eax, eax
je 0x416684
call ebp
mov edi, eax
test edi, edi
jne 0x4166a5
push 0
push 0
push 0
push 0
call ebx
test eax, eax
mov dword [esi + 0x10], eax
jne 0x4165b7
call ebp
test eax, eax
je 0x416684
call ebp
mov edi, eax
test edi, edi
jne 0x4166a5
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x28]
push 0x29
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
je 0x4165e1
call ebp
test eax, eax
je 0x4166b3
call ebp
mov edi, eax
test edi, edi
jne 0x4166a5
mov edx, dword [esi + 0xc]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], edx
mov edi, dword [esi + 0x1c]
mov ecx, dword [esi + 0x10]
inc edi
mov dword [esi + 0x1c], edi
mov eax, edi
mov dword [esi + eax*4 + 0x20], ecx
mov edx, dword [esi + 0x1c]
inc edx
push 0x44baf0
mov dword [esi + 0x1c], edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x44baec]
test eax, eax
jne 0x416628
push 0x2c
push 0x44bae4
call fcn.004065a0
add esp, 8
push esi
push 0x44bae4
call fcn.004065c0
add esp, 8
push 0x44baf0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea edx, [esi + 8]
push edx
push 4
push esi
push 0x4163f0
push 0
push 0
call fcn.004241df
add esp, 0x18
test eax, eax
mov dword [esi + 4], eax
jne 0x41666e
call ebp
test eax, eax
je 0x416684
call ebp
mov edi, eax
test edi, edi
jne 0x4166a5
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x416697
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
ret
mov eax, esi
mov edi, 0xffffe5d4
call fcn.00416020
mov eax, edi
pop edi
pop ebp
pop ebx
pop esi
ret
call ebp
test eax, eax
je 0x4166b3
call ebp
mov edi, eax
test edi, edi
je 0x4166ac
mov eax, esi
call fcn.00416020
mov eax, edi
pop edi
pop ebp
pop ebx
pop esi
ret
mov eax, esi
mov edi, 0xffffe5b7
call fcn.00416020
mov eax, edi
pop edi
pop ebp
pop ebx
pop esi
ret
Function at 0x4241df
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x4241fc
call fcn.00427b84
mov dword [eax], 0x16
xor eax, eax
jmp 0x424266
push esi
push 0x8c
push 1
call fcn.00424006
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x424251
push esi
call fcn.0042726d
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x42422f
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x42414a
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x424265
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.00423699
test ebx, ebx
pop ecx
je 0x424263
push ebx
call fcn.00427b96
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x425b06
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x436090]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x425b37
xor eax, eax
jmp 0x425cc0
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x453f80]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x425b73
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.004296ab
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x425c4e
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x425c8c
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x425bd7
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x425bc8
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x425ba8
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x425c17
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x425c20
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x425b99
jmp 0x425c22
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x425cbb
cmp dword [ebp - 0x6c], edi
je 0x425c8c
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x425c81
call fcn.00427b84
mov dword [eax], 9
call fcn.00427b8d
mov dword [eax], esi
jmp 0x425cb6
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x425c76
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x425c22
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x425c22
push dword [ebp - 0x6c]
call fcn.00427b96
pop ecx
jmp 0x425cb6
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x425ca4
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x425ca4
xor eax, eax
jmp 0x425cbe
call fcn.00427b84
mov dword [eax], 0x1c
call fcn.00427b8d
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x425cbe
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0042373b
add ebp, 0x3a0
leave
ret
Function at 0x426ad2
Capabilities:
Terminate process

Disassembly:
push 8
push 0x433e58
call fcn.004257e8
push 8
call fcn.00424c29
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x44c0f0], esi
jne 0x426b06
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x44c0ec], esi
mov al, byte [ebp + 0x10]
mov byte [0x44c0e8], al
cmp dword [ebp + 0xc], edi
jne 0x426b50
cmp dword [0x453f74], edi
je 0x426b40
mov eax, dword [0x453f70]
sub eax, 4
mov dword [0x453f70], eax
cmp eax, dword [0x453f74]
jb 0x426b40
mov eax, dword [eax]
cmp eax, edi
je 0x426b21
call eax
jmp 0x426b21
push 0x436030
mov eax, 0x436028
call fcn.00426a50
pop ecx
push 0x43603c
mov eax, 0x436034
call fcn.00426a50
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x426b81
cmp dword [ebp + 0x10], edi
jne 0x426b8f
mov dword [0x44c0f0], esi
push dword [ebp + 8]
call fcn.00426a0e
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x426b8e
push 8
call fcn.00424b74
pop ecx
ret
call fcn.00425823
ret

Function at 0x428713
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x436090]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x436830]
je 0x428748
inc eax
cmp eax, 0x13
jb 0x428739
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x436830]
jne 0x42886e
mov eax, dword [0x44bf40]
cmp eax, 1
je 0x428846
cmp eax, edx
jne 0x428778
cmp dword [0x436334], 1
je 0x428846
cmp ecx, 0xfc
je 0x42886e
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4287ae
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00429520
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00429620
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4287e2
mov eax, edi
push eax
call fcn.00429620
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x433bd4
push edi
call fcn.00423750
add esp, 0x10
push edi
call fcn.00429620
push dword [esi + 0x436834]
mov ebx, eax
call fcn.00429620
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00423d10
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00429520
push edi
push ebx
call fcn.00429530
push 0x433bd0
push ebx
call fcn.00429530
push dword [esi + 0x436834]
push ebx
call fcn.00429530
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00429426
add esp, 0x2c
jmp 0x42886e
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x436834]
push dword [esi]
call fcn.00429620
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0042373b
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x428b8c
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x44c33c]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp eax, ebx
jne 0x428bd5
call ebp
mov esi, eax
cmp esi, ebx
je 0x428bbb
mov dword [0x44c33c], 1
jmp 0x428bda
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x428bd0
push 2
pop eax
mov dword [0x44c33c], eax
jmp 0x428bd5
mov eax, dword [0x44c33c]
cmp eax, 1
jne 0x428c32
cmp esi, ebx
jne 0x428bed
call ebp
mov esi, eax
cmp esi, ebx
jne 0x428bed
xor eax, eax
jmp 0x428cd9
cmp word [esi], bx
mov eax, esi
je 0x428c02
inc eax
inc eax
cmp word [eax], bx
jne 0x428bf4
inc eax
inc eax
cmp word [eax], bx
jne 0x428bf4
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.00423687
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x428c25
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x428cd9
push ebp
push esi
push edi
call fcn.00427560
add esp, 0xc
jmp 0x428c17
cmp eax, 2
je 0x428c3b
cmp eax, ebx
jne 0x428be6
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x428be6
cmp byte [ebp], bl
mov esi, ebp
je 0x428c71
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x428be6
push esi
add edi, eax
call fcn.00429620
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x428c4e
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.00423687
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x428cea
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x428ccb
mov ecx, dword [esp + 0x14]
mov eax, esi
sub eax, dword [esp + 0x10]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x428ce0
push edi
call fcn.00429620
push esi
lea edi, [edi + eax + 1]
call fcn.0042482c
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x428c91
push ebp
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push dword [esp + 0x10]
call fcn.00423699
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x428be6
Function at 0x428cf6
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x44c340]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x428d36
call esi
test eax, eax
je 0x428d1b
mov dword [0x44c340], 1
jmp 0x428d3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x428d32
mov dword [0x44c340], 2
jmp 0x428d44
xor eax, eax
jmp 0x428d92
cmp eax, 1
jne 0x428d3f
call esi
jmp 0x428d92
cmp eax, 2
jne 0x428d32
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebp
push ebp
push 0xffffffffffffffff
mov ebx, eax
push ebx
push 1
push ebp
call edi
mov esi, eax
cmp esi, ebp
je 0x428d8a
lea eax, [esi + esi]
push eax
call fcn.00423687
mov ebp, eax
test ebp, ebp
pop ecx
je 0x428d8a
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x428d8e
push ebp
call fcn.00423699
pop ecx
xor eax, eax
jmp 0x428d90
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x4291fd
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x42922b
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x429232
cmp ebx, dword [eax + 4]
jae 0x429232
xor eax, eax
jmp 0x429422
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x429243
xor eax, eax
inc eax
jmp 0x429421
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x429259
cmp ecx, edx
jae 0x42939e
cmp dword [eax + 4], 0
je 0x429262
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x42924a
cmp dword [ebp + 8], 0
je 0x429284
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x42939e
cmp eax, esi
jae 0x42939e
mov eax, dword [0x44c348]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4292a9
cmp dword [esi*4 + 0x44c350], edi
je 0x4293a2
inc esi
cmp esi, eax
jl 0x429297
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x42941e
cmp dword [ebp - 8], 0x1000000
jne 0x42941e
test byte [ebp - 0xc], 0xcc
je 0x429327
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x42941e
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x42941e
cmp word [eax + 0x18], 0x10b
jne 0x42941e
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x42941e
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x429327
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x429327
test byte [ecx + 0x27], 0x80
jne 0x42939e
push 1
push 0x44c390
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x42923b
mov ecx, dword [0x44c348]
test ecx, ecx
mov edx, ecx
jle 0x42935b
lea eax, [ecx*4 + 0x44c34c]
cmp dword [eax], edi
je 0x42935b
dec edx
sub eax, 4
test edx, edx
jg 0x42934f
test edx, edx
jne 0x42938c
push 0xf
pop ebx
cmp ecx, ebx
jg 0x429368
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x429380
lea eax, [edx*4 + 0x44c350]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x42936e
cmp ecx, 0x10
jge 0x42938c
inc ecx
mov dword [0x44c348], ecx
push 0
push 0x44c390
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x42923b
xor eax, eax
jmp 0x429421
test esi, esi
jle 0x42923b
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x44c390
call ebx
test eax, eax
jne 0x42923b
cmp dword [esi*4 + 0x44c350], edi
je 0x4293f8
mov eax, dword [0x44c348]
lea esi, [eax - 1]
test esi, esi
jl 0x4293e6
cmp dword [esi*4 + 0x44c350], edi
je 0x4293e2
dec esi
jns 0x4293d6
test esi, esi
jge 0x4293f6
cmp eax, 0x10
jge 0x4293f1
inc eax
mov dword [0x44c348], eax
lea esi, [eax - 1]
jmp 0x4293f8
je 0x429410
xor ecx, ecx
test esi, esi
jl 0x429410
lea eax, [ecx*4 + 0x44c350]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4293fe
push 0
push 0x44c390
call ebx
jmp 0x42923b
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x429426
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x44c394], ebx
push esi
push edi
jne 0x4294a6
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4294e1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x44c394], eax
je 0x4294e1
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x44c398], eax
call esi
cmp dword [0x44c0b0], 2
mov dword [0x44c39c], eax
jne 0x4294a6
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x44c3a4], eax
je 0x4294a6
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x44c3a0], eax
mov eax, dword [0x44c3a0]
test eax, eax
je 0x4294eb
call eax
test eax, eax
je 0x4294d2
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x44c3a4]
test eax, eax
je 0x4294d2
test byte [ebp - 8], 1
jne 0x4294eb
cmp dword [0x44c0bc], 4
jb 0x4294e5
or byte [ebp + 0x12], 0x20
jmp 0x42950a
xor eax, eax
jmp 0x42951a
or byte [ebp + 0x12], 4
jmp 0x42950a
mov eax, dword [0x44c398]
test eax, eax
je 0x42950a
call eax
mov ebx, eax
test ebx, ebx
je 0x42950a
mov eax, dword [0x44c39c]
test eax, eax
je 0x42950a
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x44c394]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x429da0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00423d10
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x429e3b
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x44c0b0]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x429e3b
cmp eax, 1
je 0x429e5c
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x429e3b
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x429e08
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x429e37
xor eax, eax
inc eax
jmp 0x429e7b
cmp edi, eax
jae 0x429e3f
xor eax, eax
jmp 0x429e7b
cmp eax, esi
jae 0x429e46
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x44c0b0]
jmp 0x429e5f
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret