joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4297f0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x18
push esi
push edi
mov edi, dword [esp + 0x24]
cmp dword [edi + 0x4c], 1
mov esi, dword [edi + 0x1b8]
mov dword [esp + 0x18], esi
jne 0x429817
mov dword [esp + 8], 0x1fe
mov byte [esi + 0x1c], 1
jmp 0x429823
mov dword [esp + 8], 0
mov byte [esi + 0x1c], 0
mov ecx, dword [edi + 0x64]
mov edx, dword [esp + 8]
mov eax, dword [edi + 4]
mov eax, dword [eax + 8]
push ecx
add edx, 0x100
push edx
push 1
push edi
call eax
xor ecx, ecx
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x14]
add esp, 0x10
cmp dword [edi + 0x64], ecx
mov dword [esp + 0x14], ecx
jle 0x429936
push ebx
lea edx, [esi + 0x20]
push ebp
mov dword [esp + 0x14], edx
jmp 0x429868
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov edi, dword [edx]
cdq
idiv edi
cmp dword [esp + 0x10], 0
mov dword [esp + 0x18], eax
je 0x429889
mov eax, dword [esi + 0x18]
add dword [eax + ecx*4], 0xff
lea eax, [eax + ecx*4]
mov edx, dword [esi + 0x18]
mov ebp, dword [edx + ecx*4]
lea eax, [edi + 0xfe]
lea esi, [edi + edi - 2]
cdq
idiv esi
xor ebx, ebx
mov dword [esp + 0x24], ebp
xor esi, esi
mov edx, eax
cmp esi, edx
jle 0x4298df
mov ecx, ebx
lea ebp, [edi + edi - 2]
imul ecx, ecx, 0x1fe
jmp 0x4298c0
add ecx, 0x1fe
lea eax, [ecx + edi + 0xfe]
cdq
idiv ebp
inc ebx
mov edx, eax
cmp esi, edx
jg 0x4298c0
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x24]
mov al, byte [esp + 0x18]
imul bl
mov byte [esi + ebp], al
inc esi
cmp esi, 0xff
jle 0x4298a6
cmp dword [esp + 0x10], 0
je 0x42991d
mov eax, 1
lea edx, [ebp - 1]
movzx ebx, byte [ebp]
mov byte [edx], bl
movzx ebx, byte [ebp + 0xff]
mov byte [eax + ebp + 0xff], bl
inc eax
dec edx
cmp eax, 0xff
jle 0x429900
mov eax, dword [esp + 0x2c]
add dword [esp + 0x14], 4
inc ecx
cmp ecx, dword [eax + 0x64]
mov dword [esp + 0x1c], ecx
jl 0x429860
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x18
ret

Function at 0x437310
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x476a33
call fcn.00459cb2
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x437335
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x43737b
lea ecx, [ebp - 0x10]
call fcn.00408870
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00436b0f
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401770
mov eax, esi
call fcn.00459d8a
ret 8
Function at 0x437d8e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x437dd6
call fcn.004397e3
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x437dd6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x437e19
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x437e02
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x437e02
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x437e16
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x440234
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x44027b
call fcn.004397e3
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x44027b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x440297
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0043fdae
mov esi, eax
test edi, edi
je 0x440295
test ebx, ebx
je 0x440295
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x440e31
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x440e55
cmp dword [edi + 0x54], 0
jne 0x440e55
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.004397e3
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00440df2
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x455dfd
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4931b8]
jne 0x455e07
repz ret
jmp fcn.0045edec
Function at 0x46e204
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0045e726
and dword [ebp - 4], 0
cmp dword [0x4989b4], 0
mov ebx, eax
jne 0x46e2b5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x46e366
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x482dec
push edi
call esi
test eax, eax
je 0x46e366
push eax
call fcn.0045e6b4
mov dword [esp], 0x482ddc
push edi
mov dword [0x4989b4], eax
call esi
push eax
call fcn.0045e6b4
mov dword [esp], 0x482dc8
push edi
mov dword [0x4989b8], eax
call esi
push eax
call fcn.0045e6b4
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4989bc], eax
call esi
push eax
call fcn.0045e6b4
pop ecx
mov dword [0x4989c4], eax
test eax, eax
je 0x46e2b5
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0045e6b4
pop ecx
mov dword [0x4989c0], eax
mov eax, dword [0x4989c0]
cmp eax, ebx
je 0x46e30d
cmp dword [0x4989c4], ebx
je 0x46e30d
push eax
call fcn.0045e72f
push dword [0x4989c4]
mov esi, eax
call fcn.0045e72f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x46e30d
test edi, edi
je 0x46e30d
call esi
test eax, eax
je 0x46e304
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x46e304
test byte [ebp - 0xc], 1
jne 0x46e30d
or dword [ebp + 0x10], 0x200000
jmp 0x46e346
mov eax, dword [0x4989b8]
cmp eax, ebx
je 0x46e346
push eax
call fcn.0045e72f
pop ecx
test eax, eax
je 0x46e346
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x46e346
mov eax, dword [0x4989bc]
cmp eax, ebx
je 0x46e346
push eax
call fcn.0045e72f
pop ecx
test eax, eax
je 0x46e346
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4989b4]
call fcn.0045e72f
pop ecx
test eax, eax
je 0x46e366
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x46e368
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40164e
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x2d72bac]
push esi
mov esi, eax
shr esi, 3
push edi
mov edi, dword [0x2d72b04]
test esi, esi
je 0x401694
push ebx
xor ebx, ebx
cmp eax, 0x959
jne 0x40167f
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, edi
call fcn.004014f2
add edi, 8
dec esi
je 0x401693
mov eax, dword [0x2d72bac]
jmp 0x401667
pop ebx
pop edi
pop esi
ret 4
Function at 0x40d05c
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a35c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00404ec5
mov dword [ebp - 0x14], eax
cmp dword [0x479260], esi
jne 0x40d14f
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d0dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d22f
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d22f
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d22f
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x479260], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x479264], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x479268], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x479270], eax
test eax, eax
je 0x40d14c
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x47926c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d174
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d167
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d189
push 4
pop eax
jmp 0x40d231
cmp dword [ebp - 0x14], esi
je 0x40d189
push dword [0x479260]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d16e
mov eax, dword [0x47926c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d1e7
cmp dword [0x479270], edi
je 0x40d1e7
push eax
call ebx
push dword [0x479270]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d1e7
test eax, eax
je 0x40d1e7
call ecx
test eax, eax
je 0x40d1dc
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d1dc
test byte [ebp - 8], 1
jne 0x40d1e7
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d217
mov eax, dword [0x479264]
cmp eax, edi
je 0x40d214
push eax
call ebx
test eax, eax
je 0x40d214
call eax
mov esi, eax
test esi, esi
je 0x40d214
mov eax, dword [0x479268]
cmp eax, edi
je 0x40d214
push eax
call ebx
test eax, eax
je 0x40d214
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x479260]
call ebx
test eax, eax
je 0x40d22f
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d231
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004041ab
mov esp, ebp
pop ebp
ret
Function at 0x419760
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40f015
lea edi, [esi - 0xe015]
push edi
or ebp, 0xffffffff
jmp 0x419782
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419789
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419778
nop
push 1
nop
pop eax
add ebx, ebx
jne 0x41979b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419790
jne 0x4197ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419790
sub ecx, ecx
sub eax, 3
jb 0x4197c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x419832
mov ebp, eax
add ebx, ebx
jne 0x4197cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4197d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4197fc
inc ecx
add ebx, ebx
jne 0x4197e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4197dd
jne 0x4197f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4197dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41981c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41980d
jmp 0x41977e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41981c
add edi, ecx
jmp 0x41977e
pop esi
push esi
pop edi
mov ecx, 0x2b3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41983a
cmp byte [edi], 5
jne 0x41983a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41983f
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x4198b7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1908c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41986c
push edi
pop ecx
jns 0x41989b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x19090]
or eax, eax
je 0x4198b1
mov dword [ebx], eax
add ebx, 4
jmp 0x419889
call dword [esi + 0x190a0]
mov ebp, dword [esi + 0x19094]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4198eb
sub esp, 0xffffff80
jmp 0x404c20

Function at 0x432005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43200c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x40729f
sub eax, 0x407245
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x432030
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x10006b3f
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x100af334]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x234], eax
push edi
test esi, esi
je 0x10006c0b
push 0x228
xor edi, edi
lea eax, [ebp - 0x22c]
push edi
push eax
call fcn.100631d0
add esp, 0xc
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10006c0b
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x10006bcb
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.1006b2fe
pop ecx
pop ecx
test eax, eax
je 0x10006bd1
lea eax, [ebp - 0x230]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x10006baa
jmp 0x10006c00
push dword [ebp - 0x228]
push edi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push dword [ebp - 0x234]
mov esi, eax
push 0xf01ff
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x10006c0d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005fd1a
leave
ret 8

Function at 0x10006c23
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x10006c35
push 0xd
pop eax
jmp 0x10006c67
mov ecx, edx
push ebx
push edi
xor ebx, ebx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x10006c3e
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x100093ee
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
xor esi, esi
push 0x100a1a18
push dword [ebp + 8]
mov dword [eax], esi
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], esi
mov dword [ebx], esi
call fcn.1006b8a4
add esp, 0xc
test eax, eax
je 0x10009422
xor eax, eax
jmp 0x10009548
push edi
mov edi, esi
push dword [ebp - 4]
lea eax, [ebp + 0x10]
push 1
add eax, edi
push 1
push eax
call fcn.1006c378
add esp, 0x10
inc edi
cmp edi, 4
jl 0x10009425
mov eax, dword [ebp + 0x10]
movzx ecx, al
shl ecx, 8
movzx eax, ah
or ecx, eax
movzx eax, byte [ebp + 0x12]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp + 0x13]
shl ecx, 8
or ecx, eax
cmp ecx, 0x89504e47
jne 0x10009545
mov edi, esi
push dword [ebp - 4]
lea eax, [ebp + 0x10]
push 1
add eax, edi
push 1
push eax
call fcn.1006c378
add esp, 0x10
inc edi
cmp edi, 4
jl 0x1000946e
mov eax, dword [ebp + 0x10]
movzx ecx, al
shl ecx, 8
movzx eax, ah
or ecx, eax
movzx eax, byte [ebp + 0x12]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp + 0x13]
shl ecx, 8
or ecx, eax
cmp ecx, 0xd0a1a0a
jne 0x10009545
push esi
push 0x10
push dword [ebp - 4]
call fcn.1006c763
add esp, 0xc
mov edi, esi
push dword [ebp - 4]
lea eax, [ebp + 0x10]
push 1
add eax, edi
push 1
push eax
call fcn.1006c378
add esp, 0x10
inc edi
cmp edi, 4
jl 0x100094c5
mov eax, dword [ebp + 0x10]
movzx ecx, al
shl ecx, 8
movzx eax, ah
or ecx, eax
movzx eax, byte [ebp + 0x12]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp + 0x13]
shl ecx, 8
or ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
push dword [ebp - 4]
lea eax, [ebp + 0x10]
push 1
add eax, esi
push 1
push eax
call fcn.1006c378
add esp, 0x10
inc esi
cmp esi, 4
jl 0x10009505
mov eax, dword [ebp + 0x10]
xor esi, esi
movzx ecx, al
shl ecx, 8
movzx eax, ah
or ecx, eax
movzx eax, byte [ebp + 0x12]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp + 0x13]
shl ecx, 8
or ecx, eax
inc esi
mov dword [ebx], ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1000954e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 4]
push edi
mov edi, dword [ebp + 0x10]
push 0x100a1a18
push dword [ebp + 8]
and dword [esi], 0
and dword [edi], 0
push eax
call fcn.1006b8a4
add esp, 0xc
test eax, eax
jne 0x1000971a
push ebx
xor ebx, ebx
inc ebx
push dword [ebp - 4]
lea eax, [ebp + 0xb]
push ebx
push ebx
push eax
call fcn.1006c378
add esp, 0x10
test eax, eax
je 0x10009710
cmp byte [ebp + 0xb], 0xff
jne 0x10009710
push dword [ebp - 4]
lea eax, [ebp + 0xb]
push ebx
push ebx
push eax
call fcn.1006c378
add esp, 0x10
test eax, eax
je 0x10009710
mov cl, byte [ebp + 0xb]
lea eax, [ecx + 0x20]
cmp al, 0xf
ja 0x10009608
push dword [ebp - 4]
lea eax, [ebp + 0xf]
push ebx
push ebx
push eax
call fcn.1006c378
push dword [ebp - 4]
lea eax, [ebp + 0x13]
push ebx
push ebx
push eax
call fcn.1006c378
movzx eax, byte [ebp + 0xf]
shl ax, 8
movzx ecx, ax
movzx eax, byte [ebp + 0x13]
or ecx, eax
push ebx
sub ecx, 2
push ecx
push dword [ebp - 4]
call fcn.1006c763
add esp, 0x2c
jmp 0x10009580
movzx eax, cl
mov ecx, 0xd8
cmp eax, ecx
ja 0x100096a7
je 0x10009580
sub eax, 0
je 0x10009710
sub eax, 0xc0
je 0x10009636
sub eax, 4
jmp 0x100096c5
push ebx
push 3
push dword [ebp - 4]
call fcn.1006c763
push dword [ebp - 4]
lea eax, [ebp + 0xf]
push ebx
push ebx
push eax
call fcn.1006c378
push dword [ebp - 4]
lea eax, [ebp + 0x13]
push ebx
push ebx
push eax
call fcn.1006c378
movzx eax, byte [ebp + 0xf]
push dword [ebp - 4]
shl ax, 8
movzx ecx, ax
movzx eax, byte [ebp + 0x13]
or ecx, eax
lea eax, [ebp + 0xf]
push ebx
push ebx
push eax
mov dword [edi], ecx
call fcn.1006c378
push dword [ebp - 4]
lea eax, [ebp + 0x13]
push ebx
push ebx
push eax
call fcn.1006c378
movzx eax, byte [ebp + 0xf]
add esp, 0x4c
shl ax, 8
movzx ecx, ax
movzx eax, byte [ebp + 0x13]
or ecx, eax
mov dword [esi], ecx
jmp 0x10009580
cmp eax, 0xd9
jb 0x100096cb
cmp eax, 0xda
jbe 0x10009710
cmp eax, 0xdd
jbe 0x100095c6
cmp eax, 0xfe
je 0x100095c6
push dword [ebp - 4]
lea eax, [ebp + 0xf]
push ebx
push ebx
push eax
call fcn.1006c378
push dword [ebp - 4]
lea eax, [ebp + 0x13]
push ebx
push ebx
push eax
call fcn.1006c378
movzx eax, byte [ebp + 0xf]
shl ax, 8
movzx ecx, ax
movzx eax, byte [ebp + 0x13]
or ecx, eax
push ebx
sub ecx, 2
push ecx
push dword [ebp - 4]
call fcn.1006c763
add esp, 0x2c
test eax, eax
je 0x10009580
push dword [ebp - 4]
call fcn.1006bc08
pop ecx
pop ebx
pop edi
xor eax, eax
pop esi
leave
ret 0xc
Function at 0x10009994
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0xc
mov eax, 0x1008781a
call fcn.10060a43
push ecx
lea ecx, [ebp - 0x10]
call fcn.10007d29
and dword [ebp - 4], 0
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10009a28
push eax
jmp 0x10009a17
call fcn.100077a1
push eax
lea ecx, [ebp - 0x14]
call fcn.100074f7
inc edi
mov byte [ebp - 4], 1
push edi
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.10009952
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.1000738a
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.10007d77
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10009a0a
push esi
call fcn.1006c182
pop ecx
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 0
call fcn.10007d77
push edi
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.1000991e
mov edi, eax
cmp edi, 0xffffffff
jne 0x100099bd
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.10007d77
call fcn.10060a0c
ret

Function at 0x10009a39
Capabilities:
Get common file path

Disassembly:
push 8
mov eax, 0x1008783d
call fcn.10060a43
mov edi, ecx
mov dword [ebp - 0x14], edi
call fcn.100077a1
push eax
lea ecx, [ebp - 0x10]
call fcn.100074f7
xor esi, esi
lea ecx, [ebp - 0x10]
push esi
push 0x1a
push 0x200
mov dword [ebp - 4], esi
call fcn.10007b83
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.1000735e
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 0xc]
test eax, eax
jne 0x10009a9a
push 0x100a1484
mov ecx, edi
call fcn.10007d29
lea ecx, [esi - 0x10]
jmp 0x10009af1
dec eax
lea ecx, [ebp - 0x10]
push eax
call fcn.10009d39
cmp ax, 0x5c
je 0x10009ac0
mov esi, 0x100a0e08
push esi
call fcn.10007950
pop ecx
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.10009cad
mov esi, str.CloudNotePad_
push esi
call fcn.10007950
pop ecx
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.10009cad
mov esi, dword [ebp - 0x10]
mov ecx, esi
call fcn.10009994
add esi, 0xfffffff0
push esi
call fcn.10007444
pop ecx
add eax, 0x10
mov ecx, esi
mov dword [edi], eax
call fcn.10007d77
mov eax, edi
call fcn.10060a0c
ret