joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1022aec
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
push ebx
setne cl
push 0x80
neg eax
push 3
sbb eax, eax
push ebx
and eax, 0x40000000
push 3
add eax, 0x80000000
push eax
push dword [ebp + 8]
mov dword [0x102cf20], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [0x102cf18], eax
jne 0x1022b38
or eax, eax
jmp 0x1022c15
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push ebx
lea ecx, [ebp + 0xc]
push ecx
push 0x66
push 0x102ceb0
push eax
call esi
test eax, eax
je 0x1022be1
cmp dword [ebp + 0xc], 0x66
jne 0x1022be1
movsx edi, word [0x102cefe]
shl edi, 2
push edi
call dword [sym.imp.msvcrt.dll_malloc]
cmp eax, ebx
pop ecx
mov dword [0x102cf24], eax
je 0x1022be1
push ebx
push ebx
push dword [0x102cf12]
push dword [0x102cf18]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, dword [0x102cf12]
jne 0x1022be1
push ebx
lea eax, [ebp + 0xc]
push eax
push 0xe
push 0x102cea0
push dword [0x102cf18]
call esi
test eax, eax
je 0x1022be1
cmp dword [ebp + 0xc], 0xe
jne 0x1022be1
push ebx
lea eax, [ebp + 0xc]
push eax
push edi
push dword [0x102cf24]
push dword [0x102cf18]
call esi
test eax, eax
je 0x1022be1
cmp dword [ebp + 0xc], edi
jne 0x1022be1
mov dword [0x102cf1c], 1
xor eax, eax
jmp 0x1022c13
mov eax, dword [0x102cf18]
cmp eax, 0xffffffff
je 0x1022bf9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x102cf18], 0xffffffff
mov eax, dword [0x102cf24]
cmp eax, ebx
je 0x1022c10
push eax
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov dword [0x102cf24], ebx
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x1022c1f
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
cmp dword [0x102cf20], 1
push edi
jl 0x1022c9f
push ebx
push ebx
push dword [0x102cf12]
push dword [0x102cf18]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, dword [0x102cf12]
jne 0x1022c9a
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
lea eax, [ebp - 4]
push eax
push 0xe
push 0x102cea0
push dword [0x102cf18]
call edi
test eax, eax
je 0x1022c9a
cmp dword [ebp - 4], 0xe
jne 0x1022c9a
movsx esi, word [0x102cefe]
push ebx
lea eax, [ebp - 4]
push eax
shl esi, 2
push esi
push dword [0x102cf24]
push dword [0x102cf18]
call edi
test eax, eax
je 0x1022c9a
cmp dword [ebp - 4], esi
je 0x1022c9f
or eax, 0xffffffff
jmp 0x1022cfe
mov eax, dword [0x102cf18]
cmp eax, 0xffffffff
je 0x1022cb7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x102cf18], 0xffffffff
mov eax, dword [0x102cf24]
cmp eax, ebx
mov esi, dword [sym.imp.msvcrt.dll_free]
je 0x1022cd0
push eax
call esi
pop ecx
mov dword [0x102cf24], ebx
mov eax, dword [0x102cf28]
cmp eax, ebx
je 0x1022ce3
push eax
call esi
pop ecx
mov dword [0x102cf28], ebx
mov eax, dword [0x102cf2c]
cmp eax, ebx
je 0x1022cf6
push eax
call esi
pop ecx
mov dword [0x102cf2c], ebx
mov dword [0x102cf1c], ebx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1022d08
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x1029fe8]
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 3
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
or eax, 0xffffffff
cmp esi, eax
je 0x1022d87
push edi
lea eax, [ebp - 0x70]
push eax
push 0x66
lea eax, [ebp - 0x6c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1022d7e
cmp dword [ebp - 0x70], 0x66
jne 0x1022d7e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 4
pop ecx
mov edi, 0x1004844
lea esi, [ebp - 0x6c]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x1022d85
cmp word [ebp - 0x22], 0x40f0
jne 0x1022d85
inc eax
jmp 0x1022d87
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01023881
leave
ret 4

Function at 0x1022d9a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
xor ecx, ecx
cmp dword [0x102cf1c], esi
push edi
je 0x1022e5e
cmp dword [0x102cf18], 0xffffffff
je 0x1022e5e
xor edi, edi
cmp word [0x102cefe], si
mov dword [ebp - 4], esi
jle 0x1022e2e
mov eax, dword [0x102cf24]
mov eax, dword [eax + edi*4]
cmp eax, esi
je 0x1022e22
cmp ecx, esi
jne 0x1022e1f
mov ecx, dword [0x102cf12]
push esi
push esi
add eax, ecx
push eax
push dword [0x102cf18]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1022e58
push esi
lea eax, [ebp - 8]
push eax
push 8
lea eax, [ebp - 0x10]
push eax
push dword [0x102cf18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1022e5e
cmp dword [ebp - 8], 8
jne 0x1022e5e
xor ecx, ecx
inc ecx
inc dword [ebp - 4]
movsx eax, word [0x102cefe]
inc edi
cmp edi, eax
jl 0x1022dcf
movsx eax, word [0x102cefe]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
movsx eax, word [ebp - 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
movsx eax, word [ebp - 0xa]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
xor eax, eax
jmp 0x1022e61
call dword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0xffffffff
pop edi
pop esi
leave
ret 0x10

Function at 0x1022e6c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
movsx esi, word [0x102cefe]
shl esi, 1
push esi
call dword [sym.imp.msvcrt.dll_malloc]
test eax, eax
pop ecx
mov dword [0x102cf28], eax
je 0x1022ed1
push 0
push 0
push dword [0x102cf00]
push dword [0x102cf18]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, dword [0x102cf00]
jne 0x1022ed1
push 0
lea eax, [ebp - 4]
push eax
push esi
push dword [0x102cf28]
push dword [0x102cf18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1022ed1
cmp dword [ebp - 4], esi
jne 0x1022ed1
xor eax, eax
jmp 0x1022ed4
or eax, 0xffffffff
pop esi
leave
ret
Function at 0x1022edc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
cmp dword [0x102cf1c], edi
jne 0x1022ef7
or eax, 0xffffffff
jmp 0x1022fd3
mov eax, dword [0x102cf24]
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [eax + ecx*4]
cmp esi, edi
jne 0x1022f0e
xor eax, eax
jmp 0x1022fd2
add esi, dword [0x102cf12]
push ebx
push edi
push edi
push esi
push dword [0x102cf18]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, esi
jne 0x1022fce
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 4]
push eax
push 8
lea eax, [ebp - 0xc]
push eax
push dword [0x102cf18]
call edi
test eax, eax
je 0x1022fce
cmp dword [ebp - 4], 8
jne 0x1022fce
movsx eax, word [ebp - 8]
add eax, 0xf
cdq
push 0x10
pop ecx
idiv ecx
mov ebx, dword [ebp + 0x10]
mov esi, eax
movsx eax, word [ebp - 6]
imul esi, eax
shl esi, 1
cmp esi, ebx
jg 0x1022f74
mov ebx, esi
test ebx, ebx
jle 0x1022f93
push 0
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 0xc]
push dword [0x102cf18]
call edi
test eax, eax
je 0x1022fce
cmp dword [ebp - 4], ebx
jne 0x1022fce
cmp dword [0x102cf28], 0
movsx eax, word [ebp - 8]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
movsx eax, word [ebp - 6]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
jne 0x1022fb7
call fcn.01022e6c
test eax, eax
jne 0x1022fce
mov eax, dword [ebp + 8]
mov ecx, dword [0x102cf28]
mov ax, word [ecx + eax*2]
mov ecx, dword [ebp + 0x1c]
mov word [ecx], ax
mov eax, esi
jmp 0x1022fd1
or eax, 0xffffffff
pop ebx
pop esi
pop edi
leave
ret 0x18

Function at 0x1023077
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x1029fe8]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.01009d42
push esi
push 0x102cf30
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x102310f
push 0
lea eax, [ebp - 0x70]
push eax
push 0x66
lea eax, [ebp - 0x6c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1023108
cmp dword [ebp - 0x70], 0x66
jne 0x1023108
mov eax, dword [ebp - 0xa]
mov dword [0x102d038], eax
add eax, 0xe
mov dword [0x102d034], eax
movsx eax, word [ebp - 0x1e]
dec eax
push esi
mov dword [0x102d030], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x102d03c], 1
xor eax, eax
jmp 0x1023112
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
call fcn.01023881
leave
ret 4
Function at 0x1023153
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push dword [ebp + 0x1c]
call fcn.01023131
xor ebx, ebx
cmp dword [0x102d03c], ebx
mov esi, eax
je 0x10232aa
cmp dword [0x102d030], esi
jl 0x10232aa
cmp esi, ebx
jl 0x10232aa
push ebx
push 0x80
push 3
push ebx
push 3
push 0x80000000
push 0x102cf30
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
or eax, 0xffffffff
cmp edi, eax
mov dword [ebp - 4], edi
je 0x10232ad
mov eax, dword [0x102d034]
push ebx
lea eax, [eax + esi*4]
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
push eax
push edi
mov dword [ebp + 0x1c], eax
call esi
cmp eax, dword [ebp + 0x1c]
jne 0x102329a
push ebx
lea eax, [ebp + 8]
push eax
push 4
lea eax, [ebp + 0x1c]
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
call edi
test eax, eax
je 0x102329a
cmp dword [ebp + 8], 4
jne 0x102329a
mov eax, dword [ebp + 0x1c]
cmp eax, ebx
je 0x102329a
add eax, dword [0x102d038]
push ebx
push ebx
push eax
push dword [ebp - 4]
mov dword [ebp + 0x1c], eax
call esi
cmp eax, dword [ebp + 0x1c]
jne 0x102329a
push ebx
lea eax, [ebp + 8]
push eax
push 8
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
call edi
test eax, eax
je 0x102329a
cmp dword [ebp + 8], 8
jne 0x102329a
movsx eax, word [ebp - 0xc]
add eax, 0xf
cdq
push 0x10
pop ecx
idiv ecx
mov esi, eax
movsx eax, word [ebp - 0xa]
imul esi, eax
mov eax, dword [ebp + 0x10]
shl esi, 1
cmp esi, eax
jg 0x102325a
mov eax, esi
push ebx
movzx eax, ax
lea ecx, [ebp + 8]
push ecx
push eax
push dword [ebp + 0xc]
mov dword [ebp - 8], eax
push dword [ebp - 4]
call edi
test eax, eax
je 0x102329a
mov eax, dword [ebp - 8]
cmp dword [ebp + 8], eax
jne 0x102329a
cmp esi, dword [ebp + 0x10]
jle 0x1023284
sub esi, dword [ebp + 0x10]
jmp 0x1023286
xor esi, esi
movsx eax, word [ebp - 0xc]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
movsx eax, word [ebp - 0xa]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
jmp 0x102329d
or esi, 0xffffffff
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x10232ad
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret 0x18

Function at 0x10233ee
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push 0
mov esi, eax
add esi, dword [0x102d038]
push 0
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, esi
pop esi
jne 0x1023432
push 0
lea eax, [ebp - 4]
push eax
push 8
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1023432
cmp dword [ebp - 4], 8
jne 0x1023432
xor eax, eax
jmp 0x1023435
or eax, 0xffffffff
leave
ret 8
Function at 0x102343e
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push 0
mov esi, eax
add esi, dword [0x102d038]
push 0
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, esi
pop esi
jne 0x1023482
push 0
lea eax, [ebp - 4]
push eax
push 8
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1023482
cmp dword [ebp - 4], 8
jne 0x1023482
xor eax, eax
jmp 0x1023485
or eax, 0xffffffff
leave
ret 8

Function at 0x102348e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x1029fe8]
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 3
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
or eax, 0xffffffff
cmp esi, eax
je 0x102350b
push ebx
push edi
lea eax, [ebp - 0x70]
push eax
push 0x66
lea eax, [ebp - 0x6c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, edi
pop ebx
je 0x1023509
cmp dword [ebp - 0x70], 0x66
jne 0x1023509
push 7
pop ecx
mov edi, 0x1004858
lea esi, [ebp - 0x6c]
xor eax, eax
repe cmpsw word [esi], word es:[edi]
jne 0x1023509
cmp word [ebp - 0x22], 0xe0
sete al
jmp 0x102350b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01023881
leave
ret 4
Function at 0x102351e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x288
mov eax, dword [0x1029fe8]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x288], esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ebx, ebx
mov word [ebp + eax*2 - 0x212], bx
push 0x1001c4c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push ebx
push 0x80
push 3
push ebx
push 3
push 0x80000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x278], eax
jne 0x10235a5
xor eax, eax
jmp 0x1023682
push ebx
lea ecx, [ebp - 0x27c]
push ecx
push 0x66
lea ecx, [ebp - 0x274]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
mov dword [ebp - 0x280], eax
jne 0x10235d4
cmp dword [ebp - 0x27c], 0x66
jne 0x1023670
push edi
mov edi, dword [ebp - 0x212]
push ebx
push ebx
add edi, 0xe
push edi
push dword [ebp - 0x278]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, edi
jne 0x102366f
xor eax, eax
mov ecx, 0xc8
mov edi, esi
rep stosd dword es:[edi], eax
xor edi, edi
cmp word [ebp - 0x226], bx
jle 0x102366f
push ebx
lea eax, [ebp - 0x27c]
push eax
push 4
lea eax, [ebp - 0x284]
push eax
push dword [ebp - 0x278]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
mov dword [ebp - 0x280], eax
je 0x102366f
cmp dword [ebp - 0x284], ebx
je 0x1023660
cmp dword [ebp - 0x27c], 4
jne 0x1023660
movzx eax, di
mov ecx, eax
shr ecx, 3
add esi, ecx
cdq
push 8
pop ecx
idiv ecx
mov eax, 0x80
mov ecx, edx
sar eax, cl
or byte [esi], al
mov esi, dword [ebp - 0x288]
movsx eax, word [ebp - 0x226]
inc edi
movzx ecx, di
cmp ecx, eax
jl 0x1023607
pop edi
push dword [ebp - 0x278]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x280]
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.01023881
leave
ret 8
Function at 0x1023695
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
push esi
push dword [ebp + 0x18]
call fcn.01023131
mov esi, eax
xor eax, eax
cmp dword [0x102d03c], eax
mov dword [ebp - 8], esi
je 0x1023801
cmp dword [0x102d030], esi
jl 0x1023801
cmp esi, eax
jl 0x1023801
push eax
push 0x80
push 3
push eax
push 3
push 0xc0000000
push 0x102cf30
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 0x18], eax
je 0x1023801
push ebx
push edi
lea ecx, [ebp + 8]
push ecx
push eax
mov eax, esi
call fcn.0102334b
test eax, eax
jne 0x10237ef
mov edi, dword [ebp + 0x10]
lea eax, [edi + 0xf]
cdq
push 0x10
pop ecx
idiv ecx
mov ebx, dword [ebp + 0x14]
mov esi, eax
mov eax, dword [ebp + 8]
imul esi, ebx
shl esi, 1
test eax, eax
je 0x102375c
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp + 0x18]
call fcn.010233ee
test eax, eax
jne 0x10237ef
movsx eax, word [ebp - 0xc]
add eax, 0xf
cdq
push 0x10
pop ecx
idiv ecx
movsx ecx, word [ebp - 0xa]
imul eax, ecx
shl eax, 1
cmp eax, esi
jge 0x102375c
and dword [ebp + 8], 0
lea eax, [ebp - 0x20]
push eax
push dword [0x102d038]
push dword [ebp + 0x18]
call fcn.010232b9
test eax, eax
jne 0x10237ef
cmp dword [ebp + 8], eax
jne 0x1023784
mov eax, dword [ebp - 0x20]
mov dword [ebp + 8], eax
lea eax, [eax + esi + 8]
mov dword [ebp - 0x20], eax
lea eax, [esi + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x18]
mov eax, dword [ebp + 8]
mov word [ebp - 0xc], di
mov word [ebp - 0xa], bx
call fcn.0102343e
test eax, eax
jne 0x10237ef
push eax
lea eax, [ebp - 4]
push eax
movzx esi, si
push esi
push dword [ebp + 0xc]
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10237ef
cmp dword [ebp - 4], esi
jne 0x10237ef
push dword [ebp + 8]
mov eax, dword [ebp - 8]
push dword [ebp + 0x18]
call fcn.0102339c
test eax, eax
jne 0x10237ef
lea eax, [ebp - 0x20]
push eax
push dword [0x102d038]
push dword [ebp + 0x18]
call fcn.01023302
test eax, eax
jne 0x10237ef
xor esi, esi
jmp 0x10237f2
or esi, 0xffffffff
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop ebx
jmp 0x1023804
or eax, 0xffffffff
pop esi
leave
ret 0x14

Function at 0x10239a5
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1004874
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10239fd
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x10048b0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10239f0
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x10239ff
xor eax, eax
pop esi
leave
ret 4
Function at 0x102486f
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x10048b8
call fcn.01024bc4
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x10248aa
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10248aa
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x10248c2
cmp eax, 0x20b
je 0x10248af
mov dword [ebp - 0x1c], edi
jmp 0x10248d6
cmp dword [ecx + 0x84], 0xe
jbe 0x10248aa
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x10248d0
cmp dword [ecx + 0x74], 0xe
jbe 0x10248aa
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
pop ebx
push ebx
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x102d06c], 0xffffffff
or dword [0x102d070], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x102d060]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x102d05c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x102d068], eax
call fcn.01024bba
cmp dword [0x1029ff0], edi
jne 0x1024933
push fcn.01024bba
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01024ba3
push 0x102902c
push 0x1029028
call sub.msvcrt.dll__initterm
mov eax, dword [0x102d058]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x102d054]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x38], eax
push 0x1029024
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x1024999
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x1024a53
mov dword [ebp - 0x20], esi
cmp word [esi], 0x22
jne 0x10249e7
add esi, ebx
mov dword [ebp - 0x20], esi
mov ax, word [esi]
cmp ax, di
je 0x10249b5
cmp ax, 0x22
jne 0x10249a2
cmp word [esi], 0x22
jne 0x10249c0
add esi, ebx
mov dword [ebp - 0x20], esi
mov ax, word [esi]
cmp ax, di
je 0x10249ce
cmp ax, 0x20
jbe 0x10249bb
mov dword [ebp - 0x54], edi
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x54], 1
je 0x10249f4
movzx eax, word [ebp - 0x50]
jmp 0x10249f7
cmp word [esi], 0x20
jbe 0x10249c0
add esi, ebx
mov dword [ebp - 0x20], esi
jmp 0x10249e7
push 0xa
pop eax
push eax
push esi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call fcn.01024d19
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], edi
jne 0x1024a18
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1024a4d
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01024bff
ret
Function at 0x10052b6
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x10099e0
call fcn.010054b4
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x100b6e0
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x10050cb
cmp eax, esi
jne 0x10050be
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x10050ce
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10050a5
xor esi, esi
inc esi
mov eax, dword [0x100b6dc]
cmp eax, esi
jne 0x10050e1
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x100511c
mov eax, dword [0x100b6dc]
test eax, eax
jne 0x1005116
mov dword [0x100b6dc], esi
push 0x10011a8
push 0x100119c
call fcn.01005022
pop ecx
pop ecx
test eax, eax
je 0x100511c
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x10051e6
mov dword [0x100b0bc], esi
mov eax, dword [0x100b6dc]
cmp eax, esi
jne 0x1005140
push 0x1001198
push 0x1001190
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100b6dc], 2
cmp dword [ebp - 0x1c], ebx
jne 0x100514d
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x100b6e4], ebx
je 0x100516e
push 0x100b6e4
call fcn.01005429
pop ecx
test eax, eax
je 0x100516e
push ebx
push 2
push ebx
call dword [0x100b6e4]
push dword [0x100b0a4]
push dword [0x100b0a8]
push dword [0x100b0a0]
call fcn.01004cb4
add esp, 0xc
mov dword [0x100b0b8], eax
cmp dword [0x100b0ac], ebx
jne 0x10051cc
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x100b0bc], ebx
jne 0x10051da
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x100b0b8]
call fcn.010054f9
ret
call fcn.01005601
jmp 0x1005083