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

Disassembly:
push 0xffffffffffffffff
push 0x100f2478
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x10139d00]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10139d00]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov eax, dword [esp + 0x50]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
xor bl, bl
push eax
mov dword [esp + 0x38], ecx
mov byte [esp + 0x33], bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10016089
push 0xa00002
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
je 0x10016089
push 0
lea edx, [esp + 0x1c]
push edx
push 0xa00000
push ebp
push esi
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ebp
push 0
push 0
call ebx
mov esi, eax
lea eax, [esi + 1]
push eax
call fcn.100cf8cb
add esp, 4
push 0
push 0
push esi
mov edi, eax
push edi
push 0xffffffffffffffff
push ebp
push 0
push 0
call ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_StrStrIA]
push str.___BEGIN_GANDCRAB_KEY___
push edi
call ebx
test eax, eax
je 0x10016075
push str.___BEGIN_GANDCRAB_KEY___
push edi
call ebx
mov esi, eax
push str.___END_GANDCRAB_KEY___
add esi, 0x1a
push esi
call ebx
test eax, eax
je 0x10016075
push str.___END_GANDCRAB_KEY___
push esi
call ebx
push esi
lea ecx, [esp + 0x24]
mov byte [eax - 2], 0
call fcn.10002670
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x54], 0
call fcn.10002a30
lea ecx, [esp + 0x20]
mov bl, 1
call fcn.10002cc0
jmp 0x10016079
mov bl, byte [esp + 0x17]
push edi
call fcn.100d072d
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov al, bl
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.100d0738
add esp, 0x38
ret 4
Function at 0x10017780
Capabilities:
Check if file exists
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x10139d00]
xor eax, esp
mov dword [esp + 0x208], eax
xor eax, eax
push eax
push 0x1a
lea ecx, [esp + 8]
push ecx
push eax
mov dword [0x101e062c], eax
mov dword [0x101e0630], eax
mov dword [0x101e0634], eax
mov dword [0x101e0638], eax
mov byte [0x101e063c], al
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x100177e0
push edi
push str.000000000.key
mov eax, 0x208
lea edi, [esp + 8]
call fcn.100044f0
mov edx, edi
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop edi
mov ecx, dword [esp + 0x208]
xor ecx, esp
mov eax, 0x101e062c
call fcn.100d0738
add esp, 0x20c
ret
Function at 0x10017c60
Capabilities:
Copy file
Get file size
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x24
mov eax, dword [0x10139d00]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov ebx, ecx
xor ebp, ebp
push edi
mov esi, edx
cmp ebx, ebp
je 0x10017e09
cmp esi, ebp
je 0x10017e09
cmp byte [0x101e063c], 0
je 0x10017e09
push ebp
push 0x80
push 3
push ebp
push 1
push SysReAllocString
push ebx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x20], eax
cmp eax, 0xffffffff
je 0x10017e0b
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push str..desu
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov edi, dword [esp + 0x1c]
test eax, eax
jne 0x10017d03
cmp edi, ebp
mov ebp, dword [esp + 0x18]
jl 0x10017d1e
jg 0x10017cfa
cmp ebp, 0x30d48
jb 0x10017d1e
mov ebp, 0x30d48
xor edi, edi
jmp 0x10017d2d
cmp edi, ebp
mov ebp, dword [esp + 0x18]
jl 0x10017d1e
jg 0x10017d15
cmp ebp, 0x75308
jb 0x10017d1e
mov ebp, 0x75308
xor edi, edi
jmp 0x10017d2d
push 0
push 8
push edi
push ebp
call fcn.100d7510
sub ebp, eax
sbb edi, edx
push 0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0
push 0x80
push 3
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10017deb
xor eax, eax
cmp edi, eax
mov byte [esp + 0x24], 0
mov dword [esp + 0x25], eax
mov word [esp + 0x29], ax
mov byte [esp + 0x2b], al
mov dword [esp + 0x14], eax
jl 0x10017de4
jg 0x10017d7d
cmp ebp, eax
jbe 0x10017de4
mov ecx, dword [esp + 0x20]
push 0
lea edx, [esp + 0x18]
push edx
push 8
lea eax, [esp + 0x30]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10017de4
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x10017de4
cmp eax, 8
jne 0x10017de4
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x28]
mov esi, 0x101e062c
mov eax, 0x20
call fcn.10017e20
push 0
lea eax, [esp + 0x18]
push eax
push 8
lea ecx, [esp + 0x30]
push ecx
add ebp, 0xfffffff8
push ebx
adc edi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_WriteFile]
test edi, edi
jg 0x10017d7d
jl 0x10017de4
test ebp, ebp
ja 0x10017d7d
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.100d0738
add esp, 0x24
ret
xor eax, eax
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100d0738
add esp, 0x24
ret
Function at 0x10017e20
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
push ebx
push ebp
push edi
mov edi, eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 4]
mov eax, 0xc6ef3720
mov ebx, edx
shl ebx, 4
mov ebp, edx
shr ebp, 5
xor ebx, ebp
mov ebp, eax
shr ebp, 0xb
and ebp, 3
movzx ebp, byte [esi + ebp]
add ebp, eax
add ebx, edx
xor ebx, ebp
sub ecx, ebx
mov ebx, ecx
shl ebx, 4
mov ebp, ecx
shr ebp, 5
xor ebx, ebp
lea ebp, [eax - 1]
and ebp, 3
movzx ebp, byte [esi + ebp]
add ebx, ecx
lea ebp, [eax + ebp + 0x61c88647]
xor ebx, ebp
sub edx, ebx
add eax, 0x61c88647
sub edi, 1
jne 0x10017e31
mov eax, dword [esp + 0x10]
pop edi
pop ebp
mov dword [eax], edx
mov dword [eax + 4], ecx
pop ebx
ret 4

Function at 0x10017e90
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x34
mov eax, dword [0x10139d00]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
push ebx
push ebp
mov ebp, dword [esp + 0x44]
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x14], ebx
cmp byte [0x101e063c], bl
je 0x10017ed0
lea eax, [ebx + 1]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.100d0738
add esp, 0x34
ret 8
cmp eax, ebx
je 0x10017fff
cmp ebp, ebx
je 0x10017fff
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push eax
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x10017fe6
lea eax, [esp + 0x18]
push eax
push edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp dword [esp + 0x1c], ebx
jl 0x10017fdf
jg 0x10017f2f
cmp dword [esp + 0x18], 8
jb 0x10017fdf
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push ebp
call esi
mov esi, eax
cmp esi, 0xffffffff
je 0x10017fdf
lea ecx, [esp + 0x20]
push ecx
push esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov edx, dword [esp + 0x20]
cmp edx, dword [esp + 0x18]
jne 0x10017fd8
mov eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x1c]
jne 0x10017fd8
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea ecx, [esp + 0x18]
push ecx
xor eax, eax
push 8
lea edx, [esp + 0x38]
push edx
push esi
mov byte [esp + 0x48], bl
mov dword [esp + 0x49], eax
mov word [esp + 0x4d], ax
mov byte [esp + 0x4f], al
mov byte [esp + 0x40], bl
mov dword [esp + 0x41], eax
mov word [esp + 0x45], ax
mov byte [esp + 0x47], al
mov dword [esp + 0x28], ebx
call ebp
push ebx
lea eax, [esp + 0x18]
push eax
push 8
lea ecx, [esp + 0x40]
push ecx
push edi
call ebp
push 8
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.10018020
mov dword [esp + 0x14], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.100d0738
add esp, 0x34
ret 8
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.100d0738
add esp, 0x34
ret 8
Function at 0x10018020
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
sub esp, 0x14
mov eax, dword [0x101dd388]
push ebx
push ebp
push esi
push edi
xor edi, edi
push 0x19
push eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
call dword [0x101dd384]
mov dword [esp + 0x10], edi
jmp 0x10018050
mov ecx, dword [esp + 0x28]
push 8
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.100d0e10
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
add esp, 0xc
mov dword [esp + 0x1c], edi
mov esi, 0x20
mov eax, 0xc6ef3720
lea ebx, [ebx]
mov ebx, edx
shl ebx, 4
mov ebp, edx
shr ebp, 5
xor ebx, ebp
mov ebp, eax
shr ebp, 0xb
and ebp, 3
movzx ebp, byte [esp + ebp + 0x1c]
add ebp, eax
add ebx, edx
xor ebx, ebp
sub ecx, ebx
mov ebx, ecx
shl ebx, 4
mov ebp, ecx
shr ebp, 5
xor ebx, ebp
lea ebp, [eax - 1]
and ebp, 3
movzx ebp, byte [esp + ebp + 0x1c]
add ebx, ecx
lea ebp, [eax + ebp + 0x61c88647]
xor ebx, ebp
sub edx, ebx
add eax, 0x61c88647
sub esi, 1
jne 0x10018080
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
lea ecx, [esp + 0x14]
cmp eax, 4
jb 0x100180fc
mov edx, dword [esi]
cmp edx, dword [ecx]
jne 0x10018120
sub eax, 4
add ecx, 4
add esi, 4
cmp eax, 4
jae 0x100180e8
test eax, eax
je 0x1001815d
mov dl, byte [ecx]
cmp dl, byte [esi]
jne 0x10018120
cmp eax, 1
jbe 0x1001815d
mov dl, byte [ecx + 1]
cmp dl, byte [esi + 1]
jne 0x10018120
cmp eax, 2
jbe 0x1001815d
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
je 0x1001815d
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
cmp eax, 0x28f5c28
jne 0x10018147
mov ecx, dword [0x101dd388]
push 0x1a
push ecx
mov dword [esp + 0x18], 0
call dword [0x101dd384]
inc edi
cmp edi, 0xffffffff
jbe 0x10018050
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 0xc
push 0x10
lea edx, [esp + 0x20]
push edx
push 0x101e062c
call fcn.100d0e10
add esp, 0xc
pop edi
pop esi
pop ebp
mov byte [0x101e063c], 1
mov eax, 1
pop ebx
add esp, 0x14
ret 0xc
Function at 0x10018300
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x22a8
call fcn.100d4920
mov eax, dword [0x10139d00]
xor eax, esp
mov dword [esp + 0x22a0], eax
cmp byte [0x101e0690], 0
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
je 0x100183a5
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 5
mov ebx, eax
push str.Lock.
push ebx
call fcn.100d2d1d
add esp, 0xc
test eax, eax
jne 0x100183a5
lea eax, [ebx + 0xa]
test eax, eax
je 0x100183a5
push eax
push edi
push 0x101286dc
mov eax, 0x104
lea ebx, [esp + 0xac]
call fcn.1000ede0
push 0x1012266c
push esi
call fcn.100d080d
mov edi, eax
add esp, 0x14
test edi, edi
je 0x100183a5
push 2
push 0
push edi
call fcn.100d08ae
push edi
call fcn.100d1dcb
push 0
push 0
push edi
mov ebx, eax
call fcn.100d08ae
add esp, 0x1c
test bl, 7
je 0x100183bf
push edi
call fcn.100d11ec
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x22a0]
xor ecx, esp
call fcn.100d0738
add esp, 0x22a8
ret
lea eax, [esp + 0xa0]
push 0x101226b0
push eax
call fcn.100d080d
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x1001839c
mov ecx, dword [0x101e0680]
mov edx, dword [0x101e0684]
lea eax, [esp + 0x10]
mov dword [esp + 0x98], ecx
push eax
lea ecx, [esp + 0x9c]
push ecx
mov dword [esp + 0xa4], edx
call fcn.100724f0
xor eax, eax
push edi
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
call fcn.100d1e39
add esp, 0xc
test eax, eax
jne 0x100184b7
jmp 0x10018430
push edi
push 0x1000
lea edx, [esp + 0x12b0]
push 1
push edx
call fcn.100d0bd3
mov esi, eax
push 0
lea eax, [esp + 0xa4]
push eax
lea ecx, [esp + 0x28]
push ecx
push esi
lea edx, [esp + 0x2c8]
push edx
lea eax, [esp + 0x12cc]
push eax
call fcn.100732b0
push edi
call fcn.100d1e39
add esp, 0x2c
test eax, eax
je 0x1001848e
mov al, byte [esp + esi + 0x2a7]
cmp al, 8
movzx eax, al
jb 0x1001848c
mov eax, 8
sub esi, eax
push ebx
push esi
lea ecx, [esp + 0x2b0]
push 1
push ecx
call fcn.100d0d86
add esp, 0x10
cmp esi, eax
jne 0x100184e3
push edi
call fcn.100d1e39
add esp, 4
test eax, eax
je 0x10018430
push ebx
call fcn.100d11ec
push edi
call fcn.100d11ec
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x22a0]
xor ecx, esp
call fcn.100d0738
add esp, 0x22a8
ret
push ebx
call fcn.100d11ec
push edi
call fcn.100d11ec
mov ecx, dword [esp + 0x22b4]
add esp, 8
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.100d0738
add esp, 0x22a8
ret
Function at 0x10018d60
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
mov eax, dword [0x10139d00]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push esi
push edi
mov ebx, ecx
mov dword [esp + 0x10], 0
test edx, edx
je 0x10018de5
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10018d90
sub eax, esi
sar eax, 1
cmp eax, 5
jb 0x10018de5
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push edx
call esi
mov edi, eax
mov dword [esp + 0x18], edi
cmp edi, 0xffffffff
je 0x10018de5
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x14], eax
cmp eax, 0x104
jae 0x10018dfc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.100d0738
mov esp, ebp
pop ebp
ret
push 0
push 0x80
push 2
push 0
push 0
push 0x10000000
push ebx
call esi
mov esi, eax
mov dword [esp + 0x1c], esi
cmp esi, 0xffffffff
je 0x10018dde
call fcn.10018510
mov ebx, eax
test ebx, ebx
jne 0x10018e4a
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.100d0738
mov esp, ebp
pop ebp
ret
mov ecx, 0x40
mov esi, 0x101d30c4
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x14]
xor edi, edi
sub esi, 0x104
mov dword [esp + 0x14], esi
cmp dword [0x101d30b4], edi
jne 0x10018f28
mov eax, 0x1fff
mov dword [esp + 0x10], eax
cmp esi, eax
jae 0x10018e89
mov eax, esi
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x10]
cmp edi, 0xd012ff
jae 0x10018efd
lea ecx, [edi + eax]
cmp ecx, 0xd012ff
jb 0x10018ee2
mov esi, 0xd012ff
sub esi, edi
cmp esi, eax
jbe 0x10018ec1
mov esi, eax
test esi, esi
je 0x10018eda
push ebx
lea edx, [esp + 0x24]
push esi
push edx
mov eax, ebx
call fcn.10019600
mov eax, dword [esp + 0x1c]
add esp, 0xc
add edi, esi
mov esi, dword [esp + 0x14]
jmp 0x10018efd
test eax, eax
je 0x10018efb
push ebx
push eax
lea eax, [esp + 0x28]
push eax
mov eax, ebx
call fcn.10019600
mov eax, dword [esp + 0x1c]
add esp, 0xc
add edi, eax
mov edx, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esi, dword [esp + 0x10]
mov dword [esp + 0x14], esi
je 0x10018f28
cmp dword [0x101d30b4], 0
je 0x10018e76
mov eax, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x1c]
push ecx
call esi
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.100d0738
mov esp, ebp
pop ebp
ret
Function at 0x100194c0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
sub esp, 0x104
mov eax, dword [0x10139d00]
xor eax, esp
mov dword [esp + 0x100], eax
push ebx
push ebp
mov ebp, dword [esp + 0x110]
push esi
push edi
push 0xff
xor edi, edi
lea eax, [esp + 0x15]
push edi
push eax
mov esi, ecx
mov bl, 1
mov byte [esp + 0x1c], 0
call fcn.100d4cc0
add esp, 0xc
lea ecx, [ecx]
imul esi, esi, 0x8088405
inc esi
mov eax, esi
xor edx, edx
xor esi, esi
lea ecx, [eax + eax]
add ecx, eax
adc edx, esi
xor ecx, ecx
or ecx, edx
je 0x1001951f
lea edx, [esi + 1]
jmp 0x10019521
xor edx, edx
mov ecx, eax
imul eax, eax, 0x8088405
shr ecx, 0x1f
add cl, dl
inc eax
mov edx, 0x2c
mov esi, eax
mul edx
test edx, edx
jne 0x10019541
mov edx, 1
test cl, cl
je 0x10019555
cmp cl, 2
je 0x10019555
mov al, byte [edx + str._qwertyuiop__asdfghjkl_zxcvbnm_.__1234567890_]
mov byte [edi + ebp], al
jmp 0x1001955e
mov cl, byte [edx + str._QWERTYUIOPASDFGHJKLZXCVBNM__:_________]
mov byte [edi + ebp], cl
inc edi
cmp edi, 0x40
jl 0x10019500
lea edi, [ebp + 0x40]
mov ecx, 0x10
mov esi, ebp
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp + 0x80]
mov ecx, 0x10
mov esi, ebp
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp + 0xc0]
mov ecx, 0x10
mov esi, ebp
rep movsd dword es:[edi], dword [esi]
xor eax, eax
mov byte [esp + eax + 0x10], al
inc eax
cmp eax, 0x100
jl 0x10019590
xor edi, edi
xor eax, eax
movzx edx, byte [eax + ebp]
movzx ecx, byte [esp + edi + 0x10]
add dl, cl
add bl, dl
movzx esi, bl
movzx edx, byte [esp + esi + 0x10]
lea esi, [esp + esi + 0x10]
inc eax
cmp eax, 0x40
mov byte [esp + edi + 0x10], dl
jl 0x100195c5
xor eax, eax
inc edi
cmp edi, 0x100
mov byte [esi], cl
jl 0x100195a0
mov edi, ebp
mov ecx, 0x40
lea esi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x110]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.100d0738
add esp, 0x104
ret

Function at 0x10019600
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
xor esi, esi
xor bl, bl
sub eax, dword [esp + 0x18]
push edi
mov dword [esp + 0x14], eax
inc esi
mov eax, esi
and eax, 0xff
mov cl, byte [eax + ebp]
add eax, ebp
add bl, cl
movzx edx, bl
lea edi, [edx + ebp]
mov dl, byte [edi]
mov byte [eax], dl
mov edx, dword [esp + 0x1c]
mov byte [edi], cl
movzx eax, byte [eax]
add al, cl
movzx ecx, al
movzx eax, byte [ecx + ebp]
mov ecx, dword [esp + 0x14]
lea edx, [edx + esi - 1]
xor al, byte [ecx + edx]
mov byte [edx], al
mov eax, dword [esp + 0x18]
mov edx, eax
dec eax
mov dword [esp + 0x18], eax
cmp edx, 1
jne 0x10019614
pop edi
pop esi
pop ebp
mov eax, edx
pop ebx
ret
Function at 0x10019670
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
xor eax, eax
push str.GetNativeSystemInfo
push 0x1012a18c
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100196c6
lea ecx, [esp]
push ecx
call eax
mov eax, dword [esp + 0x14]
add esp, 0x24
ret
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x100196e0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 8
push esi
push edi
xor edi, edi
mov esi, eax
mov dword [esp + 0xc], edi
mov dword [esp + 8], edi
cmp esi, edi
jne 0x100196fe
pop edi
or eax, 0xffffffff
pop esi
add esp, 8
ret
push 0x2e
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
cmp eax, edi
je 0x100196f5
add eax, 2
push 0x1012a1a8
push eax
call fcn.100d2c8a
add esp, 8
test eax, eax
jne 0x100196f5
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x100196f5
push ebx
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
cmp edi, 0x118
jbe 0x100197a5
push 2
push 0
push 0xfffffee8
push esi
call ebx
push 0
lea eax, [esp + 0x18]
push eax
push 4
lea ecx, [esp + 0x1c]
push ecx
push esi
call ebp
test eax, eax
je 0x100197a5
cmp dword [esp + 0x10], 0x3e8
jne 0x100197a5
push esi
mov dword [0x101d30b0], 0xf
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 8
ret
cmp edi, 0x104
jbe 0x100197f3
push 2
push 0
push 0xfffffefc
push esi
call ebx
push 0
lea edx, [esp + 0x18]
push edx
push 4
lea eax, [esp + 0x1c]
push eax
push esi
call ebp
test eax, eax
je 0x100197f3
cmp dword [esp + 0x10], 0x3e8
jne 0x100197f3
push esi
mov dword [0x101d30b0], 0xe
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 8
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop ebx
pop edi
or eax, 0xffffffff
pop esi
add esp, 8
ret
Function at 0x100198c0
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
je 0x10019934
cmp edi, ebx
je 0x10019934
push ebx
push 0x80
push 3
push ebx
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1001992c
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push eax
push ebx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x10019925
mov ecx, dword [esp + 0x1c]
push ebx
lea eax, [esp + 0xc]
push eax
push ecx
push edi
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10019925
mov ebx, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop esi
pop ebx
pop ecx
ret 0x10
pop esi
xor eax, eax
pop ebx
pop ecx
ret 0x10
Function at 0x1001a980
Capabilities:
Get file size

Disassembly:
sub esp, 0x10
push esi
mov esi, eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 5
jle 0x1001aa00
push str..sad
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1001aa00
push eax
push 0x80
push 3
push eax
push 1
push SysReAllocString
push esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1001a9e9
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0xc], 0
jl 0x1001aa00
jg 0x1001a9f9
cmp dword [esp + 8], 0
jbe 0x1001aa00
mov al, 1
pop esi
add esp, 0x10
ret
xor al, al
pop esi
add esp, 0x10
ret