joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4901b9
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push 0xb
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
jne 0x4901d9
mov byte [ebp - 0x10], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x4901ea
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
movsx eax, byte [edx]
test eax, eax
je 0x490207
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
cmp edx, 0x2d
jne 0x490205
mov eax, dword [ebp - 4]
mov byte [eax], 0x2f
jmp 0x4901e1
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x30], 0
je 0x490226
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x30]
push ecx
call dword [0x5bebd0]
add esp, 8
jmp 0x490259
cmp dword [0x5efc34], 0
je 0x49023a
mov edx, dword [0x5efc34]
mov dword [ebp - 0x18], edx
jmp 0x490242
call fcn.00506e50
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [0x5bf060]
add esp, 8
mov edx, dword [ebp + 8]
mov dword [edx + 0x30], eax
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0048ff25
add esp, 8
test eax, eax
jne 0x490271
mov byte [ebp - 0x10], 0
mov edx, dword [ebp + 8]
cmp dword [edx + 0x10], 0
je 0x49029d
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0048fa1f
add esp, 8
push eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
push eax
call dword [0x5bef7c]
add esp, 8
jmp 0x4902dd
cmp dword [0x5efc38], 0
je 0x4902b1
mov ecx, dword [0x5efc38]
mov dword [ebp - 0x1c], ecx
jmp 0x4902b9
call fcn.00505900
mov dword [ebp - 0x1c], eax
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0048fa1f
add esp, 8
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [0x5bf8a0]
add esp, 8
mov edx, dword [ebp + 8]
mov dword [edx + 0x10], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x2c], 0
je 0x4902f6
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x2c]
push edx
call dword [0x5be714]
add esp, 4
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x48]
push ecx
call dword [0x5be844]
add esp, 4
push eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
push eax
call dword [0x5bf1bc]
add esp, 8
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x44], 0
je 0x490336
push 0x5b4f00
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
jmp 0x490350
mov ecx, dword [ebp - 0x14]
push ecx
call dword [0x5be844]
add esp, 4
push eax
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x34], 1
mov edx, dword [ebp - 0x14]
push edx
call dword [0x5bf2bc]
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x49036b
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5efa74]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00520040
add esp, 8
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 8], 0
je 0x490430
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
push ecx
call dword [0x5bf7bc]
add esp, 4
test eax, eax
je 0x490430
mov edx, dword [ebp - 4]
cmp dword [edx], 0
je 0x490430
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 2
jne 0x490430
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x44], 0
jne 0x490430
push 0xb
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
jne 0x4903df
mov byte [ebp - 0x10], 0
mov edx, dword [ebp - 4]
cmp dword [edx + 0x30], 0
je 0x4903fe
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x30]
push edx
call dword [0x5bebd0]
add esp, 8
jmp 0x490430
cmp dword [0x5efc34], 0
je 0x490411
mov eax, dword [0x5efc34]
mov dword [ebp - 0x18], eax
jmp 0x490419
call fcn.00506e50
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [0x5bf060]
add esp, 8
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x30], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x30], 0
je 0x4904ec
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x30]
push ecx
call dword [0x5be844]
add esp, 4
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.0048ff25
add esp, 8
test eax, eax
je 0x4904ec
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x490494
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.0048fa1f
add esp, 8
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
push edx
call dword [0x5bef7c]
add esp, 8
jmp 0x4904d3
cmp dword [0x5efc38], 0
je 0x4904a7
mov eax, dword [0x5efc38]
mov dword [ebp - 0x1c], eax
jmp 0x4904af
call fcn.00505900
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.0048fa1f
add esp, 8
push eax
mov eax, dword [ebp - 0x1c]
push eax
call dword [0x5bf8a0]
add esp, 8
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x2c], 0
je 0x4904ec
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x2c]
push ecx
call dword [0x5be714]
add esp, 4
mov edx, dword [ebp - 4]
cmp dword [edx + 0x10], 0
jne 0x490523
cmp dword [0x5efc38], 0
je 0x490508
mov eax, dword [0x5efc38]
mov dword [ebp - 0x20], eax
jmp 0x490510
call fcn.00505900
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [0x5bf040]
add esp, 4
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x49d1d5
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [0x5efb14], 0
je 0x49d1ee
mov eax, dword [0x5efb14]
mov dword [ebp - 0x10], eax
jmp 0x49d1f6
call fcn.0044e5e8
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [0x5be5f8]
add esp, 4
mov dword [ebp - 0xc], eax
push 0
push 0
push 0x147
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x18], 0
je 0x49d23d
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
push ecx
call dword [0x5bf0e4]
add esp, 8
jmp 0x49d270
cmp dword [0x5efb34], 0
je 0x49d251
mov edx, dword [0x5efb34]
mov dword [ebp - 0x14], edx
jmp 0x49d259
call fcn.0051e9f0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [0x5bf078]
add esp, 8
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], eax
cmp dword [ebp - 4], 0
jl 0x49d291
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 0x148
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x49d2fa
push 0xfffffffffffffff0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.USER32.dll_GetWindowLongA]
and eax, 3
cmp eax, 3
jne 0x49d2af
mov eax, dword [ebp - 0xc]
mov byte [eax], 0
jmp 0x49d2fa
cmp dword [0x5efb14], 0
je 0x49d2c3
mov ecx, dword [0x5efb14]
mov dword [ebp - 0x18], ecx
jmp 0x49d2cb
call fcn.0044e5e8
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [0x5bf224]
add esp, 4
push eax
push 0xd
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jge 0x49d2fa
mov eax, dword [ebp - 0xc]
mov byte [eax], 0
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x1c], 0
je 0x49d319
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
push ecx
call dword [0x5bebd0]
add esp, 8
jmp 0x49d34c
cmp dword [0x5efc34], 0
je 0x49d32d
mov edx, dword [0x5efc34]
mov dword [ebp - 0x1c], edx
jmp 0x49d335
call fcn.00506e50
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [0x5bf060]
add esp, 8
mov edx, dword [ebp + 8]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x2c], 0
je 0x49d365
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x2c]
push edx
call dword [0x5be714]
add esp, 4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4b1f8c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x5ef9f8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00520040
add esp, 8
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4b1ff1
push 0xfffffffffffffff0
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongA]
and eax, 0x40000000
test eax, eax
je 0x4b1fdf
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.USER32.dll_GetParent]
mov dword [ebp - 0x24], eax
jmp 0x4b1fbb
cmp dword [ebp - 0x24], 0
je 0x4b1ff1
push 0
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [ebp - 4]
cmp dword [ecx + 4], 0
je 0x4b202b
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [0x5be844]
add esp, 4
push eax
call fcn.004e2760
add esp, 0x14
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], eax
jmp 0x4b204b
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
jne 0x4b2082
cmp dword [0x5efb14], 0
je 0x4b2068
mov ecx, dword [0x5efb14]
mov dword [ebp - 0x28], ecx
jmp 0x4b2070
call fcn.0044e5e8
mov dword [ebp - 0x28], eax
push str.Dialog_not_found.
mov edx, dword [ebp - 0x28]
push edx
call dword [0x5bf1e0]
add esp, 8
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
jne 0x4b20a5
cmp dword [ebp - 0x24], 0
je 0x4b209d
push 1
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
or eax, 0xffffffff
jmp 0x4b2138
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xa4]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
mov dword [eax + 0x98], 0
cmp dword [0x5ef9b0], 0
je 0x4b20dd
mov ecx, dword [0x5ef9b0]
mov dword [ebp - 0x2c], ecx
jmp 0x4b20e5
call fcn.004cb7f0
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x98
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call dword [0x5bf91c]
add esp, 0xc
cmp dword [ebp - 0x24], 0
je 0x4b2115
push 1
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebp + 8]
push eax
call dword [0x5be45c]
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x9c]
mov esp, ebp
pop ebp
ret
Function at 0x4c8c7c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0
je 0x4c8c9c
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0
je 0x4c8c9c
mov edx, dword [ebp + 8]
cmp dword [edx + 0x70], 0
je 0x4c8ca3
xor eax, eax
jmp 0x4c8e67
push 0x24
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
jne 0x4c8cbd
mov byte [ebp - 0x24], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x38], 0
je 0x4c8cdc
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x38]
push eax
call dword [0x5bebd0]
add esp, 8
jmp 0x4c8d0f
cmp dword [0x5efc34], 0
je 0x4c8cf0
mov ecx, dword [0x5efc34]
mov dword [ebp - 0x28], ecx
jmp 0x4c8cf8
call fcn.00506e50
mov dword [ebp - 0x28], eax
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x28]
push eax
call dword [0x5bf060]
add esp, 8
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x38], eax
lea edx, [ebp - 0x24]
push edx
call fcn.004c8b00
add esp, 4
test eax, eax
jne 0x4c8d23
mov byte [ebp - 0x24], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x58], 0
jne 0x4c8d56
mov ecx, dword [ebp + 8]
fld qword [ecx + 0x68]
fcomp qword [0x5a46b0]
fnstsw ax
test ah, 0x41
je 0x4c8d56
mov edx, dword [ebp + 8]
fld qword [edx + 0x60]
fcomp qword [0x5a46a8]
fnstsw ax
test ah, 1
je 0x4c8dd7
mov eax, dword [ebp + 8]
cmp dword [eax + 0x10], 0
je 0x4c8d80
lea ecx, [ebp - 0x24]
push ecx
call fcn.004c88e3
add esp, 0xfffffffc
fstp qword [esp]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
push eax
call dword [0x5bef3c]
add esp, 0xc
jmp 0x4c8dbe
cmp dword [0x5efc50], 0
je 0x4c8d94
mov ecx, dword [0x5efc50]
mov dword [ebp - 0x2c], ecx
jmp 0x4c8d9c
call fcn.00503650
mov dword [ebp - 0x2c], eax
lea edx, [ebp - 0x24]
push edx
call fcn.004c88e3
add esp, 0xfffffffc
fstp qword [esp]
mov eax, dword [ebp - 0x2c]
push eax
call dword [0x5bf214]
add esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x58]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
push edx
call dword [0x5bebc8]
add esp, 8
jmp 0x4c8e45
mov eax, dword [ebp + 8]
cmp dword [eax + 0x10], 0
je 0x4c8e04
lea ecx, [ebp - 0x24]
push ecx
call fcn.004c88e3
add esp, 4
call fcn.00594130
push eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
push eax
call dword [0x5bef7c]
add esp, 8
jmp 0x4c8e45
cmp dword [0x5efb3c], 0
je 0x4c8e18
mov ecx, dword [0x5efb3c]
mov dword [ebp - 0x30], ecx
jmp 0x4c8e20
call fcn.0051deb0
mov dword [ebp - 0x30], eax
lea edx, [ebp - 0x24]
push edx
call fcn.004c88e3
add esp, 4
call fcn.00594130
push eax
mov eax, dword [ebp - 0x30]
push eax
call dword [0x5bf8a0]
add esp, 8
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x34], 0
je 0x4c8e5e
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x34]
push ecx
call dword [0x5be714]
add esp, 4
movsx eax, byte [ebp - 0x24]
neg eax
sbb eax, eax
inc eax
mov esp, ebp
pop ebp
ret
Function at 0x5103e0
Capabilities:
Terminate process

Disassembly:
push esi
push edi
mov edi, dword [0x5dd190]
xor esi, esi
mov eax, dword [edi + 4]
test eax, eax
je 0x51045d
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx + 0x64]
cmp dword [eax], edx
je 0x510407
mov esi, eax
mov eax, dword [eax + 8]
test eax, eax
jne 0x5103f8
jmp 0x51045d
test eax, eax
je 0x51045d
mov edx, dword [ecx + 0x84]
cmp edx, ecx
je 0x510458
mov esi, dword [ecx + 0x88]
mov dword [esi + 0x84], edx
mov edx, dword [ecx + 0x84]
mov esi, dword [ecx + 0x88]
mov dword [edx + 0x88], esi
mov edx, dword [eax + 4]
cmp edx, ecx
jne 0x5104ad
mov ecx, dword [ecx + 0x84]
mov dword [eax + 4], ecx
mov ecx, dword [0x5dd190]
cmp eax, dword [ecx + 8]
jne 0x5104ad
pop edi
pop esi
mov dword [ecx + 8], 0
ret
cmp dword [eax + 4], ecx
je 0x510476
push str.Bad_priority_queue_n
push 0x5d9410
call fcn.00595a5b
add esp, 8
push 1
call fcn.00593892
cmp eax, dword [edi + 8]
jne 0x510488
mov dword [edi + 8], 0
mov edi, dword [0x5dd190]
test esi, esi
je 0x51049e
mov edx, dword [eax + 8]
push eax
mov dword [esi + 8], edx
call fcn.00510c60
add esp, 4
pop edi
pop esi
ret
mov ecx, dword [eax + 8]
push eax
mov dword [edi + 4], ecx
call fcn.00510c60
add esp, 4
pop edi
pop esi
ret
Function at 0x523660
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x5c4a50]
cmp eax, ecx
ja 0x523670
mov eax, ecx
push esi
lea esi, [eax - 1]
shr esi, 4
inc esi
shl esi, 4
lea eax, [esi + 0x18]
push eax
call fcn.0059306c
add esp, 4
test eax, eax
jne 0x5236a4
push str._nOut_of_memory._n
push 0x5d9410
call fcn.00595a5b
add esp, 8
push 1
call fcn.00593892
mov ecx, dword [0x5dd354]
lea edx, [esi + 0x10]
mov dword [eax], ecx
mov dword [0x5dd354], eax
mov dword [eax + 4], edx
mov byte [eax + 8], 0x55
mov dword [eax + 0xc], 0
mov dword [eax + 0x14], esi
add eax, 0x18
push eax
call fcn.00523600
add esp, 4
pop esi
ret

Function at 0x523af0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x2c]
mov dword [0x5dd3e8], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x3c]
jae 0x523be3
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x1c
je 0x523b6e
cmp dword [0x5efc68], 0
je 0x523b54
mov edx, dword [0x5efc68]
mov dword [ebp - 0x5c], edx
jmp 0x523b5c
call fcn.00502320
mov dword [ebp - 0x5c], eax
push str.Weird_VirtualQuery_result
mov eax, dword [ebp - 0x5c]
push eax
call dword [0x5bf1e0]
add esp, 8
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0x18]
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x54], edx
cmp dword [ebp - 0x14], 0x1000
jne 0x523bce
cmp dword [ebp - 0x54], 0x40
je 0x523b92
cmp dword [ebp - 0x54], 4
jne 0x523bce
mov eax, dword [ebp - 0x20]
push eax
call fcn.00523a70
add esp, 4
test eax, eax
jne 0x523bce
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x50]
jne 0x523bb2
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x50], edx
jmp 0x523bce
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x58]
push ecx
call fcn.00523c00
add esp, 8
mov edx, dword [ebp - 4]
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x4c]
jbe 0x523bd8
jmp 0x523be3
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 4], edx
jmp 0x523b1b
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x58]
push ecx
call fcn.00523c00
add esp, 8
mov esp, ebp
pop ebp
ret
Function at 0x5292d0
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [esp + 4]
mov edx, dword [0x5dd418]
push ebx
mov ebx, dword [0x5dd41c]
lea eax, [esp + 0xc]
push esi
push eax
push ecx
push edx
push ebx
call fcn.00529390
push 0x5dd418
push 0
mov esi, eax
call fcn.00529250
mov dword [0x5dd41c], eax
mov eax, dword [0x5dd554]
add esp, 0x18
mov ecx, dword [eax + 0xf8]
test ecx, ecx
je 0x52934c
push edi
mov edi, str.__during_expansion_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esi + ebx]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.__during_expansion_
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
mov esi, ecx
mov byte [esi + ebx], 0xa
inc esi
push esi
push ebx
mov byte [esi + ebx], 0
mov eax, dword [0x5fbf00]
test eax, eax
je 0x529370
call dword [0x5fbe48]
add esp, 8
push 0
call fcn.00593892
push 0x5c5584
push 0x1a
call fcn.0052ab90
add esp, 0x10
pop esi
pop ebx
ret

Function at 0x52ab10
Capabilities:
Terminate process

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
cmp edx, 1
jne 0x52ab28
mov eax, dword [esi]
test al, 1
je 0x52ab28
sar eax, 1
jmp 0x52ab2a
xor eax, eax
mov ecx, dword [0x5dd554]
mov ecx, dword [ecx + 0x38]
mov ecx, dword [ecx + 0x24]
test ecx, ecx
je 0x52ab65
test edx, edx
je 0x52ab46
mov edx, dword [esi]
mov dword [esp + 8], edx
jmp 0x52ab4e
add eax, eax
or al, 1
mov dword [esp + 8], eax
lea edx, [esp + 8]
push edx
push 1
push ecx
call fcn.00524ef0
add esp, 0xc
mov eax, 0x5fbf20
pop esi
ret
mov ecx, dword [0x5fbe40]
push eax
test ecx, ecx
je 0x52ab7c
call ecx
add esp, 4
mov eax, 0x5fbf20
pop esi
ret
call fcn.00593892
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x536be0
Capabilities:
Suspend thread

Disassembly:
push esi
mov esi, dword [0x5fbde4]
test esi, esi
je 0x536c09
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SuspendThread]
mov eax, dword [esi]
push eax
call edi
mov eax, dword [esi + 4]
test eax, eax
je 0x536c01
push eax
call edi
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x536bf2
pop edi
pop esi
ret

Function at 0x536c10
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, dword [0x5fbde4]
test esi, esi
je 0x536c39
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esi + 4]
test eax, eax
je 0x536c2c
push eax
call edi
mov eax, dword [esi]
push eax
call edi
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x536c22
pop edi
pop esi
ret

Function at 0x538350
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x98
push ebx
xor ebx, ebx
push ebp
cmp eax, ebx
push esi
jne 0x538387
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0xa8]
push 1
push eax
push ecx
call fcn.005381a0
add esp, 0xc
pop esi
pop ebp
pop ebx
add esp, 0x98
ret
push edi
push 0x81c
call fcn.00535b60
mov ebp, dword [esp + 0xb0]
mov edi, dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
add esp, 4
mov esi, eax
push ebx
push 0x1f4
push ebx
push ebx
mov dword [esi], ebp
mov dword [esi + 0x44], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x48], ebx
call edi
push ebx
push 0x1f4
push ebx
push ebx
mov dword [esi + 0xc], eax
call edi
mov edx, dword [esi]
mov dword [esi + 8], eax
mov eax, dword [edx + 0x10]
push eax
call fcn.005970b2
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
push ebx
push 0x1f4
push ebx
push ebx
mov dword [esi + 0x10], eax
call edi
lea ecx, [esi + 0x28]
mov dword [esi + 0x14], eax
push ecx
mov dword [esi + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [0x5dd49c]
pop edi
cmp eax, ebx
jne 0x53842c
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 0x94
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x20]
sub eax, 2
neg eax
sbb eax, eax
and eax, 2
dec eax
mov dword [0x5dd49c], eax
cmp dword [ebp + 0x10], ebx
jne 0x53844a
push 0x5b3130
push ebx
call fcn.00596d8c
add esp, 4
push eax
call fcn.00596c99
add esp, 8
mov dword [esi], eax
lea ecx, [esp + 0xc]
push ecx
push ebx
push esi
push 0x538720
push 0x1388
push ebx
call fcn.00596b60
push eax
mov dword [esi + 4], eax
call fcn.00536b60
mov dword [esi + 0x20], eax
mov eax, dword [esi + 4]
add esp, 0x1c
cmp eax, ebx
jne 0x538492
mov edx, dword [esp + 0xac]
push edx
push ebp
call fcn.00538310
add esp, 8
pop esi
pop ebp
pop ebx
add esp, 0x98
ret
mov eax, dword [0x5dd46c]
push 1
push 0x5386c0
push 0x538610
push fcn.005384e0
push ebx
push 0x538520
push esi
push eax
call fcn.00536c50
mov ecx, dword [esp + 0xcc]
mov esi, eax
push ecx
call fcn.005453d0
add esp, 0x24
mov dword [esi + 0x28], eax
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret