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

Disassembly:
push 0xffffffffffffffff
push 0x47fec8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [0x4814cc]
push 0
lea ecx, [esp + 0x20]
call fcn.00478913
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00442390
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00478841
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.00475105
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.00475105
push 1
push 0
push 0
mov ecx, esi
call fcn.004750ad
push 1
push 0
push 1
mov ecx, esi
call fcn.004750ad
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00478985
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x442bb0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47fee8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00478913
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00442390
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00478841
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [0x4814cc]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x442c74
cmp dword [esp + 0x40], 1
jne 0x442c72
cmp ecx, eax
jge 0x442c74
mov eax, ecx
cmp eax, 0xc8
jge 0x442c80
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00442a30
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [0x4814c8]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00478985
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x443470
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47ff93
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.00473523
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], 0x350fa30
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], 0x350f978
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 [0x481050]
push eax
mov ecx, edi
call fcn.00478bbb
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0047a0d7
test eax, eax
je 0x44358c
mov ecx, dword [esp + 0x3c]
call fcn.00478be8
mov ecx, dword [esi + 0x1c]
mov ebp, dword [0x4814ec]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x443550
push edi
mov ecx, esi
call fcn.00476258
mov ecx, esi
call fcn.00443730
cmp dword [esp + 0x38], 1
jne 0x443585
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.00476393
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 0x445770
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4457a3
push esi
call fcn.00453b30
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44579c
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 0x445829
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x445812
mov eax, dword [esi + 8]
test eax, eax
je 0x4457c7
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 0x44580e
cmp eax, 2
je 0x445812
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4457ba
cmp eax, 3
je 0x4457ed
cmp eax, 1
jne 0x4457ba
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 0x4457ba
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4457ba
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00445850
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x445838
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00445850
add esp, 4
pop esi
ret
Function at 0x407180
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x4071be
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x4071b6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4071c0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4071a6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4072a0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x4072b6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x4072d1
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
mov ecx, 0x50ac60ed
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42f314
nop
nop
mov ecx, 0x27060f7
nop
nop
nop
test eax, eax
nop
nop
je 0x432084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x10003e20
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
mov ebx, dword [edi + 4]
lea ecx, [ecx + eax + 0x18]
jbe 0x10003ee1
lea esi, [ecx + 0x10]
mov eax, dword [esi]
test eax, eax
jne 0x10003e8a
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x38]
test eax, eax
mov dword [ebp - 8], eax
jle 0x10003ecc
push 4
push 0x1000
push eax
mov eax, dword [esi - 4]
add eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x10003eeb
mov eax, dword [esi - 4]
push dword [ebp - 8]
add eax, ebx
push eax
mov dword [esi - 8], eax
call fcn.10003d3b
pop ecx
pop ecx
jmp 0x10003ecc
mov ecx, dword [esi + 4]
add ecx, eax
push ecx
call fcn.10003e04
test eax, eax
je 0x10003eeb
mov eax, dword [esi - 4]
push 4
push 0x1000
push dword [esi]
add eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x10003eeb
mov edi, dword [esi - 4]
mov ecx, dword [esi + 4]
add ecx, dword [ebp + 8]
mov edx, dword [esi]
add edi, ebx
mov eax, edi
call fcn.10003d59
mov dword [esi - 8], edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
movzx eax, word [eax + 6]
inc dword [ebp - 4]
add esi, 0x28
cmp dword [ebp - 4], eax
jl 0x10003e4a
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
xor eax, eax
jmp 0x10003ee4
Function at 0x10008bf0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x10008c10
cmp dword [edi + 0x54], 0
jne 0x10008c10
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.10012d69
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.10008bb7
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x1000c51a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x1000c553
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.10008d02
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.10008cdd
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x1000e066
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x1000e0a9
call fcn.10012d69
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x1000e0a9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x1000e0c4
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.1000dc1d
test ebx, ebx
mov esi, eax
je 0x1000e0c2
test edi, edi
je 0x1000e0c2
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x1000efce
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x100394b7
call fcn.10026061
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x1000eff3
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x1000f03f
call fcn.1000f99f
push eax
lea ecx, [ebp - 0x10]
call fcn.10002530
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1000e8e6
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.10002516
mov eax, esi
call fcn.10026139
ret 8
Function at 0x10010b76
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x10010bbc
call fcn.10012d69
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x10010bbc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x10010bff
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x10010be8
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x10010be8
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x10010bfc
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x100230b4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1004e510]
jne 0x100230be
repz ret
jmp fcn.10029d60

Function at 0x10034950
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.1002a986
xor ebx, ebx
cmp dword [0x100b7a24], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x10034a25
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x10034990
xor eax, eax
jmp 0x10034ae9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10041e78
push edi
call esi
cmp eax, ebx
je 0x10034989
push eax
call fcn.1002a923
mov dword [esp], 0x10041e68
push edi
mov dword [0x100b7a24], eax
call esi
push eax
call fcn.1002a923
mov dword [esp], 0x10041e54
push edi
mov dword [0x100b7a28], eax
call esi
push eax
call fcn.1002a923
mov dword [0x100b7a2c], eax
lea eax, [ebp - 8]
push eax
call fcn.10027de5
test eax, eax
pop ecx
pop ecx
je 0x100349f3
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10029e6e
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x10034a25
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.1002a923
cmp eax, ebx
pop ecx
mov dword [0x100b7a34], eax
je 0x10034a25
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1002a923
pop ecx
mov dword [0x100b7a30], eax
mov eax, dword [0x100b7a30]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x10034a9e
cmp dword [0x100b7a34], esi
je 0x10034a9e
push eax
call fcn.1002a98f
pop ecx
call eax
cmp eax, ebx
je 0x10034a6b
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x100b7a34]
call fcn.1002a98f
pop ecx
call eax
test eax, eax
je 0x10034a6b
test byte [ebp - 0x18], 1
jne 0x10034a9e
lea eax, [ebp - 0xc]
push eax
call fcn.10027e1c
test eax, eax
pop ecx
je 0x10034a86
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10029e6e
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x10034a95
or dword [ebp + 0x10], 0x200000
jmp 0x10034acf
or dword [ebp + 0x10], 0x40000
jmp 0x10034acf
mov eax, dword [0x100b7a28]
cmp eax, esi
je 0x10034acf
push eax
call fcn.1002a98f
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x10034acf
mov eax, dword [0x100b7a2c]
cmp eax, esi
je 0x10034acf
push dword [ebp - 4]
push eax
call fcn.1002a98f
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x100b7a24]
call fcn.1002a98f
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407180
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x4071be
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x4071b6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4071c0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4071a6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4072a0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x4072b6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x4072d1
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

Function at 0x5dd96c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x5dd987
add esi, 0x1000
lea eax, [ebp - 0x2bc]
push edx
push 0x1c
push eax
push esi
call dword [edx + 0x124a2bac]
pop edx
test eax, eax
je 0x5dda59
cmp dword [ebp - 0x2ac], 0x1000
jne 0x5dda48
test dword [ebp - 0x2a8], 1
jne 0x5dda48
and dword [ebp - 0x2a8], 0x100
jne 0x5dda48
push esi
push edx
push 4
push esi
call dword [edx + 0x122d2b0d]
pop edx
pop esi
test eax, eax
je 0x5dd9eb
jmp 0x5dda48
cmp word [esi], 0x5a4d
jne 0x5dda48
mov eax, esi
push ebx
mov ebx, dword [esi + 0x3c]
add eax, ebx
pop ebx
cmp dword [eax], 0x4550
jne 0x5dda48
lea eax, [ebp - 0x28c]
push edx
push 0x28a
push eax
push esi
call dword [edx + 0x122d2d29]
pop edx
test eax, eax
je 0x5dda48
lea eax, [ebp - 0x28c]
push eax
call fcn.005dd8c8
test eax, eax
jne 0x5dda41
jmp 0x5dda48
mov eax, esi
jmp 0x5dda59
mov esi, dword [ebp - 0x2b0]
add esi, dword [ebp - 0x2bc]
jmp 0x5dd987
pop esi
leave
ret 4

Function at 0x438c81
Capabilities:
Encode data using xor

Disassembly:
push 0x438a14
pop eax
dec ebx
call fcn.00438caf
or ebx, ebx
xor dword [ecx], eax
and ebx, esi
inc ecx
or ebx, esi
or esi, esi
add esi, ebx
cmp ecx, edi
jne fcn.00438c81
or esi, ebx
mov ebx, ebx
add esi, 0xed73bac2
ret
Function at 0x6620146b
Capabilities:
Accept command line arguments
Create process on windows
Query environment variable
Set environment variable
Terminate process

Disassembly:
mov eax, 0x6621b39d
call fcn.6620d074
sub esp, 0x3bc
push ebx
push esi
push edi
push 0xffffffffffffffff
push dword [ebp + 8]
lea ecx, [ebp - 0x110]
call fcn.66203100
mov esi, dword [ebp + 0x10]
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [esi + 4], edi
je 0x662014af
push 0x104
lea eax, [ebp - 0x3c8]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.6620d590
xor ecx, ecx
xor edx, edx
inc edx
movzx ebx, cl
test eax, eax
lea eax, [ebp - 0x3c8]
push ecx
cmovne ebx, edx
cmp dword [esi + 4], ecx
push ecx
push ecx
cmove eax, ecx
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.66206580
add esp, 0x1c
test al, al
je 0x662015fb
push 0x44
pop esi
push esi
xor edi, edi
lea eax, [ebp - 0x60]
push edi
push eax
call fcn.6620d500
add esp, 0xc
mov dword [ebp - 0x60], esi
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
lea ecx, [ebp - 0x1c0]
push 0xffffffffffffffff
push esi
call fcn.66203100
mov byte [ebp - 4], 1
test bl, bl
jne 0x6620157c
movzx eax, word [esi]
push 0x22
pop ecx
cmp ax, cx
jne 0x6620155c
jmp 0x6620153e
cmp cx, ax
je 0x6620154b
add esi, 2
movzx eax, word [esi]
test ax, ax
jne 0x66201539
jmp 0x66201561
add esi, 2
jmp 0x66201561
cmp ax, 0x20
je 0x66201561
add esi, 2
movzx eax, word [esi]
test ax, ax
jne 0x66201550
push esi
push dword [ebp - 0x110]
lea eax, [ebp - 0x1c0]
push str.__ls__ls
push eax
call fcn.662045c0
add esp, 0x10
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push edi
push str.TS_SOURCE
call esi
push edi
push str.TS_ORIGIN
call esi
test bl, bl
je 0x662015bf
push dword [ebp - 0x110]
push str.TS_UPDATED_DATFILE
call esi
lea eax, [ebp - 0x1c]
xor ebx, ebx
push eax
lea eax, [ebp - 0x60]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
push dword [ebp - 0x1c0]
push dword [ebp + 0xc]
jmp 0x662015dc
lea eax, [ebp - 0x1c]
xor ebx, ebx
push eax
lea eax, [ebp - 0x60]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
push dword [ebp - 0x1c0]
push dword [ebp - 0x110]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x662015ed
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea ecx, [ebp - 0x1c0]
mov byte [ebp - 4], bl
call fcn.66203220
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x110]
call fcn.66203220
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x6620161b
Capabilities:
Set environment variable

Disassembly:
mov eax, 0x6621b3b2
call fcn.6620d074
sub esp, 0xb0
push ebx
push esi
lea ecx, [ebp - 0xbc]
call fcn.662031a0
mov ecx, dword [ebp + 8]
xor ebx, ebx
push ebx
mov dword [ebp - 4], ebx
call fcn.66203cc0
push ebx
lea eax, [ebp - 0xbc]
mov esi, str.TS_UPDATED_DATFILE
push eax
push esi
call fcn.66203d90
add esp, 0xc
test eax, eax
js 0x66201679
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0xbc]
push eax
call fcn.66203f30
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xbc]
call fcn.66203220
mov ecx, dword [ebp - 0xc]
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x66201da0
Capabilities:
Create process on windows
Create process suspended
Delete file
Set environment variable

Disassembly:
mov eax, 0x6621b4a8
call fcn.6620d074
sub esp, 0x314
push ebx
lea ecx, [ebp - 0x270]
call fcn.662031a0
xor ebx, ebx
lea ecx, [ebp - 0x1c0]
mov dword [ebp - 4], ebx
call fcn.662031a0
lea eax, [ebp - 0x1c0]
mov byte [ebp - 4], 1
push str.TS_UPDATE_THINREG
push eax
call fcn.662045c0
push ebx
lea eax, [ebp - 0x270]
push eax
push dword [ebp - 0x1c0]
call fcn.66203d90
add esp, 0x14
test eax, eax
jne 0x66201f2b
push esi
push edi
lea eax, [ebp - 0x270]
push eax
lea ecx, [ebp - 0xcc]
call fcn.66202f60
push ebx
push ebx
push 0xffffffffffffffff
xor edi, edi
mov byte [ebp - 4], 2
push 0x6621c4f0
inc edi
lea ecx, [ebp - 0xcc]
push edi
call fcn.662033b0
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0xcc]
push ebx
push ebx
push dword [eax + 4]
push dword [eax]
push edi
call fcn.662033b0
push ebx
push ebx
push 0xffffffffffffffff
push str..exe
push edi
lea ecx, [ebp - 0xcc]
call fcn.662033b0
push ebx
push ebx
push 0xffffffffffffffff
push 0x6621c508
push edi
lea ecx, [ebp - 0xcc]
call fcn.662033b0
push 0x44
pop esi
push esi
lea eax, [ebp - 0x110]
push ebx
push eax
call fcn.6620d500
add esp, 0xc
mov dword [ebp - 0x110], esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x110]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0xcc]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x66201ec6
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x1c]
call esi
mov eax, dword [ebp - 0xcc]
push 0x22
pop ecx
cmp word [eax], cx
jne 0x66201f0e
push edi
push ecx
lea ecx, [ebp - 0xcc]
call fcn.66204310
cmp eax, 0xffffffff
je 0x66201f0e
dec eax
lea ecx, [ebp - 0xcc]
push eax
push edi
lea eax, [ebp - 0x320]
push eax
call fcn.6620247a
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x320]
call fcn.66203220
push ebx
push str.TS_UPDATE_THINREG
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], 1
call fcn.66203220
pop edi
pop esi
lea ecx, [ebp - 0x1c0]
mov byte [ebp - 4], bl
call fcn.66203220
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x270]
call fcn.66203220
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret