joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49c02a
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push 0x128
push 0x4aa878
call fcn.004917ec
mov eax, dword [0x4b5de8]
mov dword [ebp - 0x1c], eax
lea edi, [ebp - 0x124]
xor ebx, ebx
mov dword [ebp - 0x130], ebx
or dword [ebp - 0x12c], 0xffffffff
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x49c137
mov eax, edi
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
mov dword [ebp - 0x134], esi
cmp esi, 0x104
jle 0x49c0e8
mov dword [ebp - 4], ebx
lea eax, [esi + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.0048db70
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x138], edi
jmp 0x49c0d5
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x49c137
push edi
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
cmp esi, ebx
je 0x49c137
mov al, byte [edi]
cmp al, 0x5c
je 0x49c0f6
cmp al, 0x2f
jne 0x49c0fb
cmp al, byte [edi + 1]
je 0x49c131
mov byte [ebp - 0x128], 0x3d
movzx eax, byte [edi]
push eax
call fcn.0049c2d5
pop ecx
mov byte [ebp - 0x127], al
mov byte [ebp - 0x126], 0x3a
mov byte [ebp - 0x125], bl
push edi
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
je 0x49c137
mov dword [ebp - 0x12c], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0048f99b
pop ecx
cmp dword [ebp - 0x130], ebx
je 0x49c153
push edi
call fcn.0048c5e2
pop ecx
mov eax, dword [ebp - 0x12c]
lea esp, [ebp - 0x144]
mov ecx, dword [ebp - 0x1c]
call fcn.00491869
call fcn.00491827
ret

Function at 0x49c16d
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x49c19b
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x49c1a0
cmp eax, 1
je 0x49c1a0
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x49c1a4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4b5de8]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x49c21c
push ebx
call fcn.0049c16d
test eax, eax
pop ecx
jne 0x49c1eb
call fcn.0048f992
mov dword [eax], 0xf
call fcn.0048f989
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop ebx
call fcn.00491869
leave
ret
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x49c22e
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x49c1de
inc eax
cmp eax, 0x104
ja 0x49c1de
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x49c266
cmp eax, dword [ebp + 0x10]
jg 0x49c249
mov eax, dword [ebp + 0x10]
push eax
call fcn.0048d405
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x49c27b
call fcn.0048f989
mov dword [eax], 0xc
jmp 0x49c1de
cmp eax, dword [ebp + 0x10]
jle 0x49c27b
call fcn.0048f989
mov dword [eax], 0x22
jmp 0x49c1de
lea eax, [ebp - 0x108]
push eax
push ecx
call fcn.0048e090
pop ecx
pop ecx
jmp 0x49c1e0

Function at 0x4011a0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
push 0x4da78
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4011bd
pop esi
pop ebx
pop ecx
ret
push edi
mov ecx, 0x1369e
add esi, 0x4da90
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.VirtualProtect
push str.KERNEL32.dll
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
lea eax, [esp + 0xc]
push eax
push 0x40
push 0x4da78
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push str.CreateThread
push str.KERNEL32.dll
call esi
push eax
call edi
push 0
push 0
push ebx
push ebx
push 0
push 0
call eax
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x463073
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x463082
pop dword [ebp - 0x2c]
mov eax, 0x614bbbee
sub eax, 0x61058b6c
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0xcc66b181
sub dword [ebp - 0x3c], 0x7e146c36
mov dword [ebp - 0x38], 0x4de8c0
add dword [ebp - 0x38], 0x31e56385
mov dword [ebp - 0x34], 0xdac95df8
sub dword [ebp - 0x34], 0x8e7d19ca
mov dword [ebp - 0x30], 0xd93b6896
sub dword [ebp - 0x30], 0xd93b6896
lea eax, [ebp - 0x3c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0x5568a748
sub dword [ebp - 0x3c], 0xe0f63df2
mov dword [ebp - 0x38], 0x9d6c42e5
add dword [ebp - 0x38], 0xa4001e90
mov dword [ebp - 0x34], 0x5b64a85b
sub dword [ebp - 0x34], 0xf7f53bef
mov dword [ebp - 0x30], 0x9b16241d
sub dword [ebp - 0x30], 0x9b16241d
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, 0xc868622a
sub eax, 0xc81cdede
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x60c83
push 0
call eax
mov ecx, 0x3f16
mov edx, eax
mov edi, 0x1896a39e
add edi, 0xe7c15e62
add edi, dword [ebp - 0x2c]
mov esi, 0xee6cf6dc
mov ebx, dword [edi]
add dword [ebp - 4], 0x2812e4f1
xor ebx, esi
add dword [ebp - 0x24], ecx
mov dword [edx], ebx
xor dword [ebp - 0x14], edx
add edx, 0x4e7a47df
add edx, 0xb185b825
add edi, 4
loop 0x463193
add eax, 0xe76731f3
add eax, 0x1899bd38
mov ebx, eax
add eax, 5
mov ecx, 0x78c68419
add ecx, 0x87797be7
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.00407290
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.00407290
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.00407290
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.00407290
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.00407290
mov dword [0x41203c], eax
call fcn.00407290
test eax, eax
jge 0x402550
push 8
call fcn.00407290
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.00407290
pop ecx
push 1
call fcn.00407290
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.00407290
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.00407290
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.00407290
jmp 0x402495

Function at 0x407290
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x40729f
pop dword [ebp - 0x24]
mov eax, 0xd92c0ea0
sub eax, 0xd8eb9c01
sub dword [ebp - 0x24], eax
push 0x40
push 0x1000
push 0x3d084
push 0
mov eax, 0xaa3d48ee
add eax, 0x560397ea
add eax, dword [ebp - 0x24]
call dword [eax]
mov ecx, 0x7a2fad0b
add ecx, 0x85d0a9f5
xor edi, edi
add edi, eax
mov ebx, 0xe4e3ec8a
sub ebx, 0xe4a2b0c6
add ebx, dword [ebp - 0x24]
mov esi, 0xac8126f
add esi, 0x8e18b0ac
mov dword [ebp - 0x18], 0x6a53a972
mov edx, dword [ebx]
mov dword [ebp - 0x10], 0xc31c65ec
xor edx, esi
xor dword [ebp - 0x20], 0x3d8c63b9
mov dword [edi], edx
xor dword [ebp - 4], 0x321117ce
add edi, 0x643f7a54
sub edi, 0x643f7a50
add ebx, 0x3b1873d1
sub ebx, 0x3b1873cd
loop 0x407300
add eax, 0x6bd7290f
sub eax, 0x6bd5da3c
mov ebx, eax
add eax, 0x318e084b
sub eax, 0x318e0846
mov ecx, 0xa7bceee0
add ecx, 0x58831120
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x3001cdea
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, ecx
call edi
push 0x300017e4
mov dword [ebp - 4], eax
call fcn.3001c922
add esp, 4
xor ebx, ebx
push ebx
push 1
mov ecx, esi
call fcn.3001c8cc
mov ecx, esi
call fcn.3001ca62
push ebx
jmp 0x3001ce4e
cmp byte [esi + 0x78], 0
jne 0x3001ce5a
mov eax, dword [esi + 0x60]
mov eax, dword [eax + ebx*4]
cmp eax, 0xffffffff
je 0x3001ce45
push eax
push ebx
push 0x30001798
call fcn.3001c922
add esp, 0xc
mov byte [esi + 0x79], 1
mov eax, dword [esi + 0x60]
and dword [eax + ebx*4], 0
inc ebx
push ebx
push dword [esi + 0x64]
call fcn.3001c961
test al, al
jne 0x3001ce21
cmp byte [esi + 0x79], 0
jne 0x3001ce75
cmp byte [esi + 0x78], 0
jne 0x3001ce75
mov ecx, esi
call fcn.3001cda7
test al, al
jne 0x3001ce75
mov byte [esi + 0x79], 1
call edi
sub eax, dword [ebp - 4]
lea ecx, [esi + 0x84]
push eax
push 0x30001760
mov dword [ecx], eax
call fcn.3001c922
push 0x40
push 0x3000174c
call fcn.3001c922
mov eax, dword [ecx]
shl eax, 6
push eax
push 0x3000172c
call fcn.3001c922
add esp, 0x18
dec dword [esi + 0x80]
cmp byte [esi + 0x79], 0
mov esi, 0x300013f4
jne 0x3001cec2
mov esi, 0x30001484
call edi
sub eax, dword [ebp - 4]
push eax
push esi
push 0x30001708
call fcn.3001c922
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret
Function at 0x3001e6a8
Capabilities:
Set thread local storage value

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
cmp ecx, edx
jb 0x3001e6c9
mov eax, dword [eax + 8]
cmp ecx, eax
jb 0x3001e6c9
cmp edx, eax
jb 0x3001e6c9
add eax, 0x10000
cmp eax, ecx
jae 0x3001e6f4
mov eax, dword [0x30036514]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0
push 0x35636561
call fcn.3001eb86
push 0
push 0
push 1
push 0xe0000001
call dword [sym.imp.KERNEL32.dll_RaiseException]
ret

Function at 0x3001f859
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push edi
xor edi, edi
cmp ebx, edi
jne 0x3001f871
xor eax, eax
jmp 0x3001f95e
push esi
mov esi, dword [ebp + 0xc]
cmp esi, edi
je 0x3001f881
cmp dword [0x3006982c], edi
je 0x3001f892
cmp dword [0x3006a844], edi
mov dword [ebp - 4], edi
je 0x3001f899
test byte [ebx + 0xc], 0x10
jne 0x3001f899
xor eax, eax
jmp 0x3001f95d
lea ecx, [ebp + 0xb]
mov dword [ebp + 8], edi
mov dword [ebp - 8], edi
call fcn.3001f064
neg esi
sbb esi, esi
and esi, 2
push edi
mov dword [ebp - 0xc], esi
push esi
jmp 0x3001f917
mov eax, dword [ebx]
cmp eax, edi
je 0x3001f8c4
push eax
call fcn.30028b90
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
cmp eax, edi
jne 0x3001f8d0
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push edi
push edi
push edi
push edi
push dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 4], edi
mov esi, eax
je 0x3001f8ed
push dword [ebp - 4]
call fcn.3001e6f5
push esi
call fcn.3001ec82
test eax, eax
pop ecx
je 0x3001f932
push 0x796d7468
push edi
call fcn.3001ebc5
push dword [ebp + 8]
mov ecx, 0x30069838
call fcn.3001f202
push edi
push dword [ebp - 0xc]
mov dword [ebp + 8], edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
push dword [ebx + 8]
call fcn.3001f2c4
mov esi, eax
add esp, 0x14
cmp esi, edi
je 0x3001f8b5
jmp 0x3001f93f
push dword [ebp + 8]
mov ecx, 0x30069838
call fcn.3001f180
xor eax, eax
cmp esi, edi
sete al
cmp dword [0x30069834], edi
mov esi, eax
je 0x3001f95b
push 0x300697e8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
pop esi
pop edi
pop ebx
leave
ret
Function at 0x3001fd00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x3001fd16
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
lea ecx, [ebp - 4]
push ecx
push esi
lea ecx, [ebp + 0xc]
push ecx
push 0
push dword [ebp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 2
pop ebx
cmp dword [ebp - 4], ebx
mov edi, eax
jae 0x3001fd48
cmp dword [ebp + 0xc], 1
je 0x3001fd46
cmp dword [ebp + 0xc], ebx
jne 0x3001fd48
mov edi, ebx
push edi
call fcn.3001ec82
test eax, eax
pop ecx
je 0x3001fd6e
push 0x796d746b
push 0
call fcn.3001ebc5
push dword [ebp + 8]
mov ecx, 0x30069838
call fcn.3001f202
jmp 0x3001fdcd
test edi, edi
jne 0x3001fdc0
cmp dword [ebp + 0xc], ebx
je 0x3001fd7d
cmp dword [ebp + 0xc], 1
jne 0x3001fd88
mov eax, dword [ebp - 4]
shr eax, 1
and word [esi + eax*2 - 2], 0
cmp dword [ebp + 0xc], ebx
je 0x3001fd92
cmp byte [ebp + 0x1c], bl
jne 0x3001fdab
mov eax, dword [ebp + 0x18]
shr eax, 1
push eax
push esi
call fcn.3001ecd9
test eax, eax
pop ecx
pop ecx
jne 0x3001fdab
mov edi, 0xea
jmp 0x3001fdc0
movzx eax, byte [ebp + 0x1c]
push eax
push dword [ebp + 0xc]
call fcn.3001ecaf
test eax, eax
pop ecx
pop ecx
jne 0x3001fdc0
mov edi, ebx
push dword [ebp + 8]
mov ecx, 0x30069838
call fcn.3001f180
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x3001fdd4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, esi
jne 0x3001fdef
mov eax, 0xa0
jmp 0x3001ff3c
mov eax, dword [ebx]
cmp eax, esi
mov dword [ebp - 0xc], esi
je 0x3001fe01
push eax
call fcn.30028b90
mov dword [ebp - 0xc], eax
mov dword [ebp + 8], esi
push edi
cmp dword [ebp + 8], esi
jne 0x3001fe1b
cmp dword [0x3006982c], esi
je 0x3001fe29
mov dword [ebp - 0x10], 2
jmp 0x3001fe36
cmp dword [ebp + 8], 1
jne 0x3001fe29
cmp dword [0x3006a844], esi
je 0x3001fe33
test byte [ebx + 0xc], 0x10
je 0x3001fefb
mov dword [ebp - 0x10], esi
lea ecx, [ebp + 0x13]
call fcn.3001f064
mov dword [ebp - 8], esi
mov dword [ebp - 0x14], esi
push esi
jmp 0x3001fe9b
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov esi, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x3001fe5b
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
push ecx
push 0
push dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
push edi
call fcn.3001ec82
test eax, eax
pop ecx
je 0x3001feb7
push 0x796d746c
xor edi, edi
push edi
call fcn.3001ebc5
push esi
mov ecx, 0x30069838
call fcn.3001f202
mov dword [ebp - 8], edi
push edi
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebx + 8]
call fcn.3001f2c4
add esp, 0x14
test eax, eax
je 0x3001fe47
jmp 0x3001fee6
push esi
mov ecx, 0x30069838
call fcn.3001f180
test edi, edi
jne 0x3001fee6
movzx eax, word [ebx + 0xc]
mov ecx, eax
and ecx, 0xf
cmp dword [ebp - 0x18], ecx
je 0x3001ff42
cmp dword [ebp - 0x18], 3
jne 0x3001fee6
cmp dword [ebp - 4], 4
jne 0x3001fee6
and al, 0xf
cmp al, 4
je 0x3001ff42
xor esi, esi
cmp dword [0x30069834], esi
je 0x3001fefb
push 0x300697e8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
inc dword [ebp + 8]
cmp dword [ebp + 8], 2
jl 0x3001fe05
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push ebx
call fcn.3001ed75
add esp, 0x10
mov edi, eax
cmp dword [ebp - 0xc], 0
je 0x3001ff31
push dword [ebp - 0xc]
call fcn.3001e6f5
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x30069834], 0
je 0x3001ff23
push 0x300697e8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x3001ff23
Function at 0x3002024e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
jne 0x30020266
xor eax, eax
jmp 0x300203dd
mov eax, dword [esi]
cmp eax, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
je 0x3002027e
push eax
call fcn.30028b90
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], ebx
push edi
or edi, 0xffffffff
cmp dword [ebp - 8], ebx
jne 0x3002029b
cmp dword [0x3006982c], ebx
je 0x300202a9
mov dword [ebp - 0x1c], 2
jmp 0x300202b6
cmp dword [ebp - 8], 1
jne 0x300202a9
cmp dword [0x3006a844], ebx
je 0x300202b3
test byte [esi + 0xc], 0x10
je 0x30020377
mov dword [ebp - 0x1c], ebx
lea ecx, [ebp + 0xb]
mov dword [ebp - 0x10], ebx
call fcn.3001f064
push ebx
push dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [esi + 8]
jmp 0x3002033f
mov eax, dword [ebp - 0xc]
cmp eax, ebx
mov esi, dword [ebp - 0x10]
jne 0x300202de
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push ebx
lea ecx, [ebp - 0x14]
push ecx
push ebx
push dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 4], 2
mov edi, eax
jae 0x30020309
cmp dword [ebp - 0x14], 1
je 0x30020306
cmp dword [ebp - 0x14], 2
jne 0x30020309
push 2
pop edi
push edi
call fcn.3001ec82
test eax, eax
pop ecx
je 0x30020352
push 0x796d746f
push ebx
call fcn.3001ebc5
push esi
mov ecx, 0x30069838
call fcn.3001f202
push ebx
push dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 8]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call fcn.3001f2c4
mov edi, eax
add esp, 0x14
cmp edi, ebx
je 0x300202d2
jmp 0x30020361
push esi
mov ecx, 0x30069838
call fcn.3001f180
cmp edi, ebx
je 0x30020386
cmp dword [0x30069834], ebx
je 0x30020374
push 0x300697e8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp + 8]
inc dword [ebp - 8]
cmp dword [ebp - 8], 2
jl 0x30020282
jmp 0x30020399
cmp dword [0x30069834], ebx
je 0x3002039d
push 0x300697e8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp edi, ebx
jne 0x300203bd
cmp dword [ebp - 0x14], 2
je 0x300203af
mov eax, dword [ebp + 8]
mov al, byte [eax + 0xc]
and al, 0xf
cmp al, 2
jne 0x300203bd
push dword [ebp - 4]
call fcn.3001eea3
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 0x18], ebx
je 0x300203ca
push dword [ebp - 0x18]
call fcn.3001e6f5
cmp edi, ebx
pop edi
je 0x300203da
push dword [ebp + 8]
call fcn.3001eebe
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 4
Function at 0x3002056e
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x3001c4a4]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0xa0]
push eax
mov dword [ebp - 0xa0], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x3002060f
cmp dword [ebp - 0x90], 2
mov edx, dword [ebp - 0x98]
mov dword [0x30069808], edx
jne 0x30020603
mov eax, dword [ebp - 0x9c]
cmp eax, 5
mov cx, word [ebp - 0xc]
mov dword [0x30069804], eax
mov word [0x3006980c], cx
jne 0x300205ed
xor eax, eax
inc eax
cmp edx, eax
jb 0x3002060f
test cx, cx
mov dword [0x30069810], eax
ja 0x300205e1
cmp edx, eax
jbe 0x300205e6
mov dword [0x30069814], eax
cmp cx, ax
jbe 0x3002060f
jmp 0x300205fc
jbe 0x3002060f
xor eax, eax
inc eax
mov dword [0x30069810], eax
mov dword [0x30069814], eax
mov dword [0x30069818], eax
jmp 0x3002060f
push 0
push 0x77617376
call fcn.3001eb86
push 0x56
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
neg eax
xor ecx, ebp
mov dword [section..data], eax
call fcn.300321cd
leave
ret

Function at 0x300207e2
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x3001c4a4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x30069abc], 0
je 0x30020805
mov eax, dword [0x30069ab8]
jmp 0x30020884
push esi
mov esi, 0x9c
push esi
lea eax, [ebp - 0xa0]
push 0
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa0], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push eax
call esi
test eax, eax
je 0x30020841
test byte [ebp - 8], 0x10
je 0x30020841
xor eax, eax
inc eax
jmp 0x30020874
mov ecx, dword [0x30069804]
xor eax, eax
cmp ecx, 5
mov dword [0x30069ab8], eax
jg 0x3002085d
jne 0x30020879
cmp dword [0x30069808], eax
jbe 0x30020879
lea eax, [ebp - 0xa0]
push eax
call esi
test eax, eax
je 0x30020872
test word [ebp - 8], 0x100
jne 0x3002083c
xor eax, eax
mov dword [0x30069ab8], eax
mov dword [0x30069abc], 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.300321cd
leave
ret

Function at 0x30021390
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x300213d6
push edi
push esi
push esi
push 0x80
push 2
push esi
push 1
push 0xc0000000
push dword [ebp + 8]
call fcn.3002c0a0
mov edi, eax
cmp edi, 0xffffffff
je 0x300213d5
push esi
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
ret
Function at 0x300216a1
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push edi
xor edi, edi
cmp ebx, edi
mov dword [ebp - 4], edi
jne 0x300216c3
push edi
push 0x36717370
call fcn.3001eb86
jmp 0x30021800
push esi
mov esi, dword [ebp + 0x10]
cmp esi, edi
jne 0x300216d6
push edi
push 0x36717371
jmp 0x300217d5
cmp dword [ebp + 8], 2
je 0x300216f3
cmp dword [ebp + 8], 8
je 0x300216f3
cmp dword [ebp + 8], 3
je 0x300216f3
push edi
push 0x36717372
jmp 0x300217d5
cmp dword [ebx], edi
je 0x30021702
push edi
push 0x36717373
call fcn.3001eb86
cmp dword [esi], edi
je 0x30021711
push edi
push 0x37667270
call fcn.3001eb86
push esi
push edi
push dword [ebp + 8]
mov dword [esi], edi
call sub.Secur32.dll_GetUserNameExW
movzx edi, al
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
jne 0x300217dc
cmp eax, 0xea
jne 0x300217dc
mov eax, dword [esi]
push 2
xor ecx, ecx
pop edx
mul edx
seto cl
neg ecx
or eax, ecx
push eax
call fcn.3001e50b
test eax, eax
mov dword [ebx], eax
jne 0x30021760
push eax
push 0x36717375
jmp 0x300217e3
mov ecx, dword [esi]
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ecx
lea ecx, [ebp - 4]
push ecx
push eax
push edi
call sub.Secur32.dll_GetUserNameExW
test al, al
jne 0x30021780
push 0
push 0x36717376
jmp 0x300217e3
mov eax, dword [esi]
dec eax
cmp dword [ebp - 4], eax
je 0x30021794
push 0
push 0x36717377
call fcn.3001eb86
cmp edi, 2
jne 0x300217b0
push dword [esi]
push dword [ebx]
call fcn.30020fdc
test eax, eax
pop ecx
pop ecx
jne 0x300217ff
push eax
push 0x36717378
jmp 0x300217e3
cmp edi, 8
jne 0x300217c9
push dword [ebx]
call fcn.3002104b
test eax, eax
pop ecx
jne 0x300217ff
push eax
push 0x36717379
jmp 0x300217e3
cmp edi, 3
je 0x300217ff
push 0
push 0x3671737a
call fcn.3001eb86
jmp 0x300217ff
push 0
push 0x36717374
call fcn.3001eb86
mov eax, dword [ebx]
xor edi, edi
cmp eax, edi
je 0x300217f9
push eax
call fcn.3002111c
pop ecx
mov dword [ebx], edi
cmp dword [esi], edi
je 0x300217ff
mov dword [esi], edi
pop esi
pop edi
pop ebx
leave
ret