joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1007a9c2
Capabilities:
Check if file exists
Delete file

Disassembly:
push esi
mov esi, ecx
push dword [esi + 0xc]
mov dword [esi], 0x1001d1a4
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1007a9e1
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esi + 0xc]
sub eax, 0x10
call fcn.10084b37
mov eax, dword [esi + 8]
sub eax, 0x10
pop esi
jmp fcn.10084b37

Function at 0x1007accc
Capabilities:
Accept command line arguments

Disassembly:
push 0x1c
mov eax, 0x100a673d
call fcn.10094b6a
mov esi, ecx
mov edi, edx
and dword [ebp - 4], 0
mov eax, dword [esi]
cmp eax, 0x80004004
jne 0x1007acee
mov eax, 0x80070642
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.10026b5d
mov byte [ebp - 4], 1
push dword [esi]
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x10], esp
mov esi, esp
call fcn.10084ad6
add eax, 0x10
mov dword [esi], eax
mov esi, dword [edi + 0x40]
call fcn.1007d1b3
lea eax, [ebp - 0x28]
mov dword [ebp - 0x10], 0x13ed
call fcn.10026f17
push dword [ebp + 0xc]
add edi, 4
push 0
push edi
lea eax, [ebp - 0x10]
call fcn.1005e7f3
lea ecx, [ebp - 0x28]
call fcn.10026eb8
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.10084b37
call fcn.10094c56
ret 8
Function at 0x1007c90a
Capabilities:
Accept command line arguments

Disassembly:
push 0x24
mov eax, 0x100a2ca3
call fcn.10094b6a
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.10026b5d
and dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x30]
call fcn.100271a7
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
mov eax, dword [ebp - 0x14]
setne byte [ebp - 0xd]
add eax, 0xfffffff0
call fcn.10084b37
mov eax, dword [edi + 0xc]
sub eax, 0x10
call fcn.10084ad6
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 1
mov eax, dword [edi + 8]
sub eax, 0x10
call fcn.10084ad6
add eax, 0x10
mov dword [ebp - 0x14], eax
push esi
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 2
call fcn.1005f623
mov ebx, eax
mov eax, dword [ebp - 0x14]
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
call fcn.10084b37
lea eax, [esi - 0x10]
call fcn.10084b37
cmp byte [ebp - 0xd], 0
jne 0x1007c9b2
test bl, bl
jne 0x1007c9b2
cmp byte [edi + 0x15], bl
je 0x1007c9b2
cmp byte [edi + 0x14], bl
je 0x1007c9b2
inc bl
jmp 0x1007c9b4
xor bl, bl
lea ecx, [ebp - 0x30]
call fcn.10026eb8
mov al, bl
call fcn.10094c56
ret

Function at 0x1007dab8
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push 0xc
mov eax, 0x1009be6f
call fcn.10094b6a
mov ebx, ecx
mov eax, dword [0x100bcf90]
mov esi, 0x100bcf90
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
and dword [ebp - 4], 0
mov eax, dword [0x100bcf90]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
mov eax, dword [ebx + 0x2c]
sub eax, 0x10
call fcn.10084ad6
add eax, 0x10
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.1005ffe4
mov edi, dword [ebx + 0xc]
jmp 0x1007db5a
push edi
push dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push 0x10019788
push eax
call fcn.100847a7
add esp, 0x10
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1007db59
push dword [ebp - 0x10]
mov eax, dword [ebx + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x1007db8e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1007db8e
cmp eax, 0xb7
jne 0x1007db64
inc edi
cmp edi, 0xffff
jb 0x1007db15
jmp 0x1007db8e
push eax
lea eax, [ebp - 0x14]
push 0x100197a8
push eax
call fcn.100847a7
mov ecx, dword [ebx + 8]
mov eax, dword [ecx]
add esp, 0xc
push dword [ebp - 0x14]
push 0
call dword [eax + 4]
lea eax, [ebx + 0x2c]
lea edi, [ebp - 0x10]
call fcn.1005f4dc
mov edi, dword [ebp - 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1007dbc6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebx + 0x2c]
lea eax, [ebp - 0x14]
push 0x10019820
push eax
call fcn.100847a7
mov ebx, dword [ebx + 8]
mov eax, dword [ebx]
add esp, 0x10
push dword [ebp - 0x14]
mov ecx, ebx
push 0
call dword [eax + 4]
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.10084b37
lea eax, [edi - 0x10]
call fcn.10084b37
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.10084b37
call fcn.10094c56
ret
Function at 0x1007e632
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100a4ac9
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x100bc210]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x20], ebx
push 0x1000c9a4
lea eax, [esp + 0x14]
push eax
call fcn.1005f361
and dword [esp + 0x58], 0
lea eax, [esp + 0x10]
push eax
push 0x10019b8c
mov eax, 0x246c
call fcn.1008f060
mov edi, esp
lea esi, [ebx + 0x10]
mov dword [esp + 0x2490], esp
call fcn.10082fc7
lea edi, [esp + 0x2490]
call fcn.1002f57f
push 0x100191a0
lea ecx, [esp + 0x24]
push ecx
mov edi, eax
mov byte [esp + 0x68], 1
call fcn.1005fd4e
lea ecx, [esp + 0x1c]
push ecx
mov edi, eax
mov byte [esp + 0x64], 2
call fcn.1005fcf3
mov byte [esp + 0x5c], 3
push dword [eax]
mov edi, dword [ebx + 8]
push 0x1000ca00
lea eax, [esp + 0x30]
push eax
call fcn.10026605
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.10084b37
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.10084b37
mov byte [esp + 0x58], 7
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.10084b37
mov eax, dword [ebx + 0x2480]
mov ebx, dword [ebx + 0xc]
push 0xe
push 4
push 2
push eax
call fcn.1007573e
mov esi, dword [esp + 0x20]
mov eax, dword [ebp + 8]
lea ecx, [esi - 8]
mov dword [esi + 0x2488], eax
call fcn.100800e1
mov ebx, eax
xor eax, eax
cmp ebx, eax
jl 0x1007e79f
mov ebx, dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x1007e769
cmp eax, 0xffffffff
je 0x1007e767
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
xor eax, eax
push eax
push eax
push eax
lea eax, [esp + 0x3c]
push eax
call ebx
test eax, eax
jne 0x1007e74c
lea eax, [esi + 0x24c0]
call fcn.10058bed
cmp byte [esi + 4], 0
je 0x1007e7b6
mov eax, dword [esi + 0x24b0]
mov edx, dword [esi - 8]
push eax
lea ecx, [esi - 8]
call dword [edx + 0x38]
mov edi, 0x80004004
jmp 0x1007e7b1
mov eax, dword [esi + 0x24b0]
mov edx, dword [esi - 8]
push eax
lea ecx, [esi - 8]
call dword [edx + 0x38]
mov edi, ebx
call fcn.1008024c
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x5c], 0
call fcn.10026646
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.10084b37
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1007fffb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x100bc210]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
test eax, eax
jns 0x10080020
xor al, al
jmp 0x100800d0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x20]
test eax, eax
js 0x10080019
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x28]
test eax, eax
js 0x10080019
push edi
xor eax, eax
mov edi, 0x206
push edi
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.1008a7e0
xor eax, eax
push edi
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.1008a7e0
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x414]
push eax
push 0
push 0x1001a37c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov eax, dword [esi + 0x24b8]
mov edx, dword [esi]
lea ecx, [ebp - 0x414]
push ecx
push 0x1001a384
push eax
mov ecx, esi
call dword [edx + 0x44]
pop edi
test eax, eax
js 0x10080019
mov eax, dword [esi + 0x24b8]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x38]
test eax, eax
setns al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10086de1
leave
ret
Function at 0x10080ab0
Capabilities:
Accept command line arguments

Disassembly:
push 0x20
mov eax, 0x100a7d5e
call fcn.10094b6a
xor ebx, ebx
push ebx
push 0x100c4330
mov esi, 0x100c4218
push esi
push ebx
push edi
call fcn.10094605
mov edx, dword [eax]
add esp, 0x14
push dword [ebp + 0xc]
mov ecx, eax
call dword [edx + 4]
test al, al
jne 0x10080af9
push 0x38
push 0x1001a7b0
mov eax, dword [ebp + 0x14]
call fcn.10067944
xor eax, eax
inc eax
jmp 0x10080c0f
push ebx
push 0x100c4238
push esi
push ebx
push edi
mov byte [ebp + 0xf], bl
call fcn.10094605
add esp, 0x14
cmp eax, ebx
je 0x10080b1c
cmp dword [eax + 0x134], 4
sete byte [ebp + 0xf]
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.10026b5d
lea ecx, [ebp - 0x14]
push ecx
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.100271a7
mov esi, dword [ebp + 0x10]
mov byte [ebp - 4], 1
push dword [ebp + 0x18]
mov eax, dword [eax]
mov eax, dword [eax - 0xc]
lea ecx, [ebp - 0x10]
push ecx
push esi
push dword [ebp + 8]
push eax
push edi
call fcn.1007dbef
mov byte [ebp + 0x13], al
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.10084b37
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10026eb8
cmp byte [ebp + 0x13], bl
je 0x10080bb5
cmp byte [ebp + 0x18], bl
je 0x10080b8b
push 0x22
push 0x1001a828
jmp 0x10080ae9
cmp dword [ebp + 8], 4
je 0x10080ba9
cmp byte [ebp + 0xf], bl
jne 0x10080ba9
mov eax, dword [ebp + 0x14]
push 0x21
push 0x1001a8a0
call fcn.10067944
push 2
jmp 0x10080c0e
push 0x14
push 0x1001a870
jmp 0x10080ae9
push edi
call fcn.10080ca5
test al, al
je 0x10080bd2
mov eax, dword [ebp + 0x14]
push 0x13
push 0x1001a8e4
call fcn.10067944
push 3
jmp 0x10080c0e
push 0x1001a910
lea eax, [ebp + 0x18]
push eax
call fcn.1005f361
mov dword [ebp - 4], 2
mov eax, dword [ebp + 0x18]
push dword [eax - 0xc]
push eax
mov eax, dword [ebp + 0x14]
call fcn.10067944
push dword [ebp + 0x18]
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 4]
mov eax, dword [ebp + 0x18]
add eax, 0xfffffff0
call fcn.10084b37
push 5
pop eax
call fcn.10094c56
ret 0x14
Function at 0x1008325e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
mov esi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100832b5
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x100832a7
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x100832a3
cmp edi, eax
jae 0x100832a7
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x10083295
cmp edi, eax
jb 0x100832ab
xor eax, eax
jmp 0x100832b4
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
pop ebp
ret 8

Function at 0x10083b40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 8]
push 0
push 0x10011df4
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10083ba6
cmp dword [ebp + 8], 1
je 0x10083b7e
cmp dword [ebp + 8], 2
je 0x10083b7e
push 0xd
pop eax
jmp 0x10083ba6
mov eax, dword [ebp - 4]
test edi, edi
je 0x10083ba0
test eax, eax
je 0x10083b9b
test al, 1
jne 0x10083b79
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x10083ba0
jmp 0x10083b79
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 4

Function at 0x10086de1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100bc210]
jne 0x10086deb
repz ret
jmp fcn.1008a698
Function at 0x10090bab
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100bc210]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.1008921e
and dword [ebp - 0x14], 0
cmp dword [0x100c6774], 0
mov dword [ebp - 0x18], eax
jne 0x10090c5e
push 0x100030bc
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10090d06
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100030b0
push ebx
call edi
test eax, eax
je 0x10090d06
mov esi, dword [fcn.10001074]
push eax
call esi
push 0x100030a0
push ebx
mov dword [0x100c6774], eax
call edi
push eax
call esi
push 0x1000308c
push ebx
mov dword [0x100c6778], eax
call edi
push eax
call esi
push 0x10003070
push ebx
mov dword [0x100c677c], eax
call edi
push eax
call esi
mov dword [0x100c6784], eax
test eax, eax
je 0x10090c5e
push 0x10003058
push ebx
call edi
push eax
call esi
mov dword [0x100c6780], eax
mov eax, dword [0x100c6780]
mov ecx, dword [ebp - 0x18]
mov esi, dword [fcn.10001070]
cmp eax, ecx
je 0x10090cb7
cmp dword [0x100c6784], ecx
je 0x10090cb7
push eax
call esi
push dword [0x100c6784]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10090cb7
test ebx, ebx
je 0x10090cb7
call edi
test eax, eax
je 0x10090cae
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10090cae
test byte [ebp - 8], 1
jne 0x10090cb7
or dword [ebp + 0x10], 0x200000
jmp 0x10090cea
mov eax, dword [0x100c6778]
cmp eax, dword [ebp - 0x18]
je 0x10090cea
push eax
call esi
test eax, eax
je 0x10090cea
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10090cea
mov eax, dword [0x100c677c]
cmp eax, dword [ebp - 0x18]
je 0x10090cea
push eax
call esi
test eax, eax
je 0x10090cea
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x100c6774]
call esi
test eax, eax
je 0x10090d06
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10090d08
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10086de1
leave
ret

Function at 0x100935a0
Capabilities:
Hash data using sha256

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
pop ebp
ret 4
Function at 0x10094220
Capabilities:
Hash data using sha256

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x100bc210]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 0x24]
push edi
mov ecx, ebx
and ecx, 0x3f
mov edi, 0x40
sub edi, ecx
cmp edi, 8
mov dword [ebp - 0x50], eax
ja 0x10094255
add edi, 0x40
lea edx, [edi - 8]
push edx
lea eax, [ebp - 0x4c]
push 0
push eax
call fcn.1008a7e0
mov ecx, dword [esi + 0x20]
add ecx, ecx
add ecx, ecx
add ecx, ecx
mov edx, ebx
shr edx, 0x1d
or ecx, edx
add esp, 0xc
mov dword [ebp - 0x58], ecx
push 2
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp + edi - 0x54]
lea eax, [ebx*8]
push edx
mov byte [ebp - 0x4c], 0x80
mov dword [ebp - 0x54], eax
call fcn.10094320
push edi
lea eax, [ebp - 0x4c]
push eax
push esi
call fcn.10094110
mov ecx, dword [ebp - 0x50]
push 8
push esi
push ecx
call fcn.10094320
xor eax, eax
push 0x40
mov dword [esi], 0x6a09e667
mov dword [esi + 4], 0xbb67ae85
mov dword [esi + 8], 0x3c6ef372
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
push eax
add esi, 0x28
push esi
call fcn.1008a7e0
mov ecx, dword [ebp - 4]
add esp, 0xc
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10086de1
mov esp, ebp
pop ebp
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x101d9b52
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10220
call fcn.102f7e1b
mov eax, dword [0x1039fb98]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x10008], 0
cmp dword [eax + 0x18], 8
push esi
push edi
mov edi, dword [ebp + 8]
jb 0x101d9b83
mov eax, dword [eax + 4]
jmp 0x101d9b86
add eax, 4
mov esi, 0x7fff
push esi
lea ecx, [ebp - 0x10004]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x101d9bc2
cmp eax, esi
ja 0x101d9bc2
lea eax, [ebp - 0x10004]
push eax
mov ecx, edi
call fcn.10161547
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.102f77a6
leave
ret 8
push 0x10025854
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x10220]
push eax
call fcn.101b70ff
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x103495b0
lea eax, [ebp - 0x10114]
lea edi, [ebp - 0x10114]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.102f72b2
int3

Function at 0x101de36d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x101de37e
mov eax, dword [eax + 4]
jmp 0x101de381
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x101de391
xor al, al
jmp 0x101de396
shr al, 4
and al, 1
pop ebp
ret 4

Function at 0x101de39a
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x18], 8
lea esi, [edi + 4]
jb 0x101de3b5
mov eax, dword [esi]
jmp 0x101de3b7
mov eax, esi
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x101de40e
cmp eax, 0x50
je 0x101de40e
cmp eax, 0xb7
je 0x101de40e
cmp dword [edi + 0x18], 8
jb 0x101de3da
mov esi, dword [esi]
push esi
push 0x10027aa0
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.101b70ff
add esp, 0x10
push 0x43
pop ecx
mov esi, eax
push 0x103495b0
lea eax, [ebp - 0x10c]
lea edi, [ebp - 0x10c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.102f72b2
pop edi
pop esi
leave
ret 4

Function at 0x101de414
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x218
cmp dword [eax + 0x18], 8
jb 0x101de42b
mov eax, dword [eax + 4]
jmp 0x101de42e
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x101de472
push 0x10027ad0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.101b70ff
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x103495b0
lea eax, [ebp - 0x10c]
lea edi, [ebp - 0x10c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.102f72b2
leave
ret 4
Function at 0x10252224
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
xor ebx, ebx
cmp edi, ebx
je 0x10252235
mov dword [edi], ebx
push dword [0x1039b850]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
jne 0x102522ed
mov esi, dword [ebp + 8]
cmp esi, ebx
jne 0x102522d1
mov eax, dword [ebp + 0x10]
sub eax, ebx
je 0x1025225f
dec eax
je 0x1025227b
dec eax
jne 0x10252274
push 8
push ebx
push dword [0x103a5dac]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, ebx
jne 0x1025227f
mov eax, 0x8007000e
jmp 0x102522f5
push 0x10
jmp 0x10252261
mov eax, dword [ebp + 0x10]
sub eax, ebx
mov edi, 0x80004005
je 0x10252291
dec eax
je 0x102522af
dec eax
jne 0x102522a4
mov dword [esi + 4], 1
mov dword [esi], 0x1008ee28
xor edi, edi
cmp edi, ebx
jge 0x102522dd
mov ecx, esi
call fcn.10252094
mov eax, edi
jmp 0x102522f5
push dword [ebp + 0xc]
and dword [esi + 0xc], 0xfffffffc
mov ecx, esi
mov dword [esi + 4], 1
mov dword [esi], 0x1008ee10
mov dword [esi + 8], ebx
call fcn.10251ef2
mov edi, eax
jmp 0x102522a0
xor ecx, ecx
lea eax, [esi + 4]
inc ecx
lock xadd dword [eax], ecx
jmp 0x102522e0
mov edi, dword [ebp + 0x14]
push esi
push dword [0x1039b850]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp edi, ebx
je 0x102522f3
mov dword [edi], esi
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x10259693
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x10259716
mov eax, dword [ebx]
push 0x1039be48
mov ecx, ebx
call dword [eax + 0x20]
test al, al
je 0x10259716
push dword [0x1039a750]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10259716
push esi
lea esi, [eax + 0x38]
movzx eax, word [esi]
push edi
cmp ax, 0x23
jae 0x102596f6
movzx eax, ax
xor edi, edi
mov dword [ebp + 8], eax
test eax, eax
jle 0x10259703
mov edx, dword [esi + 4]
mov ecx, edx
mov eax, dword [ecx]
cmp ebx, eax
je 0x102596f0
jb 0x10259703
inc edi
add ecx, 8
cmp edi, dword [ebp + 8]
jl 0x102596dd
jmp 0x10259703
lea eax, [edx + edi*8 + 4]
jmp 0x102596ff
mov edx, ebx
mov ecx, esi
call fcn.10252e98
test eax, eax
jne 0x10259714
push 0xffffffffffffffff
push dword [ebp + 0xc]
mov ecx, esi
push ebx
call fcn.1021495d
mov byte [ebx + 0x1c], 1
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x100278be
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x100278cd
pop dword [ebp - 0xc]
mov eax, 0xd56158ca
add eax, 0x3aa12003
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0xbdd39138
sub dword [ebp - 0x1c], 0x6f814bed
mov dword [ebp - 0x18], 0xaf06e5f2
sub dword [ebp - 0x18], 0x7cd399ad
mov dword [ebp - 0x14], 0x18c6c5d8
sub dword [ebp - 0x14], 0xcc7a81aa
mov dword [ebp - 0x10], 0x1c2c8207
sub dword [ebp - 0x10], 0x1c2c8207
lea eax, [ebp - 0x1c]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0xf351dce2
add dword [ebp - 0x1c], 0x81208c74
mov dword [ebp - 0x18], 0x672b4796
sub dword [ebp - 0x18], 0x25bee621
mov dword [ebp - 0x14], 0xcaea254a
sub dword [ebp - 0x14], 0x677ab8de
mov dword [ebp - 0x10], 0xeefe5894
sub dword [ebp - 0x10], 0xeefe5894
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, 0xbfe77150
sub eax, 0xafe76050
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x43844
push 0
call eax
mov ecx, 0x20d4bc55
add ecx, 0xdf2b9761
xor edx, edx
add edx, eax
mov esi, 0x563f6658
sub esi, 0x463bfc58
add esi, dword [ebp - 0xc]
mov ebx, 0x2f5c950c
add ebx, 0xac0ea1c2
mov dword [ebp - 4], 0xe98978d3
mov edi, dword [esi]
sub dword [ebp - 8], 0x8e2bbcd
xor edi, ebx
add dword [ebp - 4], ebx
mov dword [edx], edi
add dword [ebp - 4], 0x5294b9d8
add edx, 4
add esi, 4
loop 0x100279ec
add eax, 0x46d0f9b5
add eax, 0xb93047f6
xor ebx, ebx
add ebx, eax
add eax, 0xb2a672e4
sub eax, 0xb2a672df
mov ecx, 0x10000000
add ecx, dword [ebp - 0xc]
call ebx
leave
ret