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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x778
push ebx
push esi
xor ebx, ebx
push edi
push ebx
call fcn.100680fb
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
pop ecx
push ebx
push ebx
push ebx
push dword [ebp + 8]
call esi
mov ecx, 0xf7
xor eax, eax
lea edi, [ebp - 0x777]
mov byte [ebp - 0x778], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x778]
push 0x3e0
push eax
push dword [ebp + 8]
call fcn.1006bccb
add esp, 0xc
test eax, eax
jne 0x10071e24
push 0x3f6e
push 0xf
jmp 0x10071f2d
lea eax, [ebp - 0x778]
push eax
call fcn.1006bd8c
cmp eax, ebx
pop ecx
jne 0x10071e65
push ebx
push ebx
lea eax, [ebp - 0x778]
push ebx
push eax
call fcn.1006b0e7
add esp, 0x10
cmp eax, 4
je 0x10071e5d
cmp eax, 3
je 0x10071e5d
push 0x3f7b
push 0x22
jmp 0x10071f2d
push 1
pop eax
jmp 0x10071fc4
cmp eax, 3
je 0x10071e76
push 0x3f82
push 0x1f
jmp 0x10071f2d
mov ecx, 0xe1
xor eax, eax
lea edi, [ebp - 0x397]
mov byte [ebp - 0x398], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x398]
push eax
lea eax, [ebp - 0x778]
push eax
call fcn.1006b7ad
pop ecx
test eax, eax
pop ecx
jne 0x10071eb0
push 0x3f8b
push 0x14
jmp 0x10071f2d
cmp dword [ebp + 0xc], ebx
je 0x10071ed7
push 0x388
lea eax, [ebp - 0x398]
push dword [ebp + 0xc]
push eax
call fcn.1007e2a0
add esp, 0xc
test eax, eax
je 0x10071ed7
push 0x3f94
jmp 0x10071eac
push ebx
push ebx
push dword [ebp - 0x360]
push dword [ebp + 8]
call esi
cmp dword [ebp - 0x35c], ebx
push 1
pop eax
mov dword [ebp - 0xc], ebx
mov dword [ebp + 0xc], eax
jne 0x10071efd
mov dword [ebp + 0xc], eax
jmp 0x10071fc1
mov ecx, dword [ebp - 0x358]
cmp dword [ebp - 0x35c], eax
mov dword [ebp - 8], ecx
jne 0x10071f17
mov eax, dword [ebp - 0x354]
mov dword [ebp - 8], eax
push dword [ebp - 8]
call fcn.1007e238
mov edi, eax
pop ecx
cmp edi, ebx
jne 0x10071f3b
push 0x3fae
push 0x21
call fcn.100680dd
pop ecx
xor eax, eax
pop ecx
jmp 0x10071fc4
mov dword [ebp - 4], ebx
inc dword [ebp - 4]
mov esi, dword [ebp - 0x358]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x35c]
jne 0x10071f5f
mov esi, dword [ebp - 0x354]
mov dword [ebp - 0xc], 1
push dword [ebp - 8]
push ebx
push edi
call fcn.1007e1e0
add esp, 0xc
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push ebx
push eax
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10071fa0
push dword [edi]
add esi, 0xfffffffc
lea eax, [edi + 4]
push esi
push eax
call fcn.10074c8c
add esp, 0xc
test eax, eax
je 0x10071fa9
cmp dword [ebp - 0xc], ebx
je 0x10071f3e
jmp 0x10071fba
push 0x3fc5
push 0xd
jmp 0x10071fb0
push 0x3fcd
push 0x1c
call fcn.100680dd
pop ecx
mov dword [ebp + 0xc], ebx
pop ecx
push edi
call fcn.1007de95
pop ecx
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10072272
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
xor ebx, ebx
cmp dword [0x101af604], ebx
push esi
push edi
je 0x100723d5
cmp dword [ebp + 8], ebx
je 0x100723d5
mov esi, 0x101af608
push esi
call fcn.1007e283
test eax, eax
pop ecx
je 0x100723d5
xor eax, eax
lea edi, [ebp - 0x16]
mov word [ebp - 0x18], bx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x7f
xor eax, eax
pop ecx
lea edi, [ebp - 0x216]
mov word [ebp - 0x218], bx
push dword [0x101af600]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
movzx eax, word [ebp - 0xc]
push eax
movzx eax, word [ebp - 0xe]
push eax
movzx eax, word [ebp - 0x10]
push eax
movzx eax, word [ebp - 0x12]
push eax
movzx eax, word [ebp - 0x16]
push eax
movzx eax, word [ebp - 0x18]
push eax
lea eax, [ebp - 0x218]
push str.__04d__02d__02d__02d:_02d:_02d____d_
push eax
call fcn.1007e637
add esp, 0x24
push ebx
push 0x80
push 4
push ebx
push ebx
push 0x10000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x100723d5
push 2
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebx
mov dword [ebp - 4], ebx
jne 0x1007235d
lea eax, [ebp - 4]
push ebx
push eax
lea eax, [ebp - 8]
push 2
push eax
push edi
mov dword [ebp - 8], 0xfeff
call esi
lea eax, [ebp - 4]
push ebx
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.1007e283
pop ecx
shl eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
push edi
call esi
push dword [ebp + 8]
call fcn.1007e283
cmp eax, ebx
pop ecx
mov dword [ebp - 8], eax
je 0x100723c9
lea eax, [ebp - 4]
push ebx
push eax
push dword [ebp + 8]
call fcn.1007e283
pop ecx
shl eax, 1
push eax
push dword [ebp + 8]
push edi
call esi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
cmp word [eax + ecx*2 - 2], 0xa
je 0x100723c9
push ebx
lea eax, [ebp - 4]
mov ebx, 0x1018b350
push eax
push ebx
call fcn.1007e283
pop ecx
shl eax, 1
push eax
push ebx
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
jmp 0x100723d7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10072415
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
xor edx, edx
cmp dword [ebp + 0xc], edx
je 0x1007247b
cmp dword [ebp + 0x10], edx
je 0x1007247b
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
mov word [ebp - 0x208], dx
push edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x208]
push 0x23
push eax
push edx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
pop edi
je 0x1007247b
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
push str._sIpgV3FatalError__d.log
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.1007e75e
add esp, 0x14
push 1
pop eax
leave
ret
xor eax, eax
leave
ret
Function at 0x100725be
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x46c
and word [ebp - 0x264], 0
push esi
push edi
mov ecx, 0x95
xor eax, eax
lea edi, [ebp - 0x262]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x264]
push 0x12c
push eax
push dword [ebp + 8]
call fcn.100724c1
add esp, 0xc
test eax, eax
je 0x100727c1
mov esi, 0x10160ac4
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor eax, eax
lea edi, [ebp - 6]
stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp word [ebp - 0xc], 0x5a
ja 0x100726aa
and word [ebp - 0x46c], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x46a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x46c]
push 0x104
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
lea eax, [ebp - 0x46c]
push eax
call fcn.1007e283
mov esi, eax
pop ecx
test esi, esi
jbe 0x1007267c
lea eax, [ebp - 0x46c]
push esi
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.1007f884
add esp, 0xc
test eax, eax
je 0x10072682
inc word [ebp - 0xc]
jmp 0x10072614
lea eax, [ebp + esi*2 - 0x264]
test eax, eax
je 0x100726aa
push eax
lea eax, [ebp - 0xc]
push eax
push 0x10160ab8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.1007e75e
add esp, 0x14
jmp 0x100727be
push 8
lea eax, [ebp - 0x264]
push 0x101764a4
push eax
call fcn.1007f884
add esp, 0xc
test eax, eax
jne 0x100726e3
lea eax, [ebp - 0x254]
push eax
push 0x10176498
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.1007e75e
add esp, 0x10
jmp 0x100727be
push 0x19
lea eax, [ebp - 0x264]
push str.DeviceLanmanRedirector_
push eax
call fcn.1007f884
add esp, 0xc
test eax, eax
jne 0x10072705
lea eax, [ebp - 0x232]
jmp 0x100726ca
push 0xc
lea eax, [ebp - 0x264]
push str.DeviceMup_
push eax
call fcn.1007f884
add esp, 0xc
test eax, eax
jne 0x10072727
lea eax, [ebp - 0x24c]
jmp 0x100726ca
lea eax, [ebp - 0x264]
push eax
call fcn.1007e283
cmp eax, 0x18
pop ecx
jbe 0x1007276c
push 0x17
lea eax, [ebp - 0x264]
push str.DeviceTSafeDiskVolume
push eax
call fcn.1007f884
add esp, 0xc
test eax, eax
jne 0x1007276c
lea eax, [ebp - 0x234]
push eax
movzx eax, word [ebp - 0x236]
push eax
push str._TSD_VOLUME__c:_s
jmp 0x10072697
lea eax, [ebp - 0x264]
push eax
call fcn.1007e283
cmp eax, 0xf
pop ecx
jbe 0x100727a9
push 0xf
lea eax, [ebp - 0x264]
push str.__TSD_VOLUME_
push eax
call fcn.1007f884
add esp, 0xc
test eax, eax
jne 0x100727a9
lea eax, [ebp - 0x246]
push eax
push str._TSD_VOLUME__s
jmp 0x100726d0
push dword [ebp + 0x10]
lea eax, [ebp - 0x264]
push dword [ebp + 0xc]
push eax
call fcn.10073fcd
add esp, 0xc
push 1
pop eax
pop edi
pop esi
leave
ret
Function at 0x10073394
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x10073444
mov esi, dword [ebp + 0xc]
cmp esi, edi
je 0x10073444
push dword [ebp + 8]
call fcn.10073984
test eax, eax
pop ecx
jne 0x10073444
push edi
push 0x20
push 7
push 0x100080
push dword [ebp + 8]
call fcn.100730a1
mov ebx, eax
add esp, 0x14
cmp ebx, 0xffffffff
je 0x10073444
push 9
mov dword [ebp - 0x28], edi
pop ecx
xor eax, eax
lea edi, [ebp - 0x24]
push 0x28
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x28]
push eax
push ebx
call fcn.10073251
mov edi, eax
add esp, 0xc
test edi, edi
je 0x10073439
mov eax, dword [ebp - 8]
mov dword [esi], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x28]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x14], eax
lea eax, [esi + 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x20], eax
push ebx
call dword [0x101aebd0]
mov eax, edi
jmp 0x10073446
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10073be5
Capabilities:
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x10073bf9
push esi
call fcn.10073984
test eax, eax
pop ecx
je 0x10073bfe
or eax, 0xffffffff
pop esi
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop esi
ret

Function at 0x10073c6b
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push esi
lea esi, [ecx + eax*4]
test esi, esi
jne 0x10073c80
xor eax, eax
jmp 0x10073cbe
mov eax, dword [esi]
push ebx
test eax, eax
mov dword [ebp + 8], eax
je 0x10073cb6
mov ebx, dword [ebp + 0x10]
cmp eax, ebx
je 0x10073cb6
and dword [ebp + 0xc], 0
lea eax, [ebp + 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push eax
push 0x40
push 4
push esi
call edi
push 0
mov dword [esi], ebx
push dword [ebp + 0xc]
push 4
push esi
call edi
pop edi
jmp 0x10073cba
and dword [ebp + 8], 0
mov eax, dword [ebp + 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x10073fcd
Capabilities:
Get disk information

Disassembly:
mov eax, 0x10139170
call fcn.1007db34
sub esp, 0x21c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x1019f4bc
lea ecx, [ebp + 8]
mov ebx, esi
call fcn.10094520
and dword [ebp - 4], 0
push 0xe
push 0x10160ae8
push esi
call fcn.1007f884
add esp, 0xc
test eax, eax
je 0x10074073
push 0xe
push 0x10160b08
push esi
call fcn.1007f884
add esp, 0xc
test eax, eax
je 0x10074073
push 0xe
push 0x10160b28
push esi
call fcn.1007f884
add esp, 0xc
test eax, eax
je 0x10074073
push 4
push 0x10160acc
push esi
call fcn.1007e952
add esp, 0xc
test eax, eax
je 0x1007406e
push 4
push 0x10160a78
push esi
call fcn.1007e952
add esp, 0xc
test eax, eax
je 0x1007406e
push 4
push 0x10160a84
push esi
call fcn.1007e952
add esp, 0xc
test eax, eax
jne 0x1007408b
lea ebx, [esi + 8]
jmp 0x1007408b
add esi, 8
lea eax, [ebp + 8]
push esi
push 0x10160ad8
push eax
call fcn.10097c40
mov ebx, dword [ebp + 8]
add esp, 0xc
push ebx
call fcn.1007e283
cmp eax, 4
pop ecx
jb 0x10074140
cmp word [ebx + 2], 0x3a
jne 0x10074140
cmp word [ebx + 4], 0x5c
lea eax, [ebx + 4]
mov dword [ebp - 0x10], eax
jne 0x10074140
mov esi, 0x10160ac4
lea edi, [ebp - 0x20]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor eax, eax
lea edi, [ebp - 0x1a]
stosd dword es:[edi], eax
stosw word es:[edi], ax
movzx eax, word [ebx]
push eax
call fcn.1007e7d6
mov word [ebp - 0x20], ax
pop ecx
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
jne 0x10074140
and word [ebp - 0x228], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x226]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x104
push eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x20]
push eax
call sub.MPR.dll_WNetGetConnectionW
test eax, eax
jne 0x10074140
push dword [ebp - 0x10]
lea eax, [ebp - 0x228]
push eax
mov eax, dword [ebp + 0x10]
dec eax
push 0x10160ab8
push eax
push dword [ebp + 0xc]
call fcn.1007e75e
add esp, 0x14
jmp 0x10074151
mov eax, dword [ebp + 0x10]
dec eax
push eax
push ebx
push dword [ebp + 0xc]
call fcn.1007e246
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10094cc0
mov ecx, dword [ebp - 0xc]
push 1
pop eax
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x1007416f
Capabilities:
Get disk information

Disassembly:
mov eax, 0x10139184
call fcn.1007db34
sub esp, 0x114
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x1019f4bc
lea ecx, [ebp + 8]
mov ebx, esi
call fcn.1008f1e0
and dword [ebp - 4], 0
push 0xe
push str..TSD_VOLUME
push esi
call fcn.1008d570
add esp, 0xc
test eax, eax
je 0x10074215
push 0xe
push str.__TSD_VOLUME
push esi
call fcn.1008d570
add esp, 0xc
test eax, eax
je 0x10074215
push 0xe
push str._TSD_VOLUME
push esi
call fcn.1008d570
add esp, 0xc
test eax, eax
je 0x10074215
push 4
push 0x1018b6e0
push esi
call fcn.1007f4d0
add esp, 0xc
test eax, eax
je 0x10074210
push 4
push 0x101786a8
push esi
call fcn.1007f4d0
add esp, 0xc
test eax, eax
je 0x10074210
push 4
push str.._
push esi
call fcn.1007f4d0
add esp, 0xc
test eax, eax
jne 0x1007422d
lea ebx, [esi + 4]
jmp 0x1007422d
add esi, 4
lea eax, [ebp + 8]
push esi
push str.__s
push eax
call fcn.10092740
mov ebx, dword [ebp + 8]
add esp, 0xc
push ebx
call fcn.1007e450
cmp eax, 4
pop ecx
jb 0x100742dd
cmp byte [ebx + 1], 0x3a
jne 0x100742dd
cmp byte [ebx + 2], 0x5c
lea eax, [ebx + 2]
mov dword [ebp - 0x18], eax
jne 0x100742dd
mov esi, 0x1018b6d4
lea edi, [ebp - 0x14]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
xor eax, eax
lea edi, [ebp - 0x11]
stosw word es:[edi], ax
stosb byte es:[edi], al
movsx eax, byte [ebx]
push eax
call fcn.1007e7d6
mov byte [ebp - 0x14], al
pop ecx
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 4
jne 0x100742dd
and byte [ebp - 0x120], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x11f]
mov dword [ebp - 0x1c], 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x14]
push eax
call sub.MPR.dll_WNetGetConnectionA
test eax, eax
jne 0x100742dd
push dword [ebp - 0x18]
lea eax, [ebp - 0x120]
push eax
mov eax, dword [ebp + 0x10]
dec eax
push str._s_s
push eax
push dword [ebp + 0xc]
call fcn.1007fbc1
add esp, 0x14
jmp 0x100742ee
mov eax, dword [ebp + 0x10]
dec eax
push eax
push ebx
push dword [ebp + 0xc]
call fcn.1007e350
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.1008f940
mov ecx, dword [ebp - 0xc]
push 1
pop eax
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x10074ea7
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x10074f67
cmp dword [ebp + 0xc], 0
je 0x10074f67
push esi
push edi
mov esi, 0x10160ac4
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor eax, eax
lea edi, [ebp - 0xa]
stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp word [ebp - 0x10], 0x5a
ja 0x10074f65
and word [ebp - 0x218], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x216]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x218]
push 0x104
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
lea eax, [ebp - 0x218]
push eax
call fcn.1007e283
mov esi, eax
pop ecx
test esi, esi
jbe 0x10074f3d
lea eax, [ebp - 0x218]
push esi
push eax
push ebx
call fcn.1007f884
add esp, 0xc
test eax, eax
je 0x10074f43
inc word [ebp - 0x10]
jmp 0x10074edf
lea eax, [ebx + esi*2]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x10160ab8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.1007e75e
add esp, 0x14
mov dword [ebp - 4], 1
pop edi
pop esi
mov eax, dword [ebp - 4]
pop ebx
leave
ret

Function at 0x10075002
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov eax, esi
push 8
cdq
pop edi
mov ebx, dword [ebp + 0xc]
idiv edi
test ebx, ebx
mov dword [ebp - 4], ecx
mov edi, eax
je 0x1007505e
test edi, edi
jl 0x1007505e
jle 0x1007503b
push 0
push dword [ebp + 8]
call fcn.100751fd
mov ecx, dword [ebp - 4]
push edi
push ebx
push ebx
call fcn.1007519b
mov eax, edi
shl eax, 3
sub esi, eax
test esi, esi
lea ecx, [eax + ebx]
jle 0x10075059
mov edx, dword [ebp + 8]
mov eax, ecx
sub edx, ecx
mov cl, byte [edx + eax]
xor byte [eax], cl
inc eax
dec esi
jne 0x10075050
push 1
pop eax
jmp 0x10075060
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x10075067
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov eax, esi
push 8
cdq
pop edi
mov ebx, dword [ebp + 0xc]
idiv edi
test ebx, ebx
mov dword [ebp - 4], ecx
mov edi, eax
je 0x100750c3
test edi, edi
jl 0x100750c3
jle 0x100750a0
push 1
push dword [ebp + 8]
call fcn.100751fd
mov ecx, dword [ebp - 4]
push edi
push ebx
push ebx
call fcn.1007519b
mov eax, edi
shl eax, 3
sub esi, eax
test esi, esi
lea ecx, [eax + ebx]
jle 0x100750be
mov edx, dword [ebp + 8]
mov eax, ecx
sub edx, ecx
mov cl, byte [edx + eax]
xor byte [eax], cl
inc eax
dec esi
jne 0x100750b5
push 1
pop eax
jmp 0x100750c5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x100751fd
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
xor edx, edx
movzx eax, byte [edx + str.80_]
mov esi, dword [ebp + 8]
mov ecx, eax
sar ecx, 3
and eax, 7
mov cl, byte [ecx + esi]
test byte [eax*2 + 0x101409ec], cl
setne al
mov byte [ebp + edx - 0x78], al
inc edx
cmp edx, 0x38
jl 0x1007520e
and dword [ebp + 8], 0
mov dword [ebp - 4], 0x1e
cmp dword [ebp + 0xc], 1
jne 0x1007524d
mov eax, dword [ebp - 4]
jmp 0x10075252
mov eax, dword [ebp + 8]
add eax, eax
and dword [ebp + eax*4 - 0xf4], 0
and dword [ebp + eax*4 - 0xf8], 0
lea edx, [ebp + eax*4 - 0xf4]
lea esi, [ebp + eax*4 - 0xf8]
mov eax, dword [ebp + 8]
xor ecx, ecx
movzx eax, byte [eax + 0x10140a94]
mov edi, eax
cmp edi, 0x1c
jge 0x10075289
mov bl, byte [ebp + edi - 0x78]
jmp 0x10075290
mov bl, byte [ebp + edi - 0x94]
mov byte [ebp + ecx - 0x40], bl
inc ecx
inc edi
cmp ecx, 0x1c
jl 0x1007527e
push 0x1c
pop edi
add eax, edi
cmp eax, 0x38
jge 0x100752ab
mov cl, byte [ebp + eax - 0x78]
jmp 0x100752b2
mov cl, byte [ebp + eax - 0x94]
mov byte [ebp + edi - 0x40], cl
inc edi
inc eax
cmp edi, 0x38
jl 0x100752a0
xor edi, edi
mov ecx, 0x101409fc
movzx ebx, byte [edi + 0x10140aa4]
lea eax, [edi + 0x10140abc]
cmp byte [ebp + ebx - 0x40], 0
je 0x100752dc
mov ebx, dword [ecx]
or dword [esi], ebx
movzx eax, byte [eax]
cmp byte [ebp + eax - 0x40], 0
je 0x100752ea
mov eax, dword [ecx]
or dword [edx], eax
add ecx, 4
inc edi
cmp ecx, str.80_
jl 0x100752c4
sub dword [ebp - 4], 2
inc dword [ebp + 8]
cmp dword [ebp - 4], 0xfffffffe
jg 0x10075242
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0xf8]
push eax
call fcn.1007531d
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1007c06a
Capabilities:
Create directory
Get file attributes

Disassembly:
mov eax, 0x10139a80
call fcn.1007db34
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x1007c165
push ebx
call fcn.1007e283
test eax, eax
pop ecx
je 0x1007c165
push ebx
lea ecx, [ebp + 8]
call fcn.10094520
and dword [ebp - 4], 0
push 3
push 0x5c
lea ecx, [ebp + 8]
call fcn.10095e00
mov edi, 0x10160a78
push 4
push edi
push ebx
mov esi, eax
call fcn.1007f884
add esp, 0xc
test eax, eax
jne 0x1007c0d8
push edi
call fcn.1007e283
pop ecx
push eax
push 0x5c
lea ecx, [ebp + 8]
call fcn.10095e00
inc eax
push eax
jmp 0x1007c0ee
push 2
push 0x10160a70
push ebx
call fcn.1007f884
add esp, 0xc
test eax, eax
jne 0x1007c0fa
inc esi
push esi
push 0x5c
lea ecx, [ebp + 8]
call fcn.10095e00
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
je 0x1007c176
lea eax, [ebp - 0x10]
push esi
push eax
lea ecx, [ebp + 8]
call fcn.10097400
push dword [ebp - 0x10]
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, edi
jne 0x1007c12e
push 0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jmp 0x1007c130
test al, 0x10
je 0x1007c14e
inc esi
lea ecx, [ebp + 8]
push esi
push 0x5c
call fcn.10095e00
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.10094cc0
jmp 0x1007c0fd
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.10094cc0
lea ecx, [ebp + 8]
mov dword [ebp - 4], edi
call fcn.10094cc0
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
lea ecx, [ebp + 8]
mov dword [ebp - 4], edi
call fcn.10094cc0
push 1
pop eax
jmp 0x1007c167

Function at 0x10093390
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
mov esi, eax
shr eax, 4
and esi, 0xf
inc eax
push edi
mov edi, dword [esp + 0xc]
and eax, 0xffff
push ecx
push eax
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x100933de
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100933de
xor edx, edx
xor ecx, ecx
mov cx, word [eax]
add eax, 2
cmp esi, edx
je 0x100933e3
inc edx
lea eax, [eax + ecx*2]
cmp edx, 0x10
jl 0x100933c9
pop edi
xor eax, eax
pop esi
ret
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
test edi, edi
jne 0x100933f3
test esi, esi
jne 0x10093411
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jle 0x1009340f
mov byte [eax + esi - 1], 0
jne 0x10093418
mov byte [esi + edi - 1], 0
mov eax, edi
pop edi
dec eax
pop esi
ret