joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002a48d
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x1026e004]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x38], 0x123f
mov eax, 0x1254
mov word [ebp - 0x34], ax
push ebx
lea edx, [eax + 6]
add eax, 0xfffffff9
mov word [ebp - 0x32], dx
lea ecx, [edx - 7]
mov word [ebp - 0x30], ax
lea eax, [edx - 9]
mov word [ebp - 0x2e], ax
add eax, 0xc
mov word [ebp - 0x2c], dx
mov word [ebp - 0x2a], cx
mov word [ebp - 0x28], ax
lea eax, [edx + 4]
mov word [ebp - 0x26], ax
add eax, 0xffffffee
mov word [ebp - 0x24], ax
lea eax, [edx - 0x49]
mov word [ebp - 0x22], dx
mov word [ebp - 0x20], ax
add eax, 0x4a
mov word [ebp - 0x1e], ax
xor eax, eax
mov word [ebp - 0x1c], cx
xor ebx, ebx
mov word [ebp - 0x1a], cx
mov edx, ebx
mov word [ebp - 0x18], ax
mov ax, word [ebp - 0x34]
mov ax, word [ebp + edx*2 - 0x34]
movzx ecx, ax
movzx eax, word [ebp - 0x38]
xor ecx, eax
mov word [ebp + edx*2 - 0x34], cx
inc edx
cmp edx, 0xe
jb 0x1002a50b
xor eax, eax
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, eax
test ecx, ecx
je 0x1002a5ce
mov byte [ebp - 0x14], 0x4e
mov byte [ebp - 0x13], 0x78
mov byte [ebp - 0x12], 0x5c
mov byte [ebp - 0x11], 0x74
mov byte [ebp - 0x10], 0x7c
mov byte [ebp - 0xf], 0x3b
mov byte [ebp - 0xe], 0x39
mov byte [ebp - 0xd], 0x55
mov byte [ebp - 0xc], 0x77
mov byte [ebp - 0xb], 0x74
mov byte [ebp - 0xa], 0x68
mov byte [ebp - 9], 0x6a
mov byte [ebp - 8], 0x78
mov byte [ebp - 7], 0x78
mov byte [ebp - 6], 0x37
mov byte [ebp - 5], bl
mov al, byte [ebp - 0x14]
mov al, byte [ebp + ebx - 0x14]
movsx eax, al
sub eax, 5
mov byte [ebp + ebx - 0x14], al
inc ebx
cmp ebx, 0xf
jb 0x1002a580
lea eax, [ebp - 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1002a5ce
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x40]
push ecx
push 0xffffffffffffffff
call eax
test eax, eax
je 0x1002a5ce
mov eax, 0x1c0
cmp word [ebp - 0x3c], ax
je 0x1002a5c9
mov eax, 0xaa64
cmp word [ebp - 0x3c], ax
jne 0x1002a5ce
xor eax, eax
inc eax
jmp 0x1002a5d0
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100e04a9
leave
ret
Function at 0x1002a65a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x1026e004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
call fcn.1002aea6
test eax, eax
js 0x1002a78c
mov dword [ebp - 0x224], 0x49e7
mov ecx, 0x4983
mov eax, 0x4989
mov word [ebp - 0x220], ax
add eax, 0xa
mov word [ebp - 0x21e], ax
mov word [ebp - 0x21c], cx
lea edx, [ecx + 8]
mov word [ebp - 0x21a], dx
lea eax, [ecx + 0x46]
mov word [ebp - 0x218], dx
mov word [ebp - 0x216], ax
xor eax, eax
mov word [ebp - 0x214], cx
mov word [ebp - 0x212], dx
mov word [ebp - 0x210], dx
xor edx, edx
mov word [ebp - 0x20e], ax
mov ax, word [ebp - 0x220]
mov ax, word [ebp + edx*2 - 0x220]
movzx ecx, ax
movzx eax, word [ebp - 0x224]
xor ecx, eax
mov word [ebp + edx*2 - 0x220], cx
inc edx
cmp edx, 9
jb 0x1002a6eb
xor eax, eax
push esi
mov word [ebp - 0x20e], ax
lea eax, [ebp - 0x220]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, dword [ebx]
lea eax, [ebp - 0x20c]
push edi
push eax
push edx
mov esi, dword [edx]
call dword [esi + 0x20]
mov edx, eax
mov dword [ebx + 8], edx
pop edi
pop esi
test edx, edx
jne 0x1002a763
mov ecx, ebx
call fcn.100061b0
mov eax, 0xe0d00113
jmp 0x1002a78c
mov eax, dword [ebx]
push str.NtProtectVirtualMemory
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov dword [ebx + 0xc], eax
test eax, eax
jne 0x1002a78a
mov ecx, ebx
call fcn.100061b0
and dword [ebx + 8], 0
mov eax, 0xe0d00114
jmp 0x1002a78c
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100e04a9
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ax, word [0x102056c4]
sub ecx, edx
push ebx
mov ebx, dword [0x102056c0]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
add esi, ecx
mov word [ebp - 0xc], ax
lea eax, [ebp + 8]
push eax
push 0x40
push 6
push esi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ecx
call edi
lea eax, [ebp + 8]
mov dword [esi], ebx
mov bl, byte [ebp - 0xc]
push eax
push dword [ebp + 8]
mov byte [esi + 4], bl
push 6
push esi
call edi
mov esi, dword [ebp - 4]
lea eax, [ebp + 8]
add esi, dword [ebp + 0xc]
push eax
push 0x40
push 6
push esi
call edi
mov eax, dword [ebp - 8]
mov dword [esi], eax
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
mov byte [esi + 4], bl
push 6
push esi
call edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1002a85e
Capabilities:
Encode data using xor
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1026e004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
call fcn.1002a48d
test eax, eax
je 0x1002a9d7
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x1002a9d7
mov eax, dword [esi + 0x3c]
cmp dword [eax + esi], 0x4550
jne 0x1002a9d7
mov eax, dword [eax + esi + 8]
cmp eax, 0x27debf2c
jne 0x1002a8c8
push 0x4b2e8f83
push 0x4b2e8de3
mov edx, 0x4b280000
mov ecx, esi
call fcn.1002a7e9
pop ecx
pop ecx
xor eax, eax
jmp 0x1002a9dc
cmp eax, 0x88330560
jne 0x1002a8db
push 0x4b3fabde
push 0x4b3fa92b
jmp 0x1002a8b3
cmp eax, 0xe892dd44
jne 0x1002a8ee
push 0x4b406b8e
push 0x4b4068db
jmp 0x1002a8b3
mov eax, dword [0x102056c8]
mov dword [ebp - 0xc], eax
mov eax, dword [0x102056cc]
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], 0x6d
mov eax, dword [ebp - 0x1c]
xor eax, 0x52
mov byte [ebp - 0x18], al
mov eax, dword [ebp - 0x1c]
inc al
xor eax, 0x74
mov byte [ebp - 0x17], al
mov eax, dword [ebp - 0x1c]
add al, 2
xor eax, 0x6c
mov byte [ebp - 0x16], al
mov eax, dword [ebp - 0x1c]
add al, 3
xor eax, 0x55
mov byte [ebp - 0x15], al
mov eax, dword [ebp - 0x1c]
add al, 4
xor eax, 0x6e
mov byte [ebp - 0x14], al
mov eax, dword [ebp - 0x1c]
add al, 5
xor eax, 0x77
mov byte [ebp - 0x13], al
mov eax, dword [ebp - 0x1c]
add al, 6
xor eax, 0x69
mov byte [ebp - 0x12], al
mov eax, dword [ebp - 0x1c]
add al, 7
xor eax, 0x6e
mov byte [ebp - 0x11], al
mov eax, dword [ebp - 0x1c]
add al, 8
mov byte [ebp - 0xf], 0
xor eax, 0x64
xor edx, edx
mov byte [ebp - 0x10], al
mov al, byte [ebp - 0x18]
mov al, byte [ebp + edx - 0x18]
mov ecx, dword [ebp - 0x1c]
add cl, dl
movsx eax, al
xor ecx, eax
mov byte [ebp + edx - 0x18], cl
inc edx
cmp edx, 9
jb 0x1002a96f
lea eax, [ebp - 0x18]
mov byte [ebp - 0xf], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x1002a9d7
push 8
lea eax, [ebp - 0xc]
push eax
push 0x140
lea ecx, [edi - 0x140]
push ecx
call fcn.10017d00
mov ebx, eax
test ebx, ebx
je 0x1002a9d7
push 8
lea eax, [ebp - 0xc]
push eax
push 0x200
push edi
call fcn.10017d00
test eax, eax
je 0x1002a9d7
push eax
push ebx
mov edx, esi
jmp 0x1002a8b8
mov eax, 0xe0010001
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100e04a9
leave
ret

Function at 0x1002b97f
Capabilities:
Parse pe header

Disassembly:
push 0x24
push 0x102585b0
call fcn.100e1070
mov edi, edx
push 0x1c
lea eax, [ebp - 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x30]
cmp word [ecx], ax
jne 0x1002b9f5
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x1002b9f5
mov esi, dword [edx + ecx + 0xd8]
lea eax, [esi + ecx]
cmp edi, eax
jb 0x1002b9f5
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp edi, eax
jae 0x1002b9f5
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x1002b9fe
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1002bcc9
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
mov ebx, edx
movzx eax, si
push edi
mov edi, 0x10000
test eax, eax
je 0x1002bd50
sub esi, eax
add esi, edi
jmp 0x1002bd50
lea eax, [esi - 0x70000000]
cmp eax, sym.x3_barrier_Win32.dll_Ordinal_5
ja 0x1002bcfd
add esi, 0x8000000
jmp 0x1002bd50
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
push 0x1c
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1002bd54
mov ecx, dword [ebp - 0x10]
mov edi, 0x10000
cmp dword [ebp - 0xc], edi
jne 0x1002bd3e
cmp ecx, edi
jb 0x1002bd3e
push 0x40
push 0x3000
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x1002bd56
jmp 0x1002bce4
mov esi, dword [ebp - 0x1c]
add esi, ecx
movzx ecx, si
test ecx, ecx
je 0x1002bd50
mov eax, edi
sub eax, ecx
add esi, eax
cmp esi, ebx
jb 0x1002bce8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1002bd5b
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
add edx, 0xffff0000
movzx eax, dx
push ebx
push esi
mov esi, edx
mov ebx, ecx
sub esi, eax
test eax, eax
push edi
cmove esi, edx
jmp 0x1002bde5
lea eax, [esi - 0x70000000]
cmp eax, sym.x3_barrier_Win32.dll_Ordinal_5
ja 0x1002bd8f
sub esi, 0x8000000
jmp 0x1002bde5
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
push 0x1c
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1002bde9
mov edi, 0x10000
cmp dword [ebp - 0xc], edi
jne 0x1002bdd0
cmp dword [ebp - 0x10], edi
jb 0x1002bdd0
push 0x40
push 0x3000
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x1002bdeb
sub esi, edi
jmp 0x1002bde5
mov ecx, dword [ebp - 0x18]
add ecx, 0xffff0000
mov esi, ecx
movzx eax, si
sub esi, eax
test eax, eax
cmove esi, ecx
cmp esi, ebx
ja 0x1002bd7a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1002bdf0
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 8]
mov esi, ecx
push eax
lea edx, [ebp - 4]
call fcn.1002ba37
mov edx, dword [0x102a8c94]
mov eax, dword [0x102a8c9c]
pop ecx
test edx, edx
jne 0x1002be20
test eax, eax
je 0x1002be35
mov edx, eax
mov dword [0x102a8c94], edx
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x1002be35
cmp ecx, dword [ebp - 4]
jb 0x1002be35
cmp ecx, dword [ebp - 8]
jbe 0x1002bebd
mov edx, eax
test eax, eax
jmp 0x1002be55
test edx, edx
je 0x1002be50
mov eax, dword [edx + 8]
test eax, eax
je 0x1002be50
cmp eax, dword [ebp - 4]
jb 0x1002be50
cmp eax, dword [ebp - 8]
jbe 0x1002bebd
mov edx, dword [edx + 4]
test edx, edx
mov dword [0x102a8c94], edx
jne 0x1002be3b
mov ecx, dword [ebp - 4]
and esi, 0xffff0000
mov edx, esi
call fcn.1002bd5b
mov edx, eax
test edx, edx
jne 0x1002be83
mov edx, dword [ebp - 8]
mov ecx, esi
call fcn.1002bcc9
mov edx, eax
test edx, edx
je 0x1002bee4
xor ecx, ecx
mov dword [edx], 0x52727464
mov dword [edx + 8], ecx
mov esi, 0x38b
mov eax, dword [0x102a8c9c]
mov dword [edx + 4], eax
lea eax, [edx + 0xffa8]
mov dword [0x102a8c94], edx
mov dword [0x102a8c9c], edx
mov dword [eax + 0x40], ecx
mov ecx, eax
sub eax, 0x48
sub esi, 1
jne 0x1002bead
mov dword [edx + 8], ecx
mov esi, dword [edx + 8]
cmp esi, dword [ebp - 4]
jb 0x1002bee4
cmp esi, dword [ebp - 8]
ja 0x1002bee4
mov ecx, dword [esi + 0x40]
push 0x48
push 0xcc
push esi
mov dword [edx + 8], ecx
call fcn.100e19a0
add esp, 0xc
mov eax, esi
jmp 0x1002bee6
xor eax, eax
pop esi
leave
ret

Function at 0x1002bf70
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x102a8c90], 0
push esi
jne 0x1002bfe4
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x102a8c90
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x1002bfe4
push edi
mov edi, dword [0x102a8c9c]
mov dword [0x102a8ca4], esi
mov dword [0x102a8ca0], esi
mov dword [0x102a8c98], esi
jmp 0x1002bfcb
lea eax, [ebp - 4]
push eax
push 0x40
push 0x10000
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1002bfd1
mov edi, dword [edi + 4]
test edi, edi
jne 0x1002bfb2
jmp 0x1002bfd9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [0x102a8c8c], esi
mov eax, esi
pop edi
jmp 0x1002bfe9
mov eax, 0x10dd
pop esi
leave
ret
Function at 0x1002bfec
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x102a8c90], eax
je 0x1002c005
mov eax, 0x10dd
leave
ret
push ebx
push esi
push edi
mov edi, dword [0x102a8ca4]
xor ebx, ebx
test edi, edi
je 0x1002c052
lea eax, [ebp - 4]
push eax
mov eax, dword [edi + 0x10]
push dword [edi + 0x14]
movzx eax, byte [eax + 0x36]
push eax
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [edi + 4], ebx
jne 0x1002c040
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x1002c040
call fcn.1002bee9
mov dword [edi + 0x10], ebx
mov esi, dword [edi]
push 0x18
push edi
call fcn.100e04ea
mov edi, esi
pop ecx
pop ecx
test esi, esi
jne 0x1002c014
mov dword [0x102a8ca4], ebx
call fcn.1002bc91
mov edi, dword [0x102a8ca0]
test edi, edi
je 0x1002c082
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esi, dword [edi]
push 8
push edi
call fcn.100e04ea
mov edi, esi
pop ecx
pop ecx
test esi, esi
jne 0x1002c067
pop edi
pop esi
mov dword [0x102a8ca0], ebx
xor eax, eax
mov dword [0x102a8c90], ebx
pop ebx
leave
ret
Function at 0x1002c5f8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
mov ebx, edx
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x102a8c90], eax
je 0x1002c61b
mov eax, 0x10dd
jmp 0x1002c6fe
mov eax, dword [0x102a8c8c]
test eax, eax
jne 0x1002c6fe
test ebx, ebx
jne 0x1002c634
push 0x57
pop eax
jmp 0x1002c6fe
test edi, edi
jne 0x1002c63c
push 6
jmp 0x1002c62e
cmp dword [edi], 0
jne 0x1002c654
push 6
pop eax
mov dword [0x102a8c8c], eax
mov dword [0x102a8c98], edi
jmp 0x1002c6fe
push esi
push 0x18
call fcn.100e04ba
pop ecx
mov ecx, dword [edi]
mov esi, eax
call fcn.1002bf0e
mov ecx, ebx
mov dword [ebp - 8], eax
call fcn.1002bf0e
mov ebx, dword [ebp - 8]
mov edx, eax
movzx ecx, byte [ebx + 0x36]
mov eax, dword [ebx + 0x40]
sub eax, ecx
mov dword [ebp - 8], eax
test ecx, ecx
je 0x1002c6d9
cmp ecx, 0x1e
ja 0x1002c6d9
cmp dword [ebx + 0x44], edx
jne 0x1002c6d9
and dword [ebp - 4], 0
lea edx, [ebp - 4]
push edx
push 0x40
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1002c6af
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x1002c6e5
mov eax, dword [ebp - 8]
mov dword [esi + 0xc], eax
mov dword [esi + 4], 1
mov dword [esi + 8], edi
mov dword [esi + 0x10], ebx
mov eax, dword [ebp - 4]
mov dword [esi + 0x14], eax
mov eax, dword [0x102a8ca4]
mov dword [esi], eax
xor eax, eax
mov dword [0x102a8ca4], esi
jmp 0x1002c6fd
cmp dword [0x102a845c], 0
push 9
pop ebx
jne 0x1002c6eb
mov dword [0x102a8c8c], ebx
push 0x18
push esi
call fcn.100e04ea
pop ecx
pop ecx
mov dword [0x102a8c98], edi
mov eax, ebx
pop esi
pop edi
pop ebx
leave
ret

Function at 0x1002c8e3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 4], ecx
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 8]
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1002c915
xor eax, eax
jmp 0x1002c935
push esi
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1002c92c
xor esi, esi
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1002c93a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 4], ecx
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 8]
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1002c96c
xor eax, eax
jmp 0x1002c98c
push esi
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1002c983
xor esi, esi
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1002e91d
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x1026e004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x20c]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, 0x104
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x1002e9ba
cmp eax, edi
ja 0x1002e9ba
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002e95d
sub ecx, edx
lea eax, [ebp - 0x21c]
push 0x101e4da8
sar ecx, 1
push eax
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0xc
pop edx
lea ecx, [ebp - 0x218]
call fcn.10013dc6
test eax, eax
js 0x1002e9c5
cmp dword [ebp - 0x218], 0xa050f1c7
je 0x1002e9a8
mov eax, 0xe0010001
jmp 0x1002e9c5
mov eax, dword [ebp - 0x214]
xor eax, dword [ebp - 0x210]
mov dword [esi], eax
xor eax, eax
jmp 0x1002e9c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0xe0ff0000
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100e04a9
leave
ret 8
Function at 0x10030c67
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x6a8
mov eax, 0x101a0837
call fcn.101751dc
mov dword [ebp - 0x6a4], edx
mov ebx, ecx
mov dword [ebp - 0x6b4], ebx
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
shr eax, 1
mov dword [ebp - 0x6b0], eax
lea eax, [ebp - 0x6b0]
push eax
push edi
push 0
push edx
call dword [ebx + 0x40]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, eax
je 0x10030cdb
push edi
call esi
cmp eax, 0xffffffff
je 0x10030cba
xor eax, eax
inc eax
jmp 0x10030e0c
push ecx
mov edx, edi
lea ecx, [ebp - 0x6a0]
call fcn.1002fe8f
pop ecx
test eax, eax
js 0x10030cdb
push dword [ebp - 0x6a0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10030cb2
push dword [ebp + 0x10]
push edi
push ecx
mov edx, dword [ebp - 0x6a4]
mov ecx, ebx
call fcn.10033e43
test eax, eax
je 0x10030cf9
push edi
call esi
cmp eax, 0xffffffff
jne 0x10030cb2
lea eax, [ebp - 0x6ac]
push eax
mov esi, dword [ebp - 0x6a4]
mov edx, esi
mov ecx, ebx
call fcn.10031011
test eax, eax
je 0x10030e0a
mov eax, dword [ebp - 0x6ac]
or eax, dword [ebp - 0x6a8]
je 0x10030e0a
lea eax, [ebp - 0x6a0]
push eax
push 0x288
lea eax, [ebp - 0x29c]
push eax
push dword [ebp - 0x6a8]
push dword [ebp - 0x6ac]
mov edx, esi
mov ecx, ebx
call fcn.100311c1
test eax, eax
je 0x10030e0a
cmp dword [ebp - 0x6a0], 0x288
jne 0x10030e0a
lea eax, [ebp - 0x6a0]
push eax
push 0x400
lea eax, [ebp - 0x69c]
push eax
push dword [ebp - 0x278]
push dword [ebp - 0x27c]
mov edx, esi
mov ecx, ebx
call fcn.100311c1
test eax, eax
je 0x10030e0a
cmp dword [ebp - 0x6a0], 0x400
jne 0x10030e0a
and dword [ebp - 4], 0
movzx esi, word [ebp - 0x63c]
lea eax, [esi + 2]
call fcn.10175400
mov dword [ebp - 0x10], esp
mov ebx, esp
test ebx, ebx
je 0x10030e0a
lea eax, [ebp - 0x6a0]
push eax
push esi
push ebx
push dword [ebp - 0x630]
push dword [ebp - 0x634]
mov edx, dword [ebp - 0x6a4]
mov ecx, dword [ebp - 0x6b4]
call fcn.100311c1
test eax, eax
je 0x10030e0a
shr esi, 1
xor eax, eax
mov word [ebx + esi*2], ax
push dword [ebp + 0x10]
mov edx, edi
mov ecx, ebx
call fcn.10025895
jmp 0x10030cb2
xor eax, eax
lea esp, [ebp - 0x6c4]
call fcn.10175129
ret 0xc
Function at 0x10032f1d
Capabilities:
Check os version

Disassembly:
push 0x38
mov eax, 0x101a0bfc
call fcn.101751a5
mov ebx, edx
mov dword [ebp - 0x14], ecx
lea eax, [ebp - 0x44]
mov dword [ebp - 0x18], eax
xor esi, esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
push esi
push esi
call fcn.1002107b
mov dword [ebp - 0x44], eax
mov dword [ebp - 4], 2
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x18], eax
and dword [ebp - 0x3c], esi
lea eax, [ebp - 0x38]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
push esi
push esi
call fcn.10035505
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 5
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov byte [ebp - 4], 6
mov dword [ebp - 0x3c], 0x3f800000
push 8
lea ecx, [ebp - 0x3c]
call fcn.10034c97
mov dword [ebp - 4], 9
lea eax, [ebp - 0x44]
mov edi, dword [ebp + 8]
mov edx, ebx
push eax
push ecx
mov ecx, dword [ebp - 0x14]
cmp dword [ebx + 0x5c], esi
mov esi, dword [ebp + 0xc]
push esi
push edi
je 0x10032fb3
call fcn.10032aec
jmp 0x10032fb8
call fcn.1003266c
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov cx, ax
shr cx, 8
cmp al, 5
jb 0x10032fee
jne 0x10032fd0
test cx, cx
je 0x10032fee
lea eax, [ebp - 0x44]
mov edx, ebx
push eax
push ecx
push esi
mov ecx, dword [ebp - 0x14]
push edi
cmp dword [ebx + 0x5c], 0
je 0x10032fe9
call fcn.100328f5
jmp 0x10032fee
call fcn.100324d6
cmp dword [ebp - 0x40], 0
jne 0x1003301c
mov dword [ebp - 4], 0xa
lea eax, [ebp - 0x3c]
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 0xa
mov ecx, eax
call fcn.10033132
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.1001e79c
xor eax, eax
jmp 0x10033067
mov edi, dword [ebp - 0x44]
mov esi, dword [edi]
cmp esi, edi
je 0x1003303e
mov byte [ebp - 4], 0xd
push dword [ebp + 0x14]
push dword [esi + 8]
push dword [ebp + 0xc]
push ebx
call dword [ebp + 0x10]
test eax, eax
jne 0x1003306f
mov byte [ebp - 4], 9
mov dword [ebp - 4], 0x12
lea eax, [ebp - 0x3c]
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 0x12
mov ecx, eax
call fcn.10033132
or dword [ebp - 4], 0xffffffff
xor esi, esi
inc esi
lea ecx, [ebp - 0x44]
call fcn.1001e79c
mov eax, esi
call fcn.10175103
ret 0x10
mov dword [ebp - 4], 9
mov esi, dword [esi]
jmp 0x10033021