joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403440
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x120
push ebx
push ebp
push esi
push edi
call fcn.004055e0
push eax
lea eax, [esp + 0x34]
push 0x40d580
push eax
call fcn.0040652e
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
mov esi, dword [esp + 0x134]
push eax
not ecx
dec ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov cl, byte [esp + 0x13c]
push 4
inc ebx
push edx
push esi
mov byte [esp + 0x20], cl
mov byte [esp + 0x21], 0x40
mov byte [esp + 0x22], 0x9c
mov byte [esp + 0x23], bl
call sub.WS2_32.dll_send
cmp eax, 4
jl 0x40350a
push 0
lea eax, [esp + 0x34]
push ebx
push eax
push esi
call sub.WS2_32.dll_send
cmp eax, ebx
jl 0x40350a
mov ebp, dword [esp + 0x13c]
test ebp, ebp
je 0x40350a
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
push 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 4
mov ebx, ecx
inc ebx
mov ecx, ebx
mov edx, ebx
sar ecx, 8
mov byte [esp + 0x19], cl
mov eax, ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], bl
sar edx, 0x10
sar eax, 0x18
push ecx
push esi
mov byte [esp + 0x22], dl
mov byte [esp + 0x23], al
call sub.WS2_32.dll_send
push 0
push ebx
push ebp
push esi
call sub.WS2_32.dll_send
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x120
ret

Function at 0x403640
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x10]
push esi
xor ecx, ecx
xor esi, esi
xor eax, eax
test ebx, ebx
push edi
jle 0x403662
cmp byte [eax + ebp], 0xa
jne 0x40365d
inc ecx
inc eax
cmp eax, ebx
jl 0x403656
lea eax, [ecx + ebx + 1]
push eax
call fcn.00406915
add esp, 4
xor ecx, ecx
test ebx, ebx
mov edi, eax
jle 0x403695
mov dl, 0xd
mov al, byte [ecx + ebp]
cmp al, 0xa
jne 0x40368c
mov byte [edi + esi], al
mov byte [edi + esi + 1], dl
add esi, 2
jmp 0x403690
mov byte [edi + esi], al
inc esi
inc ecx
cmp ecx, ebx
jl 0x403679
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov byte [edi + esi], 0
inc esi
push ecx
push esi
push edi
push edx
call sub.WS2_32.dll_send
push edi
call fcn.004068ac
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x404b00
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
mov dx, word [esp + 8]
lea ecx, [eax + eax*4]
mov word [ecx*8 + 0x412500], dx
lea ecx, [esp + 8]
push ecx
push 0
push eax
push 0x404b30
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret
Function at 0x404c20
Capabilities:
Create thread

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov ecx, dword [ebx + 8]
inc ecx
mov eax, ecx
mov dword [ebx + 8], ecx
cmp eax, 1
jbe 0x404c52
mov esi, dword [esp + 0x10]
push 0x40d058
push 0xfffffffffffffffe
push esi
call fcn.00404cb0
push esi
push ebx
call fcn.00401220
add esp, 0x14
pop esi
pop ebx
ret
push edi
push 0x10018
call fcn.004063c0
mov esi, eax
mov ecx, 0x4006
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov dword [esi + 0x10010], eax
mov eax, dword [esp + 0x18]
push 0
push 0
push eax
mov dword [esi + 8], ebx
mov dword [esi], eax
call fcn.00404cb0
add esp, 0x10
lea eax, [esp + 0x10]
push eax
push 0
push esi
push 0x404d30
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
pop ebx
ret

Function at 0x404cb0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x100
push ebx
push esi
push edi
call fcn.004055e0
push eax
lea eax, [esp + 0x10]
push 0x40df20
push eax
call fcn.0040652e
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
mov ebx, dword [esp + 0x110]
dec ecx
mov esi, ecx
push eax
inc esi
lea ecx, [esp + 0x10]
push esi
push ecx
push ebx
call sub.WS2_32.dll_send
cmp eax, esi
jl 0x404d1a
mov edx, dword [esp + 0x118]
test edx, edx
je 0x404d1a
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
push 0
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
push ebx
call sub.WS2_32.dll_send
pop edi
pop esi
pop ebx
add esp, 0x100
ret
Function at 0x404d80
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
mov esi, dword [esp + 0x118]
push edi
xor ebx, ebx
push esi
mov dword [esp + 0x14], ebx
call fcn.004050d0
add esp, 4
mov eax, dword [esi]
push ebx
push 7
push 0x40df60
push eax
mov dword [esp + 0x24], ebx
call fcn.00403640
mov edx, dword [esi]
add esp, 0x10
lea ecx, [esp + 0x98]
mov byte [esp + 0x18], 0
push ebx
push 0x7f
push ecx
push edx
call sub.WS2_32.dll_recv
mov ecx, dword [esi]
mov ebp, eax
push ebx
lea eax, [esp + 0x9c]
push ebp
push eax
push ecx
call sub.WS2_32.dll_send
cmp ebp, ebx
jle 0x404e7e
lea edi, [esp + 0x98]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
add ebx, ebp
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test ebx, ebx
mov byte [esp + ebx + 0x18], al
jle 0x404e39
cmp byte [esp + eax + 0x18], 0xa
jne 0x404e34
mov dword [esp + 0x14], 1
inc eax
cmp eax, ebx
jl 0x404e25
cmp ebx, 0x7f
jae 0x404e88
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x404e88
mov esi, dword [esp + 0x11c]
push 0
lea eax, [esp + 0x9c]
push 0x7f
mov ecx, dword [esi]
push eax
push ecx
call sub.WS2_32.dll_recv
mov ebp, eax
mov eax, dword [esi]
push 0
lea edx, [esp + 0x9c]
push ebp
push edx
push eax
call sub.WS2_32.dll_send
test ebp, ebp
jg 0x404deb
mov dword [esp + 0x10], 1
jmp 0x404e8f
mov esi, dword [esp + 0x11c]
lea ecx, [esp + 0x18]
push esi
push ecx
mov byte [esp + ebx + 0x1e], 0
call fcn.00404ec0
add esp, 8
cmp al, 1
jne 0x404eb4
mov eax, dword [esp + 0x10]
xor ebx, ebx
cmp eax, ebx
je 0x404da0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret

Function at 0x4050d0
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
sub esp, 0x84
push esi
mov esi, dword [esp + 0x8c]
lea eax, [esp + 4]
mov dword [esp + 4], 1
mov ecx, dword [esi]
push eax
push 0x8004667e
push ecx
call sub.WS2_32.dll_ioctlsocket
mov eax, dword [esi]
push 0
lea edx, [esp + 0xc]
push 0x80
push edx
push eax
call sub.WS2_32.dll_recv
mov edx, dword [esi]
lea ecx, [esp + 4]
push ecx
push 0x8004667e
push edx
mov dword [esp + 0x10], 0
call sub.WS2_32.dll_ioctlsocket
pop esi
add esp, 0x84
ret

Function at 0x4051e0
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 4]
push esi
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [0x4120d8]
not ecx
dec ecx
test eax, eax
mov esi, ecx
je 0x405227
test esi, esi
je 0x405227
mov ecx, dword [0x4120e0]
add ecx, esi
cmp ecx, 0x8000000
ja 0x405227
lea ecx, [esp + 0xc]
push 0
push ecx
push esi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
add dword [0x4120e0], esi
pop edi
pop esi
ret
Function at 0x405270
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [0x4120d8]
push esi
test eax, eax
je 0x4052ac
mov esi, dword [esp + 0xc]
test esi, esi
je 0x4052ac
mov ecx, dword [0x4120e0]
add ecx, esi
cmp ecx, 0x8000000
ja 0x4052ac
mov ecx, dword [esp + 8]
lea edx, [esp + 0xc]
push 0
push edx
push esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
add dword [0x4120e0], esi
pop esi
ret
Function at 0x417705
Capabilities:
Encode data using xor

Disassembly:
xor eax, 0x6982c72e
mov al, 0x6e
mov ch, cl
dec edx
cdq
mov al, byte [0xcfa2a4d7]
and eax, 0xcab9c52
sub byte [edx + 0x3b], dl
stosb byte es:[edi], al
push ebx
push es
add eax, 0x5d8249b3
in al, dx
sbb byte [esi], bh
fnstcw word [ebx + 0x30]
cdq
cmp dword [ecx + 0x46], eax
and esp, dword [ebp + 0x6a6d6b82]
mov dh, 0xb6
mov ebx, 0xdb6fa0f3
and dword [ebp - 0x71], edx
inc esp
out 0xe2, eax
xlatb
pop edx
xchg esi, eax
jle 0x4176b5
popfd
xor ah, byte [esp + ecx*4 + 0x54]
push edx
xor ebp, ebx
lcall 0x512e, 0x9991bc02
lcall 0x74a4, 0x769e7518
mov ebp, 0x26f22a8f
or eax, 0x2d4b42bd
sahf
adc byte [esp + eax*8 - 0x222efb03], al
push eax
ljmp 0xee8d
fst qword [eax - 0x16]
xor dl, byte [esi + 0x3c]
jae 0x41764a
out dx, al
movsb byte es:[edi], byte [esi]
test dword [0x610e74fa], eax
cli
je 0x4176d2
popal
pop edx
push 0xc214503b
pop esi
sub dl, dl
jae 0x41768b
cmp bh, 0x98
cwde
cli
loopne 0x4176e0
or bl, byte [eax + 0x64]
dec edi
pop eax
dec edi
dec ebp
mov edx, 0x48315b78
loopne 0x4176d5
ror edx, 1
adc esp, dword [esi - 0x374e387c]
inc esp
aas
adc byte [edi - 0x55], cl
invalid
fidiv word [ecx + 0x1e50d771]
pushfd
in eax, 0xbe
pop esp
mov byte [0x1cc46591], al
or dl, byte [edx + 0x15]
aaa
or dword [edx + 0x26f8e23d], edx
pop ebp
jbe 0x4176c1
cmp eax, 0x5b214a21
insb byte es:[edi], dx
enter 0x5079, 0xffffffffffffffc6
leave
add eax, 0x7cd1e1e8
xor al, cl
push cs
or bh, al
or cl, 0xa6
pop di
jecxz 0x4177af
jns 0x41777a
invalid
lahf
out dx, eax
aam 0xa1
push es
mov dword [edi], eax
jae 0x41778d
xor dword [ebx], ecx
loope 0x417728
daa
and dword cs:[ecx], edx
mov esi, 0xd27b784
adc al, 0x9f
push edi
mov al, byte [0x7f1e8397]
sbb dword [esi], 0x7f
test byte [esi], ch
push cs
and dword [esi - 0x5f], esi
xor eax, 0xd9e89fe1
loope 0x417758
push 0x4c
mov dword [0xe224c5be], eax
pop es
scasd eax, dword es:[edi]
out 0x9d, eax
or bh, ah
fisttp qword [edi + 0x7d283d9]
rol byte [edi], cl
pop es
invalid
mov ecx, 0x19f36ed
jmp 0x95eedc29
loopne 0x417779
sahf
mov bl, 0xe7
das
or bl, byte [edx]
mov al, 0x64
xor dl, ch
adc dword [ebp - 0x6a], 0x1e07e12e
pushal
inc eax
or edx, edx
rcl byte [esi + ebx*4]
push ebx
scasd eax, dword es:[edi]
invalid

Function at 0x417c10
Capabilities:
Get common file path

Disassembly:
sub esp, 0x58
mov eax, dword [0x5fc038]
mov dword [esp + 4], 0
push esi
lea ecx, [eax + eax]
mov eax, dword [0x5fc03c]
or ecx, eax
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x60]
fild qword [esp + 4]
test ecx, ecx
fadd qword [0x5fc050]
fstp qword [0x5fc050]
je 0x417c63
mov eax, dword [0x5ff800]
test eax, eax
je 0x417c57
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
pop esi
add esp, 0x58
ret 4
add al, 0
Function at 0x41883d
Capabilities:
Encode data using xor

Disassembly:
add bl, ch
add cl, byte [ebx + 0x1818b00]
test esi, esi
je 0x41885c
mov cx, word [esi]
add byte [eax], al
add bh, byte [ebx]
push esi
add dh, byte [edx + eax + 1]
mov ebx, dword [esi]
cmp edx, dword [esi + 2]
je 0x418856
add dword [ebx + 0x49de011e], ecx
push ds
add esi, ebx
dec ecx
jne 0x41884f
add byte [eax], al
fadd qword [ebp - 0x53228a40]
add ebx, ebp
or al, byte [ebx - 0x36cef93a]
add byte [eax], al
inc ecx
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov dword [0x57565301], eax
xor ecx, ecx
xor edi, edi
add byte [eax], al
push eax
mov eax, dword [eax]
mov esi, dword [eax + 0x25]
add esi, esi
je 0x41889c
mov di, word [esi]
add dword [eax], 0
mov cl, byte [esi + 6]
cmp cl, bl
pushfd
add dword [ebp + 0x4f073174], ecx
jne 0x41888e
add byte [eax], al
fadd qword [ebp + 0x3bdc75c0]
add dword [ebx], ebx
mov bl, byte [edx]
mov cl, byte [esi + 6]
jmp 0x4188ad
add byte [ecx + esi + 6], bl
xor bl, byte [eax + edx*4]
add ebx, esp
fbstp tbyte [ebp - 0x13]
dec ecx
jne 0x4188ad
add byte [eax], al
pop edx
add eax, edx
pop edi
pop esi
lea eax, [ecx]
push edx
push ecx
push ebx
test dl, dl
jl 0x4188cf
add byte [eax], al
hlt
xor edx, edx
lea ecx, [ebx + ecx*4 + 1]
mov ebx, dword fs:[edx]
mov dword [ecx], ebx
mov dword [ecx], ebp
add byte [ecx + 4], al
imul eax, dword [edx + 0x40], 0xc4101c9
mov dword fs:[edx], ecx
pop ebx
pop ecx
add byte [eax], al
jmp 0x418a41
mov eax, dword [ebp + edx*8 + 1]
test dword [eax + 4], 6
add byte [eax], al
adc eax, dword [ecx]
add byte [eax], al
sub dword [ecx], 0xeedfa01
mov edx, dword [eax + 0x18]
mov eax, dword [eax]
add byte [esi + ebp*2 - 4], dh
call 0xff43688d
mov edx, dword [0x59a010]
add byte [eax], al
je 0xf8418b65
add edx, edx
test eax, eax
je 0x418b65
mov edx, dword [esp + 0xc]
mov esp, dword [ecx + 0x39810401]
into
cli
out dx, eax
push cs
add byte [eax], al
call fcn.00418959
push 0x59303001
add byte [eax], al
jbe 0x418ac5
add byte [eax], al
sub al, 0x30
pop ecx
add byte [eax], al
push ss
add dword [ebp + 0x5004244c], ecx
push ecx
call fcn.00408ab0
cmp eax, 0
fld dword [ecx]
test byte [ebx - 0x77000000], ch
ret 0
mov edx, eax
mov eax, dword [esp + 4]
mov eax, dword [eax]
add byte [eax + 0x5930303d], al
scasd eax, dword es:[edi]
add dword [esi + 0x1e], esi
cmp byte [0x59302c], 0
ja 0x418af5
push eax
lea eax, [ebp + ebp*8 + 1]
push edx
push ecx
push eax
call 0x141596d
add al, bh
add byte [ecx + 0x5a], bl
pop eax
fadd dword [ecx]
or dword [eax + 4], 2
push ebx
xor ebx, ebx
add byte [eax], al
push ebp
mov ebx, dword fs:[ebx]
push ebx
mov ch, 1
push ecx
mov edx, dword [esp + 0x28]
push 0
add byte [eax], al
xchg esp, eax
inc esp
inc eax
add byte [edx - 0x73], dl
add dword [eax], ebx
mov al, byte [0x7c8b0059]
and al, 0
add byte [ebx + 0x2f], dl
add byte [eax], al
jmp [edi]
mov eax, 1
ret
Function at 0x5f4439
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x5fc3d0
cmp edx, dword [eax]
je 0x5f445b
add eax, 8
inc ecx
cmp eax, 0x5fc460
jl 0x5f444c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x5fc3d0]
jne 0x5f4589
mov eax, dword [0x603d70]
cmp eax, 1
je 0x5f4563
test eax, eax
jne 0x5f448c
cmp dword [0x5fc2f8], 1
je 0x5f4563
cmp edx, 0xfc
je 0x5f4589
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x5f44c3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.005f4e20
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.005f52b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x5f4506
lea eax, [ebp - 0x1a4]
push eax
call fcn.005f52b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x5f97d4
push edi
call fcn.005f7180
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.005f4e20
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.005f4e30
lea eax, [ebp - 0xa0]
push 0x5f97b4
push eax
call fcn.005f4e30
push dword [esi + 0x5fc3d4]
lea eax, [ebp - 0xa0]
push eax
call fcn.005f4e30
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.005f70f4
add esp, 0x2c
pop edi
jmp 0x5f4589
lea eax, [ebp + 8]
lea esi, [esi + 0x5fc3d4]
push 0
push eax
push dword [esi]
call fcn.005f52b0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x1001ac3
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
push esi
push edi
lea edx, [eax + 2]
xor edi, edi
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x1001ad4
push dword [ebp + 8]
sub eax, edx
sar eax, 1
mov esi, eax
call fcn.01001967
test eax, eax
je 0x1001b04
push edi
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x1001b48
push ebx
lea ebx, [esi + esi]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 4], eax
cmp eax, edi
je 0x1001b47
push edi
push edi
push ebx
push eax
push esi
push dword [ebp + 0xc]
push edi
push 1
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, edi
je 0x1001b3e
push edi
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop ebx
pop edi
pop esi
leave
ret 8

Function at 0x1002216
Capabilities:
Unload minifilter driver

Disassembly:
push 0x18
push 0x1003b88
call fcn.010035a8
mov dword [ebp - 0x24], 8
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x28], 1
mov dword [ebp - 4], esi
cmp dword [ebp + 8], 3
je 0x100224a
mov dword [ebp - 0x24], 2
jmp 0x100226e
push 0xa
call fcn.01001905
cmp eax, esi
je 0x1002265
mov eax, dword [ebp + 0xc]
push dword [eax + 8]
call sub.FLTLIB.DLL_FilterUnload
mov dword [ebp - 0x20], eax
jmp 0x100226e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xfffffffe
call fcn.01002284
mov eax, ecx
call fcn.010035ed
ret 8
Function at 0x1003581
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1003cc8
call fcn.010035a8
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, 0x100559c
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1003396
cmp eax, esi
jne 0x1003389
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x1003399
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1003370
xor esi, esi
inc esi
mov eax, dword [0x1005598]
cmp eax, esi
jne 0x10033ac
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x10033e7
mov eax, dword [0x1005598]
test eax, eax
jne 0x10033e1
mov dword [0x1005598], esi
push 0x1001128
push 0x100111c
call fcn.010032ed
pop ecx
pop ecx
test eax, eax
je 0x10033e7
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x10034b1
mov dword [0x100525c], esi
mov eax, dword [0x1005598]
cmp eax, esi
jne 0x100340b
push 0x1001118
push 0x1001110
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1005598], 2
cmp dword [ebp - 0x1c], ebx
jne 0x1003418
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x10055a0], ebx
je 0x1003439
push 0x10055a0
call fcn.010037c9
pop ecx
test eax, eax
je 0x1003439
push ebx
push 2
push ebx
call dword [0x10055a0]
push dword [0x1005244]
push dword [0x1005248]
push dword [0x1005240]
call fcn.01003193
add esp, 0xc
mov dword [0x1005258], eax
cmp dword [0x100524c], ebx
jne 0x1003497
push eax
call dword [sym.imp.msvcrt.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.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x100525c], ebx
jne 0x10034a5
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1005258]
call fcn.010035ed
ret
call fcn.01003916
jmp 0x100334e
Function at 0x486f22
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
add esp, 4
pop ecx
push edx
add edx, 0x126ac
xor edx, 0x6eff
pop edx
mov eax, dword [ebp - 0x4d4]
mov dword [ebp - 0x2e0], eax
jmp 0x486faa
Function at 0x6620146b
Capabilities:
Accept command line arguments
Create process on windows
Query environment variable
Set environment variable
Terminate process

Disassembly:
mov eax, 0x6621b2ad
call fcn.6620cf84
sub esp, 0x3bc
push ebx
push esi
push edi
push 0xffffffffffffffff
push dword [ebp + 8]
lea ecx, [ebp - 0x110]
call fcn.662030f0
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.6620d4a0
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.66206550
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.6620d410
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.662030f0
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.662045b0
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.66203210
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x110]
call fcn.66203210
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, 0x6621b2c2
call fcn.6620cf84
sub esp, 0xb0
push ebx
push esi
lea ecx, [ebp - 0xbc]
call fcn.66203190
mov ecx, dword [ebp + 8]
xor ebx, ebx
push ebx
mov dword [ebp - 4], ebx
call fcn.66203cb0
push ebx
lea eax, [ebp - 0xbc]
mov esi, str.TS_UPDATED_DATFILE
push eax
push esi
call fcn.66203d80
add esp, 0xc
test eax, eax
js 0x66201679
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0xbc]
push eax
call fcn.66203f20
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.66203210
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, 0x6621b3b8
call fcn.6620cf84
sub esp, 0x314
push ebx
lea ecx, [ebp - 0x270]
call fcn.66203190
xor ebx, ebx
lea ecx, [ebp - 0x1c0]
mov dword [ebp - 4], ebx
call fcn.66203190
lea eax, [ebp - 0x1c0]
mov byte [ebp - 4], 1
push str.TS_UPDATE_THINREG
push eax
call fcn.662045b0
push ebx
lea eax, [ebp - 0x270]
push eax
push dword [ebp - 0x1c0]
call fcn.66203d80
add esp, 0x14
test eax, eax
jne 0x66201f2b
push esi
push edi
lea eax, [ebp - 0x270]
push eax
lea ecx, [ebp - 0xcc]
call fcn.66202f50
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.662033a0
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0xcc]
push ebx
push ebx
push dword [eax + 4]
push dword [eax]
push edi
call fcn.662033a0
push ebx
push ebx
push 0xffffffffffffffff
push str..exe
push edi
lea ecx, [ebp - 0xcc]
call fcn.662033a0
push ebx
push ebx
push 0xffffffffffffffff
push 0x6621c508
push edi
lea ecx, [ebp - 0xcc]
call fcn.662033a0
push 0x44
pop esi
push esi
lea eax, [ebp - 0x110]
push ebx
push eax
call fcn.6620d410
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.66204300
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.66203210
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.66203210
pop edi
pop esi
lea ecx, [ebp - 0x1c0]
mov byte [ebp - 4], bl
call fcn.66203210
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x270]
call fcn.66203210
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret