joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001a390
Capabilities:
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10071e92
mov eax, dword fs:[0]
push eax
sub esp, 0x4bc
mov eax, dword [0x10089040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x4c0]
mov eax, dword [esi]
mov dword [ebp - 0x4c4], eax
lea eax, [esi + 4]
push eax
call fcn.10011d10
lea eax, [esi + 0x1c]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x4a8]
call fcn.10011d10
lea eax, [esi + 0x34]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x490]
call fcn.10011d10
lea eax, [esi + 0x4c]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x478]
call fcn.10011d10
lea eax, [esi + 0x64]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x460]
call fcn.10011d10
lea edi, [esi + 0x7c]
mov byte [ebp - 4], 4
push edi
lea ecx, [ebp - 0x448]
call fcn.10011d10
push 0x208
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 5
push 0
push eax
call fcn.10045390
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x490]
add esp, 0xc
cmp dword [ebp - 0x47c], 7
cmova eax, dword [ebp - 0x490]
push eax
lea eax, [ebp - 0x21c]
push 0x1007e420
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x424]
push 0x208
push 0
push eax
call fcn.10045390
add esp, 0xc
lea eax, [ebp - 0x4c0]
cmp dword [ebp - 0x4ac], 7
cmova eax, dword [ebp - 0x4c0]
push eax
lea eax, [ebp - 0x424]
push str._s.lnk
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x21c]
lea edx, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1001a4e0
sub eax, edx
lea ecx, [ebp - 0x448]
sar eax, 1
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.1000cd00
lea eax, [ebp - 0x4c4]
push eax
call fcn.1001a280
test eax, eax
js 0x1001a5c2
cmp dword [edi + 0x14], 7
jbe 0x1001a51e
mov edi, dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call esi
call fcn.10003fc0
mov ecx, eax
test ecx, ecx
je 0x1001a5ec
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x428], eax
push str.barP
lea eax, [ebp - 0x428]
mov byte [ebp - 4], 6
push str.Task_sin
push eax
call fcn.10005430
add esp, 0xc
lea eax, [ebp - 0x448]
cmp dword [ebp - 0x434], 7
cmova eax, dword [ebp - 0x448]
push 0
push 0
push 0
push eax
push 0x1007d468
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [ebp - 0x434], 7
lea eax, [ebp - 0x448]
cmova eax, dword [ebp - 0x448]
push eax
call esi
mov byte [ebp - 4], 5
or eax, 0xffffffff
mov edx, dword [ebp - 0x428]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001a5c2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x4c4]
call fcn.100101a0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10043277
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.100013a0
int3
Function at 0x1001ae50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10071fd0
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x10089040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x10], 0
jne 0x1001aedb
push 0x10
lea eax, [ebp - 0x234]
push eax
call fcn.1001b060
push eax
mov ecx, edi
call fcn.1000ce10
mov ecx, dword [ebp - 0x220]
cmp ecx, 7
jbe 0x1001aedb
mov edx, dword [ebp - 0x234]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1001aed1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001b03c
push ecx
push edx
call fcn.100438c7
add esp, 8
cmp dword [edi + 0x28], 0
jne 0x1001af38
push 2
lea eax, [ebp - 0x234]
push eax
call fcn.1001b060
push eax
lea ecx, [edi + 0x18]
call fcn.1000ce10
mov ecx, dword [ebp - 0x220]
cmp ecx, 7
jbe 0x1001af38
mov edx, dword [ebp - 0x234]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1001af2e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001b041
push ecx
push edx
call fcn.100438c7
add esp, 8
cmp dword [edi + 0x40], 0
jne 0x1001b00e
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10045390
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
call fcn.10003fc0
mov ecx, eax
test ecx, ecx
je 0x1001b046
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
push 0x1007ea60
push str.k_LaunchUser_P
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
push str.MicrosoftInternet_ExplorerQuic_sinnedTas_s
push eax
call fcn.10005430
mov esi, dword [ebp - 0x21c]
lea eax, [ebp - 0x218]
add esp, 0x10
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001afd0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [edi + 0x30]
call fcn.1000cd00
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1001b00e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [edi + 0x28], 0
mov eax, 0x80004005
je 0x1001b021
xor ecx, ecx
cmp dword [edi + 0x10], ecx
cmovne eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10043277
mov esp, ebp
pop ebp
ret
call fcn.10047224
call fcn.10047224
push 0x80004005
call fcn.100013a0
int3
Function at 0x1001b060
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x10089040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], esi
push eax
mov dword [ebp - 0x214], 0
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
js 0x1001b124
lea eax, [ebp - 0x218]
mov dword [ebp - 0x218], 0
push eax
push dword [ebp + 0xc]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x1001b10e
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.10045390
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x218]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x1001b0f2
lea eax, [ebp - 0x210]
push eax
jmp 0x1001b129
mov eax, dword [ebp - 0x214]
push dword [ebp - 0x218]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov dword [ebp - 0x218], 0
mov eax, dword [ebp - 0x214]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [ebp - 0x214], 0
push 0x1007d468
mov ecx, esi
call fcn.1000c540
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.10043277
mov esp, ebp
pop ebp
ret 8

Function at 0x1001b150
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x10089040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
push 0x20a
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.10045390
add esp, 0xc
cmp dword [ebx + 0x10], 0
je 0x1001b1e8
cmp dword [ebx + 0x14], 7
jbe 0x1001b1a2
mov ebx, dword [ebx]
cmp dword [edi + 0x14], 7
jbe 0x1001b1aa
mov edi, dword [edi]
push ebx
push edi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
cmp dword [ebp + 0x18], 0
je 0x1001b1e0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1001b1e0
push eax
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp dword [esi + 0x10], 0
je 0x1001b22e
jmp 0x1001b20b
cmp dword [esi + 0x10], 0
je 0x1001b22e
cmp dword [edi + 0x14], 7
jbe 0x1001b1f6
mov edi, dword [edi]
push edi
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.1004e44f
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
cmp dword [esi + 0x14], 7
jbe 0x1001b220
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str..lnk
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.10056133
mov ecx, dword [ebp - 0x214]
lea eax, [ebp - 0x210]
add esp, 0xc
push eax
call fcn.1000c540
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x214]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.10043277
mov esp, ebp
pop ebp
ret 0x14
Function at 0x10022b90
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10072810
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x10089040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.10043901
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.100692bf
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.100230c0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10029050
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007305f
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x10089040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x48
call fcn.10043901
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x20], 0x1008b928
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi], vtable.TiXmlDocument.0
mov dword [esi + 0x34], 0x1008b928
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x3c], 0xffffffff
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], 0
mov byte [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov eax, dword [esi + 0x34]
cmp dword [eax + 4], 0x18
ja 0x10029117
mov dword [eax], 0
mov eax, dword [esi + 0x34]
mov byte [eax + 8], 0
jmp 0x1002912e
mov dword [esi + 0x34], 0x1008b928
cmp eax, 0x1008b928
je 0x1002912e
push eax
call fcn.10043285
add esp, 4
push esi
mov ecx, edi
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
mov dword [ebp - 4], 0xffffffff
call fcn.10028fb0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1002fad0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 4], ecx
mov esi, dword [edi]
test esi, esi
je 0x1002fb2f
mov dword [edi], 0
mov edx, 0x400000
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
cmp esi, 0x400000
mov eax, esi
cmova eax, edx
push eax
push ebx
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 8]
add ebx, ecx
add dword [edi], ecx
sub esi, ecx
test eax, eax
je 0x1002fb38
test ecx, ecx
je 0x1002fb2f
mov ecx, dword [ebp - 4]
mov edx, 0x400000
test esi, esi
jne 0x1002faf0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1002fd10
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10089040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov edx, eax
mov ecx, eax
and edx, 1
shr ecx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov dword [eax*4 + 0x1008c760], ecx
inc eax
cmp eax, 0x100
jb 0x1002fd25
cmp eax, 0x800
jae 0x1002fdf3
nop dword [eax]
mov edx, dword [eax*4 + 0x1008c360]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x1008c760]
mov dword [eax*4 + 0x1008c760], edx
inc eax
cmp eax, 0x800
jb 0x1002fdd0
lea ecx, [ebp - 0x24]
mov dword [0x1008be08], 0x10030b80
call fcn.10030c80
test eax, eax
je 0x1002feb6
mov edi, dword [ebp - 0x14]
xor ecx, ecx
mov esi, edi
mov eax, 0x10089b38
shr esi, 8
shr edi, 4
and esi, 0xff00f
and edi, 0xf00f
xor edx, edx
nop dword [eax]
mov ebx, dword [ebp - 0x20]
cmp dword [eax - 8], ebx
jne 0x1002fe47
mov ebx, dword [ebp - 0x1c]
cmp dword [eax - 4], ebx
mov ebx, dword [ebp - 0x18]
jne 0x1002fe47
cmp dword [eax], ebx
je 0x1002fe64
add edx, 0xc
inc ecx
add eax, 0xc
cmp edx, 0x24
jb 0x1002fe30
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10043277
mov esp, ebp
pop ebp
ret
sub ecx, 0
je 0x1002fe9d
sub ecx, 1
je 0x1002fe81
sub ecx, 1
jne 0x1002feb6
cmp esi, 6
jb 0x1002fe92
jne 0x1002feac
cmp edi, 0xf
jae 0x1002feac
jmp 0x1002fe92
cmp esi, 5
jb 0x1002fe92
jne 0x1002feac
cmp edi, 6
jb 0x1002fe92
cmp edi, 0xa
jne 0x1002feac
mov eax, 1
test eax, eax
jne 0x1002feb6
jmp 0x1002feac
cmp esi, 6
jb 0x1002feb6
jne 0x1002feac
cmp edi, 0x100c
je 0x1002feb6
mov dword [0x1008be08], 0x10030c20
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10043277
mov esp, ebp
pop ebp
ret
Function at 0x10032a10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [ebp - 8], ecx
mov eax, dword [eax]
and eax, 7
cmp edx, 5
jae 0x10032a30
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push ebx
add edx, 0xfffffffc
or ebx, 0xffffffff
add edx, ecx
push esi
mov dword [ebp - 4], edx
nop dword [eax]
lea esi, [edi + ecx]
cmp esi, edx
jae 0x10032a59
mov cl, byte [esi]
and cl, 0xfe
cmp cl, 0xe8
je 0x10032a56
inc esi
cmp esi, edx
jb 0x10032a47
mov ecx, dword [ebp - 8]
mov edi, esi
sub edi, ecx
mov ecx, edi
sub ecx, ebx
cmp esi, edx
jae 0x10032b6f
cmp ecx, 3
jbe 0x10032a98
xor eax, eax
mov cl, byte [esi + 4]
mov ebx, edi
mov dword [ebp - 0x10], ebx
test cl, cl
je 0x10032ad6
cmp cl, 0xff
je 0x10032ad6
mov edx, dword [ebp - 4]
and eax, 3
add eax, eax
mov ecx, 1
or eax, 1
add edi, ecx
mov ecx, dword [ebp - 8]
jmp 0x10032a40
dec ecx
shl eax, cl
and eax, 7
je 0x10032a70
cmp byte [eax + 0x1007de58], 0
je 0x10032ac3
movzx ecx, byte [eax + 0x1007de60]
mov edx, esi
sub edx, ecx
mov cl, byte [edx + 4]
test cl, cl
je 0x10032ac0
cmp cl, 0xff
jne 0x10032a70
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
and eax, 3
add eax, eax
mov ebx, edi
or eax, 1
inc edi
jmp 0x10032a40
movzx ebx, cl
movzx ecx, byte [esi + 3]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [esi + 2]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [esi + 1]
shl ebx, 8
or ebx, ecx
sub ebx, edi
sub ebx, 5
test eax, eax
je 0x10032b3a
nop dword [eax]
movzx edx, byte [eax + 0x1007de60]
mov ecx, 0x18
shl edx, 3
sub ecx, edx
mov dword [ebp - 0xc], edx
mov edx, ebx
shr edx, cl
test dl, dl
je 0x10032b21
cmp dl, 0xff
jne 0x10032b3a
mov ecx, 0x20
mov edx, 1
sub ecx, dword [ebp - 0xc]
shl edx, cl
dec edx
xor ebx, edx
sub ebx, edi
sub ebx, 5
jmp 0x10032b00
mov edx, dword [ebp - 4]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
mov byte [esi + 1], bl
neg cl
mov byte [esi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, ebx
mov ebx, dword [ebp - 0x10]
shr ecx, 8
mov byte [esi + 2], cl
mov ecx, 5
add edi, ecx
mov ecx, dword [ebp - 8]
jmp 0x10032a40
pop esi
pop ebx
cmp ecx, 3
jbe 0x10032b84
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov dword [ecx], eax
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
dec ecx
shl eax, cl
mov ecx, dword [ebp + 0xc]
and eax, 7
mov dword [ecx], eax
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10034160
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100736a3
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x10089040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 1
push 0
push eax
call fcn.10045390
mov eax, dword [0x1008beb0]
add esp, 0xc
test al, 1
jne 0x100341e8
or eax, 1
mov dword [0x1008beb0], eax
push 0x68
push 0
push 0x1008be48
mov byte [ebp - 4], 2
call fcn.10045390
add esp, 0xc
call fcn.10005f50
push 0x10074980
call fcn.100438b2
add esp, 4
mov byte [ebp - 4], 1
push dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0x1007f5d4
push dword [ebp + 0xc]
push dword [0x1008bea0]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, 0x2a
cmp ax, word [ebp - 0x218]
je 0x10034247
lea edx, [ebp - 0x218]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10034222
sub edx, esi
lea eax, [ebp - 0x218]
sar edx, 1
mov ecx, edi
push edx
push eax
call fcn.10005d10
mov edi, 1
jmp 0x10034249
xor edi, edi
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov edx, dword [ebp + 8]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003426a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x10034289
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10043277
mov esp, ebp
pop ebp
ret
Function at 0x10034df0
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007384b
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x10089040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
mov eax, dword [0x1008beb0]
test al, 1
jne 0x10034e5e
or eax, 1
mov dword [0x1008beb0], eax
push 0x68
push 0
push 0x1008be48
mov dword [ebp - 4], 0
call fcn.10045390
add esp, 0xc
call fcn.10005f50
push 0x10074980
call fcn.100438b2
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov edx, dword [0x1008be58]
lea ecx, [ebp - 0x10]
call fcn.10007180
mov dword [ebp - 4], 1
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x10034e96
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push dword [ebp - 0x10]
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
call fcn.10003fc0
mov ecx, eax
test ecx, ecx
je 0x10034f3c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push str.UserData
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.10005aa0
test al, al
jne 0x10034ed4
push 8
push str.UserData
lea ecx, [ebp - 0x14]
call fcn.10005d10
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 3
push eax
lea edx, [ebp - 0x10]
mov ecx, esi
call fcn.10009340
mov byte [ebp - 4], 1
or edi, 0xffffffff
mov edx, dword [ebp - 0x14]
add esp, 4
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10034f0a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x10034f29
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100013a0
int3
Function at 0x10034f50
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007388d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x10089040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x18], edi
lea ecx, [ebp - 0x10]
call fcn.10034df0
mov dword [ebp - 4], 0
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x10034fb0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push dword [ebp - 0x10]
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test esi, esi
je 0x10035056
call fcn.10003fc0
mov ecx, eax
test ecx, ecx
je 0x1003509b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.10005aa0
test al, al
jne 0x10035009
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10034ff0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x14]
call fcn.10005d10
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp - 0x10]
mov ecx, edi
call fcn.10009340
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov edx, dword [ebp - 0x14]
add esp, 4
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003503f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jmp 0x1003507e
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.10005e40
add eax, 0x10
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
mov dword [edi], eax
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10035088
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100013a0
int3