joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b5840
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x28], ecx
xor eax, eax
jne 0x4b5849
cmp dword [ebp + 0xc], 0
je 0x4b585c
mov dword [ebp - 0x18], 1
jmp 0x4b5863
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], 0
jne 0x4b5879
mov eax, 0xd
jmp 0x4b58fc
xor edx, edx
jne 0x4b584d
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
add edx, 2
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 8]
mov cx, word [eax]
mov word [ebp - 2], cx
add dword [ebp - 8], 2
cmp word [ebp - 2], 0
jne 0x4b5899
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0x20]
sar edx, 1
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
lea eax, [edx + ecx*2]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
lea eax, [edx + ecx*2]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x10], 1
jne 0x4b588a
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 7
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret 8
Function at 0x4b61e0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x550070]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x20c], ecx
push 0
lea ecx, [ebp - 0x21c]
call fcn.004057b0
mov eax, dword [ebp - 0x20c]
mov ecx, dword [eax + 4]
or ecx, 0x2001f
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x20c]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x21c]
call fcn.004056a0
mov dword [ebp - 0x208], eax
cmp dword [ebp - 0x208], 0
je 0x4b625f
mov edx, dword [ebp - 0x208]
mov dword [ebp - 0x220], edx
lea ecx, [ebp - 0x21c]
call fcn.00405790
mov eax, dword [ebp - 0x220]
jmp 0x4b6314
mov dword [ebp - 0x210], 0x100
lea eax, [ebp - 0x230]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x204]
push edx
push 0
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4b62e3
lea ecx, [ebp - 0x204]
push ecx
lea ecx, [ebp - 0x21c]
call fcn.004b61e0
mov dword [ebp - 0x208], eax
cmp dword [ebp - 0x208], 0
je 0x4b62d7
mov edx, dword [ebp - 0x208]
mov dword [ebp - 0x224], edx
lea ecx, [ebp - 0x21c]
call fcn.00405790
mov eax, dword [ebp - 0x224]
jmp 0x4b6314
mov dword [ebp - 0x210], 0x100
jmp 0x4b6269
lea ecx, [ebp - 0x21c]
call fcn.00405740
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x20c]
call fcn.004b6420
mov dword [ebp - 0x228], eax
lea ecx, [ebp - 0x21c]
call fcn.00405790
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d181f
mov esp, ebp
pop ebp
ret 4

Function at 0x4b6390
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x4b63ef
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4b63bc
mov eax, 1
jmp 0x4b640d
push str.RegDeleteKeyTransactedW
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4b63ed
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [ebp - 0xc]
jmp 0x4b640d
jmp 0x4b6408
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x4b6408
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x4b640d
mov eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x4b7d70
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x550070]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x118], 0x114
push 0x110
push 0
lea eax, [ebp - 0x114]
push eax
call fcn.004d43c0
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0
je 0x4b7dd4
cmp dword [ebp - 0x114], 6
jb 0x4b7dd4
mov dword [ebp - 0x11c], 1
jmp 0x4b7dde
mov dword [ebp - 0x11c], 0
mov al, byte [ebp - 0x11c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d181f
mov esp, ebp
pop ebp
ret

Function at 0x4bbe20
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fa298
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x550070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x10]
call fcn.00403790
mov dword [ebp - 4], 0
cmp dword [ebp + 0x10], 0
je 0x4bbea3
mov eax, 2
imul ecx, eax, 0
mov edx, dword [ebp + 0x10]
movzx eax, word [edx + ecx]
cmp eax, 0x22
je 0x4bbe80
push 0x20
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.004d3d8e
add esp, 8
test eax, eax
jne 0x4bbe8e
mov edx, dword [ebp + 0x10]
push edx
lea ecx, [ebp - 0x10]
call fcn.00406270
jmp 0x4bbea3
mov eax, dword [ebp + 0x10]
push eax
push 0x522080
lea ecx, [ebp - 0x10]
push ecx
call fcn.0040e1d0
add esp, 0xc
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
lea ecx, [ebp - 0x10]
call fcn.004038a0
push eax
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004036f0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4bbef0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x502c0b
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x550070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 1
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push 0x522074
push 0
call fcn.004bbe20
add esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x483
jne 0x4bbfd9
xor ecx, ecx
mov word [ebp - 0x218], cx
push 0x206
push 0
lea edx, [ebp - 0x216]
push edx
call fcn.004d43c0
add esp, 0xc
push 0
push 0x26
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x21c]
call fcn.00403790
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x218]
push ecx
push str._sInternet_Exploreriexplore.exe
lea edx, [ebp - 0x21c]
push edx
call fcn.0040e1d0
add esp, 0xc
push 1
push 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x21c]
call fcn.004038a0
push eax
push 0x52208c
push 0
call fcn.004bbe20
add esp, 0x18
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.004036f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d181f
mov esp, ebp
pop ebp
ret

Function at 0x4bc0a0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp dword [ebp - 0x10], 0x21d8
jne 0x4bc0e3
mov dword [ebp - 4], 1
jmp 0x4bc0ea
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4bc760
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0xc]
push eax
push str.data
mov ecx, dword [ebp + 0x10]
push ecx
push 0x522358
mov edx, dword [ebp + 0x14]
push edx
push 0x522374
push str.s:s_s:s_s:O
call dword [sym.imp.jansson.dll_json_pack]
add esp, 0x1c
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4bc7b4
xor eax, eax
jmp 0x4bc921
push 0x24
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.jansson.dll_json_dumps]
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4bc7df
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00419ed0
add esp, 4
xor eax, eax
jmp 0x4bc921
push 0x52237c
mov edx, dword [ebp + 8]
push edx
call fcn.004dd95f
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4bc819
mov eax, dword [ebp - 0xc]
push eax
call fcn.00419ed0
add esp, 4
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.jansson.dll_json_dumps_free]
add esp, 4
xor eax, eax
jmp 0x4bc921
mov edx, dword [ebp - 0x10]
push edx
push 3
push 1
push str.wb
call fcn.004ddbae
add esp, 0x10
cmp eax, 3
je 0x4bc85f
mov eax, dword [ebp - 0xc]
push eax
call fcn.00419ed0
add esp, 4
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.jansson.dll_json_dumps_free]
add esp, 4
mov edx, dword [ebp - 0x10]
push edx
call fcn.004ddc7c
add esp, 4
xor eax, eax
jmp 0x4bc921
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x14]
mov al, byte [edx]
mov byte [ebp - 1], al
add dword [ebp - 0x14], 1
cmp byte [ebp - 1], 0
jne 0x4bc86e
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 8]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x18]
mov dl, byte [ecx]
mov byte [ebp - 2], dl
add dword [ebp - 0x18], 1
cmp byte [ebp - 2], 0
jne 0x4bc898
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x24]
push edx
push 1
mov eax, dword [ebp - 8]
push eax
call fcn.004ddbae
add esp, 0x10
cmp eax, dword [ebp - 0x28]
je 0x4bc8f7
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00419ed0
add esp, 4
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.jansson.dll_json_dumps_free]
add esp, 4
mov eax, dword [ebp - 0x10]
push eax
call fcn.004ddc7c
add esp, 4
xor eax, eax
jmp 0x4bc921
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00419ed0
add esp, 4
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.jansson.dll_json_dumps_free]
add esp, 4
mov eax, dword [ebp - 0x10]
push eax
call fcn.004ddc7c
add esp, 4
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4eb500
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004eae6e

Function at 0x4eb50b
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004eb0a9

Function at 0x4ee353
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004ee1d2
Function at 0x40310e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [ebp + 8]
push esi
xor esi, esi
cmp dword [0x408800], esi
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], esi
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x40
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], esi
jne 0x4031a0
push 0x100
lea eax, [ebp - 0x144]
push eax
push dword [0x408810]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp byte [ebp - 0x144], 0
je 0x403197
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x144]
jmp 0x403185
cmp byte [eax], 0x5c
je 0x403194
dec eax
lea ecx, [ebp - 0x144]
cmp eax, ecx
ja 0x40317f
cmp byte [eax], 0x5c
jne 0x403197
and byte [eax], 0
lea eax, [ebp - 0x144]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x24], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x403213
call fcn.00402a98
cmp dword [ebp + 0x10], esi
je 0x403201
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
push edi
mov ebx, 0x1f4
push ebx
push dword [ebp - 8]
call esi
mov edi, 0x102
jmp 0x4031ed
call fcn.00402a98
cmp dword [0x408b80], 0
jne 0x4031f3
push ebx
push dword [ebp - 8]
call esi
cmp eax, edi
je 0x4031d9
jmp 0x4031ff
push 0
push dword [ebp + 0x14]
call fcn.00402e3d
pop ecx
pop ecx
pop edi
pop ebx
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
call fcn.00402a98
mov eax, dword [ebp - 4]
pop esi
leave
ret

Function at 0x403219
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
cmp edi, 3
jle 0x403245
push esi
lea esi, [edi - 4]
shr esi, 2
inc esi
mov eax, esi
neg eax
lea edi, [edi + eax*4]
call fcn.00402b24
xor dword [ebx], eax
add ebx, 4
dec esi
jne 0x403237
pop esi
test edi, edi
jle 0x40325e
call fcn.00402b24
cdq
mov ecx, 0xff
idiv ecx
inc dl
xor byte [ebx], dl
inc ebx
dec edi
jne 0x403249
pop edi
pop ebx
ret

Function at 0x4032a9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
lea eax, [ebp - 0x194]
push eax
mov dword [ebp - 0x194], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x184], 1
jne 0x40332e
push esi
push 0x100
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x101], 0x5c
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x403310
push 0x406680
lea eax, [ebp - 0x100]
push eax
call esi
push str.WININIT.INI
lea eax, [ebp - 0x100]
push eax
call esi
lea eax, [ebp - 0x100]
push eax
call fcn.00402f0f
pop ecx
pop esi
leave
ret
xor eax, eax
leave
ret
Function at 0x4037d9
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
push ebx
xor ebx, ebx
cmp dword [0x408a24], ebx
jne 0x4038d4
cmp dword [0x408bdc], ebx
jne 0x4038d4
push ebx
push sym.STUB32.EXE__ProgressDlg_16
push ebx
push 0x6e
push dword [0x408810]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov ecx, dword [0x408bd0]
cmp ecx, ebx
mov dword [0x408bdc], eax
je 0x403831
jmp 0x403824
inc ecx
cmp byte [ecx], bl
jne 0x403823
inc ecx
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
cmp dword [0x408800], ebx
jne 0x4038d4
push 0x104
lea eax, [ebp - 0x104]
push eax
push dword [0x408810]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x104]
jmp 0x403871
cmp byte [eax], 0x2e
je 0x403880
dec eax
lea ecx, [ebp - 0x104]
cmp eax, ecx
ja 0x40386b
cmp byte [eax], 0x2e
jne 0x40388c
push str..ini
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x104]
push eax
push 0x208
lea eax, [ebp - 0x30c]
push eax
push 0x40645d
push str.WiseInitProgressText
push str.WiseInstaller
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x30c], bl
je 0x4038d4
lea eax, [ebp - 0x30c]
push eax
push 0x3f1
push dword [0x408bdc]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
pop ebx
leave
ret
Function at 0x405da0
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push ebx
xor eax, eax
mov ebx, dword [esp + 8]
push esi
push edi
cmp byte [ebx], al
je 0x405ddf
push ebx
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x405ddf
mov edi, str.255.255.255.255
mov ecx, 0x10
mov esi, ebx
repe cmpsb byte [esi], byte es:[edi]
je 0x405ddf
push ebx
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x405ddd
mov eax, dword [eax + 0xc]
pop edi
mov ecx, dword [eax]
pop esi
pop ebx
mov eax, dword [ecx]
ret
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x100272a
Capabilities:
Check if file exists
Delete directory
Delete file
Move file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x100a8e0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x100a064]
xor ebp, ebp
cmp eax, ebp
je 0x1002751
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x100a064], ebp
mov esi, dword [0x100a008]
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov edi, 0x100a008
jmp 0x1002793
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x1002791
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x100278e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x100278e
cmp eax, 3
je 0x100278e
push 4
push ebp
push dword [esi + 4]
call ebx
mov dword [esi + 4], ebp
mov esi, dword [esi]
cmp esi, edi
jne 0x1002764
mov esi, dword [0x100a010]
mov ebp, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov edi, 0x100a010
jmp 0x10027d7
mov eax, dword [esi + 4]
test eax, eax
je 0x10027d5
push eax
call ebp
test eax, eax
jne 0x10027d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x10027d1
cmp eax, 3
je 0x10027d1
push 4
push 0
push dword [esi + 4]
call ebx
and dword [esi + 4], 0
mov esi, dword [esi]
cmp esi, edi
jne 0x10027aa
mov eax, dword [0x100a024]
cmp eax, 0xffffffff
je 0x10027f3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x100a024], 0xffffffff
mov esi, 0x100a900
push esi
call ebp
test eax, eax
jne 0x1002816
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1002816
cmp eax, 3
je 0x1002816
push 4
push 0
push esi
call ebx
push 0x100a8e0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x100294a
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 0x1002974
push esi
push edi
movzx esi, byte [ecx]
movzx edi, al
xor esi, edi
shr eax, 8
xor eax, dword [esi*4 + 0x100a080]
inc ecx
dec edx
jne 0x100295c
pop edi
pop esi
ret 0xc
Function at 0x1002f08
Capabilities:
Query environment variable
Set environment variable
Write file on windows

Disassembly:
push ecx
push ebp
xor ebp, ebp
push ebp
push ebp
push 0x1002244
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x1002fcd
push esi
mov esi, 0x100ab40
push esi
push 0x1002234
push 0x100a900
call fcn.0100259f
push ebp
push 0x4000002
push 1
push ebp
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edx, eax
cmp edx, 0xffffffff
mov dword [0x100a024], edx
je 0x1002fcc
push ebx
push edi
mov ebx, 0x100a480
xor eax, eax
push ebp
mov ecx, 0x84
mov edi, ebx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push eax
mov edi, 0x210
push edi
push ebx
push edx
mov dword [0x100a480], 0x6e776453
mov dword [0x100a484], 0x10000
mov dword [0x100a488], 0xc0000013
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1002fb7
cmp dword [esp + 0x10], edi
jne 0x1002fb7
push esi
push 0x1002244
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
jmp 0x1002fca
push dword [0x100a024]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x100a024], 0xffffffff
pop edi
pop ebx
pop esi
pop ebp
pop ecx
ret

Function at 0x1002fd0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x280
push esi
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
jne 0x1002fea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp dword [0x101ac60], 0
jne 0x100303f
lea eax, [ebp - 0x280]
push eax
push 0x200
push esi
call fcn.010026c2
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 [0x100a7a4]
call dword [sym.imp.USER32.dll_MessageBoxA]
call fcn.0100272a
test esi, esi
jne 0x1003049
inc esi
cmp dword [0x100a060], 0
je 0x1003064
push 0x100a8e0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
and dword [0x100a060], 0
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1003098
Capabilities:
Get common file path
Shutdown system

Disassembly:
push ebp
lea ebp, [esp - 0x64]
sub esp, 0x1bc
mov eax, dword [0x100a028]
push ebx
push esi
push 0x100228c
xor ebx, ebx
push ebx
push 0x100000
mov dword [ebp + 0x60], eax
mov dword [ebp - 0x148], 0x10
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov esi, eax
cmp esi, ebx
je 0x10030e5
push 0xea60
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10030fc
cmp dword [ebp + 0x74], ebx
je 0x10030f1
push 0xea60
jmp 0x10030f6
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x158]
push eax
push ebx
push 0x13
call fcn.01002d06
test eax, eax
je 0x1003226
push edi
push 0x100227c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp - 0x144], eax
je 0x1003152
push 0x1002260
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x1003152
push dword [ebp + 0x7c]
push dword [ebp + 0x6c]
push dword [ebp + 0x70]
push ebx
push dword [ebp + 0x78]
push ebx
call eax
jmp 0x1003161
push dword [ebp + 0x6c]
push dword [ebp + 0x70]
push ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownA]
mov edi, eax
cmp edi, ebx
jne 0x1003203
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x94
call esi
cmp dword [ebp - 0x38], 4
jbe 0x1003203
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x9c
call esi
test byte [ebp + 0x5c], 0x40
je 0x1003203
push 0x104
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1003203
lea eax, [ebp - 0x140]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_strchr]
pop ecx
pop ecx
push ebx
push 0x2000000
push 3
push ebx
push 7
mov byte [eax + 1], bl
push 0xc0000000
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1003203
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
je 0x1003203
push 1
call dword [sym.imp.ntdll.dll_NtShutdownSystem]
mov edi, eax
cmp dword [ebp - 0x144], ebx
je 0x1003217
push dword [ebp - 0x144]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x158]
push eax
call fcn.01002d8a
mov eax, edi
pop edi
mov ecx, dword [ebp + 0x60]
pop esi
pop ebx
call fcn.0100515e
add ebp, 0x64
leave
ret 0x14
Function at 0x1003330
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 0x1003390
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 0x1003397
xor eax, eax
jmp 0x100344d
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp + 8]
push eax
push 0x10000
push 0x100ac60
push 4
push dword [ebp - 0x10]
call ebx
test eax, eax
je 0x100344c
push esi
push dword [0x100ac60]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov esi, eax
push esi
call fcn.01003237
cmp eax, edi
pop ecx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
je 0x1003429
mov ecx, esi
mov esi, dword [0x100ac60]
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 0x100ac60
and ecx, 3
push 1
rep movsb byte es:[edi], byte [esi]
push dword [ebp - 0x10]
call ebx
test eax, eax
je 0x100344b
push dword [0x100ac60]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov esi, eax
push esi
call fcn.01003237
test eax, eax
pop ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jne 0x1003430
push 8
call fcn.01002fd0
mov ecx, esi
mov esi, dword [0x100ac60]
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.0100515e
leave
ret 0xc