joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5a58dc
Capabilities:
Encrypt data using aes

Disassembly:
and edx, ecx
pushal
lea esp, [esp + 2]
push word [esp + 0x12]
add esp, 3
jmp 0x5a58c6
lea esp, [esp + 1]
jmp 0x5a5923
push dword [esp + 3]
jmp 0x5a5890
xor edi, dword [edx*4 + reloc.KERNEL32.dll_FreeLibrary]
push ebp
mov ebp, esi
jmp 0x5a5932
mov edx, dword [edx*4 + reloc.KERNEL32.dll_FreeLibrary]
and edx, ecx
lea esp, [esp + 0x30]
jmp 0x5a5903
add ebp, 8
mov edx, dword [ebp]
pop ebp
mov dword [esi + 4], edi
bswap edi
jmp 0x5a596b
bsf edi, eax
mov ebx, dword [ebx*4 + reloc.KERNEL32.dll_FreeLibrary]
mov edi, edx
clc
jmp 0x5a59b4
sub esp, 0x1f
lea esp, [esp + 3]
shr edi, 0x18
call fcn.005a597a
and edi, ecx
mov edi, dword [edi*4 + reloc.KERNEL32.dll_FreeLibrary]
cmc
jmp 0x5a59f5
and ebx, ecx
call fcn.005a59cf
movzx ebx, byte [esi + 0xa]
stc
jmp 0x5a5a6c
mov ebx, dword [ebx*4 + reloc.KERNEL32.dll_FreeLibrary]
call fcn.005a5a2e
add esp, 2
lea esp, [esp + 2]
jmp 0x5a5a9b
xor edi, dword [edx*4 + reloc.KERNEL32.dll_FreeLibrary]
bsr edx, esp
not dh
push ebx
jmp 0x5a6a4e
pushfd
stc
lea esp, [esp + 0x14]
popal
jmp 0x5a5efa
add ebx, 0xc
mov edx, dword [ebx]
pop ebx
push edi
pushal
sub esp, 0x13
dec edi
lea esp, [esp + 3]
mov dword [esp + 0x20], esi
jmp 0x5a5aad

Function at 0x5a597a
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
add esp, 3
lea esp, [esp + 1]
jmp 0x5a599e
mov edi, dword [edi*4 + reloc.KERNEL32.dll_FreeLibrary]
jmp 0x5a59c3

Function at 0x5a5a36
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov byte [esp + 1], ah
lea esp, [esp + 2]
lea esp, [esp + 2]
jmp 0x5a5a55
and edx, ecx
jmp 0x5a5a8e
mov edx, dword [edx*4 + reloc.KERNEL32.dll_FreeLibrary]
and edx, ecx
clc
pushfd
jmp 0x5a5a78

Function at 0x5a5b25
Capabilities:
Encrypt data using aes

Disassembly:
sub esp, 0x19
lea esp, [esp + 1]
jmp 0x5a5b5d
and ebx, ecx
sub esp, 8
lea esp, [esp + 5]
lea esp, [esp + 3]
jmp 0x5a5b47

Function at 0x5a6f0d
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
cmp edi, 3
pushal
jmp 0x5a6b35
call 0x5a6ac1
clc
lea esp, [esp + 0x20]
jne 0x5a5fe9
mov byte [ecx + 2], al
jmp 0x5a5fe9
mov byte [ecx + 1], dl
jmp 0x5a5f50
mov edx, eax
push esi
shr edx, 8
lea esp, [esp + 4]
jmp 0x5a6c4c
lea esp, [esp + 4]
jb 0x5a5f50
mov dh, byte [esp]
mov dl, bh
jmp 0x5a6e41
mov dword [esp], ecx
lea esp, [esp + 2]
jmp 0x5a6edf

Function at 0x6c9c81
Capabilities:
Execute anti-debugging instructions

Disassembly:
rcr bh, 3
dec ebp
stc
mov dx, sp
mov cl, byte [esp]
jmp 0x6c9f60
xchg byte [esp + 9], ch
mov edx, 0xb30584fd
lea eax, [ebp*4]
shl cx, 0xc
push dword [esp + 7]
mov al, byte [esp + 0xa]
jmp 0x6c9ca0
mov edi, dword [esp + 0x12]
mov eax, 0xffaf079c
push dword [esp + 4]
ror bh, cl
cpuid
inc ebx
jmp 0x6c9cb6
adc ebx, edi
add esp, 3
mov si, 0xc49a
sub esp, 0x12
xchg dword [esp + 0xb], eax
neg bp
jmp 0x6c9cde
adc di, 0x69a6
lea edx, [eax + edi]
not bl
mov si, word [esp + 3]
dec cl
pop cx
jmp 0x6c9d36
Function at 0x6ca7d7
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea eax, [ebx + esi]
not al
push dword [esp + 1]
lea esp, [esp + 0x1a]
pushfd
lea esp, [esp + 6]
jmp 0x6ca78e
push dword [esp + 4]
lea esp, [esp + 2]
bsf ecx, ebx
sub esp, 0x16
mov esi, dword [esp + 0x1a]
sub esp, 0x11
jmp 0x6ca73a
xchg dword [esp + 6], ebp
xchg word [esp + 1], dx
bswap ebx
jmp 0x6ca7bd
mov eax, edx
push word [esp + 0xd]
pop word [esp + 0x10]
mov word [esp + 0xa], sp
mov bh, 0xe1
pop dword [esp + 5]
jmp 0x6ca778
bswap ebx
xchg byte [esp + 0x11], dl
add esp, 0x12
mov bl, byte [esp]
rdtsc
jmp 0x6ca87e
adc dword [ebx + reloc.KERNEL32.dll_FreeLibrary], eax
and al, 0xf
xor ecx, ebp
les eax, [eax]
add byte [eax], al
xchg esi, eax
add eax, eax
mov ecx, 0xec993e3d
xchg word [esp + 0xf], cx
xchg dword [esp + 9], edx
xchg ebp, ecx
mov edx, dword [esp + 0x12]
jmp 0x6ca7a7
jmp 0x6ca761
mov cl, 0x6c
rdtsc
dec si
btc ebx, edx
mov word [esp], si
call fcn.006ca7d9
pushal
xchg si, bx
mov cl, dh
mov edx, dword [esp + 0x1e]
pop word [esp + 3]
mov ebp, 0x93e77cc7
call fcn.006ca859
inc ebx
rcl byte [esi + 0x31], 0xc0
sub bh, bh
jge 0x6ca810
je 0x6ca7ac
int3
xchg word [esp], ax
bt esi, ecx
lea ebp, [edx*4]
inc cx
mov ch, byte [esp + 1]
mov ebx, dword [esp]
jmp 0x6ca7ef
xchg byte [esp], ah
xchg byte [esp], cl
cpuid
mov ax, word [esp + 1]
bswap eax
bswap edx
jmp 0x6ca82a

Function at 0x6ca9b2
Capabilities:
Execute anti-debugging instructions

Disassembly:
xchg byte [esp + 1], ch
rdtsc
xchg word [esp], cx
mov ebp, 0x36b34a92
xchg ebx, edx
jmp 0x6ca990
setno ch
xchg dh, al
push bp
mov byte [esp], ah
xchg al, ch
rdtsc
jmp 0x6ca967
bsr bp, cx
not ecx
lea esp, [esp]
not bx
bts di, sp
bts dx, di
jmp 0x6ca9d5
neg ecx
pop esi
cmc
bsr cx, bx
lea edi, [edi + ebp]
jmp 0x6ca980
dec di
not ebx
mov dl, ch
push word [esp + 2]
sub esp, 0x16
jmp 0x6ca9e9
mov ebx, 0x8f6690c7
std
mov ebx, dword [esp]
mov word [esp], cx
mov byte [esp], dh
mov esi, ebx
jmp 0x6ca9bf
lea esi, [eax*4]
mov word [esp], ax
rdtsc
mov dword [esp + 0xc], ebp
jmp 0x6caa8e
setb ah
lea edi, [edi - 0x6a]
dec dl
mov ch, al
mov bp, word [esp + 0x10]
pop dx
jmp 0x6caa09
mov ax, word [esp + 6]
cpuid
xchg byte [esp + 0x11], al
pop word [esp + 0xa]
cpuid
mov ecx, dword [esp + 0x18]
jmp 0x6caa31
Function at 0x1002723
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x100a028]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1002761
cmp dword [ebp - 0x88], 2
jne 0x1002766
cmp dword [ebp - 0x94], 5
jb 0x1002766
xor eax, eax
inc eax
jmp 0x1002768
xor eax, eax
mov ecx, dword [ebp - 4]
call fcn.01005e64
leave
ret

Function at 0x1002772
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x100a024]
cmp eax, 0xffffffff
je 0x1002821
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 4]
push eax
mov esi, 0x314
push esi
push 0x100a5a0
push dword [0x100a024]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1002818
cmp dword [ebp - 4], esi
jne 0x1002818
cmp dword [0x100a5a0], 0x6e776453
jne 0x1002818
test byte [0x100a5ab], 0x80
jne 0x100281f
or byte [0x100a5ab], 0x40
push 0x100a7b0
push 0x103
push 0x100a9e0
mov byte [0x100a7af], bl
mov byte [0x100a8b3], bl
call dword [sym.imp.msvcrt.dll__snprintf]
add esp, 0xc
cmp dword [0x100a5a4], 0x10000
jne 0x100281f
test dword [0x100a5a8], 0x3fffffec
jne 0x100281f
and byte [0x100a5ab], 0xbf
jmp 0x100281f
or byte [0x100a5ab], 0x80
pop esi
pop ebx
leave
ret

Function at 0x1002823
Capabilities:
Create directory
Delete directory
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x100a028]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push edi
xor ebx, ebx
push ebx
mov dword [ebp + 0x90], eax
mov dword [ebp - 0x7c], ebx
call esi
mov dword [ebp - 0x80], eax
or eax, 1
push eax
call esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov dword [ebp - 0x78], ebx
xor edx, edx
mov ecx, 0xf4240
mov eax, edi
div ecx
lea eax, [ebp - 0x74]
push edx
push dword [ebp + 0x9c]
push 0x10021fc
push eax
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0x10
push ebx
lea eax, [ebp - 0x74]
push eax
inc edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x10028b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10028d2
inc dword [ebp - 0x78]
cmp dword [ebp - 0x78], 0x3e8
jl 0x1002861
jmp 0x10028d2
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x10028cb
push 4
push ebx
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov dword [ebp - 0x7c], 1
push dword [ebp - 0x80]
call esi
mov ecx, dword [ebp + 0x90]
mov eax, dword [ebp - 0x7c]
pop edi
pop esi
pop ebx
call fcn.01005e64
add ebp, 0x94
leave
ret 4
Function at 0x10028f2
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0xbac]
sub esp, 0xc2c
mov eax, dword [0x100a028]
mov dword [ebp + 0xba8], eax
push 0x208
lea eax, [ebp + 0x9a0]
push eax
mov byte [ebp - 0x61], 0
mov dword [ebp - 0x70], 0x100
mov dword [ebp - 0x7c], 0x400
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x10029f9
push edi
lea edi, [ebp + 0x9a0]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100293f
push esi
mov esi, 0x1002254
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp + 0x9a0]
push eax
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10029f7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1002248
push edi
call esi
test eax, eax
mov dword [ebp - 0x74], eax
je 0x10029f0
push 0x1002238
push edi
call esi
test eax, eax
mov dword [ebp - 0x78], eax
je 0x10029f0
push ebx
push 0x1002224
push edi
call esi
mov ebx, eax
test ebx, ebx
je 0x10029ef
push 0x1002208
push edi
call esi
test eax, eax
mov dword [ebp - 0x68], eax
je 0x10029ef
lea eax, [ebp - 0x6c]
push eax
push 0
call ebx
test eax, eax
jne 0x10029ef
cmp dword [ebp - 0x6c], 0x13
jne 0x10029ef
push eax
call dword [ebp - 0x74]
mov esi, eax
test esi, esi
je 0x10029ef
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp + 0x7a0]
push eax
push esi
call dword [ebp - 0x68]
test eax, eax
jne 0x10029eb
mov al, byte [ebp - 0x60]
mov byte [ebp - 0x61], al
push esi
call dword [ebp - 0x78]
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
pop edi
mov ecx, dword [ebp + 0xba8]
mov al, byte [ebp - 0x61]
call fcn.01005e64
add ebp, 0xbac
leave
ret

Function at 0x1002a0f
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100a028]
push ebx
mov bl, byte [ebp + 8]
push esi
push edi
mov esi, 0x1002264
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x5c3a3f
push eax
movsb byte es:[edi], byte [esi]
mov byte [ebp - 0x10], bl
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov edi, eax
dec eax
dec eax
je 0x1002a5a
dec eax
je 0x1002aa8
sub eax, 3
je 0x1002a55
xor edi, edi
jmp 0x1002aa8
push 3
pop edi
jmp 0x1002aa8
xor esi, esi
push esi
push esi
push 3
push esi
push 3
push 0x80000000
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 8], bl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1002a51
push esi
lea eax, [ebp + 8]
push eax
push 0x18
lea eax, [ebp - 0x28]
push eax
push esi
push esi
push 0x70000
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1002a9f
cmp dword [ebp - 0x20], 0xb
je 0x1002aa1
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
pop ebx
call fcn.01005e64
leave
ret 4
Function at 0x1002c44
Capabilities:
Check if file exists
Delete directory
Delete file
Move file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x100ad40
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x100a184]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x1002c6c
push eax
call esi
and dword [0x100a184], 0
mov eax, dword [0x100a024]
cmp eax, 0xffffffff
je 0x1002c80
push eax
call esi
or dword [0x100a024], 0xffffffff
mov esi, dword [0x100a008]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov edi, 0x100a008
jmp 0x1002cc6
mov eax, dword [esi + 4]
test eax, eax
je 0x1002cc4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x1002cc0
call ebp
cmp eax, 2
je 0x1002cc0
cmp eax, 3
je 0x1002cc0
push 4
push 0
push dword [esi + 4]
call ebx
and dword [esi + 4], 0
mov esi, dword [esi]
cmp esi, edi
jne 0x1002c99
mov esi, dword [0x100a010]
mov edi, 0x100a010
jmp 0x1002d04
mov eax, dword [esi + 4]
test eax, eax
je 0x1002d02
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x1002cfe
call ebp
cmp eax, 2
je 0x1002cfe
cmp eax, 3
je 0x1002cfe
push 4
push 0
push dword [esi + 4]
call ebx
and dword [esi + 4], 0
mov esi, dword [esi]
cmp esi, edi
jne 0x1002cd7
push 0x100ad40
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x1002e90
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 0xc]
test edx, edx
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
je 0x1002eba
push esi
push edi
movzx esi, byte [ecx]
movzx edi, al
xor esi, edi
shr eax, 8
xor eax, dword [esi*4 + 0x100a1a0]
inc ecx
dec edx
jne 0x1002ea2
pop edi
pop esi
ret 0xc
Function at 0x100324c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov eax, dword [0x100ad24]
xor ebx, ebx
cmp eax, ebx
je 0x10032c4
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp + 8]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1003278
push ebx
lea ecx, [ebp - 4]
push ecx
sub eax, esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
push dword [ebp + 8]
push dword [0x100ad24]
call esi
test eax, eax
je 0x10032c7
mov ecx, 0x100229c
mov eax, ecx
push edi
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x10032a7
push ebx
lea edx, [ebp - 4]
push edx
sub eax, edi
push eax
push ecx
push dword [0x100ad24]
call esi
test eax, eax
pop edi
je 0x10032c7
xor ebx, ebx
inc ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
mov eax, ebx
pop ebx
leave
ret 4

Function at 0x100344b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
cmp dword [0x100a044], 0
mov eax, dword [0x100a028]
mov dword [ebp - 4], eax
jne 0x1003536
push esi
push 0x100236c
push 0x1002364
push dword [ebp + 8]
call fcn.01005d54
test eax, eax
mov esi, 0x104
je 0x10034ae
push esi
lea ecx, [ebp - 0x20c]
push ecx
push 1
push eax
call fcn.01005c2f
test eax, eax
je 0x10034ae
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x100ad60
jmp 0x10034cf
push esi
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x108]
push eax
push 0x1002354
lea eax, [ebp - 0x310]
push eax
call fcn.01002ab9
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x100a058], eax
je 0x100350f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100233c
push eax
call esi
push 0x1002328
push dword [0x100a058]
mov dword [0x100a044], eax
call esi
mov dword [0x100a040], eax
cmp dword [0x100a044], 0
pop esi
jne 0x1003523
mov dword [0x100a044], 0x1003446
cmp dword [0x100a040], 0
jne 0x1003536
mov dword [0x100a040], 0x1003441
mov ecx, dword [ebp - 4]
call fcn.01005e64
leave
ret 4

Function at 0x100356e
Capabilities:
Move file

Disassembly:
mov eax, dword [esp + 0xc]
push esi
xor esi, esi
inc esi
cmp byte [eax], 0
je 0x100358c
push dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x100358c
xor esi, esi
mov eax, dword [esp + 0x14]
cmp byte [eax], 0
je 0x10035a8
push 1
push dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x10035a8
xor esi, esi
mov eax, esi
pop esi
ret 0x10
Function at 0x10035d9
Capabilities:
Query environment variable
Set environment variable
Write file on windows

Disassembly:
push ecx
push ebx
xor ebx, ebx
push ebx
push ebx
push 0x1002388
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x10036a4
push esi
mov esi, 0x100afa0
push esi
push 0x1002378
push 0x100ad60
call fcn.01002ab9
push ebx
push 0x4000002
push 1
push ebx
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edx, eax
cmp edx, 0xffffffff
mov dword [0x100a024], edx
je 0x10036a3
push ebp
push edi
mov ebp, 0x100a5a0
xor eax, eax
push ebx
mov ecx, 0xc5
mov edi, ebp
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push eax
mov edi, 0x314
push edi
push ebp
push edx
mov dword [0x100a5a0], 0x6e776453
mov dword [0x100a5a4], 0x10000
mov dword [0x100a5a8], 0xc0000013
mov byte [0x100a7b0], bl
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100368e
cmp dword [esp + 0x10], edi
jne 0x100368e
push esi
push 0x1002388
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
jmp 0x10036a1
push dword [0x100a024]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x100a024], 0xffffffff
pop edi
pop ebp
pop esi
pop ebx
pop ecx
ret

Function at 0x10036a7
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x280
push esi
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
jne 0x10036c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp dword [0x101b0c0], 0
jne 0x1003722
lea eax, [ebp - 0x280]
push eax
push 0x200
push esi
call fcn.01002bdc
lea eax, [ebp - 0x280]
push eax
call fcn.010032d8
push 0x80
lea eax, [ebp - 0x80]
push eax
push 0x20000003
push dword [0x100a05c]
mov byte [ebp - 0x80], 0
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x10010
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x280]
push eax
push dword [0x100aae4]
call dword [sym.imp.USER32.dll_MessageBoxA]
call fcn.01002c44
test esi, esi
jne 0x100372c
inc esi
cmp dword [0x100a060], 0
je 0x1003747
push 0x100ad40
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
and dword [0x100a060], 0
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1003ac5
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x100a028]
push edi
push dword [ebp + 8]
xor edi, edi
push edi
push edi
push edi
push edi
push edi
push edi
push 0x220
push 0x20
mov dword [ebp - 4], eax
push 2
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 0xc], 0
mov byte [ebp - 0xb], 0
mov byte [ebp - 0xa], 0
mov byte [ebp - 9], 0
mov byte [ebp - 8], 0
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1003b25
lea eax, [ebp - 0x10]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1003b2c
xor eax, eax
jmp 0x1003be2
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp + 8]
push eax
push 0x10000
push 0x100b0c0
push 4
push dword [ebp - 0x10]
call ebx
test eax, eax
je 0x1003be1
push esi
push dword [0x100b0c0]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov esi, eax
push esi
call fcn.010039cc
cmp eax, edi
pop ecx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
je 0x1003bbe
mov ecx, esi
mov esi, dword [0x100b0c0]
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp + 8]
push eax
push 0x10000
push 0x100b0c0
and ecx, 3
push 1
rep movsb byte es:[edi], byte [esi]
push dword [ebp - 0x10]
call ebx
test eax, eax
je 0x1003be0
push dword [0x100b0c0]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov esi, eax
push esi
call fcn.010039cc
test eax, eax
pop ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jne 0x1003bc5
push 8
call fcn.010036a7
mov ecx, esi
mov esi, dword [0x100b0c0]
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
inc eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
call fcn.01005e64
leave
ret 0xc
Function at 0x1004248
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x10]
mov edx, esi
xor ebx, ebx
push edi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x1004259
push 0x2e
push esi
call dword [sym.imp.msvcrt.dll_strrchr]
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x10042c6
push 0x10024b4
push edi
call dword [sym.imp.msvcrt.dll__stricmp]
test eax, eax
pop ecx
pop ecx
jne 0x10042c6
xor ebx, ebx
inc ebx
mov eax, dword [0x101b0c8]
xor edx, edx
mov ecx, 0x3e8
div ecx
inc dword [0x101b0c8]
push edx
push 0x10024ac
push edi
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1004289
push esi
push 0x100a008
call fcn.01004223
jmp 0x10042c9
mov byte [esi], 0
pop edi
pop esi
mov eax, ebx
pop ebx
ret 8

Function at 0x100436f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100a028]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, esi
push edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100438a
sub eax, edx
lea ecx, [eax + 1]
mov edx, ecx
shr ecx, 2
lea edi, [ebp - 0x108]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp + eax - 0x108]
cmp byte [eax - 1], 0x5c
pop edi
pop esi
je 0x10043c0
mov byte [eax], 0x5c
mov byte [eax + 1], 0
push dword [ebp + 0x10]
lea eax, [ebp - 0x108]
push dword [ebp + 0xc]
push eax
call fcn.0100431b
test eax, eax
je 0x1004425
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1004425
test al, 0x10
je 0x1004425
push 0x100240c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x1004420
push 0x10024bc
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1004420
push 0
lea ecx, [ebp - 0x108]
push ecx
call eax
test eax, eax
jne 0x1004420
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
inc eax
jmp 0x1004427
xor eax, eax
mov ecx, dword [ebp - 4]
call fcn.01005e64
leave
ret 0xc
Function at 0x1005e64
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100a028]
jne 0x1005e6d
ret
jmp 0x1005e72
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x100a028]
mov dword [ebp + 0x2a4], eax
mov eax, dword [0x101b0cc]
test eax, eax
je 0x1005e96
call eax
cmp dword [0x101b0d0], 0
je 0x1005edd
push edi
xor eax, eax
and dword [ebp - 0x28], eax
push 0x13
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0xb2
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push 0
mov dword [ebp - 0x80], 0xc0000409
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [0x101b0d0]
pop edi
push 0x502
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
call fcn.01005e64
add ebp, 0x2a8
leave
ret

Function at 0x10070fe
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
shr eax, 2
test eax, eax
push edi
mov edi, dword [esp + 0x14]
jle 0x1007139
push ebx
movzx edx, byte [ecx]
xor ebx, ebx
inc ecx
mov bh, byte [ecx]
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
dec eax
jne 0x1007116
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x1007155
dec esi
je 0x100714e
dec esi
jne 0x100715a
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor edx, edx
mov dh, byte [ecx]
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
ret 0xc