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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x220], 0
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x234], eax
mov eax, dword [ebp + 0x14]
push esi
push edi
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x21c]
push eax
push ebx
mov dword [ebp - 0x238], edi
call fcn.0100e22f
mov dword [ebp - 0x22c], eax
lea eax, [ebp - 0x21c]
push eax
push ebx
call fcn.0100e243
mov esi, 0x800
push esi
mov dword [ebp - 0x230], eax
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
mov dword [ebp - 0x224], eax
test eax, eax
jne 0x100fe09
push dword [ebp - 0x234]
push dword [ebp - 0x230]
push dword [ebp - 0x22c]
push 0x100a5e8
push 0x100ff98
push edi
call fcn.01006f95
add esp, 0x18
xor eax, eax
jmp 0x100fece
push edi
push dword [ebp - 0x228]
push ebx
call fcn.0100e2ad
test eax, eax
je 0x100ff27
push edi
push ebx
call fcn.0100e21c
mov dword [ebp - 0x220], eax
test eax, eax
je 0x100ff27
push eax
call dword [sym.imp.msvcrt.dll_feof]
pop ecx
test eax, eax
jne 0x100feb7
mov edi, dword [sym.imp.msvcrt.dll_ferror]
push dword [ebp - 0x220]
push esi
push 1
push dword [ebp - 0x224]
call dword [sym.imp.msvcrt.dll_fread]
push dword [ebp - 0x220]
mov dword [ebp - 0x228], eax
call edi
add esp, 0x14
test eax, eax
jne 0x100fedf
cmp dword [ebp - 0x228], eax
jle 0x100fea0
push dword [ebp - 0x23c]
push dword [ebp - 0x228]
push 1
push dword [ebp - 0x224]
call dword [sym.imp.msvcrt.dll_fwrite]
push dword [ebp - 0x23c]
call edi
add esp, 0x14
test eax, eax
jne 0x100fefd
push dword [ebp - 0x220]
call dword [sym.imp.msvcrt.dll_feof]
pop ecx
test eax, eax
je 0x100fe45
mov edi, dword [ebp - 0x238]
push edi
push ebx
call fcn.0100e257
push dword [ebp - 0x224]
call dword [sym.imp.msvcrt.dll_free]
xor eax, eax
pop ecx
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010026ce
leave
ret 0x14
push dword [ebp - 0x234]
push dword [ebp - 0x230]
push dword [ebp - 0x22c]
push 0x100a5e8
push 0x100ff78
jmp 0x100ff19
push dword [ebp - 0x234]
push dword [ebp - 0x230]
push dword [ebp - 0x22c]
push 0x100a5e8
push 0x100ff54
push dword [ebp - 0x238]
call fcn.01006f95
add esp, 0x18
push dword [ebp - 0x224]
call dword [sym.imp.msvcrt.dll_free]
cmp dword [ebp - 0x220], 0
pop ecx
je 0x100fe02
push dword [ebp - 0x220]
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
jmp 0x100fe02
Function at 0x1011808
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
mov eax, 0x400
sub esp, 0xc
cmp dword [ebp + 0x10], eax
jg 0x101181f
mov edx, eax
mov ecx, 0x4000
cmp edx, ecx
jge 0x1011832
cmp dword [ebp + 0x10], eax
jg 0x1011835
mov dword [ebp + 0x10], eax
jmp 0x1011835
mov dword [ebp + 0x10], ecx
mov eax, dword [ebp + 0xc]
push edi
xor edi, edi
sub eax, edi
je 0x1011870
dec eax
je 0x1011864
push dword [ebp + 8]
push dword [ebp + 0xc]
push 0x100a554
push 0x1011a24
push dword [ebp + 0x14]
call fcn.01006f95
add esp, 0x14
xor eax, eax
jmp 0x10119a6
mov eax, 0x8102
mov ecx, 0x180
jmp 0x1011877
mov eax, 0x8000
xor ecx, ecx
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll__open]
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x10118a7
push dword [ebp + 8]
push 0x1004fb0
push 0x1011a0c
push dword [ebp + 0x14]
call fcn.01006f95
add esp, 0x10
jmp 0x101185d
push ebx
mov ebx, dword [sym.imp.msvcrt.dll_malloc]
push esi
push 0x428
call ebx
mov esi, eax
pop ecx
cmp esi, edi
jne 0x10118da
push dword [ebp + 8]
push 0x1004fb0
push 0x10119ec
push dword [ebp + 0x14]
call fcn.01006f95
add esp, 0x10
jmp 0x10119e7
push dword [ebp + 0x10]
call ebx
mov ebx, eax
pop ecx
mov dword [esi + 0xc], ebx
cmp ebx, edi
jne 0x101190d
push esi
call dword [sym.imp.msvcrt.dll_free]
push dword [ebp + 8]
push 0x1004fb0
push 0x10119ec
push dword [ebp + 0x14]
call fcn.01006f95
add esp, 0x14
jmp 0x10119e7
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll__strdup]
pop ecx
mov dword [ebp - 0xc], eax
mov dword [esi], eax
cmp eax, edi
jne 0x1011949
push ebx
mov ebx, dword [sym.imp.msvcrt.dll_free]
call ebx
push esi
call ebx
push dword [ebp + 8]
push 0x1004fb0
push 0x10119ec
push dword [ebp + 0x14]
call fcn.01006f95
add esp, 0x18
jmp 0x10119e7
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 8]
mov dword [esi + 8], ecx
xor ecx, ecx
cmp dword [ebp + 0xc], edi
mov dword [esi + 4], eax
sete cl
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x20], ecx
cmp dword [ebp + 0xc], edi
jne 0x10119a2
push 3
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.msvcrt.dll__read]
add esp, 0xc
cmp eax, 3
jne 0x10119ab
cmp byte [ebp - 4], 0xef
jne 0x10119ab
cmp byte [ebp - 3], 0xbb
jne 0x10119ab
cmp byte [ebp - 2], 0xbf
jne 0x10119ab
mov dword [esi + 0x24], 1
mov eax, esi
pop esi
pop ebx
pop edi
leave
ret 0x10
push edi
push edi
push dword [ebp - 8]
call dword [sym.imp.msvcrt.dll__lseek]
add esp, 0xc
cmp eax, 0xffffffff
jne 0x10119a2
push dword [ebp - 0xc]
mov edi, dword [sym.imp.msvcrt.dll_free]
call edi
push ebx
call edi
push esi
call edi
push dword [ebp + 8]
push 0x1004fb0
push 0x1011a0c
push dword [ebp + 0x14]
call fcn.01006f95
add esp, 0x1c
xor eax, eax
jmp 0x10119a4
Function at 0x1011a4a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x20], 0
push edi
mov edi, dword [ebp + 0xc]
jne 0x1011a7b
push dword [esi]
push 0x1004fb0
push 0x1011b38
push dword [ebp + 0x14]
call fcn.01006f95
add esp, 0x10
xor eax, eax
jmp 0x1011b30
cmp dword [ebp + 0x10], 0
push ebx
jle 0x1011b2d
xor ebx, ebx
inc ebx
jmp 0x1011ab0
mov ecx, dword [esi + 0x10]
mov al, byte [ecx]
cmp al, 0xa
je 0x1011b12
cmp al, 0xd
je 0x1011aac
cmp al, 0x1a
je 0x1011af2
cmp dword [ebp + 0x10], ebx
jle 0x1011aed
dec dword [ebp + 0x10]
mov byte [edi], al
inc edi
inc dword [esi + 0x10]
jmp 0x1011ab0
inc ecx
mov dword [esi + 0x10], ecx
mov eax, dword [esi + 0x10]
cmp eax, dword [esi + 0x14]
jbe 0x1011a8b
cmp dword [esi + 0x18], 0
jne 0x1011b1a
push dword [esi + 8]
push dword [esi + 0xc]
push dword [esi + 4]
call dword [sym.imp.msvcrt.dll__read]
add esp, 0xc
cmp eax, dword [esi + 8]
je 0x1011ad8
mov dword [esi + 0x18], ebx
cmp dword [ebp + 0x10], 0
mov ecx, dword [esi + 0xc]
lea eax, [eax + ecx - 1]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
jle 0x1011b2d
jmp 0x1011ab0
mov byte [edi], 0
jmp 0x1011b2d
mov eax, dword [esi + 0xc]
and dword [esi + 0x14], 0
mov dword [esi + 0x18], ebx
mov dword [esi + 0x10], eax
mov byte [edi], 0
cmp edi, dword [ebp + 0xc]
ja 0x1011b0a
mov dword [esi + 0x1c], ebx
inc edi
mov eax, edi
sub eax, dword [ebp + 0xc]
jmp 0x1011b2f
inc dword [esi + 0x10]
mov byte [edi], 0
jmp 0x1011b22
mov byte [edi], 0
cmp edi, dword [ebp + 0xc]
jbe 0x1011b2a
mov eax, edi
sub eax, dword [ebp + 0xc]
inc eax
jmp 0x1011b2f
mov dword [esi + 0x1c], ebx
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret 0x10
Function at 0x10150c5
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc9c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc88], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 0xc8c], eax
mov eax, dword [esi + 0x870]
add eax, 0x20
mov ecx, eax
shl ecx, 3
mov dword [ebp - 0xc9c], ecx
cmp ecx, 0x320
jb 0x1015112
xor eax, eax
jmp 0x10152f4
push ebx
push edi
mov edi, eax
shl edi, 4
push edi
lea eax, [ebp - 0xc84]
push 0
push eax
call sub.msvcrt.dll_memset
push edi
lea eax, [ebp - 0x644]
push 0
push eax
call sub.msvcrt.dll_memset
mov ecx, dword [ebp + 0x18]
add esp, 0x18
test ecx, ecx
jbe 0x1015271
mov eax, dword [ebp + 0x14]
mov ebx, dword [esi + 0x34]
mov edi, dword [esi + 0x30]
shl eax, 2
mov dword [ebp - 0xc90], eax
mov eax, dword [ebp + 0x10]
shl eax, 2
mov dword [ebp - 0xc94], eax
mov dword [ebp - 0xc98], ecx
jmp 0x1015171
mov eax, dword [ebp - 0xc94]
mov ecx, dword [ebp - 0xc88]
and ecx, 7
xor edx, edx
inc edx
shl edx, cl
mov ecx, dword [ebp - 0xc88]
shr ecx, 3
mov cl, byte [ecx + ebx]
test cl, dl
jne 0x101519b
mov eax, dword [ebp - 0xc88]
movzx eax, byte [edi + eax]
jmp 0x10151df
mov ecx, dword [ebp - 0xc88]
cmp byte [edi + ecx], 7
mov ecx, dword [esi + 0x2c]
push dword [ecx + eax]
push esi
jae 0x10151c9
call fcn.01013328
mov ecx, dword [ebp - 0xc88]
movzx ecx, byte [edi + ecx]
movzx eax, al
lea eax, [ecx + eax*8 + 0x100]
jmp 0x10151d8
call fcn.01013328
movzx eax, al
lea eax, [eax*8 + 0x107]
add dword [ebp - 0xc94], 4
inc dword [ebp - 0xc88]
lea eax, [ebp + eax*2 - 0xc84]
inc word [eax]
mov eax, dword [ebp - 0xc8c]
xor edx, edx
mov ecx, eax
and ecx, 7
inc edx
shl edx, cl
mov ecx, eax
shr ecx, 3
mov cl, byte [ecx + ebx]
test cl, dl
jne 0x1015211
movzx eax, byte [edi + eax]
jmp 0x1015255
cmp byte [edi + eax], 7
mov ecx, dword [ebp - 0xc90]
mov eax, dword [esi + 0x2c]
push dword [ecx + eax]
push esi
jae 0x101523f
call fcn.01013328
mov ecx, dword [ebp - 0xc8c]
movzx ecx, byte [edi + ecx]
movzx eax, al
lea eax, [ecx + eax*8 + 0x100]
jmp 0x101524e
call fcn.01013328
movzx eax, al
lea eax, [eax*8 + 0x107]
add dword [ebp - 0xc90], 4
inc dword [ebp - 0xc8c]
lea eax, [ebp + eax*2 - 0x644]
inc word [eax]
dec dword [ebp - 0xc98]
jne 0x101516b
xor esi, esi
xor ebx, ebx
cmp dword [ebp - 0xc9c], esi
jbe 0x10152f0
mov edi, 0x100
movzx eax, word [ebp + esi*2 - 0xc84]
mov ecx, edi
cmp ax, cx
movzx eax, ax
jae 0x101529d
movzx eax, byte [eax + 0x1015350]
jmp 0x10152aa
shr eax, 8
movzx eax, byte [eax + 0x1015350]
add eax, 8
movzx ecx, word [ebp + esi*2 - 0x644]
mov edx, edi
cmp cx, dx
movzx ecx, cx
jae 0x10152c5
movzx ecx, byte [ecx + 0x1015350]
jmp 0x10152d2
shr ecx, 8
movzx ecx, byte [ecx + 0x1015350]
add ecx, 8
mov eax, dword [eax*4 + 0x1015308]
sub eax, dword [ecx*4 + 0x1015308]
cdq
xor eax, edx
sub eax, edx
add ebx, eax
inc esi
cmp esi, dword [ebp - 0xc9c]
jb 0x1015282
pop edi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.010026ce
leave
ret 0x14
Function at 0x10001780
Capabilities:
Read .ini file

Disassembly:
cmp dword [eax + 0x18], 8
jb 0x1000179a
mov eax, dword [eax + 4]
push eax
mov eax, dword [esp + 8]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
ret 4
add eax, 4
push eax
mov eax, dword [esp + 8]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
ret 4

Function at 0x10001940
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x234
mov eax, dword [0x10177024]
xor eax, esp
mov dword [esp + 0x230], eax
mov eax, dword [esp + 0x238]
xor ecx, ecx
test eax, eax
setne cl
push ebx
push esi
push edi
mov dword [esp + 0xc], eax
mov edi, ecx
test edi, edi
jne 0x10001991
push 0x64
call fcn.10001520
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call sub.Comn.dll_GetObjectLog
push esi
push ebx
push str.pExeFile_NULL
jmp 0x100019cf
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10001994
sub eax, edx
sar eax, 1
xor ecx, ecx
mov esi, eax
cmp ecx, esi
sbb edi, edi
neg edi
jne 0x100019e8
push 0x66
call fcn.10001520
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call sub.Comn.dll_GetObjectLog
push esi
push ebx
push str.szlExe_0
mov edx, dword [eax]
push str._s_return_code:_0x_08X___s.
push eax
mov eax, dword [edx + 0xc]
call eax
mov ebx, dword [esp + 0x20]
add esp, 0x14
jmp 0x10001aa2
push ebp
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
xor ecx, ecx
mov ebx, eax
cmp ebx, 0xffffffff
setne cl
mov edi, ecx
test edi, edi
jne 0x10001a34
push 0x69
call fcn.10001520
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
call sub.Comn.dll_GetObjectLog
mov edx, dword [eax]
push esi
push ebp
push str.hProcessSnap_INVALID_HANDLE_VALUE
push str._s_return_code:_0x_08X___s.
push eax
mov eax, dword [edx + 0xc]
call eax
add esp, 0x14
jmp 0x10001aa1
lea ecx, [esp + 0x14]
push ecx
push ebx
mov dword [esp + 0x1c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
mov edi, eax
test edi, edi
jne 0x10001a6f
push 0x6d
call fcn.10001520
add esp, 4
push eax
push str.Process32First__hProcessSnap__pe32_
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.100016d0
add esp, 8
jmp 0x10001aa1
mov ebp, dword [sym.imp.MSVCR80.dll__wcsnicmp]
xor edi, edi
mov edx, dword [esp + 0x10]
push esi
push edx
lea eax, [esp + 0x40]
push eax
call ebp
add esp, 0xc
test eax, eax
je 0x10001a9c
lea ecx, [esp + 0x14]
push ecx
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x10001a77
jmp 0x10001aa1
mov edi, 1
pop ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x23c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10130e50
add esp, 0x234
ret
Function at 0x10002ad0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x10177024]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push esi
push edi
push 0x206
lea eax, [esp + 0x12]
push 0
push eax
mov ebx, ecx
mov word [esp + 0x18], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
call sub.Comn.dll_GetObjectSys
xor ecx, ecx
test ebx, ebx
setne cl
mov esi, ecx
test esi, esi
jne 0x10002b3b
push 0x250
call fcn.10001520
add esp, 4
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call sub.Comn.dll_GetObjectLog
push edi
push ebx
push str.pDir_NULL
jmp 0x10002b6b
xor ecx, ecx
test eax, eax
setne cl
mov esi, ecx
test esi, esi
jne 0x10002b95
push 0x251
call fcn.10001520
add esp, 4
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call sub.Comn.dll_GetObjectLog
push edi
push ebx
push str.pSys_NULL
mov edx, dword [eax]
push str._s_return_code:_0x_08X___s.
push eax
mov eax, dword [edx + 0xc]
call eax
add esp, 0x14
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.10130e50
add esp, 0x20c
ret
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x1c]
call eax
test eax, eax
je 0x10002c18
xor eax, eax
jmp 0x10002bb0
movzx ecx, word [eax + str.C:ProgramData]
mov word [esp + eax + 0xc], cx
add eax, 2
test cx, cx
jne 0x10002bb0
lea eax, [esp + 0xc]
lea edx, [eax + 2]
jmp 0x10002bd0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10002bd0
sub eax, edx
xor ecx, ecx
sar eax, 1
cmp eax, 0x104
setl cl
mov edi, ecx
test edi, edi
jne 0x10002c76
push 0x257
call fcn.10001520
add esp, 4
push eax
push str.l_Length
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.100016d0
add esp, 8
jmp 0x10002c8f
lea edx, [esp + 0xc]
push edx
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [esp + 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10002c32
sub eax, edx
xor ecx, ecx
sar eax, 1
cmp eax, 0x104
setl cl
mov edi, ecx
test edi, edi
jne 0x10002c76
push 0x25d
call fcn.10001520
add esp, 4
push eax
push str.l_Length
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.100016d0
add esp, 8
jmp 0x10002c8f
lea eax, [esp + 0xc]
mov edx, ebx
mov ecx, eax
sub edx, ecx
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x10002c80
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10130e50
add esp, 0x20c
ret
Function at 0x10003040
Capabilities:
Get common file path

Disassembly:
sub esp, 0x42c
mov eax, dword [0x10177024]
xor eax, esp
mov dword [esp + 0x428], eax
push ebx
push ebp
mov ebp, dword [esp + 0x438]
mov bl, 1
call sub.Comn.dll_GetObjectSys
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x1c]
call eax
test eax, eax
je 0x10003073
xor bl, bl
push 0x3fe
lea ecx, [esp + 0x36]
push 0
push ecx
mov word [esp + 0x3c], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
test bl, bl
je 0x10003158
mov eax, dword [0x10152b90]
mov ecx, dword [0x10152b94]
mov edx, dword [0x10152b8c]
mov dword [esp + 0xc], eax
mov ax, word [0x10152b9c]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x30]
push ecx
mov word [esp + 0x1c], ax
xor eax, eax
push eax
push eax
mov dword [esp + 0x14], edx
mov edx, dword [0x10152b98]
push 0x23
push eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x2e], eax
mov dword [esp + 0x32], eax
mov dword [esp + 0x36], eax
mov dword [esp + 0x3a], eax
mov dword [esp + 0x3e], eax
mov word [esp + 0x42], ax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [esp + 8]
mov edx, eax
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10003100
push esi
push edi
lea edi, [esp + 0x38]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x10003116
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea edx, [esp + 0x38]
rep movsb byte es:[edi], byte [esi]
push edx
mov ecx, ebp
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x428]
xor ecx, esp
call fcn.10130e50
add esp, 0x42c
ret
push 0x400
lea eax, [esp + 0x34]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x30]
push 0x5c
push ecx
call dword [sym.imp.MSVCR80.dll_wcsrchr]
add esp, 8
lea edx, [esp + 0x30]
push edx
mov ecx, ebp
mov word [eax], 0
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
mov ecx, dword [esp + 0x430]
pop ebp
pop ebx
xor ecx, esp
call fcn.10130e50
add esp, 0x42c
ret
Function at 0x100031b0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x101423cb
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x10177024]
xor eax, esp
mov dword [esp + 0x224], eax
push esi
push edi
mov eax, dword [0x10177024]
xor eax, esp
push eax
lea eax, [esp + 0x234]
mov dword fs:[0], eax
push 0x206
lea eax, [esp + 0x2e]
push 0
push eax
mov word [esp + 0x34], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea ecx, [esp + 0x2c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x28]
push 0x5c
push edx
call dword [sym.imp.MSVCR80.dll_wcsrchr]
lea edi, [esp + 0x30]
add esp, 8
mov word [eax], 0
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x10003232
mov ecx, 6
mov esi, str.Version.ini
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0xc]
movsw word es:[edi], word [esi]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x240], 0
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
cmp dword [esp + 0x24], 8
mov eax, dword [esp + 0x10]
jae 0x1000327f
lea eax, [esp + 0x10]
push eax
push 0x11
push str.versionCode
push str.VersionInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x23c], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, esi
mov ecx, dword [esp + 0x234]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.10130e50
add esp, 0x234
ret
Function at 0x100032e0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x1014331c
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x10177024]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10177024]
xor eax, esp
push eax
lea eax, [esp + 0x240]
mov dword fs:[0], eax
xor ebp, ebp
push 0x206
lea eax, [esp + 0x3a]
push ebp
push eax
mov esi, ecx
mov word [esp + 0x40], bp
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [esp + 0x34]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
lea ebx, [esp + 0x34]
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x10003350
sub eax, edx
sar eax, 1
cmp eax, 3
jne 0x100033be
push ebx
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x24c], 0
call fcn.10003480
add ebx, 8
mov eax, ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10003390
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x18]
mov edi, eax
mov dword [esp + 0x248], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
add ebp, 1
cmp edi, 3
je 0x10003364
mov eax, ebp
mov ecx, dword [esp + 0x240]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.10130e50
add esp, 0x238
ret
Function at 0x100041b0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x10177024]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push esi
push edi
push 0x206
lea eax, [esp + 0x12]
push 0
push eax
mov ebx, ecx
mov word [esp + 0x18], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
call sub.Comn.dll_GetObjectSys
xor ecx, ecx
test ebx, ebx
setne cl
mov esi, ecx
test esi, esi
jne 0x10004218
push 0x1a
call fcn.10003fb0
add esp, 4
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call sub.Comn.dll_GetObjectLog
push edi
push ebx
push str.pDir_NULL
jmp 0x10004245
xor ecx, ecx
test eax, eax
setne cl
mov esi, ecx
test esi, esi
jne 0x1000426f
push 0x1b
call fcn.10003fb0
add esp, 4
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call sub.Comn.dll_GetObjectLog
push edi
push ebx
push str.pSys_NULL
mov edx, dword [eax]
push str._s_return_code:_0x_08X___s.
push eax
mov eax, dword [edx + 0xc]
call eax
add esp, 0x14
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.10130e50
add esp, 0x20c
ret
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x1c]
call eax
test eax, eax
je 0x100042e5
xor eax, eax
mov edi, edi
movzx ecx, word [eax + str.C:ProgramData]
mov word [esp + eax + 0xc], cx
add eax, 2
test cx, cx
jne 0x10004280
lea eax, [esp + 0xc]
lea edx, [eax + 2]
jmp 0x100042a0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100042a0
sub eax, edx
xor ecx, ecx
sar eax, 1
cmp eax, 0x104
setl cl
mov edi, ecx
test edi, edi
jne 0x10004341
push 0x21
call fcn.10003fb0
add esp, 4
push eax
push str.l_lenth
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.100016d0
add esp, 8
jmp 0x1000435f
lea edx, [esp + 0xc]
push edx
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [esp + 0xc]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10004300
sub eax, edx
xor ecx, ecx
sar eax, 1
cmp eax, 0x104
setl cl
mov edi, ecx
test edi, edi
jne 0x10004341
push 0x27
call fcn.10003fb0
add esp, 4
push eax
push str.l_lenth
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.100016d0
add esp, 8
jmp 0x1000435f
lea eax, [esp + 0xc]
mov edx, ebx
mov ecx, eax
sub edx, ecx
jmp 0x10004350
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x10004350
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10130e50
add esp, 0x20c
ret