joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10243ad
Capabilities:
Accept command line arguments

Disassembly:
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.01021973
cmp eax, edi
jl 0x10243f0
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call fcn.01041440
cmp eax, edi
jge 0x10243f7
mov esi, eax
jmp 0x10244d9
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 0x102445c
call fcn.0104c9b5
mov edi, eax
cmp edi, esi
jl 0x102444e
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], esi
jmp 0x1024482
push edi
push 1
push esi
push esi
call fcn.0103f55c
mov esi, edi
jmp 0x10244d9
push eax
lea ecx, [ebp + 0x10]
call fcn.0102085c
mov eax, dword [ebp - 8]
xor ebx, ebx
inc ebx
cmp eax, ebx
jge 0x10244a2
cmp dword [ebp + 0x10], esi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], esi
je 0x1024482
push dword [ebp + 0x10]
call sub.KERNEL32.dll_GlobalFree
lea ecx, [ebp - 0x14]
call fcn.0102034d
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], 0x10029ac
call fcn.0102080c
mov esi, dword [ebp - 0x18]
jmp 0x10244e1
cmp eax, ebx
mov edi, dword [ebp + 0x10]
mov dword [ebp + 0xc], eax
je 0x10244cf
lea esi, [edi + eax*4 - 4]
push dword [esi]
mov ecx, dword [ebp + 8]
call fcn.01024328
test eax, eax
jl 0x10244cd
dec dword [ebp + 0xc]
sub esi, 4
cmp dword [ebp + 0xc], ebx
jne 0x10244b0
xor esi, esi
jmp 0x10244cf
mov esi, eax
test edi, edi
je 0x10244d9
push edi
call sub.KERNEL32.dll_GlobalFree
lea ecx, [ebp - 0x14]
call fcn.0102034d
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x102565d
Capabilities:
Check for software breakpoints

Disassembly:
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 + 0x10a8030]
mov eax, ecx
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1025681
sub eax, edi
mov dword [ebp - 0xc], ecx
mov ecx, dword [esi + 0x10a8100]
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 0x102569e
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.010253ff
test eax, eax
jl 0x10256d4
add esi, 4
cmp esi, 0xcc
jb 0x1025676
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x102bfa2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
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 0x102c044
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 0x102c044
cmp dword [ebp + 0x10], ebx
je 0x102c044
cmp dword [ebp + 0x14], ebx
je 0x102c044
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
call sub.KERNEL32.dll_FindResourceExW
mov esi, eax
cmp esi, ebx
jne 0x102c00b
call fcn.0104c9b5
mov esi, eax
cmp esi, ebx
jge 0x102c044
push esi
push 1
push ebx
push ebx
call fcn.0103f55c
mov eax, esi
jmp 0x102c03d
push esi
push edi
call sub.KERNEL32.dll_LoadResource
cmp eax, ebx
mov dword [ebp + 0x14], eax
je 0x102bff2
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 0x102bff2
push dword [ebp + 0x14]
call sub.KERNEL32.dll_LockResource
cmp eax, ebx
mov dword [esi + 8], eax
je 0x102bff2
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 - 0x14], ebx
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x1c], 0x10031d8
call fcn.0102080c
mov eax, dword [ebp - 0x10]
jmp 0x102c03d
Function at 0x1038cae
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1038d06
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x1038cd3
xor eax, eax
jmp 0x1038d05
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 0x1038cf7
cmp esi, eax
jae 0x1038ccf
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x1038ce9
cmp esi, eax
jae 0x1038ccf
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret 0xc
Function at 0x103ea2c
Capabilities:
Get file size

Disassembly:
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 0x103ea70
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x103ea70
push eax
call fcn.010a379f
jmp 0x103ea7a
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 0x103ea80
Capabilities:
Read file via mapping

Disassembly:
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 0x103ea96
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 0x103eac4
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 0x103ead5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.010a379f
mov dword [ebp + 0xc], eax
jmp 0x103ead8
mov dword [ebp + 0xc], esi
cmp dword [ebp + 0xc], esi
jge 0x103eae9
push edi
call fcn.0103e998
push ebx
call fcn.0103e9b8
lea eax, [ebp - 4]
push eax
call fcn.0103e998
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x103eea4
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x10a8a0c]
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0103ee13
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 0x103eef3
cmp dword [ebp - 0x1c], 5
jb 0x103ef0b
jmp 0x103ef07
cmp dword [ebp - 0x10], 1
jne 0x103ef0b
cmp dword [ebp - 0x1c], 4
ja 0x103ef07
jne 0x103ef0b
cmp dword [ebp - 0x18], 0
jbe 0x103ef0b
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x1005954
call fcn.01038c5e
test eax, eax
jge 0x103ef2c
mov byte [0x10abe94], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
pop esi
call fcn.0103ec19
add ebp, 0x78
leave
ret
Function at 0x103f09d
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x10a63d8
call fcn.0103f3a4
cmp word [0x1000000], 0x5a4d
jne 0x103f0dc
mov eax, dword [0x100003c]
cmp dword [eax + 0x1000000], 0x4550
jne 0x103f0dc
movzx ecx, word [eax + 0x1000018]
cmp ecx, 0x10b
je 0x103f0f5
cmp ecx, 0x20b
je 0x103f0e2
and dword [ebp - 0x1c], 0
jmp 0x103f10c
cmp dword [eax + 0x1000084], 0xe
jbe 0x103f0dc
xor ecx, ecx
cmp dword [eax + 0x10000f8], ecx
jmp 0x103f106
cmp dword [eax + 0x1000074], 0xe
jbe 0x103f0dc
xor ecx, ecx
cmp dword [eax + 0x10000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
and dword [ebp - 4], 0
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x10ac99c], 0xffffffff
or dword [0x10ac9a0], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x10abf08]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x10abf04]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x10ac998], eax
call fcn.0108ceeb
cmp dword [0x10a8a10], 0
jne 0x103f169
push fcn.0108ceeb
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0103f438
push 0x10a8020
push 0x10a801c
call sub.msvcrt.dll__initterm
mov eax, dword [0x10abf00]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x10abefc]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x34], eax
push 0x10a8018
push section..data
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___winitenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.0102b77b
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], 0
jne 0x103f1e1
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x103f216
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0103f3df
ret
Function at 0x104050c
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x10
push ebx
push esi
mov esi, dword [eax + 8]
push edi
mov edi, dword [eax]
add edi, esi
xor ebx, ebx
jmp 0x10405c3
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 0x104053c
mov cl, byte [esi]
inc esi
jmp 0x1040543
mov dword [ebp - 8], 0x3d
cmp esi, edi
je 0x104054c
mov dl, byte [esi]
inc esi
jmp 0x1040553
mov dword [ebp - 4], 0x3d
movzx eax, al
mov ebx, eax
shr ebx, 2
movzx ebx, byte [ebx + 0x1005998]
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 + 0x1005998]
xor ebx, ebx
cmp dword [ebp - 8], ebx
mov dword [ebp - 0xc], eax
jne 0x104059e
movzx eax, dl
and ecx, 0xf
shr eax, 6
shl ecx, 2
or eax, ecx
movzx eax, byte [eax + 0x1005998]
mov dword [ebp - 8], eax
cmp dword [ebp - 4], ebx
jne 0x10405b0
and edx, 0x3f
movzx eax, byte [edx + 0x1005998]
mov dword [ebp - 4], eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push 4
push eax
push ebx
call fcn.0106acec
cmp eax, ebx
jl 0x10405cd
cmp esi, edi
jne 0x1040526
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1052c6b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
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 0x1052c89
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 0x1052c99
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x1052cbc
cmp dword [eax], esi
jne 0x1052cb7
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x20], 0x100b620
call fcn.010202e5
jmp 0x1052e3a
cmp dword [ebp + 0x14], esi
jne 0x1052cd6
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], esi
call fcn.010202e5
jmp 0x1052e3a
lea ecx, [ebp + 8]
push ecx
mov dword [ebp + 8], esi
call fcn.01052b19
cmp eax, esi
jge 0x1052cf6
lea ecx, [ebp + 8]
mov dword [ebp - 0x14], eax
call fcn.0104d289
jmp 0x1052e3a
mov eax, dword [ebp + 8]
mov dword [ebp + 0xc], esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x1052cff
push ebx
sub eax, edx
push 2
sar eax, 1
push eax
push dword [ebp + 8]
lea ecx, [ebp + 0xc]
call fcn.01052ad7
test eax, eax
jne 0x1052d44
call fcn.0104c9b5
cmp eax, esi
jl 0x1052d5c
cmp dword [ebp + 0xc], esi
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], esi
je 0x1052ddd
push dword [ebp + 0xc]
jmp 0x1052dd8
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push esi
mov dword [ebp - 4], esi
call fcn.01052a37
cmp eax, esi
jge 0x1052d70
cmp dword [ebp + 0xc], esi
mov dword [ebp - 0x14], eax
je 0x1052e31
push dword [ebp + 0xc]
jmp 0x1052e2c
push dword [ebp - 4]
mov edi, dword [ebp + 0xc]
push dword [ebp + 0x10]
push 0x18
push edi
call sub.KERNEL32.dll_FindResourceExW
mov ebx, eax
cmp ebx, esi
je 0x1052dbe
push ebx
push edi
call sub.KERNEL32.dll_LoadResource
cmp eax, esi
mov dword [ebp + 0x10], eax
je 0x1052dbe
push ebx
push edi
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 0x1052dbe
push dword [ebp + 0x10]
call sub.KERNEL32.dll_LockResource
cmp eax, esi
mov dword [ebp - 8], eax
jne 0x1052e09
call fcn.0104c9b5
mov ebx, eax
cmp ebx, esi
jl 0x1052dfa
cmp edi, esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], 1
je 0x1052ddd
push edi
call sub.KERNEL32.dll_FreeLibrary
lea ecx, [ebp + 8]
call fcn.0104d289
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0x100b620
call fcn.0102080c
jmp 0x1052e39
push ebx
push 1
push esi
push esi
call fcn.0103f55c
mov dword [ebp - 0x14], ebx
jmp 0x1052e27
mov edx, dword [ebp + 0x14]
lea ecx, [ebp - 0x10]
call fcn.0103f846
cmp eax, esi
jl 0x1052e43
cmp edi, esi
je 0x1052e24
push edi
call sub.KERNEL32.dll_FreeLibrary
xor edi, edi
mov dword [ebp - 0x14], esi
cmp edi, esi
je 0x1052e31
push edi
call sub.KERNEL32.dll_FreeLibrary
lea ecx, [ebp + 8]
call fcn.0104d289
pop ebx
mov eax, dword [ebp - 0x14]
pop edi
pop esi
leave
ret 0x10
mov dword [ebp - 0x14], eax
jmp 0x1052e27
Function at 0x1053019
Capabilities:
Read file on windows

Disassembly:
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 0x105303a
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
cmp dword [ebp + 8], ebx
jne 0x1053043
cmp eax, ebx
jne 0x1053052
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x28], ebx
jmp 0x105311f
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.01021c7c
test eax, eax
jne 0x1053095
call fcn.0104c9b5
cmp eax, ebx
lea ecx, [ebp + 8]
jl 0x105308e
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x28], ebx
jmp 0x1053187
mov edi, eax
jmp 0x10531db
push ebx
push 0x80
push 3
push ebx
xor esi, esi
inc esi
push esi
push 0x80100000
push dword [ebp + 8]
call fcn.0107e28b
push eax
lea ecx, [ebp - 0xc]
call fcn.01052ed2
cmp eax, 0xffffffff
je 0x10530d6
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.01052923
test eax, eax
jne 0x10530fa
call fcn.0104c9b5
mov edi, eax
cmp edi, ebx
jl 0x10530ec
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], ebx
jmp 0x1053184
push edi
push esi
push ebx
push ebx
call fcn.0103f55c
jmp 0x10531d8
cmp dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x14]
jl 0x1053136
jg 0x1053109
cmp eax, 0xffffffff
jbe 0x1053136
lea ecx, [ebp + 8]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], ebx
call fcn.0104d289
lea ecx, [ebp - 0xc]
call fcn.01052f80
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], 0x100b620
call fcn.010202e5
mov edi, dword [ebp - 0x24]
jmp 0x10531e8
lea ecx, [ebp - 0x20]
push ecx
push eax
mov edi, eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
call fcn.0103f632
cmp eax, ebx
jge 0x1053153
mov edi, eax
jmp 0x10531d0
push ebx
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp - 0x18]
mov dword [ebp - 4], ebx
push dword [ebp - 8]
call sub.KERNEL32.dll_ReadFile
test eax, eax
jne 0x10531a9
call fcn.0104c9b5
mov edi, eax
cmp edi, ebx
jl 0x10531b5
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], ebx
call fcn.0101ffc0
lea ecx, [ebp + 8]
call fcn.0104d289
lea ecx, [ebp - 0xc]
call fcn.01052f80
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], 0x100b620
call fcn.0102080c
jmp 0x105312e
mov eax, edi
cmp eax, dword [ebp - 4]
je 0x10531c0
mov edi, 0xc0000001
push edi
push esi
push ebx
push ebx
call fcn.0103f55c
jmp 0x10531d0
push dword [ebp + 0x10]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], edi
call fcn.0104d8b8
xor edi, edi
lea ecx, [ebp - 0x20]
call fcn.0101ffc0
lea ecx, [ebp + 8]
call fcn.0104d289
lea ecx, [ebp - 0xc]
call fcn.01052f80
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1056fcf
Capabilities:
Set file attributes

Disassembly:
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 0x1056ff9
call fcn.01056e40
push eax
call sub.KERNEL32.dll_SetFileAttributesA
jmp 0x1057004
call fcn.01056e1f
push eax
call sub.KERNEL32.dll_SetFileAttributesW
mov esi, eax
test esi, esi
jne 0x1057012
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 0x105701d
Capabilities:
Get file attributes

Disassembly:
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 0x1057044
call fcn.01056e40
push eax
call sub.KERNEL32.dll_GetFileAttributesA
jmp 0x105704f
call fcn.01056e1f
push eax
call sub.KERNEL32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
jne 0x105705e
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 0x1068129
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
call fcn.01091cc6
test al, al
je 0x1068156
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.ADVAPI32.dll_RegEnumKeyExA
jmp 0x10681b3
and dword [ebp - 4], 0
and dword [ebp - 8], 0
push esi
mov esi, dword [ebp + 0x14]
test esi, esi
push edi
je 0x106816e
mov eax, dword [esi]
shr eax, 1
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x20]
test edi, edi
je 0x106817c
mov eax, dword [edi]
shr eax, 1
mov dword [ebp - 8], eax
push dword [ebp + 0x24]
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x1c]
lea eax, [ebp - 4]
push dword [ebp + 0x18]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.ADVAPI32.dll_RegEnumKeyExW
test esi, esi
je 0x10681a6
mov ecx, dword [ebp - 4]
add ecx, ecx
mov dword [esi], ecx
test edi, edi
je 0x10681b1
mov ecx, dword [ebp - 8]
add ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
leave
ret 0x20
Function at 0x10681b7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.01091cc6
test al, al
je 0x10681e3
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.ADVAPI32.dll_RegEnumValueA
jmp 0x1068220
and dword [ebp - 4], 0
push esi
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x10681f6
mov eax, dword [esi]
shr eax, 1
mov dword [ebp - 4], eax
push dword [ebp + 0x24]
lea eax, [ebp - 4]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.ADVAPI32.dll_RegEnumValueW
test esi, esi
je 0x106821f
mov ecx, dword [ebp - 4]
add ecx, ecx
mov dword [esi], ecx
pop esi
leave
ret 0x20

Function at 0x106a091
Capabilities:
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
push edi
mov eax, ecx
mov dword [ebp - 8], 0xc00000e5
call fcn.01069fbf
xor edi, edi
cmp eax, edi
mov dword [ebp + 8], eax
jne 0x106a0cb
mov esi, 0xc0000002
push esi
push 1
push edi
push edi
call fcn.0103f55c
mov eax, esi
jmp 0x106a16f
cmp eax, 0x800c
mov dword [esi + 0x10], ecx
je 0x106a0e8
cmp eax, 0x800d
je 0x106a0e8
cmp eax, 0x800e
je 0x106a0e8
xor ecx, ecx
inc ecx
jmp 0x106a0eb
push 0x18
pop ecx
push ebx
push 0xf0000000
push ecx
push edi
lea eax, [esi + 4]
push edi
push eax
call sub.ADVAPI32.dll_CryptAcquireContextA
test eax, eax
je 0x106a131
lea ebx, [esi + 8]
push ebx
push edi
push edi
push dword [ebp + 8]
push dword [esi + 4]
call sub.ADVAPI32.dll_CryptCreateHash
test eax, eax
je 0x106a131
push 4
pop eax
push edi
lea ecx, [ebp - 4]
push ecx
add esi, 0xc
push esi
push eax
push dword [ebx]
mov dword [ebp - 4], eax
call sub.ADVAPI32.dll_CryptGetHashParam
test eax, eax
jne 0x106a16c
call fcn.0104c9b5
mov esi, eax
cmp esi, edi
jl 0x106a15e
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], 1
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x14], 0x100cea8
call fcn.0102080c
mov eax, dword [ebp - 8]
jmp 0x106a16e
push esi
push 1
push edi
push edi
call fcn.0103f55c
mov eax, esi
jmp 0x106a16e
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x106a31b
Capabilities:
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
lea eax, [ebp - 4]
push eax
xor esi, esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 8], 0xc00000e5
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
call sub.ADVAPI32.dll_CryptCreateHash
test eax, eax
jne 0x106a35b
call fcn.0104c9b5
mov edi, eax
cmp edi, esi
jge 0x106a3bf
push edi
push 1
push esi
push esi
call fcn.0103f55c
jmp 0x106a3ab
push 4
pop eax
push esi
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp + 0xc]
push ecx
push eax
push dword [ebp - 4]
mov dword [ebp + 8], eax
call sub.ADVAPI32.dll_CryptGetHashParam
test eax, eax
je 0x106a344
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [eax]
je 0x106a388
mov edi, 0xc000042c
jmp 0x106a34f
push esi
push dword [eax + 8]
push 2
push dword [ebp - 4]
call sub.ADVAPI32.dll_CryptSetHashParam
test eax, eax
je 0x106a344
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
push eax
mov dword [ebp - 4], esi
call fcn.0107663d
xor edi, edi
mov ecx, dword [ebp - 4]
cmp ecx, esi
je 0x106a3b7
call fcn.010939d1
mov eax, edi
pop edi
pop esi
leave
ret 0x10
mov ecx, dword [ebp - 4]
cmp ecx, esi
mov dword [ebp - 0x10], 1
mov dword [ebp - 0xc], esi
je 0x106a3d5
call fcn.010939d1
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0x100cea8
call fcn.0102080c
mov edi, dword [ebp - 8]
jmp 0x106a3b7