joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415639
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push ebx
push esi
push edi
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
bswap eax
mov ecx, eax
mov eax, dword [edx + 4]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
bswap eax
mov esi, dword [ebp + 0xc]
mov edx, eax
lea eax, [ebp - 0x14]
xor edi, edi
sub esi, eax
lea eax, [esi + edi*4]
mov eax, dword [ebp + eax - 0x14]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
bswap eax
mov dword [ebp + edi*4 - 0x14], eax
inc edi
cmp edi, 4
jl 0x415668
push 0x10
xor eax, eax
pop esi
mov edi, edx
shr edi, 5
add edi, dword [ebp - 0x10]
mov ebx, edx
shl ebx, 4
add ebx, dword [ebp - 0x14]
sub eax, 0x61c88647
xor edi, ebx
lea ebx, [eax + edx]
xor edi, ebx
add ecx, edi
mov edi, ecx
shr edi, 5
add edi, dword [ebp - 8]
mov ebx, ecx
shl ebx, 4
add ebx, dword [ebp - 0xc]
xor edi, ebx
lea ebx, [eax + ecx]
xor edi, ebx
add edx, edi
dec esi
jne 0x415686
mov dword [ebp - 4], edx
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 8]
bswap eax
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
bswap eax
pop edi
pop esi
mov dword [ecx + 4], eax
pop ebx
leave
ret

Function at 0x4156dd
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
push ebx
push esi
push edi
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
bswap eax
mov edx, eax
mov eax, dword [ecx + 4]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
bswap eax
mov esi, dword [ebp + 0xc]
mov ecx, eax
lea eax, [ebp - 0x14]
xor edi, edi
sub esi, eax
lea eax, [esi + edi*4]
mov eax, dword [ebp + eax - 0x14]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
bswap eax
mov dword [ebp + edi*4 - 0x14], eax
inc edi
cmp edi, 4
jl 0x41570c
push 0x10
mov eax, 0xe3779b90
pop esi
mov edi, edx
shr edi, 5
add edi, dword [ebp - 8]
mov ebx, edx
shl ebx, 4
add ebx, dword [ebp - 0xc]
xor edi, ebx
lea ebx, [eax + edx]
xor edi, ebx
sub ecx, edi
mov edi, ecx
shr edi, 5
add edi, dword [ebp - 0x10]
mov ebx, ecx
shl ebx, 4
add ebx, dword [ebp - 0x14]
xor edi, ebx
lea ebx, [eax + ecx]
xor edi, ebx
sub edx, edi
add eax, 0x61c88647
dec esi
jne 0x41572d
mov dword [ebp + 8], edx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
bswap eax
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
bswap eax
pop edi
pop esi
mov dword [ecx + 4], eax
pop ebx
leave
ret
Function at 0x402470
Capabilities:
Print debug messages
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x402630
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], ebx
mov edi, ecx
lea esi, [edi + 4]
mov ecx, esi
call fcn.00403d40
test eax, eax
je 0x4024b2
mov ecx, esi
call fcn.0040ab20
mov ebx, 1
jmp 0x4024bf
push str.PT1_SDK
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor ebx, ebx
lea ecx, [ebp - 0x88]
call fcn.00403f50
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x88]
add esp, 0xffffffe0
mov dword [esp], str.GlobalPT1CtrlConnect
mov dword [esp + 4], str..pipePT1CtrlPipe
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x408560
mov dword [esp + 0x10], 0
call fcn.00404940
push 0x3a98
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x402525
mov ecx, esi
call fcn.00402640
test eax, eax
je 0x402525
test ebx, ebx
jne 0x402502
lea ecx, [ebp - 0x88]
call fcn.0040aa80
mov ecx, esi
call fcn.004020f0
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x40]
lea eax, [ebp - 0x88]
mov dword [ebp - 0x20], eax
test edx, edx
je 0x402587
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x7d0
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x402577
push 0xffffffffffffffff
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x40], 0
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x44], 0
cmp eax, 8
jae 0x40261b
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x4c], 7
xor eax, eax
cmp edx, 8
mov dword [ebp - 0x50], eax
mov word [ebp - 0x60], ax
jae 0x402610
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x28]
xor eax, eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], 7
mov word [ebp - 0x7c], ax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x7c]
call fcn.0040c587
pop ecx
jmp 0x4025c5
push dword [ebp - 0x60]
call fcn.0040c587
pop ecx
jmp 0x4025a6
Function at 0x402640
Capabilities:
Print debug messages

Disassembly:
push esi
push ebx
sub esp, 0x14
mov esi, ecx
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x14]
mov ebx, eax
sub ebx, edx
sar ebx, 2
test ebx, ebx
jle 0x4026f0
mov dword [esp + 4], edi
mov dword [esp], ebp
xor ebx, ebx
mov ecx, eax
sub ecx, edx
sar ecx, 2
cmp ebx, ecx
jae 0x40285a
mov ecx, dword [edx + ebx*4]
mov ebp, dword [ecx + 0x18]
cmp ebp, 1
je 0x40280d
mov ecx, eax
sub ecx, edx
sar ecx, 2
cmp ebx, ecx
jae 0x40285a
mov ecx, dword [edx + ebx*4]
mov ebp, dword [ecx + 0x1c]
cmp ebp, 1
je 0x4027ba
mov ecx, eax
sub ecx, edx
sar ecx, 2
cmp ebx, ecx
jae 0x40285a
mov ecx, dword [edx + ebx*4]
mov ebp, dword [ecx + 0x20]
cmp ebp, 1
je 0x402776
mov ecx, eax
sub ecx, edx
sar ecx, 2
cmp ebx, ecx
jae 0x40285a
mov ecx, dword [edx + ebx*4]
mov ebp, dword [ecx + 0x24]
cmp ebp, 1
je 0x402733
inc ebx
mov ecx, eax
sub ecx, edx
sar ecx, 2
cmp ebx, ecx
jl 0x402665
mov edi, dword [esp + 4]
mov ebp, dword [esp]
test ecx, ecx
jg 0x4026f4
xor esi, esi
jmp 0x40272b
mov dword [esp + 4], edi
mov dword [esp], ebp
xor esi, esi
xor ebx, ebx
mov ebp, eax
sub ebp, edx
sar ebp, 2
cmp ebx, ebp
jae 0x40285a
mov edi, dword [edx + ebx*4]
mov edi, dword [edi + 0x14]
mov ebp, 1
cmp edi, 1
cmove esi, ebp
inc ebx
cmp ebx, ecx
jl 0x4026ff
mov edi, dword [esp + 4]
mov ebp, dword [esp]
mov eax, esi
add esp, 0x14
pop ebx
pop esi
ret
mov ebp, ebx
shl ebp, 0x10
or ebp, 1
mov ecx, eax
sub ecx, edx
sar ecx, 2
cmp ebx, ecx
jae 0x40285a
mov ecx, dword [edx + ebx*4]
mov edi, dword [ecx + 0x6c]
mov ecx, dword [edi + 4]
cmp ecx, 0x64
jbe 0x4026d9
push str.S1_OverFlow_Close
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push ebp
mov ecx, esi
call fcn.00402860
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x14]
jmp 0x4026d9
mov ebp, ebx
shl ebp, 0x10
mov ecx, eax
sub ecx, edx
sar ecx, 2
cmp ebx, ecx
jae 0x40285a
mov ecx, dword [edx + ebx*4]
mov edi, dword [ecx + 0x68]
mov ecx, dword [edi + 4]
cmp ecx, 0x64
jbe 0x4026bf
push str.S0_OverFlow_Close
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push ebp
mov ecx, esi
call fcn.00402860
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x14]
jmp 0x4026bf
mov ebp, ebx
shl ebp, 0x10
or ebp, 0x101
mov ecx, eax
sub ecx, edx
sar ecx, 2
cmp ebx, ecx
jb 0x402806
jmp 0x40285a
mov ecx, dword [edx + ebx*4]
mov edi, dword [ecx + edi*4 + 0x60]
mov ecx, dword [edi + 4]
cmp ecx, 0x64
jbe 0x4026a1
push str.T1_OverFlow_Close
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push ebp
mov ecx, esi
call fcn.00402860
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x14]
jmp 0x4026a1
mov edi, 1
jmp 0x4027d5
mov ebp, ebx
shl ebp, 0x10
or ebp, 0x100
mov ecx, eax
sub ecx, edx
sar ecx, 2
cmp ebx, ecx
jb 0x402856
jmp 0x40285a
mov ecx, dword [edx + ebx*4]
mov edi, dword [ecx + edi*4 + 0x60]
mov ecx, dword [edi + 4]
cmp ecx, 0x64
jbe 0x402683
push str.T0_OverFlow_Close
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push ebp
mov ecx, esi
call fcn.00402860
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x14]
jmp 0x402683
xor edi, edi
jmp 0x402825
call fcn.0040d149
nop
Function at 0x404e90
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404fb0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], 1
mov eax, dword [ecx + 0x48]
test eax, eax
je 0x404f0a
push dword [ecx + 0x44]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebp - 0x28]
push 0x7d0
push dword [eax + 0x48]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x404ef4
mov eax, dword [ebp - 0x28]
push 0xffffffffffffffff
push dword [eax + 0x48]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [ebp - 0x28]
push dword [eax + 0x48]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x48], 0
push dword [ecx + 0x44]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x28]
mov dword [esi + 0x44], 0
lea ebx, [esi + 0x24]
mov eax, dword [ebx + 0x18]
cmp eax, 8
jae 0x404f95
mov dword [ebp - 4], 0xffffffff
mov dword [ebx + 0x18], 7
xor eax, eax
mov dword [ebx + 0x14], eax
mov word [ebx + 4], ax
mov edx, dword [esi + 0x20]
cmp edx, 8
jae 0x404f8a
mov ebx, dword [ebp - 0x1c]
mov dword [esi + 0x20], 7
xor eax, eax
mov dword [esi + 0x1c], eax
mov word [esi + 0xc], ax
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push dword [esi + 0xc]
call fcn.0040c587
pop ecx
jmp 0x404f4e
push dword [ebx + 4]
call fcn.0040c587
pop ecx
mov esi, dword [ebp - 0x28]
jmp 0x404f2f
Function at 0x409000
Capabilities:
Create thread
Resume thread

Disassembly:
push edi
sub esp, 0x10
mov edi, ecx
mov ecx, dword [edi + 4]
mov byte [esp + 0xc], 1
lea edx, [esp + 0xc]
mov eax, dword [ecx]
push edx
call dword [eax + 0xa0]
test eax, eax
jne 0x40909f
movzx eax, byte [esp + 0xc]
cmp eax, 1
je 0x4090a4
push 0
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
call dword [eax + 0x78]
test eax, eax
je 0x409040
add esp, 0x10
pop edi
ret
mov edx, dword [edi]
mov ecx, dword [edi + 4]
mov dword [esp + 4], edx
lea edx, [esp]
mov eax, 4
mov dword [esp], eax
mov dword [esp + 8], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x78]
test eax, eax
jne 0x40909f
mov ecx, edi
call fcn.004090c0
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
xor eax, eax
push eax
push 4
mov byte [edi + 0x14], al
push edi
push 0x407d10
push eax
push eax
call fcn.0040d265
add esp, 0x18
push 1
push eax
mov dword [edi + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
add esp, 0x10
pop edi
ret
push 0
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
call dword [eax + 0x9c]
test eax, eax
je 0x40902d
add esp, 0x10
pop edi
ret
Function at 0x40aa80
Capabilities:
Terminate thread

Disassembly:
push esi
sub esp, 8
mov esi, ecx
mov eax, dword [esi + 0x48]
test eax, eax
je 0x40aac6
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x7d0
push dword [esi + 0x48]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40aab6
push 0xffffffffffffffff
push dword [esi + 0x48]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x48]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x48], 0
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x40aaed
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [esi + 0x4c]
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
push dword [esi + 0x4c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x4c], 0
mov eax, dword [esi + 0x50]
test eax, eax
je 0x40ab02
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x50], 0
mov eax, dword [esi + 0x54]
test eax, eax
je 0x40ab17
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x54], 0
add esp, 8
pop esi
ret

Function at 0x40b1b0
Capabilities:
Terminate thread

Disassembly:
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x40b1f3
push dword [ebx + 0x2c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x7d0
push dword [ebx + 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40b1e3
push 0xffffffffffffffff
push dword [ebx + 0x28]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [ebx + 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x28], 0
mov eax, dword [ebx + 0x40]
test eax, eax
je 0x40b208
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebx + 0x40], 0
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x40b21d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x3c], 0
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x40b232
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x30], 0
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x40b247
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x34], 0
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x40b25c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x38], 0
pop ebx
ret
Function at 0x40b960
Capabilities:
Terminate thread

Disassembly:
push edi
push esi
mov edi, ecx
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x40b9a8
push dword [edi + 0x18]
mov byte [edi + 0x14], 1
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x7d0
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40b998
push 0xffffffffffffffff
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x1c], 0
mov ecx, dword [edi + 4]
mov byte [esp], 1
mov eax, dword [ecx]
lea edx, [esp]
push edx
call dword [eax + 0xa0]
test eax, eax
jne 0x40b9dc
movzx eax, byte [esp]
cmp eax, 1
je 0x40b9cb
pop ecx
pop edi
ret
push 0
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
call dword [eax + 0x9c]
test eax, eax
je 0x40b9c8
pop ecx
pop edi
ret
Function at 0x40d8fb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41f370]
jne 0x40d905
repz ret
jmp fcn.004125b2

Function at 0x4158b5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040e890
and dword [ebp - 4], 0
cmp dword [0x421414], 0
mov ebx, eax
jne 0x415966
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x415a17
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x415a17
push eax
call fcn.0040e81e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x421414], eax
call esi
push eax
call fcn.0040e81e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x421418], eax
call esi
push eax
call fcn.0040e81e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42141c], eax
call esi
push eax
call fcn.0040e81e
pop ecx
mov dword [0x421424], eax
test eax, eax
je 0x415966
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040e81e
pop ecx
mov dword [0x421420], eax
mov eax, dword [0x421420]
cmp eax, ebx
je 0x4159be
cmp dword [0x421424], ebx
je 0x4159be
push eax
call fcn.0040e899
push dword [0x421424]
mov esi, eax
call fcn.0040e899
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4159be
test edi, edi
je 0x4159be
call esi
test eax, eax
je 0x4159b5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4159b5
test byte [ebp - 0xc], 1
jne 0x4159be
or dword [ebp + 0x10], 0x200000
jmp 0x4159f7
mov eax, dword [0x421418]
cmp eax, ebx
je 0x4159f7
push eax
call fcn.0040e899
pop ecx
test eax, eax
je 0x4159f7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4159f7
mov eax, dword [0x42141c]
cmp eax, ebx
je 0x4159f7
push eax
call fcn.0040e899
pop ecx
test eax, eax
je 0x4159f7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x421414]
call fcn.0040e899
pop ecx
test eax, eax
je 0x415a17
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x415a19
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401a61
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ebp, [esi + 0x10]
mov edi, dword [ebp]
mov ebx, edi
xor ebx, 0x14d
mov dword [esp + 0x18], ebp
cmp dword [esi + 0x14], 0x10
jb 0x401a84
mov esi, dword [esi]
shr edi, 2
push esi
push edi
push str._x_and__p
mov dword [esp + 0x20], edi
call fcn.004010d6
add esp, 0xc
test edi, edi
je 0x401ae1
mov ebp, esi
push 4
lea eax, [esp + 0x14]
push ebp
push eax
call fcn.0040a920
imul ecx, dword [esp + 0x1c], 0x5bd1e991
add esp, 0xc
imul ebx, ebx, 0x5bd1e991
add ebp, 4
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul eax, eax, 0x5bd1e991
xor ebx, eax
mov dword [esp + 0x10], eax
sub edi, 1
jne 0x401aa0
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov eax, dword [ebp]
xor ecx, ecx
and eax, 3
sub eax, 1
je 0x401b0a
sub eax, 1
je 0x401b00
sub eax, 1
jne 0x401b18
movsx ecx, byte [esi + edi*4 + 2]
shl ecx, 0x10
movsx eax, byte [esi + edi*4 + 1]
shl eax, 8
xor ecx, eax
movsx eax, byte [esi + edi*4]
xor eax, ecx
imul eax, eax, 0x5bd1e991
xor ebx, eax
mov eax, ebx
shr eax, 0xd
xor eax, ebx
imul ecx, eax, 0x5bd1e991
pop edi
pop esi
pop ebp
pop ebx
mov eax, ecx
shr eax, 0xf
xor eax, ecx
add esp, 0xc
ret
Function at 0x406fc8
Capabilities:
Access peb ldr_data
Create thread
Get kernel32 base address

Disassembly:
push ebx
push esi
push edi
mov eax, 0x1a1
cmp eax, 0x24
ja 0x406fd7
call 0x8566fb3
jo 0x40701e
call dword [sym.imp.KERNEL32.dll_FreeConsole]
mov edi, dword fs:[0x30]
add byte [ebx + ecx*4 + 0x3d], ah
xor byte [eax], al
add byte [eax], al
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x48c20c], eax
sub eax, eax
je 0x406ffc
call 0xa97b58c5
invalid
call 0x40193b
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_DeleteAce]
push 8
call fcn.00409abb
push 4
mov esi, eax
call fcn.00409abb
lea edi, [esi + 4]
push edi
push ebx
push eax
push 0x407952
push ebx
push ebx
mov dword [eax], 0x406d8b
call fcn.0040e511
add esp, 0x20
mov dword [esi], eax
test eax, eax
je 0x407072
cmp dword [edi], ebx
jne 0x407044
push 1
jmp 0x407076
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [edi], eax
jne 0x407051
push 5
jmp 0x407076
push ebx
push dword [esi + 4]
push dword [esi]
call fcn.004095b1
add esp, 0xc
test eax, eax
je 0x407067
push 2
jmp 0x407076
pop edi
mov dword [esi], ebx
xor eax, eax
mov dword [esi + 4], ebx
pop esi
pop ebx
ret
mov dword [edi], ebx
push 6
call fcn.00407abf
int3

Function at 0x408b4f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x408b70
jl 0x408b67
test edi, edi
jne 0x408b70
xor eax, eax
xor edx, edx
jmp 0x408c31
cmp dword [ebx + 0x38], 0
je 0x408b85
push eax
push edi
push dword [ebp + 8]
call fcn.00408c37
jmp 0x408c31
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x408bcc
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x408bcc
cmp eax, edi
jb 0x408ba6
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040a920
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x408bd2
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x408c26
mov ecx, ebx
call fcn.004083b7
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x408c11
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0041119d
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x408c26
jmp 0x408be4
test edx, edx
je 0x408c26
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0041119d
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc
Function at 0x40a709
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40a748
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40a748
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40a748
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40a748
cmp dword [ecx + 0x74], 0xe
jbe 0x40a748
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x41687d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42a9fc
push 0x42a9f4
push str.FlsAlloc
push 0x1e
call fcn.004166aa
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4168b1
push dword [ebp + 8]
mov ecx, esi
call dword [0x427150]
call esi
jmp 0x4168b7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4168fb
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42aa0c
push 0x42aa04
push str.FlsGetValue
push 0x20
call fcn.004166aa
mov esi, eax
add esp, 0x10
test esi, esi
je 0x416932
push dword [ebp + 8]
mov ecx, esi
call dword [0x427150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x419882
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004196f3

Function at 0x419c7c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040a870
mov eax, dword [0x435018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004184a8
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x419cbe
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x419e1a
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00425f30
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x48bee0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041ac73
mov ecx, dword [esi*4 + 0x48bee0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x419e13
cmp eax, dword [edi + ecx + 0x24]
jne 0x419e13
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x419e13
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041ac73
add esp, 0x14
test edx, edx
jl 0x419e13
jg 0x419d89
test eax, eax
jb 0x419e13
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x419e13
jl 0x419da3
cmp dword [ebp - 0x1008], eax
ja 0x419e13
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x419dc1
test ebx, ebx
je 0x419dfa
cmp ecx, edi
jae 0x419dfa
mov al, byte [ecx]
cmp al, 0xd
jne 0x419ddb
lea eax, [edi - 1]
cmp ecx, eax
jae 0x419de7
cmp byte [ecx + 1], 0xa
jne 0x419de7
inc ecx
jmp 0x419de7
movzx eax, al
movsx eax, byte [eax + 0x4352b8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x419dc1
cmp edx, ebx
jne 0x419dc1
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x419e18
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00409aa8
leave
ret