joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4aedce
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4aee06
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004ace85
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004ace5d
jmp 0x4aee12
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4b04c3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4b0505
call fcn.004b6234
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4b0505
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4b04fc
xor eax, eax
jmp 0x4b050d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004b0513
pop edi
pop esi
pop ebx
ret 4

Function at 0x4b6764
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4b6792
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4b67b0
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004b66ca
jmp 0x4b67b0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4b67b0
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004b66ca
test edi, edi
mov eax, edi
jne 0x4b679a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10063ea
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push 0x109935c
sub esi, edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp + 0xc]
push eax
push 0x40
push esi
push edi
call ebx
cmp byte [ebp + 0x18], 0
je 0x100641e
mov eax, dword [ebp + 0x14]
sub dword [edi], eax
mov eax, edi
sub eax, dword [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push esi
push edi
call fcn.01006459
add esp, 0x10
cmp byte [ebp + 0x18], 0
je 0x100643c
mov eax, dword [ebp + 0x14]
add dword [edi], eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
push esi
push edi
call ebx
push 0x109935c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
pop ebp
ret 0x14

Function at 0x10066fa
Capabilities:
Allocate thread local storage
Resolve function by parsing pe exports
Terminate process

Disassembly:
pushal
pushfd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01008d34
push eax
lea edx, [0xfefa5a6]
lea ecx, [0x19904a1a]
sub esp, 0x10
mov dword [esp], edx
push ecx
sub dword [esp + 4], 0xeef3e64
pop ebx
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 0xc
jmp fcn.01006766

Function at 0x1008a5a
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [0x1099510]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [ebp + 8]
push dword [edi + 0x64]
mov esi, eax
push dword [0x1099510]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp esi, 0x32
jae 0x1008aa9
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [edi + 0x60]
cmp eax, 0x2710
jae 0x1008aa1
mov dword [esi*8 + 0x1099380], 1
jmp 0x1008aaf
and dword [esi*8 + 0x1099380], 0
push edi
call fcn.010091de
pop edi
pop esi
pop ebp
ret 4
Function at 0x10090d0
Capabilities:
Check for time delay via gettickcount
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
mov ebx, 0x1099380
push edi
mov esi, ebx
push 2
xor eax, eax
pop ecx
inc eax
lock cmpxchg dword [esi], ecx
cmp eax, 1
jne 0x100910d
mov edi, dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [edi + 0x60]
cmp eax, 0x2710
jb 0x100915d
and dword [esi], 0
push edi
call fcn.010091de
inc dword [ebp - 4]
add esi, 8
cmp dword [ebp - 4], 0x32
jl 0x10090e2
call fcn.010091ad
mov esi, eax
xor edi, edi
mov ecx, ebx
push 2
pop edx
xor eax, eax
lock cmpxchg dword [ecx], edx
test eax, eax
je 0x100917f
inc edi
add ecx, 8
cmp edi, 0x32
jl 0x1009124
push dword [0x1099510]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov dword [esi + 0x64], eax
push dword [0x1099510]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
push dword [0x1099510]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push dword [ebp - 4]
mov dword [edi + 0x64], eax
push dword [0x1099510]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, edi
jmp 0x1009158
push dword [0x1099510]
mov dword [edi*8 + 0x1099384], esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
mov dword [esi + 0x64], eax
push dword [0x1099510]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x60], eax
jmp 0x1009156

Function at 0x10091ad
Capabilities:
Allocate or change rwx memory

Disassembly:
push 0x40
push 0x3000
push 0x4000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x10091ce
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp fcn.010091ad
ret

Function at 0x1042a72
Capabilities:
Encode data using xor

Disassembly:
xor dl, ch
clc
imul dword [ecx - 0x2ebe1b8e]
jns 0x1042ac7
and eax, ebx
popfd
and ecx, esp
sahf
rcr dword [ecx + 0x51], 0x86
leave
dec eax
xor edx, ecx
or al, 0x7a
push ds
add byte [ebx], dl
imul edx, ebp, 0xffffff8f
mov dword [ebp + 0x7cae49e9], eax
aaa
invalid
mov ebx, 0xa19d5e59
inc ecx
sbb eax, 0x1427adc0
jbe 0x1042b4e
mov dl, 0x5e
sub dword [ebx - 0x14], 0x195664da
pop esp
cmp ecx, dword [ebp + 0x5ca1cd51]
inc esi
loopne 0x1042a7f
invalid
mov eax, dword [0x5e2e09f0]
popal
dec eax
dec esi
mov edx, 0x901c59a5
mov dl, 0x61
xchg byte [ebx + 0x2d], dl
mov word [edx], ss
invalid
Function at 0x10494d0
Capabilities:
Encode data using xor

Disassembly:
mov byte [0xee734bb5], al
jo 0x1049530
inc eax
aaa
imul edx, dword [edx - 0x63bd86d5], 0xc8f9edf3
lcall 0x46c8, 0x53745f1d
mov edi, 0xd5feda8e
mov dl, 0x98
push eax
ret 0xb40
mov edx, 0x4940efe7
inc esi
dec ebp
add eax, 0x47c7bbba
std
add ebx, dword [ecx]
insd dword es:[edi], dx
sahf
sbb dword [ebp - 0x62], ebp
mov ebp, 0x3b80a35c
pop esi
xor al, 0xb9
inc ebp
mov ch, 0xfb
push eax
pop ebp
jnp 0x104953e
cmc
pushal
add byte [edi], dl
mov esi, 0x9b964065
invalid
Function at 0x106b75b
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x1099a38]
push ebx
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x10c]
xor ebx, ebx
push eax
mov byte [ebp - 0x10c], bl
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x106b79b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1023524
jmp 0x106b7d8
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x106b7a4
sub eax, edx
add eax, 3
cmp dword [ebp + 8], 0
je 0x106b7bb
add eax, 8
jmp 0x106b7be
add eax, 7
push eax
call dword [sym.imp.msvcrt.dll_malloc]
mov ebx, eax
test ebx, ebx
pop ecx
jne 0x106b7e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10234ec
call fcn.01071ac0
pop ecx
pop ecx
jmp 0x106b864
lea eax, [ebp - 0x10c]
mov edx, ebx
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x106b7f0
cmp byte [ebx], cl
push esi
push edi
mov edx, 0x10094ec
je 0x106b829
mov eax, ebx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x106b80a
sub eax, esi
cmp byte [eax + ebx - 1], 0x5c
je 0x106b829
mov edi, ebx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x106b81d
mov esi, edx
movsw word es:[edi], word [esi]
mov edi, ebx
dec edi
cmp dword [ebp + 8], 0
je 0x106b844
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x106b832
mov esi, 0x10234e0
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
jmp 0x106b853
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x106b844
mov esi, 0x10234d8
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, ebx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x106b856
mov esi, edx
movsw word es:[edi], word [esi]
pop edi
pop esi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop ebx
call fcn.0106bc50
leave
ret 4
Function at 0x106bd41
Capabilities:
Parse pe header

Disassembly:
pushfd
pushal
call fcn.01003826
popal
popfd
push 0x70
push 0x1023770
call fcn.0106bf63
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or edi, 0xffffffff
mov dword [ebp - 4], edi
cmp word [0x1000000], 0x5a4d
jne 0x106bd9d
mov eax, dword [0x100003c]
lea eax, [eax + 0x1000000]
cmp dword [eax], 0x4550
jne 0x106bd9d
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x106bdb5
cmp ecx, 0x20b
je 0x106bda2
mov dword [ebp - 0x1c], ebx
jmp 0x106bdc9
cmp dword [eax + 0x84], 0xe
jbe 0x106bd9d
xor ecx, ecx
cmp dword [eax + 0xf8], ebx
jmp 0x106bdc3
cmp dword [eax + 0x74], 0xe
jbe 0x106bd9d
xor ecx, ecx
cmp dword [eax + 0xe8], ebx
setne cl
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 1
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
mov dword [0x10c6a24], edi
mov dword [0x10c6a28], edi
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x10bbf20]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x10bbf1c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x10c6a2c], eax
call fcn.01048367
cmp dword [0x1099a3c], ebx
jne 0x106be26
push fcn.01048367
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0106c1f3
push 0x1009208
push 0x1009204
call sub.msvcrt.dll__initterm
mov eax, dword [0x10bbf18]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x10bbf14]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x1009200
push 0x10091f8
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
cmp byte [eax], 0x22
jne 0x106beb1
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x106be91
cmp cl, 0x22
jne 0x106be82
cmp byte [eax], 0x22
jne 0x106be9a
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x106bea5
cmp cl, 0x20
jbe 0x106be96
test byte [ebp - 0x54], 1
je 0x106bebc
movzx ecx, word [ebp - 0x50]
jmp 0x106bebf
cmp byte [eax], 0x20
jbe 0x106be9a
inc eax
mov dword [ebp - 0x20], eax
jmp 0x106beb1
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call fcn.0104a04a
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x106bedd
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], edi
jmp 0x106bf19
mov eax, esi
jmp 0x106bf2d
call fcn.0106bf9e
ret
Function at 0x106f1ab
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x50]
mov dword [ebp - 0x14], eax
movzx eax, word [esi + 0x14]
lea edx, [eax + esi + 0x18]
movzx eax, word [esi + 6]
test eax, eax
jbe 0x106f2c4
add edx, 8
push ebx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], eax
push edi
test byte [edx + 0x1f], 0x20
je 0x106f2b3
mov eax, dword [edx]
mov edi, dword [edx + 8]
cmp eax, edi
jae 0x106f1f1
mov edi, eax
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp + 0xc]
add ecx, eax
cmp eax, dword [ebp + 0x10]
jae 0x106f2b3
lea ebx, [eax + edi]
cmp ebx, dword [ebp + 0x10]
ja 0x106f2b3
cmp word [esi + 4], 0x14c
jne 0x106f2b3
lea ebx, [ecx + edi - 5]
cmp ecx, ebx
mov edi, ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], edi
jae 0x106f2b3
mov ebx, dword [edx + 4]
mov ecx, dword [ebp + 0x18]
add ebx, 5
add eax, ecx
mov dword [ebp - 8], eax
cmp byte [edi], 0xe8
jne 0x106f2a3
mov eax, dword [ebp - 8]
xor ecx, ecx
test byte [eax], 1
jne 0x106f2a3
inc ecx
inc eax
cmp ecx, 5
jb 0x106f246
mov edi, dword [edi + 1]
lea esi, [ebx + edi]
cmp esi, dword [ebp - 0x14]
jae 0x106f2a0
mov ecx, dword [ebp + 8]
mov edx, esi
call fcn.0106e258
mov ecx, dword [ebp + 0x18]
test byte [eax + ecx], 1
jne 0x106f29d
mov ecx, dword [ebp + 0x14]
mov edx, esi
call fcn.0106e77b
mov ecx, dword [ebp + 0x14]
mov edx, ebx
mov esi, eax
call fcn.0106e77b
sub esi, eax
cmp esi, edi
je 0x106f292
mov eax, dword [ebp - 4]
mov dword [eax + 1], esi
add dword [ebp - 4], 4
add dword [ebp - 8], 4
add ebx, 4
mov edx, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 4]
inc edi
inc dword [ebp - 8]
inc ebx
cmp edi, dword [ebp - 0x18]
mov dword [ebp - 4], edi
jb 0x106f23c
add edx, 0x28
dec dword [ebp - 0x10]
mov dword [ebp - 0xc], edx
jne 0x106f1dc
pop edi
pop ebx
pop esi
leave
ret 0x14
Function at 0x1070db7
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [ebp + 8]
push ebx
push esi
lea edx, [eax + 1]
xor ebx, ebx
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1070dc9
sub eax, edx
inc eax
push eax
call sub.msvcrt.dll_malloc
mov esi, eax
cmp esi, ebx
pop ecx
mov dword [ebp - 4], esi
jne 0x1070dfd
push 8
pop esi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x1070df6
mov dword [eax], esi
xor eax, eax
jmp 0x1070e9b
mov eax, dword [ebp + 8]
mov edx, esi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x1070e04
push edi
push 0x11
xor eax, eax
pop ecx
lea edi, [ebp - 0x58]
rep stosd dword es:[edi], eax
xor edi, edi
inc edi
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 0x58], 0x44
je 0x1070e2f
mov dword [ebp - 0x2c], edi
mov word [ebp - 0x28], bx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x1070e63
push esi
call sub.msvcrt.dll_free
mov esi, dword [ebp + 0x10]
cmp esi, ebx
pop ecx
je 0x1070e5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
xor eax, eax
jmp 0x1070e9a
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp + 0x10], ebx
je 0x1070e7f
push dword [ebp + 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
push dword [ebp - 4]
call sub.msvcrt.dll_free
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1071432
Capabilities:
Check if file exists
Get file attributes
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
lea eax, [ebp - 4]
push eax
push 0x20019
xor ebx, ebx
push ebx
push dword [ebp + 8]
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1071460
xor eax, eax
jmp 0x10715d9
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp + 8], ebx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x107146a
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
sub eax, esi
lea ecx, [ebp + 8]
push ecx
push ebx
neg eax
lea ecx, [ebp - 8]
push ecx
sbb eax, eax
and eax, dword [ebp + 0xc]
push ebx
push eax
push dword [ebp - 4]
call edi
cmp eax, ebx
je 0x10714a3
cmp eax, 0xea
je 0x10714a3
xor eax, eax
jmp 0x10715d7
mov eax, dword [ebp + 8]
inc eax
push eax
call sub.msvcrt.dll_malloc
mov esi, eax
cmp esi, ebx
pop ecx
jne 0x10714bb
xor esi, esi
jmp 0x10715cc
lea eax, [ebp + 8]
push eax
push esi
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp - 4]
call edi
cmp eax, ebx
mov ecx, dword [ebp + 8]
mov byte [ecx + esi], bl
push esi
jne 0x10715ad
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1071522
cmp dword [ebp - 8], 2
jne 0x1071522
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push ebx
push ebx
push esi
call edi
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x1071522
push eax
call sub.msvcrt.dll_malloc
cmp eax, ebx
pop ecx
mov dword [ebp - 0xc], eax
je 0x1071522
push dword [ebp + 0xc]
push eax
push esi
call edi
test eax, eax
je 0x1071522
push esi
call sub.msvcrt.dll_free
mov esi, dword [ebp - 0xc]
pop ecx
push 0x2c
push esi
call sub.msvcrt.dll_strchr
cmp eax, ebx
pop ecx
pop ecx
je 0x1071532
mov byte [eax], bl
push 0x3b
push esi
call sub.msvcrt.dll_strchr
cmp eax, ebx
pop ecx
pop ecx
je 0x1071542
mov byte [eax], bl
cmp esi, ebx
je 0x10715a0
cmp byte [esi], 0x22
jne 0x10715a0
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1071550
sub eax, edx
cmp byte [eax + esi - 1], 0x22
jne 0x10715a0
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1071565
sub eax, edi
lea ecx, [esi + 1]
mov byte [eax + esi - 1], bl
mov eax, ecx
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x107157a
sub eax, edi
push eax
push ecx
push esi
call sub.msvcrt.dll_memmove
mov eax, esi
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x1071593
sub eax, ecx
mov byte [eax + esi - 1], bl
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10715b8
push esi
call sub.msvcrt.dll_free
pop ecx
jmp 0x10714b4
test al, 0x10
jne 0x10715cc
push 0x5c
push esi
call sub.msvcrt.dll_strrchr
cmp eax, ebx
pop ecx
pop ecx
je 0x10715cc
mov byte [eax], bl
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1071880
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor esi, esi
push esi
push esi
push 3
push esi
push 3
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x10718e9
push esi
lea eax, [ebp + 8]
push eax
push 0xc
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10718e2
cmp dword [ebp + 8], 0xc
jne 0x10718e2
cmp dword [ebp - 4], 0x66626473
jne 0x10718e2
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
xor ecx, ecx
or ecx, eax
mov eax, dword [ebp + 0xc]
or edx, esi
mov dword [eax], ecx
mov dword [eax + 4], edx
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
leave
ret 8

Function at 0x1071929
Capabilities:
Write file on windows

Disassembly:
push 0x82c
push 0x10243f0
call fcn.0106bf63
mov eax, dword [0x1099a38]
mov dword [ebp - 0x1c], eax
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
cmp dword [0x10bceb0], 0
je 0x1071a6b
mov eax, dword [ebp + 8]
cmp eax, dword [0x1099a40]
jg 0x1071a6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x824], eax
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x830], eax
sub eax, dword [0x10bceb4]
mov dword [ebp - 0x83c], eax
xor edx, edx
mov ecx, 0x3e8
div ecx
mov dword [ebp - 0x828], eax
mov dword [ebp - 0x838], edx
push edx
push eax
push 0x10243e4
lea eax, [ebp - 0x81c]
push eax
call sub.msvcrt.dll_sprintf
mov esi, eax
mov dword [ebp - 0x82c], esi
push ebx
push edi
mov eax, 0x7fe
sub eax, esi
push eax
lea eax, [ebp + esi - 0x81c]
push eax
call sub.msvcrt.dll__vsnprintf
add esp, 0x20
mov dword [ebp - 0x820], eax
test eax, eax
jge 0x10719ea
mov dword [ebp - 0x820], 0x7fd
jmp 0x10719f0
add dword [ebp - 0x820], esi
mov eax, dword [ebp - 0x820]
lea eax, [ebp + eax - 0x81c]
cmp byte [eax - 1], 0xa
jne 0x1071a18
cmp byte [eax - 2], 0xd
je 0x1071a30
mov byte [eax - 1], 0xd
mov byte [eax], 0xa
inc dword [ebp - 0x820]
jmp 0x1071a30
mov byte [eax], 0xd
mov eax, dword [ebp - 0x820]
mov byte [ebp + eax - 0x81b], 0xa
add dword [ebp - 0x820], 2
push 0
lea eax, [ebp - 0x834]
push eax
push dword [ebp - 0x820]
lea eax, [ebp - 0x81c]
push eax
push dword [0x10bceb0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1071a5b
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x824]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x1c]
call fcn.0106bc50
call fcn.0106bf9e
ret 0xc
Function at 0x1071ee5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x2c
push 0x10246c8
call fcn.0106bf63
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov edi, dword [ebp + 0xc]
cmp edi, ebx
jne 0x1071f0a
xor eax, eax
jmp 0x1072091
mov dword [edi], ebx
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x28], eax
cmp eax, 0xffffffff
je 0x1072052
push ebx
push ebx
push ebx
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x1072052
push ebx
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov dword [ebp - 0x20], eax
cmp eax, ebx
je 0x1072052
mov esi, eax
or esi, 1
mov dword [ebp - 4], ebx
push 0x10
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x30], eax
cmp eax, ebx
jne 0x1071fc1
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
mov dword [ebp - 0x38], esi
cmp esi, ebx
jne 0x1071fa3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1072008
push 0x714
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1072008
push esi
call sub.msvcrt.dll_malloc
pop ecx
mov dword [edi], eax
cmp eax, ebx
je 0x1072008
push eax
push esi
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_
test eax, eax
je 0x1072008
jmp 0x1072001
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp esi, ebx
je 0x1072008
movzx eax, word [esi]
mov ecx, eax
shr ecx, 1
add ecx, eax
push ecx
push 1
call sub.msvcrt.dll_calloc
pop ecx
pop ecx
mov dword [edi], eax
cmp eax, ebx
je 0x1072008
movzx ecx, word [esi]
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x24], 1
or dword [ebp - 4], 0xffffffff
jmp 0x1072052
cmp dword [ebp - 0x28], ebx
je 0x1072060
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1c], ebx
je 0x107206e
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x20], ebx
je 0x107207c
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edi, dword [edi]
cmp edi, ebx
je 0x107208e
cmp dword [ebp - 0x24], ebx
jne 0x107208e
push edi
call sub.msvcrt.dll_free
pop ecx
mov eax, dword [ebp - 0x24]
call fcn.0106bf9e
ret 8

Function at 0x1072521
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
push 0
push 0x20000000
push 3
push 0
push 3
push 0x80000000
push dword [ebp + 8]
or edi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, edi
je 0x107255f
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebp
ret 8