joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47a280
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x4f7710
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, dword [esp + 0x1c]
mov edx, dword [edi]
mov eax, dword [edx - 0xc]
cmp eax, 0xc8
mov eax, dword [esp + 0x20]
jg 0x47a2d5
mov ecx, dword [eax]
cmp dword [ecx - 0xc], 0xc8
jg 0x47a2d5
mov eax, dword [esp + 0x24]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
pop edi
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
push 0
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.00479410
mov esi, eax
push 0
lea edx, [esp + 0x2c]
push edi
push edx
mov dword [esp + 0x2c], 0
call fcn.00479410
mov ecx, dword [esp + 0x3c]
push ecx
push esi
push eax
mov byte [esp + 0x38], 1
call fcn.00478f90
mov esi, eax
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
add esp, 0x24
mov byte [esp + 0x14], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47a332
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov dword [esp + 0x14], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47a358
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x47a370
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x4f7710
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, dword [esp + 0x1c]
mov edx, dword [edi]
mov eax, dword [edx - 0xc]
cmp eax, 0xc8
mov eax, dword [esp + 0x20]
jg 0x47a3c0
mov ecx, dword [eax]
cmp dword [ecx - 0xc], 0xc8
jg 0x47a3c0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
pop edi
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
push 0
push eax
lea eax, [esp + 0x10]
push eax
call fcn.00479410
mov esi, eax
push 0
lea ecx, [esp + 0x2c]
push edi
push ecx
mov dword [esp + 0x2c], 0
call fcn.00479410
push esi
push eax
mov byte [esp + 0x34], 1
call fcn.00479070
mov esi, eax
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
add esp, 0x20
mov byte [esp + 0x14], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47a418
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov dword [esp + 0x14], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47a43e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x47a460
Capabilities:
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4f74f8
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
mov ecx, dword [eax]
cmp dword [ecx - 0xc], 0xc8
push esi
jg 0x47a49c
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret
push 0
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00479410
push eax
mov dword [esp + 0x1c], 0
call fcn.00479140
mov esi, eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 0x10
mov dword [esp + 0xc], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47a4e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 4]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret

Function at 0x47a500
Capabilities:
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4f74f8
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
mov ecx, dword [eax]
cmp dword [ecx - 0xc], 0xc8
push esi
jg 0x47a53c
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret
push 0
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00479410
push eax
mov dword [esp + 0x1c], 0
call fcn.004791d0
mov esi, eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 0x10
mov dword [esp + 0xc], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47a582
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 4]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret

Function at 0x47a5a0
Capabilities:
Set file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4f74f8
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
mov ecx, dword [eax]
cmp dword [ecx - 0xc], 0xc8
push esi
jg 0x47a5e1
mov eax, dword [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret
push 0
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00479410
mov edx, dword [esp + 0x24]
push edx
push eax
mov dword [esp + 0x20], 0
call fcn.00479260
mov esi, eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 0x14
mov dword [esp + 0xc], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47a62c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 4]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret
Function at 0x47a6f0
Capabilities:
Check if file exists

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4f74f8
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
mov ecx, dword [eax]
cmp dword [ecx - 0xc], 0xc8
push esi
jg 0x47a72c
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret
push 0
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00479410
push eax
mov dword [esp + 0x1c], 0
call fcn.00479380
mov esi, eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 0x10
mov dword [esp + 0xc], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47a772
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 4]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret

Function at 0x47c260
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x47c28f
mov ecx, dword [esp + 8]
push edi
xor edx, edx
mov dl, byte [ecx]
xor edx, eax
and edx, 0xff
mov edi, dword [edx*4 + 0x50ae60]
shr eax, 8
xor eax, edi
inc ecx
dec esi
jne 0x47c272
pop edi
not eax
pop esi
ret
Function at 0x47d070
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x10008
call fcn.004d0660
mov eax, dword [0x52bd18]
push esi
push edi
mov edx, ecx
mov edx, dword [edx]
push edx
mov dword [esp + 0x10010], eax
xor eax, eax
push 0x10000
mov ecx, 0x4000
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 8]
lea esi, [esp + 0x10]
mov eax, esi
push eax
push 0x4fca4e
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jbe 0x47d0f3
mov al, byte [esp + 8]
test al, al
je 0x47d0f3
mov edi, dword [ebp + 0xc]
lea esp, [esp]
mov edx, dword [edi + 8]
push esi
push edx
mov ecx, edi
call fcn.004ddfbd
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x47d0e1
sub eax, edx
lea esi, [esi + eax + 1]
cmp byte [esi], 0
jne 0x47d0d0
mov ecx, dword [esp + 0x1000c]
call fcn.004ce183
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x47d110
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x24
mov eax, dword [0x52bd18]
mov ecx, dword [ecx]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x20], eax
xor eax, eax
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
push ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
push 0x20
mov dword [esp + 0x1c], eax
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0x24], eax
push 0x4fca4e
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jbe 0x47d181
lea ecx, [esp]
push ecx
call fcn.004cef45
mov edx, dword [esp + 0x34]
add esp, 4
mov dword [edx], eax
mov ecx, dword [esp + 0x20]
call fcn.004ce183
add esp, 0x24
ret 0xc
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x20]
mov dword [eax], 0
call fcn.004ce183
add esp, 0x24
ret 0xc

Function at 0x47d230
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1008
call fcn.004d0660
mov eax, dword [0x52bd18]
push esi
push edi
mov esi, ecx
mov dword [esp + 0x100c], eax
xor eax, eax
mov ecx, 0x400
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 0x10]
mov ecx, edi
call fcn.004015a0
mov esi, dword [esi]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push esi
push 0x1000
lea eax, [esp + 0x10]
push eax
push 0x4fca4e
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jbe 0x47d2a8
lea eax, [esp + 8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x47d292
sub eax, edx
push eax
lea eax, [esp + 0xc]
push eax
mov ecx, edi
call fcn.00401880
mov ecx, dword [esp + 0x100c]
call fcn.004ce183
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x47d680
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f79d7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x250
mov eax, dword [0x52bd18]
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x254], eax
mov dword [esp + 0xc], esi
call fcn.00401270
xor edi, edi
push 0x4fca4e
lea ecx, [esi + 0x30]
mov dword [esp + 0x268], edi
mov dword [esi + 0x20], 0xf
mov dword [esi + 0x24], 3
mov dword [esi + 0x28], 0x3f
mov dword [esi + 0x2c], 0x1e
call fcn.00401fd0
mov byte [esp + 0x264], 1
mov dword [esi + 0x34], edi
call fcn.004df219
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x38], eax
lea ebx, [esi + 0x3c]
mov dword [ebx], edi
mov dword [ebx + 4], edi
mov dword [ebx + 8], edi
mov dword [ebx + 0xc], edi
xor eax, eax
mov ecx, 0x80
lea edi, [esp + 0x50]
rep stosd dword es:[edi], eax
mov ecx, 0x10
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
push 0x200
lea eax, [esp + 0x54]
push eax
push 0
mov byte [esp + 0x270], 2
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x50]
xor edi, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x47d753
sub eax, edx
test eax, eax
jle 0x47d78d
movsx ecx, byte [esp + edi + 0x50]
push ecx
call fcn.004d0ff7
mov byte [esp + edi + 0x54], al
lea eax, [esp + 0x54]
add esp, 4
inc edi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x47d780
sub eax, edx
cmp edi, eax
jl 0x47d760
lea eax, [esp + 0x50]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x47d794
sub eax, edx
js 0x47d7de
nop
cmp byte [esp + eax + 0x50], 0x2e
jne 0x47d7ac
mov byte [esp + eax + 0x50], 0
cmp byte [esp + eax + 0x50], 0x5c
je 0x47d7b8
dec eax
jns 0x47d7a0
jmp 0x47d7de
lea edi, [esp + eax + 0x50]
lea edx, [esp + 0x10]
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x47d7c4
mov edx, dword [str.Log]
mov al, byte [0x50b334]
mov dword [edi], edx
mov byte [edi + 4], al
lea ecx, [esp + 0x50]
push ecx
call fcn.004dcdfa
lea eax, [esp + 0x54]
add esp, 4
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x47d7f2
sub eax, edx
push eax
lea edx, [esp + 0x54]
push edx
lea ecx, [esi + 0x38]
call fcn.00401880
push 0
lea eax, [esp + 0x14]
push eax
mov ecx, ebx
call fcn.0047d3c0
mov ecx, dword [esp + 0x25c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x254]
mov eax, esi
call fcn.004ce183
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47e7e0
Capabilities:
Hash data with md5

Disassembly:
mov edx, ecx
push esi
push edi
xor eax, eax
lea esi, [edx + 0x5c]
mov edi, esi
mov dword [edx + 0x18], eax
mov dword [edx + 0x14], eax
mov ecx, 0x10
mov dword [edx], 0x50b344
mov dword [edx + 4], 0x67452301
mov dword [edx + 8], 0xefcdab89
mov dword [edx + 0xc], 0x98badcfe
mov dword [edx + 0x10], 0x10325476
rep stosd dword es:[edi], eax
pop edi
mov byte [esi], 0x80
mov eax, edx
pop esi
ret

Function at 0x47e900
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0xc
mov eax, dword [0x52bd18]
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x10], eax
push edi
xor ecx, ecx
lea eax, [esi + 0x16]
mov dl, byte [eax - 2]
mov byte [esp + ecx + 0xc], dl
mov dl, byte [eax - 1]
mov byte [esp + ecx + 0xd], dl
mov dl, byte [eax]
mov byte [esp + ecx + 0xe], dl
mov dl, byte [eax + 1]
mov byte [esp + ecx + 0xf], dl
add ecx, 4
add eax, 4
cmp ecx, 8
jb 0x47e916
mov ecx, dword [esi + 0x14]
shr ecx, 3
and ecx, 0x3f
cmp ecx, 0x38
mov eax, 0x38
jb 0x47e954
mov eax, 0x78
sub eax, ecx
push eax
lea ebp, [esi + 0x5c]
push ebp
mov ecx, esi
call fcn.0047e830
push 8
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.0047e830
mov ecx, dword [esp + 0x1c]
inc ecx
lea eax, [esi + 6]
mov edi, 4
lea ecx, [ecx]
mov dl, byte [eax - 2]
mov byte [ecx - 1], dl
mov dl, byte [eax - 1]
mov byte [ecx], dl
mov dl, byte [eax]
mov byte [ecx + 1], dl
mov dl, byte [eax + 1]
mov byte [ecx + 2], dl
add eax, 4
add ecx, 4
dec edi
jne 0x47e980
xor eax, eax
mov edi, esi
mov ecx, 0x27
rep stosd dword es:[edi], eax
mov edi, ebp
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], eax
mov dword [esi + 4], 0x67452301
mov dword [esi + 8], 0xefcdab89
mov dword [esi + 0xc], 0x98badcfe
mov dword [esi + 0x10], 0x10325476
mov ecx, 0x10
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov byte [ebp], 0x80
pop ebp
call fcn.004ce183
add esp, 0xc
ret 4
Function at 0x47f6c9
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x4f7b08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0xf0]
mov ecx, ebx
mov dword [esp + 0x18], ebx
call fcn.00401300
mov eax, dword [esi + 0x11c]
neg eax
sbb eax, eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
je 0x47f7e3
add esi, 0x110
push ebp
mov dword [esp + 0x18], esi
push edi
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x1c]
push edx
call fcn.004decb1
mov esi, dword [esp + 0x10]
mov ecx, dword [esi + 8]
lea ebp, [esi + 8]
inc ecx
mov eax, ecx
cmp eax, 0xa
mov dword [ebp], ecx
jbe 0x47f78c
mov eax, dword [esi]
mov edi, dword [esi + 4]
mov ebx, dword [eax + 8]
push 0x130
push 0x50b4ac
call fcn.00407350
mov ecx, eax
call fcn.0040a680
push ebx
push str.TestAliveMgr_ThreadId__04x__ProcessExpireMgr.
push 0x20
call fcn.0047dea0
mov eax, dword [edi]
add esp, 0xc
mov ecx, edi
call dword [eax + 0x1c]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ebx, dword [esp + 0x20]
jmp 0x47f79b
mov ecx, dword [esi]
push 4
push 0
push 0
push 0xfffffffffffffffe
call fcn.004802e0
cmp dword [ebp], 5
jbe 0x47f7d5
mov ecx, dword [esi]
mov edi, dword [ecx + 8]
push 0x19
push 0x50b4ac
call fcn.00407350
mov ecx, eax
call fcn.0040a680
mov ecx, dword [esi]
call fcn.0047f970
mov edx, dword [ebp]
push eax
push edx
push edi
push str.TestAliveMgr_ThreadId__04x__DoTestAlive_Found_TimeoutCount_d_CmdCount_d
push 8
call fcn.0047dea0
add esp, 0x14
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x47f715
pop edi
pop ebp
mov eax, dword [ebx]
mov ecx, ebx
mov dword [esp + 0x24], 0xffffffff
call dword [eax + 0x14]
mov ecx, dword [esp + 0x1c]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x4803c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f7b80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x30]
push edi
mov dword [ebp - 0x10], esp
push eax
push ecx
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor ebx, ebx
cmp eax, 0x102
mov dword [esi + 0x18], 3
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
jne 0x480423
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x80
je 0x4804af
lea edi, [esi + 0x54]
mov ecx, edi
mov dword [ebp - 0x1c], ebx
call fcn.00401300
mov eax, dword [esi + 0x44]
xor edx, edx
cmp eax, ebx
mov eax, dword [edi]
sete dl
mov ecx, edi
mov ebx, edx
call dword [eax + 0x14]
mov edi, edi
test ebx, ebx
jne 0x48056d
lea edi, [esi + 0x54]
mov ecx, edi
call fcn.00401300
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [esi + 0x38]
call fcn.004801f0
mov eax, dword [esi + 0x44]
mov edx, dword [edi]
test eax, eax
sete bl
mov ecx, edi
mov dword [ebp - 0x18], ebx
call dword [edx + 0x14]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x30]
cmp eax, 0xffffffff
mov ecx, dword [ebp - 0x24]
mov dword [esi + 0x24], edx
mov edx, dword [ebp - 0x2c]
mov dword [esi + 0x18], 2
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], ecx
mov dword [esi + 0x28], edx
jne 0x4804c3
test ebx, ebx
jne 0x4804af
mov ecx, esi
call fcn.00480290
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0xfffffffe
jne 0x4804dd
push 8
push 0
push esi
push 0xfffffffffffffffd
call fcn.0047f990
mov ecx, eax
call fcn.004802e0
jmp 0x48054d
cmp eax, 0xfffffffc
jne 0x4804ec
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x14]
jmp 0x48054d
mov edx, dword [esi]
lea eax, [ebp - 0x30]
push eax
mov ecx, esi
mov dword [ebp - 4], 0
call dword [edx + 0x10]
jmp 0x48054d
test byte [ebp - 0x28], 1
mov dword [ebp - 4], 0xffffffff
je 0x480450
mov eax, dword [esi + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x480450
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x480970
Capabilities:
Create thread
Terminate thread

Disassembly:
mov eax, dword [esp + 4]
test al, 2
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
je 0x480985
mov dword [esi + 0xc], 0xffffffff
lea eax, [esi + 8]
push eax
push 0
push esi
push 0x4806c0
push 0
push 0
mov dword [esi + 0x10], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 4], eax
jne 0x4809ad
pop esi
ret 4
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 0
push 0
call edi
push 0
push 0
push 0
push 0
mov dword [esi + 0x2c], eax
call edi
mov ecx, dword [esi + 0x2c]
test ecx, ecx
mov dword [esi + 0x30], eax
je 0x480a35
test eax, eax
je 0x480a33
test byte [esi + 0x14], 4
jne 0x4809ec
push esi
call fcn.0047f990
mov ecx, eax
call fcn.0047ec20
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esi + 0x10], 1
je 0x4809fe
cmp dword [esi + 0x10], 2
jne 0x480a04
push 0xa
call edi
jmp 0x4809f2
cmp dword [esi + 0x10], 3
jne 0x480a29
mov ecx, dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
mov edx, dword [esi + 0x2c]
push edx
call edi
mov eax, dword [esi + 0x30]
push eax
call edi
pop edi
xor eax, eax
pop esi
ret 4
pop edi
mov eax, 1
pop esi
ret 4
test ecx, ecx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x480a40
push ecx
call edi
mov eax, dword [esi + 0x30]
test eax, eax
je 0x480a4d
mov ecx, dword [esi + 0x2c]
push ecx
call edi
mov edx, dword [esi + 4]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 4]
push eax
call edi
pop edi
xor eax, eax
pop esi
ret 4
Function at 0x480a70
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4f7c03
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
mov dword [esi], 0x50b6f4
mov dword [esi + 0xc], 0x14
push edi
xor edi, edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], 0x200
mov dword [esp + 8], esi
mov dword [esi + 0x38], 0x50b600
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], 0xa
lea ecx, [esi + 0x54]
mov dword [esp + 0x18], edi
call fcn.00401270
lea ecx, [esi + 0x74]
mov byte [esp + 0x18], 1
call fcn.00401270
mov dword [esi + 0x94], 0x50b5f4
mov dword [esi + 0xa0], edi
mov dword [esi + 0xa4], edi
mov dword [esi + 0x9c], edi
mov dword [esi + 0x98], edi
mov dword [esi + 0xa8], edi
mov dword [esi + 0xac], 0xa
lea ecx, [esi + 0xb0]
mov byte [esp + 0x18], 3
call fcn.00401270
lea ecx, [esi + 0xd0]
mov byte [esp + 0x18], 4
call fcn.00401270
mov ecx, 0x52e8a4
mov byte [esp + 0x18], 5
mov dword [esp + 0xc], 0x52e8a4
call fcn.00401300
cmp dword [0x52e89c], edi
mov byte [esp + 0x18], 6
jne 0x480b8a
push edi
mov dword [0x52e89c], 1
call fcn.0047f990
mov ecx, eax
call fcn.00480970
inc dword [0x52e8a0]
mov eax, dword [0x52e8a4]
mov ecx, 0x52e8a4
mov byte [esp + 0x18], 5
call dword [eax + 0x14]
mov ecx, dword [esp + 0x10]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x481180
Capabilities:
Terminate process

Disassembly:
push esi
push 0
call fcn.004cf574
mov esi, eax
mov eax, dword [0x52e8c4]
add esp, 4
cmp esi, eax
jae 0x4811a5
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x52e8c4], esi
mov eax, esi
pop esi
ret
Function at 0x481d70
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4f7ce8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
lea edi, [esi + 4]
mov ecx, edi
call fcn.00401300
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x38]
cmp ecx, dword [eax + 0x10]
jne 0x481ddc
mov ecx, dword [esi + 0x40]
cmp ecx, dword [eax + 0x18]
jne 0x481ddc
mov ecx, dword [esi + 0x3c]
cmp ecx, dword [eax + 0x14]
jne 0x481ddc
mov ecx, dword [esi + 0x44]
cmp ecx, dword [eax + 0x1c]
jne 0x481ddc
mov eax, dword [edi]
mov ecx, edi
mov dword [esp + 0x14], 0xffffffff
call dword [eax + 0x14]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 4
mov ecx, dword [eax + 4]
mov dword [esi + 0x2c], ecx
mov edx, dword [eax + 8]
mov dword [esi + 0x30], edx
mov ecx, dword [eax + 0xc]
mov dword [esi + 0x34], ecx
mov edx, dword [eax + 0x10]
mov dword [esi + 0x38], edx
mov ecx, dword [eax + 0x14]
mov dword [esi + 0x3c], ecx
mov edx, dword [eax + 0x18]
mov dword [esi + 0x40], edx
mov eax, dword [eax + 0x1c]
mov dword [esi + 0x44], eax
mov edx, dword [edi]
mov ecx, edi
mov dword [esp + 0x14], 0xffffffff
call dword [edx + 0x14]
mov ecx, dword [esp + 0xc]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4