joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000ac98
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0x98
lea eax, [esp + 0x30]
mov dword [0x100196a4], 0xdf9
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x20]
mov dword [esp], eax
call fcn.1000a90b
lea ecx, [0x1000b230]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x60], edx
mov dword [esp + 0x80], 0x14a800
mov edx, dword [0x10019690]
mov dword [esp + 0x88], edx
mov edx, dword [0x10019694]
mov dword [esp + 0x3c], edx
mov edx, dword [0x10019698]
mov dword [esp + 0x78], edx
mov edx, dword [0x1001969c]
mov dword [esp + 0x48], edx
mov edx, dword [0x100196a0]
mov dword [esp + 0x34], edx
mov dword [0x100196a4], 0xfffffbee
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
mov dword [esp + 0x10], eax
jne 0x1000ad46
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0xc], ecx
je 0x1000ad5a
mov eax, dword [esp + 0x10]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x14], eax
jmp 0x1000ad23
lea eax, [esp + 0x30]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x8c], ecx
mov dword [0x100196a8], 0xffffeb9a
mov edx, dword [esp + 0xc]
mov esi, dword [ecx + edx + 0x50]
mov dword [esp + 0x40], esi
mov dword [0x100196a4], 0x11c2
mov esi, dword [esp + 0x28]
mov dword [esp], eax
mov dword [esp + 4], esi
call fcn.1000a0e4
mov ecx, esp
lea edx, [esp + 0x30]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov ecx, dword [0x100196a4]
add ecx, 0xffffe901
mov dword [0x100196a8], ecx
lea esp, [ebp - 4]
pop esi
pop ebp
ret

Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push 0x5040d1
push 0x504088
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.USER32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.USER32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.USER32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret
Function at 0x101e9ea
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov dword [ebp - 4], 0xc00000e5
je 0x101ea1a
push dword [ebp + 8]
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x101ea48
call fcn.0104b97d
mov esi, eax
cmp esi, edi
jl 0x101ea39
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], 0x10024e8
call fcn.0101d708
jmp 0x101ea4b
push esi
push 1
push edi
push edi
call fcn.0103d1ca
mov dword [ebp - 4], esi
jmp 0x101ea4b
mov dword [ebp - 4], edi
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 4

Function at 0x1021902
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
lea eax, [ebp - 4]
push eax
push 2
xor edi, edi
push 3
push ebx
mov dword [ebp - 0x18], 0xc00000e5
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
call fcn.0101e9ad
cmp eax, edi
jl 0x1021947
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call fcn.0103f536
cmp eax, edi
jge 0x102194e
mov esi, eax
jmp 0x1021a30
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp + 0xc]
mov word [eax], 0x78
mov eax, dword [ebp - 0xc]
mov word [eax + 2], 0x20
mov edi, dword [ebp - 0xc]
mov ecx, ebx
add edi, 4
rep movsw word es:[edi], word [esi]
mov eax, dword [ebp - 0xc]
xor esi, esi
mov word [eax + ebx*2 + 4], si
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
mov dword [ebp + 0x10], esi
mov dword [ebp - 8], esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp eax, esi
jne 0x10219b3
call fcn.0104b97d
mov edi, eax
cmp edi, esi
jl 0x10219a5
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], esi
jmp 0x10219d9
push edi
push 1
push esi
push esi
call fcn.0103d1ca
mov esi, edi
jmp 0x1021a30
push eax
lea ecx, [ebp + 0x10]
call fcn.0101d7a9
mov eax, dword [ebp - 8]
xor ebx, ebx
inc ebx
cmp eax, ebx
jge 0x10219f9
cmp dword [ebp + 0x10], esi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], esi
je 0x10219d9
push dword [ebp + 0x10]
call sub.KERNEL32.dll_GlobalFree
lea ecx, [ebp - 0x14]
call fcn.0101d150
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], 0x1002678
call fcn.0101d708
mov esi, dword [ebp - 0x18]
jmp 0x1021a38
cmp eax, ebx
mov edi, dword [ebp + 0x10]
mov dword [ebp + 0xc], eax
je 0x1021a26
lea esi, [edi + eax*4 - 4]
push dword [esi]
mov ecx, dword [ebp + 8]
call fcn.01021876
test eax, eax
jl 0x1021a24
dec dword [ebp + 0xc]
sub esi, 4
cmp dword [ebp + 0xc], ebx
jne 0x1021a07
xor esi, esi
jmp 0x1021a26
mov esi, eax
test edi, edi
je 0x1021a30
push edi
call sub.KERNEL32.dll_GlobalFree
lea ecx, [ebp - 0x14]
call fcn.0101d150
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1022c72
Capabilities:
Check for software breakpoints

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
lea eax, [ebp - 0x20]
push esi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
push edi
mov ebx, ecx
mov dword [ebp - 8], eax
xor esi, esi
mov ecx, dword [esi + section..data]
mov eax, ecx
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1022c98
sub eax, edi
mov dword [ebp - 0xc], ecx
mov ecx, dword [esi + 0x10a40d0]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov eax, ecx
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1022cb5
sub eax, edi
push 0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
push 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x18], ecx
push eax
mov ecx, ebx
call fcn.010229fd
test eax, eax
jl 0x1022ceb
add esi, 4
cmp esi, 0xcc
jb 0x1022c8d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1029b3a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, dword [ebp + 0x18]
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 0x10], 0xc00000e5
je 0x1029bde
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
lea esi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 0xc]
cmp edi, ebx
je 0x1029bde
cmp dword [ebp + 0x10], ebx
je 0x1029bde
cmp dword [ebp + 0x14], ebx
je 0x1029bde
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
call sub.KERNEL32.dll_FindResourceExW
mov esi, eax
cmp esi, ebx
jne 0x1029ba5
call fcn.0104b97d
mov esi, eax
cmp esi, ebx
jge 0x1029bde
push esi
push 1
push ebx
push ebx
call fcn.0103d1ca
mov eax, esi
jmp 0x1029bd7
push esi
push edi
call sub.KERNEL32.dll_LoadResource
cmp eax, ebx
mov dword [ebp + 0x14], eax
je 0x1029b8c
push esi
push edi
call sub.KERNEL32.dll_SizeofResource
cmp eax, ebx
mov esi, dword [ebp + 0x18]
mov dword [esi + 4], eax
mov dword [esi], eax
je 0x1029b8c
push dword [ebp + 0x14]
call sub.KERNEL32.dll_LockResource
cmp eax, ebx
mov dword [esi + 8], eax
je 0x1029b8c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x14
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], 0x1002d98
call fcn.0101d708
mov eax, dword [ebp - 0x10]
jmp 0x1029bd7
Function at 0x10361b3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x103620d
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x10361da
xor eax, eax
jmp 0x103620c
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x10361fe
cmp esi, eax
jae 0x10361d6
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x10361f0
cmp esi, eax
jae 0x10361d6
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret 0xc
Function at 0x103c44d
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 0xc], 0
and dword [ebp - 4], 0
push esi
mov esi, dword [ebp + 0xc]
push edi
xor eax, eax
and dword [esi], eax
and dword [esi + 4], eax
lea edi, [ebp - 8]
stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x103c493
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x103c493
push eax
call fcn.01035fe2
jmp 0x103c49d
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov dword [esi], edi
xor eax, eax
pop edi
pop esi
leave
ret 8

Function at 0x103c4a8
Capabilities:
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
cmp edi, esi
mov dword [ebp - 4], esi
jne 0x103c4c0
lea edi, [ebp - 4]
mov ebx, dword [ebp + 0x10]
push esi
push esi
push esi
push 2
push esi
push dword [ebp + 8]
mov dword [edi], esi
mov dword [ebx], esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, esi
mov dword [edi], eax
je 0x103c4ee
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
mov dword [ebx], eax
jne 0x103c4ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01035fe2
mov dword [ebp + 0xc], eax
jmp 0x103c502
mov dword [ebp + 0xc], esi
cmp dword [ebp + 0xc], esi
jge 0x103c513
push edi
call fcn.0103c3a4
push ebx
call fcn.0103c3cb
lea eax, [ebp - 4]
push eax
call fcn.0103c3a4
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x103c667
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10a49bc]
jne 0x103c678
test ecx, 0xffff0000
jne 0x103c678
ret
jmp fcn.0103c682

Function at 0x103cd9f
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x10a49bc]
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0103ccff
mov eax, 0x1000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x103cdee
cmp dword [ebp - 0x1c], 5
jb 0x103ce06
jmp 0x103ce02
cmp dword [ebp - 0x10], 1
jne 0x103ce06
cmp dword [ebp - 0x1c], 4
ja 0x103ce02
jne 0x103ce06
cmp dword [ebp - 0x18], 0
jbe 0x103ce06
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x1004e8c
call fcn.0103615e
test eax, eax
jge 0x103ce27
mov byte [0x10a7e54], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
pop esi
call fcn.0103c667
add ebp, 0x78
leave
ret
Function at 0x103e2e8
Capabilities:
Encode data using base64

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax + 8]
push edi
mov edi, dword [eax]
add edi, esi
xor ebx, ebx
jmp 0x103e3a1
mov al, byte [esi]
xor cl, cl
xor dl, dl
inc esi
cmp esi, edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
je 0x103e31a
mov cl, byte [esi]
inc esi
jmp 0x103e321
mov dword [ebp - 8], 0x3d
cmp esi, edi
je 0x103e32a
mov dl, byte [esi]
inc esi
jmp 0x103e331
mov dword [ebp - 4], 0x3d
movzx eax, al
mov ebx, eax
shr ebx, 2
movzx ebx, byte [ebx + 0x1004ec8]
mov dword [ebp - 0x10], ebx
movzx ecx, cl
and eax, 3
mov ebx, ecx
shr ebx, 4
shl eax, 4
or ebx, eax
movzx eax, byte [ebx + 0x1004ec8]
xor ebx, ebx
cmp dword [ebp - 8], ebx
mov dword [ebp - 0xc], eax
jne 0x103e37c
movzx eax, dl
and ecx, 0xf
shr eax, 6
shl ecx, 2
or eax, ecx
movzx eax, byte [eax + 0x1004ec8]
mov dword [ebp - 8], eax
cmp dword [ebp - 4], ebx
jne 0x103e38e
and edx, 0x3f
movzx eax, byte [edx + 0x1004ec8]
mov dword [ebp - 4], eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push 4
push eax
push ebx
call fcn.0105f9c6
cmp eax, ebx
jl 0x103e3ab
cmp esi, edi
jne 0x103e304
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x10522b6
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x10a49bc]
push esi
push edi
mov esi, ecx
and dword [esi], 0
and dword [esi + 4], 0
push 0x27
mov dword [ebp - 4], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0xa0]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xa0]
push eax
mov dword [ebp - 0xa0], 0x9c
call sub.KERNEL32.dll_GetVersionExA
test eax, eax
jne 0x1052315
lea eax, [ebp - 0xa0]
push eax
mov dword [ebp - 0xa0], 0x94
call sub.KERNEL32.dll_GetVersionExA
test eax, eax
je 0x105233a
cmp dword [ebp - 0x90], 2
jne 0x1052335
cmp dword [ebp - 0x9c], 5
jne 0x1052335
cmp dword [ebp - 0x98], 0
jne 0x1052335
xor eax, eax
inc eax
jmp 0x1052337
xor eax, eax
mov dword [esi + 4], eax
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
call fcn.0103c667
leave
ret
Function at 0x1052800
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push esi
xor esi, esi
cmp dword [ebp + 0x14], esi
push edi
mov dword [ebp - 0x14], 0xc00000e5
je 0x1052820
mov edi, dword [ebp + 0x14]
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
cmp dword [ebp + 8], esi
jne 0x1052830
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x1052853
cmp dword [eax], esi
jne 0x105284e
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x20], 0x100a1b4
call fcn.0101d751
jmp 0x10529a2
cmp dword [ebp + 0x14], esi
jne 0x105286d
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], esi
call fcn.0101d751
jmp 0x10529a2
lea ecx, [ebp + 0xc]
push ecx
mov dword [ebp + 0xc], esi
call fcn.010526a7
cmp eax, esi
jge 0x105288d
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x14], eax
call fcn.0101cfa9
jmp 0x10529a2
push ebx
push dword [ebp + 0xc]
mov dword [ebp + 8], esi
call sub.msvcrt.dll_wcslen
pop ecx
push 2
push eax
push dword [ebp + 0xc]
lea ecx, [ebp + 8]
call fcn.0105265e
test eax, eax
jne 0x10528c4
call fcn.0104b97d
cmp eax, esi
lea ecx, [ebp + 8]
jge 0x105293c
mov dword [ebp - 0x14], eax
jmp 0x1052994
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 8]
push eax
push esi
mov dword [ebp - 4], esi
call fcn.010525b7
cmp eax, esi
jl 0x10529ab
push dword [ebp - 4]
push dword [ebp + 0x10]
push 0x18
push dword [ebp + 8]
call sub.KERNEL32.dll_FindResourceExW
mov edi, eax
cmp edi, esi
je 0x105292e
push edi
push dword [ebp + 8]
call sub.KERNEL32.dll_LoadResource
mov ebx, eax
cmp ebx, esi
je 0x105292e
push edi
push dword [ebp + 8]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call sub.KERNEL32.dll_SizeofResource
cmp eax, esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
je 0x105292e
push ebx
call sub.KERNEL32.dll_LockResource
cmp eax, esi
mov dword [ebp - 8], eax
jne 0x1052977
call fcn.0104b97d
mov edi, eax
cmp edi, esi
jl 0x1052968
lea ecx, [ebp + 8]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], esi
call fcn.0104b9f8
lea ecx, [ebp + 0xc]
call fcn.0101cfa9
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0x100a1b4
call fcn.0101d708
jmp 0x10529a1
push edi
push 1
push esi
push esi
call fcn.0103d1ca
mov dword [ebp - 0x14], edi
jmp 0x1052991
mov edx, dword [ebp + 0x14]
lea ecx, [ebp - 0x10]
call fcn.0103d548
cmp eax, esi
jl 0x10529ab
lea ecx, [ebp + 8]
call fcn.0104b9f8
mov dword [ebp - 0x14], esi
lea ecx, [ebp + 8]
call fcn.0104b9f8
lea ecx, [ebp + 0xc]
call fcn.0101cfa9
pop ebx
mov eax, dword [ebp - 0x14]
pop edi
pop esi
leave
ret 0x10
mov dword [ebp - 0x14], eax
jmp 0x1052991
Function at 0x1052b9e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [ebp + 0x10]
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
push edi
mov dword [ebp - 0x24], 0xc00000e5
je 0x1052bc1
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
cmp dword [ebp + 8], ebx
jne 0x1052bca
cmp eax, ebx
jne 0x1052bd9
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x28], ebx
jmp 0x1052ca6
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
or dword [ebp - 8], 0xffffffff
shr ecx, 1
push ecx
push dword [eax + 8]
lea ecx, [ebp + 8]
mov byte [ebp - 0xc], bl
mov dword [ebp + 8], ebx
call fcn.0101ee09
test eax, eax
jne 0x1052c1c
call fcn.0104b97d
cmp eax, ebx
lea ecx, [ebp + 8]
jl 0x1052c15
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x28], ebx
jmp 0x1052d16
mov edi, eax
jmp 0x1052d6e
push ebx
push 0x80
push 3
push ebx
xor esi, esi
inc esi
push esi
push 0x80100000
push dword [ebp + 8]
call fcn.01078a8f
push eax
lea ecx, [ebp - 0xc]
call fcn.01052a3b
cmp eax, 0xffffffff
je 0x1052c5d
xor eax, eax
mov dword [ebp - 0x14], ebx
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
call fcn.01052467
test eax, eax
jne 0x1052c81
call fcn.0104b97d
mov edi, eax
cmp edi, ebx
jl 0x1052c73
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], ebx
jmp 0x1052d13
push edi
push esi
push ebx
push ebx
call fcn.0103d1ca
jmp 0x1052d6b
cmp dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x14]
jl 0x1052cbd
jg 0x1052c90
cmp eax, 0xffffffff
jbe 0x1052cbd
lea ecx, [ebp + 8]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], ebx
call fcn.0101cfa9
lea ecx, [ebp - 0xc]
call fcn.01052af7
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], 0x100a1b4
call fcn.0101d751
mov edi, dword [ebp - 0x24]
jmp 0x1052d7b
lea ecx, [ebp - 0x20]
push ecx
push eax
mov edi, eax
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
call fcn.0103d2fe
cmp eax, ebx
jge 0x1052ce0
mov edi, eax
jmp 0x1052d63
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp - 0x18]
push dword [ebp - 8]
call sub.KERNEL32.dll_ReadFile
test eax, eax
jne 0x1052d3b
call fcn.0104b97d
mov edi, eax
cmp edi, ebx
jl 0x1052d48
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], ebx
call fcn.0101cc25
lea ecx, [ebp + 8]
call fcn.0101cfa9
lea ecx, [ebp - 0xc]
call fcn.01052af7
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], 0x100a1b4
call fcn.0101d708
jmp 0x1052cb5
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 4]
je 0x1052d53
mov edi, 0xc0000001
push edi
push esi
push ebx
push ebx
call fcn.0103d1ca
jmp 0x1052d63
push dword [ebp + 0x10]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], edi
call fcn.010292cc
xor edi, edi
lea ecx, [ebp - 0x20]
call fcn.0101cc25
lea ecx, [ebp + 8]
call fcn.0101cfa9
lea ecx, [ebp - 0xc]
call fcn.01052af7
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x105777e
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
and dword [edi], 0
cmp dword [ecx + 0x1c], 1
push 0x80
jne 0x10577a6
call fcn.01057654
push eax
call sub.KERNEL32.dll_SetFileAttributesA
jmp 0x10577b1
call fcn.0105762c
push eax
call sub.KERNEL32.dll_SetFileAttributesW
mov esi, eax
test esi, esi
jne 0x10577be
call sub.KERNEL32.dll_GetLastError
mov dword [edi], eax
pop edi
mov eax, esi
pop esi
pop ebp
ret 8

Function at 0x10578a3
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
mov ecx, dword [ebp + 8]
push esi
push edi
push dword [ebp + 0xc]
xor eax, eax
cmp dword [ecx + 0x1c], 1
lea edi, [ebp - 4]
stosd dword es:[edi], eax
jne 0x10578cf
call fcn.01057654
push eax
call sub.KERNEL32.dll_SetFileAttributesA
jmp 0x10578da
call fcn.0105762c
push eax
call sub.KERNEL32.dll_SetFileAttributesW
mov esi, eax
test esi, esi
jne 0x10578e8
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop edi
mov edx, esi
pop esi
leave
ret 8

Function at 0x10578f8
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
mov ecx, dword [ebp + 8]
push esi
push edi
xor eax, eax
cmp dword [ecx + 0x1c], 1
lea edi, [ebp - 4]
stosd dword es:[edi], eax
jne 0x1057921
call fcn.01057654
push eax
call sub.KERNEL32.dll_GetFileAttributesA
jmp 0x105792c
call fcn.0105762c
push eax
call sub.KERNEL32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
jne 0x105793b
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop edi
mov edx, esi
pop esi
leave
ret 4
Function at 0x1057fe4
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
push esi
xor esi, esi
cmp dword [ebp + 8], esi
push edi
mov edi, 0xc00000e5
mov dword [ebp - 4], edi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
je 0x1058032
cmp dword [ebp + 0xc], esi
jne 0x105806f
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
call fcn.0101d751
lea ecx, [ebp - 0x24]
call fcn.0101d150
lea ecx, [ebp - 0x30]
call fcn.0101cc25
lea ecx, [ebp - 0x44]
call fcn.0101d150
lea ecx, [ebp - 0x50]
call fcn.0101cc25
mov esi, dword [ebp - 4]
jmp 0x105811b
push dword [ebp + 8]
lea ecx, [ebp - 0x50]
call fcn.0108e2e6
cmp eax, esi
jl 0x105808d
push dword [ebp + 0xc]
lea ecx, [ebp - 0x30]
call fcn.0108e2e6
cmp eax, esi
jge 0x1058091
mov esi, eax
jmp 0x10580fb
push esi
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.01057825
cmp edx, esi
je 0x10580e0
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x14]
je 0x10580b1
push edi
call fcn.01048527
cmp dword [ebp - 0x34], 1
lea ecx, [ebp - 0x30]
push 0x80
jne 0x10580cc
call fcn.01057654
push eax
call sub.KERNEL32.dll_SetFileAttributesA
jmp 0x10580d7
call fcn.0105762c
push eax
call sub.KERNEL32.dll_SetFileAttributesW
cmp eax, esi
jne 0x10580fb
call sub.KERNEL32.dll_GetLastError
push dword [ebp + 0x14]
push eax
call fcn.0104b9c5
mov edi, eax
cmp edi, esi
jge 0x10580fb
push edi
push 1
push esi
push esi
call fcn.0103d1ca
mov esi, edi
lea ecx, [ebp - 0x24]
call fcn.0101d150
lea ecx, [ebp - 0x30]
call fcn.0101cc25
lea ecx, [ebp - 0x44]
call fcn.0101d150
lea ecx, [ebp - 0x50]
call fcn.0101cc25
pop edi
mov eax, esi
pop esi
leave
ret 0x10