joyce8/EMBER2024-capa huggingface dataset:
Function at 0x457a60
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4b5513
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004a9e01
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], 0x4c7a28
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], 0x4c7970
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [0x4b712c]
push eax
mov ecx, edi
call fcn.004af44e
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004b096a
test eax, eax
je 0x457b7c
mov ecx, dword [esp + 0x3c]
call fcn.004af47b
mov ecx, dword [esi + 0x1c]
mov ebp, dword [0x4b7564]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x457b40
push edi
mov ecx, esi
call fcn.004acae2
mov ecx, esi
call fcn.00457d20
cmp dword [esp + 0x38], 1
jne 0x457b75
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004acc1d
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28

Function at 0x459d70
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x459da3
push esi
call fcn.004680f0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x459d9c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x459e29
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x459e12
mov eax, dword [esi + 8]
test eax, eax
je 0x459dc7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x459e0e
cmp eax, 2
je 0x459e12
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x459dba
cmp eax, 3
je 0x459ded
cmp eax, 1
jne 0x459dba
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x459dba
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x459dba
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00459e50
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x459e38
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00459e50
add esp, 4
pop esi
ret
Function at 0x478f60
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0xa4]
test eax, eax
je 0x478fa7
mov edi, dword [esp + 0x10]
push edi
call fcn.004a8593
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
mov dword [esi + 0xa8], eax
mov eax, dword [esi + 0xa4]
mov ecx, dword [ecx]
push eax
push edi
push 1
push ecx
call fcn.00491537
sub eax, edi
add esp, 0x14
neg eax
sbb eax, eax
pop edi
and eax, 0x21
pop esi
ret 0xc
mov ecx, dword [esi + 0x2c]
test ecx, ecx
je 0x478fdb
mov eax, dword [esi + 0x18]
test eax, eax
je 0x478fdb
mov edx, dword [ecx]
call dword [edx + 0x40]
test al, al
je 0x478fc5
mov eax, dword [esi + 0x7c]
test eax, eax
jg 0x478fdb
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.004790a0
pop edi
pop esi
ret 0xc
mov ecx, dword [esi + 0x18]
push ebx
mov edx, dword [ecx]
call dword [edx + 0x18]
mov ecx, dword [esi + 0x14]
mov edi, eax
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ebx, eax
cmp ebx, 0x5a
jle 0x47900e
cmp edi, 0x5a
jle 0x47900e
mov ecx, dword [esi + 0x2c]
mov edx, dword [ecx]
call dword [edx + 0x44]
test al, al
je 0x47900e
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov eax, dword [esi + 0x7c]
imul eax, dword [esi + 0x3c]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
and edx, 0x1fff
add eax, edx
mov edi, eax
mov eax, dword [esi + 0x40]
sar edi, 0xd
cmp edi, eax
jbe 0x47903d
cdq
sub eax, edx
mov edi, eax
sar edi, 1
mov al, byte [esp + 0x18]
test al, al
je 0x479083
cmp ebx, 1
jge 0x479083
mov ecx, dword [esi + 0x18]
mov edx, edi
shr edx, 1
cmp dword [ecx + 0xc], edx
jae 0x479083
mov al, byte [esi + 0x1d]
test al, al
jne 0x479083
mov ebx, dword [0x4b7374]
push 0x3e8
call ebx
mov ecx, dword [esi + 0x18]
cmp dword [ecx + 0xc], edi
jae 0x479083
mov eax, dword [ecx]
call dword [eax + 0x18]
cmp eax, 0x5a
jg 0x479083
mov al, byte [esi + 0x1d]
test al, al
je 0x479063
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.004790a0
pop ebx
pop edi
pop esi
ret 0xc

Function at 0x47a260
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, ecx
mov al, byte [ebp + 0x24]
test al, al
jne 0x47a287
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
push ecx
push 1
push edx
call fcn.00491537
add esp, 0x10
pop ebp
ret 0xc
push ebx
push esi
mov esi, dword [esp + 0x18]
push edi
push esi
call fcn.004918ce
mov ebx, dword [esp + 0x18]
mov edi, eax
mov eax, dword [esp + 0x1c]
push esi
push eax
push 1
push ebx
call fcn.00491537
mov esi, eax
add esp, 0x14
test esi, esi
jbe 0x47a2bb
push esi
push ebx
push edi
mov ecx, ebp
call fcn.0047a480
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x47a2d0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x504f5c]
xor edx, edx
cmp eax, edx
jne 0x47a2f6
xor eax, eax
mov byte [eax + 0x504e5c], al
inc eax
cmp eax, 0x100
jl 0x47a2de
mov dword [0x504f5c], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x504e5c
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x47a387
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x47a35a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x47a328
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x47a400
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x47a453
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x47a43a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x480e10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b59fe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.00481730
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x4ca814
call fcn.004a8593
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x480ea3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004a8593
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x480e9c
push 0
mov ecx, eax
call fcn.00477f10
mov dword [esi + 0xc], eax
jmp 0x480ea5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x480ea5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x401f5e
Capabilities:
Parse pe header

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

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x30006ee6
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
jne 0x30006f0c
mov dword [ebp - 4], 0x80070057
jmp 0x30007011
push ebx
push edi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call sub.version.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, esi
mov ebx, 0x300115a8
ja 0x30006f31
mov dword [ebp - 4], 0x80004005
jmp 0x30006fcc
lea eax, [edi + 1]
push eax
call fcn.3000bb5c
mov esi, eax
test esi, esi
pop ecx
mov dword [ebp - 8], esi
jne 0x30006f4d
mov dword [ebp - 4], 0x8007000e
jmp 0x30006fcc
push esi
push edi
push 0
push dword [ebp + 8]
call sub.version.dll_GetFileVersionInfoW
test eax, eax
jne 0x30006f82
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
push esi
mov ecx, ebx
call fcn.3000bb5c
test esi, esi
jle 0x30006f7d
and esi, 0xffff
or esi, 0x80070000
mov dword [ebp - 4], esi
jmp 0x30006fbd
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x30001828
push esi
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x30006f5d
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x30006fb6
cmp dword [ebp - 0xc], 0
jbe 0x30006fb6
mov edx, dword [eax + 0xc]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 4], edx
mov eax, dword [eax + 8]
mov dword [ecx], eax
jmp 0x30007000
mov dword [ebp - 4], 0x80004005
cmp dword [ebp - 4], 0
jge 0x30007000
cmp dword [ebp - 4], 0x80070057
je 0x30007000
cmp dword [ebp + 0x10], 0
je 0x30006fe8
push dword [ebp + 0x10]
call fcn.3000bb5c
test eax, eax
jle 0x30006fe8
mov eax, dword [ebp + 0x10]
mov ecx, 0x300012e8
jmp 0x30006ff0
mov ecx, dword [ebp + 8]
mov eax, 0x30001804
push ecx
push eax
push 0x300017a8
push ebx
call fcn.3000bb5c
add esp, 0x10
cmp dword [ebp - 8], 0
pop edi
pop ebx
je 0x30007011
push dword [ebp - 8]
call fcn.3000bb5c
pop ecx
mov eax, dword [ebp - 4]
pop esi
leave
ret 0xc
Function at 0x30007019
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
push 0x44
pop edi
push edi
xor esi, esi
lea eax, [ebp - 0x54]
push esi
push eax
call sub.MSVCR80.dll_memset
mov dword [ebp - 0x54], edi
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov ebx, dword [ebp + 8]
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.kernel32.dll_CreateProcessW]
test eax, eax
jne 0x300070c8
call dword [sym.imp.kernel32.dll_GetLastError]
mov edi, 0x300115a8
push eax
mov ecx, edi
call fcn.3000bb5c
cmp ebx, esi
je 0x30007086
push ebx
call fcn.3000bb5c
test eax, eax
jle 0x30007086
mov dword [ebp + 0xc], ebx
jmp 0x30007097
mov eax, dword [ebp + 0xc]
cmp eax, esi
mov dword [ebp + 0xc], eax
jne 0x30007097
mov dword [ebp + 0xc], 0x300012e8
cmp ebx, esi
je 0x300070aa
push ebx
call fcn.3000bb5c
test eax, eax
mov eax, 0x300018a4
jg 0x300070af
mov eax, 0x30001884
push dword [ebp + 0xc]
push eax
push 0x30001830
push edi
call fcn.3000bb5c
add esp, 0x10
mov eax, 0x80004005
jmp 0x300070e5
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x300070ec
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
xor esi, esi
xor edi, edi
cmp dword [ebp + 0x14], esi
mov dword [ebp - 8], edi
je 0x300072ac
movzx eax, word [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push ebx
push eax
push dword [ebp + 8]
mov dword [ebp - 4], esi
call dword [sym.imp.kernel32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x3000713d
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, 0x300115a8
push eax
mov ecx, esi
call fcn.3000bb5c
push dword [ebp + 0x10]
push ebx
push 0x30001b28
jmp 0x30007193
push edi
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_LoadResource]
cmp eax, esi
jne 0x30007169
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, 0x300115a8
push eax
mov ecx, esi
call fcn.3000bb5c
push dword [ebp + 0x10]
push ebx
push 0x30001ac8
jmp 0x30007193
push eax
call dword [sym.imp.kernel32.dll_LockResource]
cmp eax, esi
mov dword [ebp + 0xc], eax
jne 0x30007196
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, 0x300115a8
push eax
mov ecx, esi
call fcn.3000bb5c
push dword [ebp + 0x10]
push ebx
push 0x30001a78
push esi
jmp 0x300071b4
push edi
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_SizeofResource]
mov edi, eax
cmp edi, esi
jne 0x300071be
push dword [ebp + 0x10]
push ebx
push 0x30001a08
push 0x300115a8
call fcn.3000bb5c
add esp, 0x10
jmp 0x30007212
mov ebx, dword [ebp + 0x14]
push 1
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push ebx
call dword [sym.imp.MSO.dll_Ordinal_403]
cmp eax, 0xffffffff
mov dword [ebp + 0x10], eax
jne 0x3000721c
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, 0x300115a8
push eax
mov ecx, esi
call fcn.3000bb5c
push ebx
call fcn.3000bb5c
test eax, eax
jg 0x30007203
mov ebx, 0x300012e8
push ebx
push 0x300019c8
push esi
call fcn.3000bb5c
add esp, 0xc
mov edi, 0x80004005
jmp 0x300072ab
push esi
lea ecx, [ebp - 4]
push ecx
push edi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
jne 0x30007268
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, 0x300115a8
push eax
mov ecx, esi
call fcn.3000bb5c
push ebx
call fcn.3000bb5c
test eax, eax
jg 0x30007252
mov ebx, 0x300012e8
push ebx
push 0x3000198c
push esi
call fcn.3000bb5c
add esp, 0xc
mov edi, 0x80004005
jmp 0x300072a2
cmp dword [ebp - 4], edi
je 0x3000729f
push ebx
call fcn.3000bb5c
test eax, eax
jg 0x3000727c
mov ebx, 0x300012e8
push dword [ebp - 4]
push edi
push ebx
push 0x300018c0
push 0x300115a8
call fcn.3000bb5c
add esp, 0x14
cmp dword [ebp - 4], edi
je 0x3000729f
mov dword [ebp - 8], 0x80004005
mov edi, dword [ebp - 8]
push dword [ebp + 0x10]
call dword [sym.imp.kernel32.dll_CloseHandle]
pop ebx
mov eax, edi
pop edi
pop esi
leave
ret 0x10
Function at 0x300082e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x30004298]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp eax, esi
push edi
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x218], esi
je 0x30008316
mov dword [eax], esi
push 0x300023a8
lea ecx, [ebp - 0x214]
call fcn.3000bb5c
mov edi, eax
cmp edi, esi
jl 0x30008433
push ebx
lea ecx, [ebp - 0x214]
call fcn.3000bb5c
mov edi, eax
cmp edi, esi
jl 0x30008433
lea eax, [ebp - 0x21c]
push eax
xor ebx, ebx
inc ebx
push ebx
push esi
push dword [ebp - 0x214]
push 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x3000840d
lea eax, [ebp - 0x220]
push eax
lea edi, [ebp - 0x210]
mov eax, edi
push eax
lea eax, [ebp - 0x228]
push eax
push esi
push esi
push dword [ebp - 0x21c]
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x220], 0x208
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x220]
shr eax, 1
cmp eax, 3
mov word [ebp + eax*2 - 0x210], si
jb 0x300083d5
cmp word [ebp - 0x210], 0x22
jne 0x300083d5
lea eax, [ebp + eax*2 - 0x214]
cmp word [eax], 0x22
jne 0x300083d5
lea edi, [ebp - 0x20e]
mov word [eax], si
push dword [ebp - 0x21c]
call dword [sym.imp.advapi32.dll_RegCloseKey]
push edi
lea ecx, [ebp - 0x218]
call fcn.3000bb5c
mov edi, eax
cmp edi, esi
jl 0x30008433
mov ecx, dword [ebp - 0x224]
cmp ecx, esi
je 0x30008433
mov eax, dword [ebp - 0x218]
mov dword [ebp - 0x218], esi
mov dword [ecx], eax
jmp 0x30008433
mov esi, 0x300115a8
push eax
mov ecx, esi
call fcn.3000bb5c
push dword [ebp - 0x214]
push 0x30002358
push esi
call fcn.3000bb5c
add esp, 0xc
mov edi, 0x80004005
push dword [ebp - 0x218]
mov esi, dword [sym.imp.MSO.dll_Ordinal_3057]
call esi
push dword [ebp - 0x214]
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.3000e693
leave
ret 8
Function at 0x3000e693
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x30004298]
jne 0x3000f0fb
ret
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x300117b8], eax
mov dword [0x300117b4], ecx
mov dword [0x300117b0], edx
mov dword [0x300117ac], ebx
mov dword [0x300117a8], esi
mov dword [0x300117a4], edi
mov word [0x300117d0], ss
mov word [0x300117c4], cs
mov word [0x300117a0], ds
mov word [0x3001179c], es
mov word [0x30011798], fs
mov word [0x30011794], gs
pushfd
pop dword [0x300117c8]
mov eax, dword [ebp]
mov dword [0x300117bc], eax
mov eax, dword [ebp + 4]
mov dword [0x300117c0], eax
lea eax, [ebp + 8]
mov dword [0x300117cc], eax
mov eax, dword [ebp - 0x320]
mov dword [0x30011708], 0x10001
mov eax, dword [0x300117c0]
mov dword [0x300116bc], eax
mov dword [0x300116b0], 0xc0000409
mov dword [0x300116b4], 1
mov eax, dword [0x30004298]
mov dword [ebp - 0x328], eax
mov eax, dword [0x30011344]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x30011700], eax
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x300045f8
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x30011700], 0
jne 0x3000f1eb
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret
Function at 0x3000eec9
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x3000f630
call fcn.3000ef5a
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x300119f0
push ebx
push esi
push edi
call dword [sym.imp.kernel32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x3000ecb9
cmp eax, esi
jne 0x3000ecac
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x3000ecbc
push 0x3e8
call dword [sym.imp.kernel32.dll_Sleep]
jmp 0x3000ec93
xor esi, esi
inc esi
mov eax, dword [0x300119ec]
cmp eax, esi
jne 0x3000eccf
push 0x1f
call sub.MSVCR80.dll__amsg_exit
pop ecx
jmp 0x3000ed0a
mov eax, dword [0x300119ec]
test eax, eax
jne 0x3000ed04
mov dword [0x300119ec], esi
push 0x300012e0
push 0x300012d4
call sub.MSVCR80.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x3000ed0a
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x3000ede1
mov dword [0x300116a8], esi
mov eax, dword [0x300119ec]
cmp eax, esi
jne 0x3000ed2e
push 0x300012d0
push 0x300012b0
call sub.MSVCR80.dll__initterm
pop ecx
pop ecx
mov dword [0x300119ec], 2
cmp dword [ebp - 0x1c], ebx
jne 0x3000ed3b
push ebx
push edi
call dword [sym.imp.kernel32.dll_InterlockedExchange]
cmp dword [0x300119fc], ebx
je 0x3000ed5c
push 0x300119fc
call fcn.3000f2be
pop ecx
test eax, eax
je 0x3000ed5c
push ebx
push 2
push ebx
call dword [0x300119fc]
mov eax, dword [0x30011690]
mov ecx, dword [sym.imp.MSVCR80.dll___winitenv]
mov dword [ecx], eax
push dword [0x30011690]
push dword [0x30011694]
push dword [0x3001168c]
call fcn.3000bb5c
add esp, 0xc
mov dword [0x300116a4], eax
cmp dword [0x30011698], ebx
jne 0x3000edc7
push eax
call dword [sym.imp.MSVCR80.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.MSVCR80.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x300116a8], ebx
jne 0x3000edd5
call dword [sym.imp.MSVCR80.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x300116a4]
call fcn.3000ef9f
ret
call fcn.3000bb5c
jmp 0x3000ec71
Function at 0x401393
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
and dword [ebp - 8], 0
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x30], 0x9e3779b9
push edi
lea ecx, [ebp - 8]
mov dword [ebp - 0x34], esi
mov eax, dword [esi]
mov edi, dword [esi + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [0x41a308]
mov dword [ebp - 0x24], eax
mov eax, dword [0x41a30c]
mov dword [ebp - 0x2c], eax
call fcn.0040138c
mov eax, dword [0x41a314]
add dword [ebp - 8], 0x23f
mov esi, dword [0x41a310]
push 0x20
mov dword [ebp - 0x20], eax
pop ebx
mov dword [ebp - 0x18], 2
add dword [ebp - 0x18], 3
mov eax, dword [ebp - 0x14]
shl eax, 4
add eax, esi
mov dword [ebp - 0x1c], 0xedeb2e40
cmp dword [0xb66c28], 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0xb66c24]
cmove eax, dword [ebp - 0x1c]
and dword [ebp - 0x1c], 0
cmp dword [0xb66c28], 0x3eb
mov dword [0xb66c24], eax
mov eax, dword [0xb666b0]
cmove eax, dword [ebp - 0x1c]
mov dword [0xb666b0], eax
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
shr eax, 5
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x20]
xor eax, dword [ebp - 0x1c]
xor eax, dword [ebp - 4]
sub edi, eax
mov dword [ebp - 0xc], eax
mov eax, edi
mov dword [0xb66c20], 0xf4ea3dee
shl eax, 4
mov dword [ebp - 0x28], edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x28]
nop
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x18]
mov eax, edi
shr eax, cl
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
xor eax, dword [ebp - 0x1c]
cmp dword [0xb66c28], 0xb03
mov dword [ebp - 4], eax
jne 0x4014c0
push str.Poh_petopanoz_fonoso_culowisuvekocamoc
push edx
push edx
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov eax, dword [ebp - 4]
xor eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x30]
sub dword [ebp - 8], eax
dec ebx
jne 0x4013e4
mov esi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x14]
mov dword [esi + 4], edi
pop edi
mov dword [esi], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret