joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5821c6
Capabilities:
Check for time delay via gettickcount
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6120f4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push edi
mov dword [ebp - 0x54], ecx
lea ecx, [ebp - 0x28]
call fcn.005013a0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.005013a0
mov byte [ebp - 4], 1
cmp dword [ebp + 8], 0
je 0x582214
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x28]
call fcn.004e07b0
jmp 0x582221
push 0x7cf9c0
lea ecx, [ebp - 0x28]
call fcn.00500cf0
cmp dword [ebp + 0xc], 0
je 0x582233
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.004e07b0
cmp dword [ebp + 0x10], 0x3e8
jae 0x582243
mov dword [ebp + 0x10], 0x1f40
cmp dword [ebp + 0x14], 0x32
jge 0x582250
mov dword [ebp + 0x14], 0x12c
lea edx, [ebp - 0x28]
push edx
mov ecx, 0x82c5f4
call fcn.004e07b0
lea eax, [ebp - 0x1c]
push eax
mov ecx, 0x82c5f8
call fcn.004e07b0
mov ecx, dword [ebp + 0x10]
mov dword [0x82c604], ecx
push 8
call fcn.005f9769
add esp, 4
mov dword [ebp - 0x48], eax
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0x10]
mov dword [eax], ecx
mov edx, dword [ebp - 0x20]
mov dword [edx + 4], 1
push 0
push 0
mov eax, dword [ebp - 0x20]
push eax
push 0x581ff0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
push 0x4bf
mov ecx, dword [ebp + 0x10]
push ecx
push 0
lea edx, [ebp - 0x24]
push edx
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x18]
cmp eax, dword [ebp + 0x10]
jb 0x5822f3
mov dword [ebp - 0x14], 0x102
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 1
je 0x582301
jmp 0x58233e
mov dword [ebp - 0x44], 0
mov ecx, 6
xor eax, eax
lea edi, [ebp - 0x40]
rep stosd dword es:[edi], eax
push 1
push 0
push 0
push 0
lea ecx, [ebp - 0x44]
push ecx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x58233e
lea edx, [ebp - 0x44]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
cmp dword [ebp - 0x14], 0
je 0x582351
cmp dword [ebp - 0x14], 0x102
jne 0x5822c4
cmp dword [ebp - 0x24], 0
je 0x582361
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x20]
mov dword [edx + 4], 0
mov eax, dword [ebp - 0x20]
cmp dword [eax + 4], 1
je 0x582376
jmp 0x58236b
mov ecx, dword [ebp - 0x20]
xor edx, edx
cmp dword [ecx], 0
setne dl
mov byte [ebp - 0x10], dl
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.005f9792
add esp, 4
mov dl, byte [ebp - 0x10]
mov byte [ebp - 0x50], dl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.004e0030
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004e0030
mov al, byte [ebp - 0x50]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x582a1a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 0
push 0x82c72c
push str._InetCpl.cpl__ClearMyTracksByProcess_2
push str.rundll32.exe
push 0x7cfb64
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x584be0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x584bf5
xor eax, eax
jmp 0x584c1d
mov dword [ebp - 4], 0
push 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esp, ebp
pop ebp
ret 4

Function at 0x585070
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x585083
xor al, al
jmp 0x5850b1
push 4
lea ecx, [ebp + 0xc]
push ecx
push 4
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 4]
xor ecx, ecx
cmp dword [eax + 0xc], 0
sete cl
mov al, cl
mov esp, ebp
pop ebp
ret 8
Function at 0x5850c0
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push 0x81feac
mov ecx, dword [ebp + 0x10]
call fcn.00500cf0
mov dword [ebp - 8], 0
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x5850fa
xor eax, eax
jmp 0x585222
mov dword [ebp - 0xc], 0
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0
push 0x8003
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x585123
xor eax, eax
jmp 0x585222
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x585142
xor eax, eax
jmp 0x585222
mov dword [ebp - 0x10], 4
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push 2
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x585168
xor eax, eax
jmp 0x585222
mov edx, dword [ebp - 0x10]
push edx
call fcn.005e5e47
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x585184
xor eax, eax
jmp 0x585222
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 2
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x5851f7
mov dword [ebp - 0x14], 0
jmp 0x5851b0
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x10]
jae 0x5851f7
mov word [ebp - 0x1c], 0
xor edx, edx
mov dword [ebp - 0x1a], edx
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x14]
mov cl, byte [eax]
mov byte [ebp - 0x20], cl
mov edx, dword [ebp - 0x20]
and edx, 0xff
push edx
push str._02x
lea eax, [ebp - 0x1c]
push eax
call fcn.005e7efb
add esp, 0xc
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.0057c9a0
jmp 0x5851a7
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test eax, eax
jne 0x585209
xor eax, eax
jmp 0x585222
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
jne 0x58521d
xor eax, eax
jmp 0x585222
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x585270
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x585283
xor al, al
jmp 0x5852b3
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 4]
xor eax, eax
cmp dword [edx + 0xc], 0
sete al
mov esp, ebp
pop ebp
ret 0x10
Function at 0x5852c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x5852d3
xor al, al
jmp 0x585301
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 3
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 4]
xor eax, eax
cmp dword [edx + 0xc], 0
sete al
mov esp, ebp
pop ebp
ret 0xc

Function at 0x5863ff
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push edi
cmp dword [ebp + 8], 0
jne 0x586416
xor eax, eax
jmp 0x5864fd
push 0
push 0xf
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x58642f
xor eax, eax
jmp 0x5864fd
mov dword [ebp - 0x23c], 0
mov ecx, 0x8a
xor eax, eax
lea edi, [ebp - 0x238]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x23c], 0x22c
mov dword [ebp - 8], 0
lea eax, [ebp - 0x23c]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call sub.KERNEL32.dll_Process32FirstW
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x10]
and edx, 0xff
test edx, edx
je 0x586482
mov dword [ebp - 0x10], fcn.005e8046
jmp 0x586489
mov dword [ebp - 0x10], fcn.005e87e2
cmp dword [ebp - 4], 0
je 0x5864f0
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [ebp - 0x10]
add esp, 8
test eax, eax
jne 0x5864db
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp + 0xc], 0
je 0x5864c4
push 0xffffffffffffffff
lea eax, [ebp - 0x234]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.0057ce50
cmp dword [ebp + 0x14], 0
je 0x5864db
push 0xffffffffffffffff
lea ecx, [ebp - 0x23c]
push ecx
mov ecx, dword [ebp + 0x14]
call fcn.005880a0
lea edx, [ebp - 0x23c]
push edx
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.dll_Process32NextW
mov dword [ebp - 4], eax
jmp 0x586489
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x587dcc
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6127bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov dword [ebp - 0x18], 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x587e12
mov ecx, dword [ebp + 8]
call fcn.005013a0
mov ecx, dword [ebp - 0x18]
or ecx, 1
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp + 8]
jmp 0x587e89
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
add eax, 1
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.004e06e0
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x10]
call fcn.004e1270
push eax
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov dword [ebp - 0x14], eax
push 0
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.004e0820
lea ecx, [ebp - 0x10]
call fcn.004e0940
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004e0750
mov edx, dword [ebp - 0x18]
or edx, 1
mov dword [ebp - 0x18], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004e0030
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x599d70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
lea eax, [ebp - 0xc]
push eax
push 2
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x599dd0
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 3
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x599dc6
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x599de0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
cmp dword [ebp + 8], 0
jne 0x599df6
xor eax, eax
jmp 0x599ead
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 4], 0
je 0x599e1e
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.005f9792
add esp, 4
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 4], 0
mov ecx, dword [ebp - 0x1c]
call fcn.00599ec0
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jge 0x599e33
xor eax, eax
jmp 0x599ead
cmp dword [ebp + 0xc], 0
jle 0x599e41
mov edx, dword [ebp + 0xc]
cmp edx, dword [ebp - 0xc]
jle 0x599e47
mov eax, dword [ebp - 0xc]
mov dword [ebp + 0xc], eax
mov dword [ebp - 8], 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.005f9769
add esp, 4
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
mov dword [ebp - 4], edx
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x599e97
mov edx, dword [ebp - 4]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.005f9792
add esp, 4
xor eax, eax
jmp 0x599ead
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov dword [ecx + 4], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov eax, 1
mov esp, ebp
pop ebp
ret 8

Function at 0x599ec0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jne 0x599ed6
or eax, 0xffffffff
jmp 0x599f00
mov dword [ebp - 8], 0
push 0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x599efd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x59d8b8
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], 0
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0
mov eax, dword [ebp + 8]
push eax
call fcn.0059db9c
add esp, 4
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0
je 0x59d957
mov dword [ebp - 4], 0
jmp 0x59d901
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 8]
jae 0x59d957
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 4]
mov edx, dword [eax + ecx*4]
push edx
push 0
push 0x5a
call fcn.0059d610
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x59d955
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.0059d95b
add esp, 0xc
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x59d8f8
mov esp, ebp
pop ebp
ret
Function at 0x59db9c
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [ebp + 8], 0
jne 0x59dbad
jmp 0x59dcdb
push 0
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x59dcdb
mov dword [ebp - 0x20], 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x59dcd1
cmp dword [ebp - 0x20], 0x10
jb 0x59dcb5
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x59dcb5
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x59dcb5
mov edx, dword [ebp + 8]
cmp dword [edx], 0
jne 0x59dc45
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0x80
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
shl edx, 2
push edx
push 0
mov eax, dword [0x82c908]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp + 8]
cmp dword [edx], 0
jne 0x59dc43
jmp 0x59dcd1
jmp 0x59dc95
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 8]
cmp edx, dword [ecx + 4]
jb 0x59dc95
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
shl ecx, 1
shl ecx, 2
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
push 0
mov ecx, dword [0x82c908]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x59dc7f
jmp 0x59dcd1
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
shl eax, 1
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x24]
mov dword [edx], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x18]
mov dword [ecx + edx*4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 8], edx
mov dword [ebp - 0x20], 0x1c
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x59dbdf
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret

Function at 0x59dcdf
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x59dd5c
mov dword [ebp - 8], 0
jmp 0x59dd06
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
cmp eax, dword [edx + 8]
jae 0x59dd48
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [ebp - 8]
mov ecx, dword [edx + eax*4]
push ecx
push 0
push 0x5a
call fcn.0059d610
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x59dd46
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x59dcfd
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
push 0
mov eax, dword [0x82c908]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esp, ebp
pop ebp
ret
Function at 0x59dd60
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
imul eax, eax, 0x2c
mov ecx, dword [0x857610]
add ecx, eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 5
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0xc]
mov dl, byte [ecx + 0x14]
and dl, 1
and edx, 0xff
test edx, edx
je 0x59ddb2
mov eax, dword [ebp - 8]
sub eax, 5
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
lea edx, [ebp - 0x14]
push edx
push 0x40
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x59ddd4
mov eax, 0xa
jmp 0x59ded1
cmp dword [ebp + 0xc], 0
je 0x59de33
mov edx, dword [ebp - 8]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
mov byte [eax], 0xe9
mov ecx, dword [ebp - 8]
add ecx, 5
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
sub eax, ecx
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 1], eax
mov edx, dword [ebp - 0xc]
mov al, byte [edx + 0x14]
and al, 1
and eax, 0xff
test eax, eax
je 0x59de31
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov byte [eax], 0xeb
mov dword [ebp - 0x10], 7
xor ecx, ecx
sub ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x1c]
mov al, byte [ebp - 0x10]
mov byte [edx + 1], al
jmp 0x59de72
mov ecx, dword [ebp - 0xc]
mov dl, byte [ecx + 0x14]
and dl, 1
and edx, 0xff
test edx, edx
je 0x59de5d
push 7
mov eax, dword [ebp - 0xc]
add eax, 0xc
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.005e77f0
add esp, 0xc
jmp 0x59de72
push 5
mov edx, dword [ebp - 0xc]
add edx, 0xc
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.005e77f0
add esp, 0xc
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov cl, byte [ebp + 0xc]
and cl, 1
shl cl, 1
mov edx, dword [ebp - 0xc]
mov al, byte [edx + 0x14]
and al, 0xfd
or al, cl
mov ecx, dword [ebp - 0xc]
mov byte [ecx + 0x14], al
mov dl, byte [ebp + 0xc]
and dl, 1
shl dl, 2
mov eax, dword [ebp - 0xc]
mov cl, byte [eax + 0x14]
and cl, 0xfb
or cl, dl
mov edx, dword [ebp - 0xc]
mov byte [edx + 0x14], cl
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x5a1941
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x857604]
mov dword [ebp - 4], eax
jmp 0x5a1959
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x5a196f
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x5a196d
mov eax, dword [ebp - 4]
jmp 0x5a19ea
jmp 0x5a1951
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x5a19e7
mov ecx, dword [ebp - 4]
add ecx, 0x20
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
mov dword [edx + 4], 0
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
mov dword [ecx], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 8]
add eax, 0x20
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 4]
cmp ecx, 0xfe0
jbe 0x5a19a9
mov edx, dword [ebp - 4]
mov eax, dword [0x857604]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x857604], ecx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x5a1f75
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cl, byte [eax]
test ecx, ecx
je 0x5a1fa5
mov edx, dword [ebp + 8]
xor eax, eax
mov al, byte [edx]
cmp eax, 0x90
je 0x5a1fa5
mov ecx, dword [ebp + 8]
xor edx, edx
mov dl, byte [ecx]
cmp edx, 0xcc
je 0x5a1fa5
xor eax, eax
jmp 0x5a1fdf
mov dword [ebp - 4], 1
jmp 0x5a1fb7
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x5a1fda
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
xor eax, eax
mov al, byte [edx]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dl, byte [ecx]
cmp eax, edx
je 0x5a1fd8
xor eax, eax
jmp 0x5a1fdf
jmp 0x5a1fae
mov eax, 1
mov esp, ebp
pop ebp
ret