joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101be14
Capabilities:
Get file size
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
cmp dword [ebp + 8], esi
je 0x101bff4
cmp dword [ebp + 0x14], esi
jne 0x101be3d
cmp dword [ebp + 0xc], 0xffffffff
je 0x101bff4
push ebx
push edi
mov ebx, 0x80070000
cmp dword [ebp + 0x10], esi
je 0x101bf07
push dword [ebp + 0x10]
call fcn.01019799
test al, 8
jne 0x101bf07
push dword [ebp + 0x10]
call fcn.0101a264
mov ecx, eax
xor eax, eax
and dword [ebp + 0x10], eax
mov dword [ebp - 0x10], esi
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x101beb4
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov edi, 0xffff
test eax, eax
jle 0x101be99
and eax, edi
or eax, ebx
test eax, eax
jge 0x101bea9
call esi
test eax, eax
jle 0x101bea5
and eax, edi
or eax, ebx
mov esi, eax
jmp 0x101beae
mov esi, 0x80004005
test esi, esi
jl 0x101beed
jmp 0x101beb9
mov edi, 0xffff
push dword [ebp - 0xc]
lea eax, [ebp + 0x10]
push dword [ebp - 0x10]
push 0x1003358
push eax
call fcn.0101152d
mov esi, eax
add esp, 0x10
test esi, esi
jl 0x101beed
push dword [ebp + 0x10]
push 0
push 0x1003364
push dword [ebp + 8]
call fcn.0102c3b1
add esp, 0x10
mov esi, eax
cmp dword [ebp + 0x10], 0
je 0x101bf0c
push dword [ebp + 0x10]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x101bf0c
mov edi, 0xffff
test esi, esi
jl 0x101bfc3
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.0102bd7a
mov esi, eax
test esi, esi
jl 0x101bfc3
mov eax, dword [ebp - 4]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x101bf34
sub eax, edx
sar eax, 1
cmp dword [ebp + 0xc], 0xffffffff
lea esi, [eax + eax + 2]
jne 0x101bf75
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
test eax, eax
je 0x101bf9c
push esi
push dword [ebp - 4]
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp + 0x18]
add esp, 0xc
add esi, 0xfffffffe
mov dword [eax], esi
jmp 0x101bf98
and dword [ebp + 0x10], 0
push 0
lea eax, [ebp + 0x10]
push eax
add esi, 0xfffffffe
push esi
push dword [ebp - 4]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x101bf9c
cmp dword [ebp + 0x10], esi
jne 0x101bf9c
xor esi, esi
jmp 0x101bfc3
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x101bfae
and eax, edi
or eax, ebx
test eax, eax
jge 0x101bfbe
call esi
test eax, eax
jle 0x101bfba
and eax, edi
or eax, ebx
mov esi, eax
jmp 0x101bfc3
mov esi, 0x80004005
cmp dword [ebp - 4], 0
pop edi
pop ebx
je 0x101bfe5
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
je 0x101bfe5
and dword [ebp - 4], 0
push esi
call fcn.0101b5d0
xor eax, eax
test esi, esi
setge al
jmp 0x101bffe
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
leave
ret 0x14
Function at 0x101c008
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x20]
xor edi, edi
push dword [ebp + 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
call fcn.01011021
cmp dword [ebp + 8], edi
je 0x101c165
mov ebx, dword [ebp + 0xc]
cmp dword [ebp + 0x10], edi
jne 0x101c047
cmp ebx, 0xffffffff
je 0x101c165
cmp eax, edi
jl 0x101c165
cmp dword [ebp + 0x1c], edi
jne 0x101c05d
cmp dword [ebp + 0x20], edi
je 0x101c165
push dword [ebp + 8]
call fcn.01019919
mov esi, eax
mov dword [ebp + 0xc], esi
cmp esi, edi
je 0x101c165
push esi
call fcn.0102bdb3
cmp ebx, 0xffffffff
jne 0x101c086
push dword [ebp - 4]
push dword [ebp + 0x10]
push esi
jmp 0x101c0dc
mov eax, dword [ebp + 0x18]
mov dword [ebp + 8], edi
mov edi, dword [ebp - 4]
push edi
push 8
mov dword [ebp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
je 0x101c0e3
push 0
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
je 0x101c0e3
push 0
lea eax, [ebp + 8]
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x101c0e3
cmp dword [ebp + 8], edi
jne 0x101c0e3
push edi
push esi
push dword [ebp + 0xc]
call fcn.0102bd03
jmp 0x101c10b
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
mov edi, 0xffff
mov esi, 0x80070000
test eax, eax
jle 0x101c0ff
and eax, edi
or eax, esi
test eax, eax
jge 0x101c10f
call ebx
test eax, eax
jle 0x101c10b
and eax, edi
or eax, esi
mov esi, eax
jmp 0x101c114
mov esi, 0x80004005
test esi, esi
jl 0x101c13e
lea eax, [ebp - 0xc]
push eax
push 0x1003384
push dword [ebp + 0xc]
call fcn.0102c3d2
mov esi, eax
add esp, 0xc
test esi, esi
jl 0x101c13e
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x101c13e
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
cmp dword [ebp - 8], 0
je 0x101c156
push dword [ebp - 8]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call fcn.0101b5d0
xor eax, eax
test esi, esi
setge al
jmp 0x101c16f
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x20
Function at 0x101ddbe
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x1049010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
xor eax, eax
push esi
push edi
mov esi, dword [ebp + 8]
mov byte [ebp - 0x18], bl
lea edi, [ebp - 0x17]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x24]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x1c], ebx
stosd dword es:[edi], eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
cmp ecx, ebx
je 0x101df03
cmp edx, 0xffffffff
je 0x101df03
cmp esi, ebx
je 0x101df03
cmp word [esi], bx
je 0x101df03
cmp dword [ebp + 0xc], ebx
je 0x101df03
lea eax, [ebp - 0x28]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x101de4f
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp - 0x28]
cmp eax, ebx
je 0x101de76
cmp edi, dword [eax]
jne 0x101de4f
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [eax + 4]
je 0x101de76
push 0xd
pop edi
push 0x1017
push 0x10034f0
push 0x8007000d
push 0x10034a0
push esi
push dword [ebp - 0x20]
push 1
call fcn.01015457
jmp 0x101def7
push 0x14
push dword [ebp + 0xc]
mov dword [ebp - 0x1c], ebx
call fcn.01015551
test eax, eax
je 0x101de99
cmp edi, ebx
jne 0x101de99
cmp dword [ebp - 0x24], ebx
jne 0x101de99
mov dword [ebp - 0x1c], 1
jmp 0x101defe
push ebx
push ebx
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x20]
call fcn.01019bf6
test eax, eax
je 0x101def2
push dword [ebp - 0x30]
lea eax, [ebp - 0x18]
push dword [ebp - 0x2c]
push eax
push dword [0x1049a84]
push dword [0x1049a80]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x34]
push dword [ebp - 0x20]
call fcn.0101fdc3
test eax, eax
je 0x101def2
mov esi, dword [ebp + 0xc]
push 0x14
pop ecx
lea edi, [ebp - 0x18]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x101deee
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x101de90
mov edi, 0x241
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x1c]
jmp 0x101df0d
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010106b6
leave
ret 0xc
Function at 0x101e9c6
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0xc], edi
call fcn.0101a025
mov esi, eax
mov dword [ebp - 8], edi
cmp esi, edi
jne 0x101e9ed
xor eax, eax
jmp 0x101eafb
push esi
call fcn.01019674
test al, 1
jne 0x101eaf8
test al, 2
je 0x101eaf8
push ebx
lea eax, [ebp - 4]
push eax
push esi
call fcn.0101fcc5
mov ebx, eax
cmp ebx, 0xffffffff
je 0x101eaf2
push dword [esi + 0x10]
push dword [esi + 8]
push dword [esi + 0x1bc]
push ebx
call fcn.01021eab
mov dword [ebp - 0xc], eax
cmp eax, edi
je 0x101eab7
mov dword [ebp - 0x18], edi
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
lea eax, [ebp - 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
call fcn.01019674
mov ecx, dword [ebp - 4]
xor edi, edi
push edi
push 0x40
mov dword [ebp - 0x10], eax
lea eax, [esi + 0x48]
push eax
push edi
push 2
push dword [ebp + 8]
mov edx, ebx
call fcn.0101e6f4
mov dword [ebp - 0xc], eax
cmp eax, edi
je 0x101ea8c
push esi
call fcn.01019674
test al, 2
je 0x101ea95
test byte [ebp - 0x10], 2
jne 0x101ea95
and dword [esi + 0x190], 0xfffffffd
jmp 0x101ea95
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
push edi
push edi
push dword [esi + 0x1dc]
push dword [esi + 0x1d8]
push dword [esi + 4]
call fcn.01019f37
push dword [esi + 4]
call fcn.01019fef
xor edi, edi
jmp 0x101eac0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], edi
je 0x101eae4
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
je 0x101eae4
mov dword [ebp - 4], edi
cmp dword [ebp - 8], edi
je 0x101eaf2
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0xc]
pop ebx
jmp 0x101eafb
xor eax, eax
inc eax
pop edi
pop esi
leave
ret 4
Function at 0x101f8aa
Capabilities:
Get file size
Read file via mapping

Disassembly:
push 0x28
push 0x1047ba0
call fcn.01010b34
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], esi
cmp dword [ebp + 8], esi
je 0x101fa3d
cmp dword [ebp + 0xc], 0xffffffff
je 0x101fa3d
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x101f8f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x101fa40
cmp dword [ebp - 0x34], esi
je 0x101f8fe
push 0xd
jmp 0x101fa3f
push esi
push dword [ebp - 0x38]
push esi
push 2
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp edi, esi
je 0x101f8e5
push esi
push esi
push esi
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
mov dword [ebp - 0x28], ebx
cmp ebx, esi
jne 0x101f941
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x101fa40
mov dword [ebp - 4], esi
push dword [ebp + 8]
push ebx
call fcn.0101ef3a
mov dword [ebp + 0xc], eax
cmp eax, esi
je 0x101f9a7
push 0x78
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x1c], eax
cmp eax, esi
je 0x101f9a7
push 0x78
push esi
mov edi, eax
push edi
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [edi + 0x10], 0x10
push edi
push edi
push dword [ebp + 0xc]
push ebx
push dword [ebp + 8]
call fcn.0101f054
cmp eax, esi
jne 0x101fa11
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
push edi
call fcn.0101ee26
mov dword [ebp - 0x1c], esi
jmp 0x101fa11
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
jmp 0x101fa11
mov dword [ebp - 4], 0xfffffffe
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x20], esi
je 0x101fa38
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x1c]
jmp 0x101fa49
push 0x57
pop esi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
call fcn.01010b79
ret 8
Function at 0x1020dbd
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
or dword [ebp - 8], 0xffffffff
push ebx
xor ebx, ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x14]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
stosd dword es:[edi], eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
cmp dword [ebp + 8], ebx
je 0x1020f79
cmp dword [ebp + 0xc], ebx
je 0x1020f79
cmp dword [ebp + 0x10], 0xffffffff
je 0x1020f79
cmp dword [ebp + 0x14], ebx
je 0x1020f79
mov esi, dword [ebp + 0x18]
cmp esi, ebx
je 0x1020f79
cmp dword [esi + 4], ebx
jl 0x1020f2f
jg 0x1020e24
cmp dword [esi], 0x40
jbe 0x1020f2f
push dword [ebp + 0x10]
call fcn.010243f8
test eax, eax
je 0x1020e38
mov dword [ebp - 4], ebx
jmp 0x1020f2f
push dword [ebp + 8]
call fcn.0101a025
push eax
call fcn.0101fc0f
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x1020e30
cmp word [eax], bx
je 0x1020e30
push ebx
push 0x4c000100
push 2
push ebx
push 7
push 0xc0010000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
cmp eax, 0xffffffff
je 0x1020f2f
push dword [ebp + 8]
call fcn.01019aeb
mov edi, eax
cmp edi, ebx
jne 0x1020eae
mov eax, dword [ebp + 0x1c]
dec eax
je 0x1020e96
dec eax
jne 0x1020e9d
call fcn.010205a9
jmp 0x1020e9b
call fcn.0102087b
mov edi, eax
push edi
push dword [ebp + 8]
call fcn.01019b08
cmp edi, ebx
je 0x1020f2f
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
push dword [ebp + 0x10]
push edi
push dword [ebp + 8]
call fcn.0102090b
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x1020f2f
mov edi, dword [esi + 4]
cmp dword [ebp - 0x14], edi
mov dword [ebp - 4], ebx
mov ebx, dword [esi]
jg 0x1020efc
jl 0x1020edc
cmp dword [ebp - 0x18], ebx
jae 0x1020efc
mov eax, ebx
sub eax, dword [ebp - 0x18]
push 0
mov ecx, edi
sbb ecx, dword [ebp - 0x14]
push 0x64
push ecx
push eax
call fcn.01010fd0
push edi
push ebx
push edx
push eax
call fcn.0102ae10
jmp 0x1020f00
xor eax, eax
xor edx, edx
mov ecx, dword [ebp + 0x20]
xor edi, edi
cmp edx, edi
jl 0x1020f2d
jg 0x1020f0f
cmp eax, ecx
jb 0x1020f2d
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0x14]
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 4], eax
mov eax, dword [ebp - 8]
mov dword [ecx], eax
mov dword [ebp - 4], 1
xor ebx, ebx
jmp 0x1020f55
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 8], 0xffffffff
mov dword [ebp - 0x10], eax
je 0x1020f47
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], ebx
je 0x1020f66
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 0x10], ebx
je 0x1020f74
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 4]
jmp 0x1020f83
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x1c
Function at 0x1022160
Capabilities:
Hash data using sha1

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x1049ac0], 0
push ebx
jne 0x10221dd
push eax
push ebx
push ecx
push edx
xor eax, eax
cpuid
xor eax, eax
xor ebx, 0x756e6547
sete al
xor ebx, ebx
xor ecx, 0x6c65746e
sete bl
and eax, ebx
xor ecx, ecx
xor edx, 0x49656e69
sete cl
and eax, ecx
mov dword [ebp - 4], eax
mov eax, 1
cpuid
xor ecx, ecx
xor edx, edx
mov ebx, 0xff0
and ebx, eax
mov dword [ebp - 8], ebx
pop edx
pop ecx
pop ebx
pop eax
cmp dword [ebp - 4], 0
mov eax, 1
je 0x10221d1
cmp dword [ebp - 8], 0x660
jae 0x10221d1
xor eax, eax
mov eax, dword [eax*4 + 0x1049358]
mov dword [0x1049ac0], eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x54], 0
mov dword [eax + 0x58], 0
mov dword [eax + 0x40], 0x67452301
mov dword [eax + 0x44], 0xefcdab89
mov dword [eax + 0x48], 0x98badcfe
mov dword [eax + 0x4c], 0x10325476
mov dword [eax + 0x50], 0xc3d2e1f0
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10226a0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esi - 0x10]
mov eax, dword [esi - 0x14]
push edi
sub ecx, 2
xor edi, edi
cmp eax, ecx
jae 0x10226f3
push ebx
movzx edx, byte [eax + 2]
movzx ebx, byte [eax]
movzx ebx, word [ebx*2 + 0x1049ac8]
movzx edx, word [edx*2 + 0x1049ec8]
xor edx, ebx
movzx ebx, byte [eax + 1]
movzx ebx, word [ebx*2 + 0x1049cc8]
xor edx, ebx
mov bx, word [esi + edx*2 - 0x15a5c]
mov word [esi + edi*2], bx
mov word [esi + edx*2 - 0x15a5c], di
inc eax
inc edi
cmp eax, ecx
jb 0x10226b1
pop ebx
add ecx, 2
cmp eax, ecx
jae 0x1022714
sub ecx, eax
xor eax, eax
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
shr ecx, 1
lea edi, [esi + edi*2]
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
pop edi
ret
Function at 0x102b462
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
xor ebx, ebx
cmp eax, esi
je 0x102b4d3
xor ecx, ecx
cmp cx, word [eax]
je 0x102b4d3
push edi
push esi
push eax
call fcn.0102b849
mov edi, eax
cmp edi, esi
je 0x102b4ce
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x102b49c
test al, 0x10
je 0x102b49c
inc ebx
jmp 0x102b4b7
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x102b4af
mov esi, 0x10b
cmp esi, 2
jne 0x102b4b7
push 3
pop esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
pop edi
jmp 0x102b4dd
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
pop ebx
pop ebp
ret 4

Function at 0x102bace
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x102bb09
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x102baf0
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x102bb01
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x102bb0b
inc edi
add eax, 0x28
cmp edi, esi
jb 0x102bae6
xor eax, eax
pop edi
pop esi
ret

Function at 0x102c367
Capabilities:
Contain obfuscated stackstrings

Disassembly:
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
invalid

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

Disassembly:
mov eax, dword [eax + 8]
push eax
call fcn.0102ba8e
or eax, 0x8bc3de17
clc
mov eax, dword [edi + 0x3c]
mov edx, dword [edi + eax + 0x78]
add edx, edi
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
call fcn.0102ba8e
pop edi
sti
mov dl, 0xd
dec ecx
mov esi, dword [ebx + ecx*4]
add esi, edi
mov eax, 0x50746547
cmp dword [esi], eax
jne 0x102dc7b
mov eax, 0x41636f72
cmp dword [esi + 4], eax
jne 0x102dc7b
call fcn.0102ba8e
dec esi
std
cmp eax, 0x245a8b67
add ebx, edi
mov cx, word [ebx + ecx*2]
mov ebx, dword [edx + 0x1c]
add ebx, edi
Function at 0x102dcab
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sbb al, 0x18
je fcn.0102dc52
xchg esi, eax
lodsd eax, dword [esi]
mov eax, dword [ebx + ecx*4]
add eax, edi
push eax
call fcn.0102ba8e
jb 0x102dc4c
or byte [edi + edi*8], cl
jne 0x102dcc5
push dword [ebp + 4]
push dword [ebp]
call fcn.0102c28e
cmp dword [ebp - 0x18], 2
jne 0x102dcdd
in eax, 0xff
inc dword [ebx + 0x7502e87d]
jnp 0x418ecd18
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
xor eax, eax
jmp 0x102dce2
add al, 0x8b
dec ebp
or al, 0x89
add dword [ebx], esi
shr bl, 5
mov eax, 0x8007000d
leave
ret 8
Function at 0x104550f
Capabilities:
Parse credit card information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
mov ebx, dword [esi + 0x14]
xor eax, eax
push edi
mov edi, edx
mov edx, dword [esi + 0x10]
mov dword [edi + 8], eax
mov ecx, dword [esi + 0x14]
mov dword [edi + 4], ecx
mov ecx, dword [esi + 0x1c]
mov dword [edi + 0xc], ecx
mov dword [edi + 0x10], eax
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 8], edx
cmp dword [esi + 0x14], eax
jb 0x1045553
mov dword [edi + 4], eax
mov dword [edi], 3
jmp 0x10455da
mov ecx, ebx
jmp 0x10455ef
cmp eax, 0x61
jb 0x1045564
cmp eax, 0x7a
jbe 0x10455e1
lea edx, [eax - 0x41]
cmp edx, 0x19
jbe 0x10455e1
lea edx, [eax - 0x30]
cmp edx, 9
jbe 0x10455e1
cmp eax, 0x2f
ja 0x10455aa
cmp eax, 0x28
jae 0x10455e7
cmp eax, 0xa
je 0x10455e7
cmp eax, 0xd
je 0x10455e7
cmp eax, 0x1f
jbe 0x10455c8
cmp eax, 0x21
jbe 0x10455e7
cmp eax, 0x22
jbe 0x10455c8
cmp eax, 0x25
jbe 0x10455e7
cmp eax, 0x27
jne 0x10455c8
cmp dword [esi + 0x24], 0xa
sete al
jmp 0x10455e3
cmp eax, 0x3a
jb 0x10455c8
cmp eax, 0x3b
jbe 0x10455e7
cmp eax, 0x3d
je 0x10455e7
cmp eax, 0x3e
jbe 0x10455c8
cmp eax, 0x40
jbe 0x10455e7
cmp eax, 0x5f
je 0x10455e7
mov eax, dword [ebp - 4]
mov dword [edi], 0xc
sub ebx, dword [esi + 0x14]
mov dword [edi + 0x10], eax
mov dword [edi + 8], ebx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov al, 1
test al, al
je 0x10455c8
inc dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ebx, ecx
call dword [esi + 0x18]
mov ecx, edx
cmp eax, 0xffffffff
jne 0x104555a
mov eax, ecx
jmp 0x10455dc
Function at 0x453430
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56ed46
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x5d7c7c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.0040cdc0
mov ecx, eax
test ecx, ecx
je 0x453570
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
push str.ex2_d
push eax
call fcn.0040b130
add esp, 0xc
push 0
sub esp, 0x28
mov eax, esp
mov dword [ebp - 0x220], esp
mov dword [eax + 0x24], 0
mov esi, dword [ebp - 0x21c]
push 0
push esi
push str.file_copy_end
mov byte [ebp - 4], 1
call fcn.00434a60
mov ecx, eax
mov byte [ebp - 4], 0
call fcn.00430c10
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x50]
call fcn.00454830
cmp dword [ebp + 0xc], 0
jne 0x453535
push str.file_copy_finish__failed
call fcn.0044d3f0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00512920
add esp, 0x10
call fcn.00472010
push 0x104
lea edx, [ebp - 0x218]
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x4c]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x453535
lea eax, [ebp - 0x218]
push eax
call fcn.0040f6f0
add esp, 4
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x453554
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004acb88
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.0040ae00
int3