joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b3779
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4f9658]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4b37bf
cmp word [ebx], dx
jne 0x4b37bf
or byte [eax + edi + 0x28], 4
jmp 0x4b37c4
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4b3927
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4b3907
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4b3805
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4b383b
cmp eax, edx
jae 0x4b3849
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x4b37e0
jmp 0x4b3927
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b3902
cmp dword [ebp - 0x18], 0
je 0x4b3902
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4f9658]
test byte [eax + edi + 0x28], 0x48
je 0x4b38d8
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4b389c
mov word [esi], cx
jmp 0x4b38d3
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4f9658]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4f9658]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4f9658]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4b3927
pop eax
cmp word [ebp - 4], ax
jne 0x4b38e8
cmp esi, ebx
jne 0x4b38e8
mov word [esi], ax
jmp 0x4b3924
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004b1076
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4b3927
push 0xd
pop eax
jmp 0x4b38e3
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4f9658]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4b3921
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4b3927
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4b8912
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4e648c
push 0x4e6484
push str.FlsAlloc
push 0x1f
call fcn.004b8791
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4b8946
push dword [ebp + 8]
mov ecx, esi
call dword [0x4c66f4]
call esi
jmp 0x4b894c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4b8990
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4e649c
push 0x4e6494
push str.FlsGetValue
push 0x21
call fcn.004b8791
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4b89c7
push dword [ebp + 8]
mov ecx, esi
call dword [0x4c66f4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4b89cf
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4e64a4
push 0x4e649c
push str.FlsSetValue
push 0x22
call fcn.004b8791
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4b8a09
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4c66f4]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4b9f93
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.004b9f0f
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4ba102
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4ba102
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4ba0b7
jg 0x4b9fef
test eax, eax
je 0x4ba0ad
push 1
push 0x1000
call fcn.004b85cd
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4ba012
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4ba0a4
push 0x8000
push ebx
call fcn.004b32f7
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4ba03b
jg 0x4ba036
cmp ecx, 0x1000
jb 0x4ba03b
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004b4896
add esp, 0x10
cmp eax, 0xffffffff
je 0x4ba080
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4ba036
jl 0x4ba067
test ecx, ecx
jne 0x4ba028
push dword [ebp - 0xc]
push ebx
call fcn.004b32f7
push esi
call fcn.004b6ef4
add esp, 0xc
xor ebx, ebx
jmp 0x4ba110
cmp byte [edi + 0x24], 0
je 0x4ba097
cmp dword [edi + 0x20], 5
jne 0x4ba097
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4ba0a2
mov ebx, dword [edi + 0x18]
jmp 0x4ba0a4
xor ebx, ebx
push esi
call fcn.004b6ef4
pop ecx
jmp 0x4ba110
test ecx, ecx
jg 0x4ba079
jl 0x4ba0b7
test eax, eax
jae 0x4ba079
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004b1076
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4ba0d7
cmp byte [edi + 0x1c], 0
je 0x4ba079
jmp 0x4ba108
push ebx
call fcn.004b9ea5
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4ba079
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4ba110
cmp byte [edi + 0x1c], 0
je 0x4ba10d
mov ebx, dword [edi + 0x18]
jmp 0x4ba110
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004b1076
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4bbebb
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4f6400]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4bbf06
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004bc056
test al, al
jne 0x4bbf00
sub edx, 2
cmp edx, edi
jne 0x4bbee6
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4bbf28
lea eax, [edi + 2]
cmp edx, eax
je 0x4bbf28
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004bbe07
add esp, 0x10
jmp 0x4bc022
push esi
lea ecx, [ebp - 0x255]
call fcn.004bc056
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4bbf6b
push dword [ebp - 0x25c]
jmp 0x4bbf18
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4bbfa8
cmp word [ebp - 0x226], 0
je 0x4bbfc9
cmp word [ebp - 0x226], ax
jne 0x4bbfa8
cmp word [ebp - 0x224], 0
je 0x4bbfc9
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004bbe07
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4bc015
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4bbf82
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4bbffd
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4bc022
push 0x4bbc37
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004ae460
add esp, 0x10
jmp 0x4bbff2
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049b9c6
leave
ret

Function at 0x4bc938
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4bc949
pop esi
ret
push ebx
push edi
push esi
call fcn.004bc901
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004b6f97
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4bc971
push ebx
push esi
push edi
call fcn.0049d420
add esp, 0xc
push 0
call fcn.004b6ef4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4bcd41
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004bc986
Function at 0x4c0a8d
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4f6400]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x4c0ad0
call fcn.004a1b7e
mov dword [eax], 0xf
call fcn.004a1b91
mov dword [eax], 0xd
call fcn.004a194f
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049b9c6
leave
ret
test eax, eax
jne 0x4c0ad7
inc eax
jmp 0x4c0ac4
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x4c0ac2
xor eax, eax
cmp ecx, 1
setne al
jmp 0x4c0ac4

Function at 0x4c20e0
Capabilities:
Parse pe header

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

Function at 0x10014510
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x1001451f
pop dword [ebp - 0x44]
mov eax, 0x1001451f
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x51fbc666
add dword [ebp - 0x54], 0xfc567ee5
mov dword [ebp - 0x50], 0x74e40ed8
sub dword [ebp - 0x50], 0x42b0c293
mov dword [ebp - 0x4c], 0x5ff5736e
sub dword [ebp - 0x4c], 0x13a92f40
mov dword [ebp - 0x48], 0xe98de313
sub dword [ebp - 0x48], 0xe98de313
lea eax, [ebp - 0x54]
push eax
mov eax, 0xc3285eea
add eax, 0x4cd9411e
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0x84dbe41e
add dword [ebp - 0x54], 0xef968538
mov dword [ebp - 0x50], 0x55000b06
sub dword [ebp - 0x50], 0x1393a991
mov dword [ebp - 0x4c], 0xa3412eb7
sub dword [ebp - 0x4c], 0x3fd1c24b
mov dword [ebp - 0x48], 0x884f214d
add dword [ebp - 0x48], 0x77b0deb3
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x385d8
push 0
call eax
mov ecx, 0xb389d93e
add ecx, 0x4c766744
xor edi, edi
add edi, eax
mov ebx, 0x10024a00
add ebx, dword [ebp - 0x44]
mov esi, 0x303b7f11
add esi, 0x4c2a928d
sub dword [ebp - 4], ecx
mov edx, dword [ebx]
add edx, esi
xor dword [ebp - 0x30], 0xfe6d9b9f
mov dword [edi], edx
add dword [ebp - 0x10], 0x61d1a889
add edi, 4
add ebx, 0xd2c23741
add ebx, 0x2d3dc8c3
loop 0x10014633
add eax, 0xd22ff986
sub eax, 0xd22f04ab
mov ebx, eax
add eax, 0x9e1fcc13
sub eax, 0x9e1fcc0e
mov ecx, 0x84590812
sub ecx, 0x74590812
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x1002aadf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x1002aaee
pop dword [ebp - 0x3c]
mov eax, 0x1002aaee
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0xf99c0041
sub dword [ebp - 0x4c], 0xab49baf6
mov dword [ebp - 0x48], 0x52b31173
add dword [ebp - 0x48], 0xdf803ad2
mov dword [ebp - 0x44], 0xa3a4a621
sub dword [ebp - 0x44], 0x575861f3
mov dword [ebp - 0x40], 0xa88e928a
add dword [ebp - 0x40], 0x57716d76
lea eax, [ebp - 0x4c]
push eax
mov eax, 0x7dfd8921
sub eax, 0x6dfac8e9
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0xe4cba8d7
sub dword [ebp - 0x4c], 0x70593f81
mov dword [ebp - 0x48], 0x12f032d0
sub dword [ebp - 0x48], 0xd183d15b
mov dword [ebp - 0x44], 0x2b8947b0
add dword [ebp - 0x44], 0x37e624bc
mov dword [ebp - 0x40], 0x4747c671
sub dword [ebp - 0x40], 0x4747c671
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, 0x6abe3b3f
add eax, 0xa54484e9
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x358f0
push 0
call eax
mov ecx, 0xed6dded1
sub ecx, 0xed6d9a74
xor ebx, ebx
add ebx, eax
mov esi, 0x10039600
add esi, dword [ebp - 0x3c]
mov edx, 0xf41c117f
add edx, 0x5e67983d
sub dword [ebp - 0x20], 0xe385ad03
mov edi, dword [esi]
add dword [ebp - 0x14], 0x2b265d1c
xor edi, edx
xor dword [ebp - 0x30], ecx
mov dword [ebx], edi
sub dword [ebp - 0x38], esi
add ebx, 0xb24d349a
sub ebx, 0xb24d3496
add esi, 4
loop 0x1002ac07
add eax, 0xd8c2c249
sub eax, 0xd8c1be02
mov ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x406798
Capabilities:
Create process on windows

Disassembly:
push ebx
add esp, 0xffffff00
mov ebx, edx
push 0
push 0x100
lea edx, [esp + 8]
push edx
push 0
push eax
push 0
push 0x3200
call sub.KERNEL32.DLL_WinExec
jmp 0x4067bf
dec eax
test eax, eax
jle 0x4067d1
mov dl, byte [esp + eax - 1]
sub dl, 0x21
jb 0x4067be
sub dl, 0xd
je 0x4067be
mov edx, esp
mov ecx, ebx
xchg ecx, eax
call fcn.00403798
add esp, 0x100
pop ebx
ret

Function at 0x4067b0
Capabilities:
Create process on windows

Disassembly:
push ebx
add esp, 0xffffff00
mov ebx, edx
push 0
push 0x100
lea edx, [esp + 8]
push edx
push 0
push eax
push 0
push 0x3200
call sub.KERNEL32.DLL_WinExec
jmp 0x4067bf
dec eax
test eax, eax
jle 0x4067d1
mov dl, byte [esp + eax - 1]
sub dl, 0x21
jb 0x4067be
sub dl, 0xd
je 0x4067be
mov edx, esp
mov ecx, ebx
xchg ecx, eax
call fcn.00403798
add esp, 0x100
pop ebx
ret

Function at 0x407f6c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x407ffc
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.KERNEL32.DLL_WriteFile
mov ebx, eax
test ebx, ebx
je 0x407fc8
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.00406798
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x10]
push eax
push 1
mov ecx, dword [0x40e01c]
mov dl, 1
mov eax, dword [0x4056dc]
call fcn.00407098
mov edx, eax
jmp 0x407fdc
mov ecx, dword [0x40e068]
mov dl, 1
mov eax, dword [0x4056dc]
call fcn.0040705c
mov edx, eax
mov dword [edx + 0xc], ebx
mov eax, edx
call fcn.00403108
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408003
lea eax, [ebp - 0x14]
call fcn.004036a8
ret
Function at 0x408ac4
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x228], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403b34
mov eax, dword [ebp - 8]
call fcn.00403b34
xor eax, eax
push ebp
push 0x408ca0
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov eax, dword [ebp - 4]
call fcn.00408d38
test al, al
je 0x408c75
mov eax, dword [ebp - 8]
call fcn.00408d38
test al, al
je 0x408c75
push 0x105
lea eax, [ebp - 0x119]
push eax
mov eax, dword [ebp - 4]
call fcn.00403b44
mov ebx, eax
push ebx
call sub.KERNEL32.DLL_GetCommandLineA
push 0x105
lea eax, [ebp - 0x21e]
push eax
mov eax, dword [ebp - 8]
call fcn.00403b44
mov esi, eax
push esi
call sub.KERNEL32.DLL_GetCommandLineA
lea eax, [ebp - 0x224]
lea edx, [ebp - 0x21e]
mov ecx, 0x105
call fcn.00403918
mov eax, dword [ebp - 0x224]
push eax
lea eax, [ebp - 0x228]
lea edx, [ebp - 0x119]
mov ecx, 0x105
call fcn.00403918
mov eax, dword [ebp - 0x228]
pop edx
call fcn.004058bc
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x408c75
push pe_nt_image_headers32
push ebx
call sub.KERNEL32.DLL_Sleep
mov ebx, eax
push pe_nt_image_headers32
push esi
call sub.KERNEL32.DLL_Sleep
mov esi, eax
test ebx, ebx
jle 0x408bc6
test esi, esi
jg 0x408bca
xor eax, eax
jmp 0x408bcc
mov al, 1
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x408be6
push ebx
call sub.KERNEL32.DLL_DeleteCriticalSection
push esi
call sub.KERNEL32.DLL_DeleteCriticalSection
jmp 0x408c75
push 0
push ebx
call sub.KERNEL32.DLL_RtlUnwind
mov edi, eax
push 0
push esi
call sub.KERNEL32.DLL_RtlUnwind
cmp edi, eax
sete byte [ebp - 9]
cmp byte [ebp - 9], 0
jne 0x408c12
push ebx
call sub.KERNEL32.DLL_DeleteCriticalSection
push esi
call sub.KERNEL32.DLL_DeleteCriticalSection
jmp 0x408c75
mov ecx, ebx
mov dl, 1
mov eax, dword [0x40865c]
call fcn.00408834
mov dword [ebp - 0x10], eax
mov ecx, esi
mov dl, 1
mov eax, dword [0x40865c]
call fcn.00408834
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x408c6e
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.00408a30
mov byte [ebp - 9], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408c75
mov eax, dword [ebp - 0x10]
call fcn.00402d14
mov eax, dword [ebp - 0x14]
call fcn.00402d14
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408ca7
lea eax, [ebp - 0x228]
mov edx, 2
call fcn.004036cc
lea eax, [ebp - 8]
mov edx, 2
call fcn.004036cc
ret
Function at 0x408cd0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb4
push ebx
mov ebx, eax
lea eax, [ebp - 0x14c]
push eax
mov eax, ebx
call fcn.00403b44
push eax
call sub.KERNEL32.DLL_SizeofResource
cmp eax, 0xffffffff
je 0x408d29
push eax
call sub.KERNEL32.DLL_SetFileTime
test byte [ebp - 0x14c], 0x10
jne 0x408d29
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x138]
push eax
call sub.KERNEL32.DLL_SetFilePointer
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 2]
push eax
lea eax, [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_SetFileAttributesA
test eax, eax
jne 0x408d30
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408f64
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef4
mov ebx, edx
push esp
and eax, 0x7f
mov eax, dword [eax*4 + 0x40d294]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
mov edx, ebx
lea eax, [esp + 4]
call fcn.00408d48
add esp, 0x10c
pop ebx
ret
Function at 0x4091dc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 7
push 0
push 0
dec ecx
jne 0x4091e5
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00403b34
xor eax, eax
push ebp
push 0x4093de
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00408fdc
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00408fdc
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0xc]
call fcn.00403740
mov eax, dword [ebp - 0x10]
call fcn.00403944
sar eax, 1
jns 0x40923f
adc eax, 0
test eax, eax
jle 0x40939b
mov dword [ebp - 0x20], eax
mov esi, 1
cmp esi, 1
je 0x40925f
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x18]
call fcn.00403740
lea eax, [ebp - 0x18]
call fcn.004036a8
mov eax, dword [ebp - 0x14]
call fcn.00403944
mov edi, eax
sar edi, 1
jns 0x409278
adc edi, 0
test edi, edi
jle 0x409391
mov ebx, 1
mov edx, 0x4093ec
lea eax, [ebp - 0x28]
call fcn.0040277c
lea eax, [ebp - 0x2c]
mov edx, ebx
add edx, edx
mov ecx, dword [ebp - 0x14]
mov dl, byte [ecx + edx - 2]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x2c]
lea eax, [ebp - 0x28]
mov cl, 2
call fcn.0040274c
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x30]
call fcn.0040277c
lea eax, [ebp - 0x2c]
mov edx, ebx
add edx, edx
mov ecx, dword [ebp - 0x14]
mov dl, byte [ecx + edx - 1]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x2c]
lea eax, [ebp - 0x30]
mov cl, 3
call fcn.0040274c
lea edx, [ebp - 0x30]
lea eax, [ebp - 0x24]
call fcn.0040390c
mov eax, dword [ebp - 0x24]
call fcn.00405a20
mov byte [ebp - 0x19], al
mov edx, 0x4093ec
lea eax, [ebp - 0x28]
call fcn.0040277c
lea eax, [ebp - 0x2c]
mov edx, esi
add edx, edx
mov ecx, dword [ebp - 0x10]
mov dl, byte [ecx + edx - 2]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x2c]
lea eax, [ebp - 0x28]
mov cl, 2
call fcn.0040274c
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x30]
call fcn.0040277c
lea eax, [ebp - 0x2c]
mov edx, esi
add edx, edx
mov ecx, dword [ebp - 0x10]
mov dl, byte [ecx + edx - 1]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x2c]
lea eax, [ebp - 0x30]
mov cl, 3
call fcn.0040274c
lea edx, [ebp - 0x30]
lea eax, [ebp - 0x34]
call fcn.0040390c
mov eax, dword [ebp - 0x34]
call fcn.00405a20
xor al, byte [ebp - 0x19]
mov byte [ebp - 0x1a], al
lea eax, [ebp - 0x3c]
mov dl, byte [ebp - 0x1a]
call fcn.00403890
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x38]
call fcn.00408fdc
mov edx, dword [ebp - 0x38]
lea eax, [ebp - 0x18]
call fcn.0040394c
inc ebx
dec edi
jne 0x409285
inc esi
dec dword [ebp - 0x20]
jne 0x40924f
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
call fcn.004036fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4093e5
lea eax, [ebp - 0x3c]
mov edx, 3
call fcn.004036cc
lea eax, [ebp - 0x24]
call fcn.004036a8
lea eax, [ebp - 0x18]
mov edx, 4
call fcn.004036cc
lea eax, [ebp - 4]
call fcn.004036a8
ret
Function at 0x409b9c
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, edx
mov ebx, eax
mov byte [ebp - 1], 0
push 0xf003f
push 0
push 0
call sub.advapi32.dll_RegSetValueExA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x409c2b
xor eax, eax
push ebp
push 0x409c24
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf01ff
push ebx
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
mov ebx, eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push esi
push 0x110
push ebx
call sub.advapi32.dll_RegDeleteValueA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
push ebx
call sub.advapi32.dll_RegOpenKeyA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409c2b
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegOpenKeyA
ret
mov al, byte [ebp - 1]
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x409c34
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
mov byte [ebp - 1], cl
mov ebx, edx
push 0xf003f
push 0
push eax
call sub.advapi32.dll_RegSetValueExA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x409cbe
xor eax, eax
push ebp
push 0x409cb7
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf01ff
push ebx
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
mov ebx, eax
cmp byte [ebp - 1], 0
je 0x409c8e
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
push ebx
call sub.advapi32.dll_RegQueryValueExA
jmp 0x409c9a
lea eax, [ebp - 0x28]
push eax
push 1
push ebx
call sub.advapi32.dll_RegRestoreKeyA
push ebx
call sub.advapi32.dll_RegOpenKeyA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409cbe
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegOpenKeyA
ret
pop ebx
mov esp, ebp
pop ebp
ret