joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4275cc
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 0x427669
push ebx
push esi
call fcn.00427595
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.0042624a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x427616
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x427668
push edi
push eax
call fcn.00420810
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x427636
call fcn.0041fd80
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x427667
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0042624a
add esp, 0x20
test eax, eax
jne 0x427655
push edi
call fcn.0041fd80
jmp 0x42765d
push ebx
call fcn.0041fd80
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 0x429c5e
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0041fba8
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x429ccd
cmp esi, dword [ebp - 4]
je 0x429cc8
cmp dword [ebp + 0xc], 0
je 0x429cc8
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x429ca5
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004297b3
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x429ccf
xor eax, eax
inc eax
jmp 0x429ccf
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x429d3a
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x43e040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0041fba8
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0041fba8
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x429db1
cmp word [ecx], dx
je 0x429db1
mov eax, dword [0x43723c]
push edi
dec eax
push eax
push 0x437128
call fcn.00429cd3
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x429e24
cmp word [eax], dx
je 0x429e24
mov eax, dword [edi]
test eax, eax
je 0x429dd5
cmp word [eax], dx
je 0x429dd5
lea eax, [ebp - 0x10]
push eax
call fcn.004296b9
jmp 0x429dde
lea eax, [ebp - 0x10]
push eax
call fcn.00429754
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x429e4e
mov eax, dword [0x437124]
push dword [ebp - 0x14]
dec eax
push eax
push 0x436e18
call fcn.00429cd3
add esp, 0xc
test al, al
je 0x429e4e
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x429e19
cmp word [eax], di
je 0x429e19
lea eax, [ebp - 0x10]
push eax
call fcn.004296b9
pop ecx
jmp 0x429e50
lea eax, [ebp - 0x10]
push eax
call fcn.00429754
jmp 0x429e16
mov eax, dword [edi]
test eax, eax
je 0x429e3b
cmp word [eax], dx
je 0x429e3b
lea eax, [ebp - 0x10]
push eax
call fcn.0042966e
pop ecx
jmp 0x429e4e
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x429f19
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00429b58
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x429f19
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x429f19
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x429f19
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x429ea6
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0042247f
test ebx, ebx
je 0x429f14
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0042247f
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x429f19
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x429f19
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0042d01a
add esp, 0x10
xor eax, eax
inc eax
jmp 0x429f1b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004125dc
leave
ret
Function at 0x42ee40
Capabilities:
Parse pe header

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

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x10027cb
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x100c028]
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 0x100280b
cmp dword [ebp - 0x88], 2
jne 0x1002810
cmp dword [ebp - 0x94], 5
jb 0x1002810
xor eax, eax
inc eax
jmp 0x1002812
xor eax, eax
mov ecx, dword [ebp - 4]
call fcn.010062ff
leave
ret

Function at 0x1002821
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x100c020]
cmp eax, 0xffffffff
je 0x10028d2
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 0x100c8c0
push dword [0x100c020]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10028c9
cmp dword [ebp - 4], esi
jne 0x10028c9
cmp dword [0x100c8c0], 0x6e776453
jne 0x10028c9
test byte [0x100c8cb], 0x80
jne 0x10028d0
or byte [0x100c8cb], 0x40
push 0x100cad0
push 0x103
push 0x100cd00
mov byte [0x100cacf], bl
mov byte [0x100cbd3], bl
call dword [sym.imp.msvcrt.dll__snprintf]
add esp, 0xc
cmp dword [0x100c8c4], 0x10000
jne 0x10028d0
test dword [0x100c8c8], 0x3fffffec
jne 0x10028d0
and byte [0x100c8cb], 0xbf
jmp 0x10028d0
or byte [0x100c8cb], 0x80
pop esi
pop ebx
leave
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x100c028]
and dword [ebp - 0x110], 0
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push edi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 4], eax
call esi
mov dword [ebp - 0x114], eax
or eax, 1
push eax
call esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
and dword [ebp - 0x10c], 0
mov ebx, eax
xor edx, edx
mov ecx, 0xf4240
mov eax, ebx
div ecx
lea eax, [ebp - 0x108]
push edx
push edi
push 0x100224c
push eax
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0x10
push 0
lea eax, [ebp - 0x108]
push eax
inc ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x1002975
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10029a0
inc dword [ebp - 0x10c]
cmp dword [ebp - 0x10c], 0x3e8
jl 0x100291e
jmp 0x10029a0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x1002996
push 4
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov dword [ebp - 0x110], 1
push dword [ebp - 0x114]
call esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x110]
pop edi
pop esi
pop ebx
call fcn.010062ff
leave
ret 4
Function at 0x1002b13
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x100c028]
push ebx
mov bl, byte [ebp + 8]
push esi
push edi
mov esi, 0x10022b4
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 0x1002b60
dec eax
je 0x1002bae
sub eax, 3
je 0x1002b5b
xor edi, edi
jmp 0x1002bae
push 3
pop edi
jmp 0x1002bae
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 0x1002b57
push esi
lea eax, [ebp - 0x14]
push eax
push 0x18
lea eax, [ebp - 0x2c]
push eax
push esi
push esi
push 0x70000
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1002ba5
cmp dword [ebp - 0x24], 0xb
je 0x1002ba7
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.010062ff
leave
ret 4

Function at 0x1002d78
Capabilities:
Check if file exists
Delete directory
Delete file
Move file

Disassembly:
mov edi, edi
push ebx
push esi
push edi
push 0x100d060
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x100c4a4]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x1002da1
push eax
call esi
and dword [0x100c4a4], 0
mov eax, dword [0x100c020]
cmp eax, 0xffffffff
je 0x1002db5
push eax
call esi
or dword [0x100c020], 0xffffffff
mov esi, dword [0x100c004]
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov edi, 0x100c004
jmp 0x1002df9
mov eax, dword [esi + 4]
test eax, eax
je 0x1002df7
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x1002df3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1002df3
cmp eax, 3
je 0x1002df3
push 4
push 0
push dword [esi + 4]
call ebx
and dword [esi + 4], 0
mov esi, dword [esi]
cmp esi, edi
jne 0x1002dc8
mov esi, dword [0x100c00c]
mov edi, 0x100c00c
jmp 0x1002e3b
mov eax, dword [esi + 4]
test eax, eax
je 0x1002e39
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x1002e35
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1002e35
cmp eax, 3
je 0x1002e35
push 4
push 0
push dword [esi + 4]
call ebx
and dword [esi + 4], 0
mov esi, dword [esi]
cmp esi, edi
jne 0x1002e0a
push 0x100d060
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
ret

Function at 0x1002fe1
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
test edx, edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
je 0x100300d
push esi
push edi
movzx esi, byte [ecx]
movzx edi, al
xor esi, edi
shr eax, 8
xor eax, dword [esi*4 + 0x100c4c0]
inc ecx
dec edx
jne 0x1002ff5
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x10033db
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
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 [0x100d044]
xor ebx, ebx
cmp eax, ebx
je 0x1003455
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 0x1003409
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 [0x100d044]
call esi
test eax, eax
je 0x1003458
mov ecx, 0x10022ec
mov eax, ecx
push edi
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x1003438
push ebx
lea edx, [ebp - 4]
push edx
sub eax, edi
push eax
push ecx
push dword [0x100d044]
call esi
test eax, eax
pop edi
je 0x1003458
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 0x100360c
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x310
cmp dword [0x100c044], 0
mov eax, dword [0x100c028]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
jne 0x10036fa
push esi
push 0x10023bc
push 0x10023b4
push eax
call fcn.010061f9
test eax, eax
mov esi, 0x104
je 0x1003672
push esi
lea ecx, [ebp - 0x20c]
push ecx
push 1
push eax
call fcn.010060be
test eax, eax
je 0x1003672
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x100d080
jmp 0x1003693
push esi
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x108]
push eax
push 0x10023a4
lea eax, [ebp - 0x310]
push eax
call fcn.01002bc4
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x100c058], eax
je 0x10036d3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100238c
push eax
call esi
push 0x1002378
push dword [0x100c058]
mov dword [0x100c044], eax
call esi
mov dword [0x100c040], eax
cmp dword [0x100c044], 0
pop esi
jne 0x10036e7
mov dword [0x100c044], 0x1003602
cmp dword [0x100c040], 0
jne 0x10036fa
mov dword [0x100c040], 0x10035f8
mov ecx, dword [ebp - 4]
call fcn.010062ff
leave
ret 4
Function at 0x10037bf
Capabilities:
Query environment variable
Set environment variable
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
push edi
push edi
push 0x10023d8
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x100388a
push esi
mov esi, 0x100d2c0
push esi
push 0x10023c8
push 0x100d080
call fcn.01002bc4
push edi
push 0x4000002
push 1
push edi
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edx, eax
cmp edx, 0xffffffff
mov dword [0x100c020], edx
je 0x1003889
push ebx
xor eax, eax
mov ebx, 0x100c8c0
push eax
mov ecx, 0xc5
mov edi, ebx
rep stosd dword es:[edi], eax
mov byte [0x100cad0], al
lea eax, [ebp - 4]
push eax
mov edi, 0x314
push edi
push ebx
push edx
mov dword [0x100c8c0], 0x6e776453
mov dword [0x100c8c4], 0x10000
mov dword [0x100c8c8], 0xc0000013
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
pop ebx
je 0x1003876
cmp dword [ebp - 4], edi
jne 0x1003876
push esi
push 0x10023d8
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
jmp 0x1003889
push dword [0x100c020]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x100c020], 0xffffffff
pop esi
pop edi
leave
ret

Function at 0x1003892
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x280
push esi
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
jne 0x10038ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp dword [0x101d3e0], 0
jne 0x100390f
lea eax, [ebp - 0x280]
push eax
push 0x200
push esi
call fcn.01002d09
lea eax, [ebp - 0x280]
push eax
call fcn.0100346e
push 0x80
lea eax, [ebp - 0x80]
push eax
push 0x20000003
push dword [0x100c05c]
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 [0x100ce04]
call dword [sym.imp.USER32.dll_MessageBoxA]
call fcn.01002d78
test esi, esi
jne 0x1003919
inc esi
cmp dword [0x100c060], 0
je 0x1003934
push 0x100d060
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
and dword [0x100c060], 0
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1003d02
Capabilities:
Get token privileges

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100c028]
push esi
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x18], ecx
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 0x1003d6e
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 0x1003d75
xor eax, eax
jmp 0x1003e28
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x14]
push eax
push 0x10000
push 0x100d3e0
push 4
push dword [ebp - 0x10]
call ebx
test eax, eax
je 0x1003e27
push edi
push dword [0x100d3e0]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov edi, eax
push edi
call fcn.01003be7
test eax, eax
pop ecx
mov dword [esi], eax
je 0x1003e04
mov esi, dword [0x100d3e0]
mov ecx, edi
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x14]
push eax
push 0x10000
push 0x100d3e0
and ecx, 3
push 1
rep movsb byte es:[edi], byte [esi]
push dword [ebp - 0x10]
call ebx
test eax, eax
je 0x1003e26
push dword [0x100d3e0]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov esi, eax
push esi
call fcn.01003be7
test eax, eax
pop ecx
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
jne 0x1003e0b
push 8
call fcn.01003892
mov ecx, esi
mov esi, dword [0x100d3e0]
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 edi
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.010062ff
leave
ret 0xc
Function at 0x10044ad
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
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 0x10044c1
push 0x2e
push esi
call dword [sym.imp.msvcrt.dll_strrchr]
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x100452e
push 0x1002504
push edi
call dword [sym.imp.msvcrt.dll__stricmp]
test eax, eax
pop ecx
pop ecx
jne 0x100452e
xor ebx, ebx
inc ebx
mov eax, dword [0x101d3e8]
xor edx, edx
mov ecx, 0x3e8
div ecx
inc dword [0x101d3e8]
push edx
push 0x10024fc
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 0x10044f1
push esi
push 0x100c004
call fcn.0100447f
jmp 0x1004531
mov byte [esi], 0
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100c028]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100460b
sub eax, ecx
lea ecx, [eax + 1]
mov edx, ecx
push edi
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
je 0x1004641
mov byte [eax], 0x5c
mov byte [eax + 1], 0
push dword [ebp + 0x10]
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.01004590
test eax, eax
pop esi
pop ebx
je 0x10046a6
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10046a6
test al, 0x10
je 0x10046a6
push 0x100245c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x10046a1
push 0x100250c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10046a1
push 0
lea ecx, [ebp - 0x108]
push ecx
call eax
test eax, eax
jne 0x10046a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
inc eax
jmp 0x10046a8
xor eax, eax
mov ecx, dword [ebp - 4]
call fcn.010062ff
leave
ret 0xc
Function at 0x10062ff
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100c028]
jne 0x1006310
test ecx, 0xffff0000
jne 0x1006310
ret
jmp fcn.0100631a

Function at 0x10078d7
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
shr eax, 2
test eax, eax
push edi
mov edi, dword [ebp + 0x10]
jle 0x1007914
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 0x10078f1
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x1007930
dec esi
je 0x1007929
dec esi
jne 0x1007935
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
pop ebp
ret 0xc

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

Disassembly:
pushal
call 0x43000c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x401000
Capabilities:
Get windows directory from kuser_shared_data
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x448
call fcn.00401190
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov word [esp + 0x44], ax
lea eax, [esp + 0x2c]
push eax
push 0x1e
push 0x4c7e40
call fcn.00403a30
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov byte [esp + 0x20], al
lea eax, [esp + 0xc]
push eax
push 0x19
push 0x4c7eac
call fcn.00403a30
lea eax, [esp + 0x44]
push 0
push eax
call fcn.00401aa0
add esp, 0x20
test eax, eax
je 0x401182
push esi
mov esi, dword [eax + 0x18]
push edi
call fcn.00401190
test esi, esi
je 0x4010bb
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4010bb
mov ecx, dword [eax + esi + 0x7c]
test ecx, ecx
je 0x4010bb
mov eax, dword [eax + esi + 0x78]
test eax, eax
je 0x4010bb
lea edx, [esp + 8]
push edx
push ecx
lea edx, [eax + esi]
mov ecx, esi
call fcn.004035a0
add esp, 8
mov edi, eax
test edi, edi
jne 0x4010da
mov eax, dword [0x8150c0]
test eax, eax
je 0x401180
lea ecx, [esp + 8]
push ecx
push esi
call eax
mov edi, eax
test edi, edi
je 0x401180
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
lea eax, [esp + 0x20]
push eax
push 0x18
push 0x4c7e74
call fcn.00403a30
push 0x400
lea eax, [esp + 0x60]
push 0
push eax
call fcn.004018d0
mov ecx, 0x7ffe0030
add esp, 0x18
xor edx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401120
sub ecx, esi
sar ecx, 1
je 0x401180
add ecx, 0xb
cmp ecx, 0x200
ja 0x401180
xor eax, eax
test ecx, ecx
je 0x40115a
movzx esi, word [edx + edx + 0x7ffe0030]
test si, si
je 0x40115a
mov word [esp + edx*2 + 0x50], si
inc eax
inc edx
cmp eax, ecx
jb 0x401142
xor eax, eax
test ecx, ecx
je 0x401179
lea edx, [esp + edx*2 + 0x50]
movzx esi, word [esp + eax*2 + 0x20]
test si, si
je 0x401179
mov word [edx], si
inc eax
add edx, 2
cmp eax, ecx
jb 0x401164
lea eax, [esp + 0x50]
push eax
call edi
pop edi
pop esi
add esp, 0x448
ret