joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10071110
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10073a25
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x1008dd90]
xor eax, ebp
mov dword [ebp - 0x20], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.10070f80
mov dword [ebp - 0x1c], 0
call fcn.1001b840
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], 0x34
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x3c]
call fcn.10001d85
mov dword [ebp - 4], 0
mov byte [ebp - 0x5d], 0x5c
mov byte [ebp - 0x5e], 0x2f
lea ecx, [ebp - 0x5d]
push ecx
lea edx, [ebp - 0x5e]
push edx
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x3c]
call fcn.10002090
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x3c]
call fcn.10002060
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
call fcn.10002400
add esp, 0x18
push 0xffffffffffffffff
push 0x1008605c
lea ecx, [ebp - 0x3c]
call fcn.100020c0
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0xffffffff
je 0x100711ef
mov eax, dword [ebp - 0x40]
add eax, 1
push eax
push 0
lea ecx, [ebp - 0x5c]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.100020f0
push 0
lea ecx, [ebp - 0x5c]
call fcn.100015c9
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
lea ecx, [ebp - 0x5c]
call fcn.1000141a
push 0x10086060
lea ecx, [ebp - 0x3c]
call fcn.100015c9
push eax
call fcn.1005390e
add esp, 8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x10071229
mov byte [ebp - 0x71], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.1000141a
mov al, byte [ebp - 0x71]
jmp 0x10071334
mov ecx, dword [ebp + 8]
call fcn.100015c9
push eax
push 0x2712
mov edx, dword [ebp - 0x1c]
push edx
call fcn.1001b880
add esp, 0xc
push 0x7530
push 0x4e
mov eax, dword [ebp - 0x1c]
push eax
call fcn.1001b880
add esp, 0xc
mov ecx, dword [ebp - 0x18]
push ecx
push 0x2711
mov edx, dword [ebp - 0x1c]
push edx
call fcn.1001b880
add esp, 0xc
push fcn.10053220
push 0x4e2b
mov eax, dword [ebp - 0x1c]
push eax
call fcn.1001b880
add esp, 0xc
push 1
push 0x2b
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.1001b880
add esp, 0xc
push 1
push 0x29
mov edx, dword [ebp - 0x1c]
push edx
call fcn.1001b880
add esp, 0xc
push 1
push 0x34
mov eax, dword [ebp - 0x1c]
push eax
call fcn.1001b880
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.1001ba80
add esp, 4
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x18]
push edx
call fcn.10053042
add esp, 4
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
push 0x200002
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.1001bac0
add esp, 0xc
mov edx, dword [ebp - 0x1c]
push edx
call fcn.1001baa0
add esp, 4
cmp dword [ebp - 0x14], 0
jne 0x1007130f
cmp dword [ebp - 0x10], 0xc8
jne 0x1007130f
mov dword [ebp - 0x98], 1
jmp 0x10071319
mov dword [ebp - 0x98], 0
mov al, byte [ebp - 0x98]
mov byte [ebp - 0x72], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.1000141a
mov al, byte [ebp - 0x72]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.1005097c
mov esp, ebp
pop ebp
ret
Function at 0x10071a40
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10073cec
mov eax, dword fs:[0]
push eax
sub esp, 0x2c0
mov eax, dword [0x1008dd90]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10071a80
xor al, al
jmp 0x10071c2c
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0
jmp 0x10071a9f
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 9
jae 0x10071c2a
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax*4 + 0x1008f1a4]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.SHLWAPI.dll_StrStrW]
test eax, eax
je 0x10071c25
movzx eax, byte [0x1009058c]
test eax, eax
jne 0x10071b88
xor ecx, ecx
mov word [ebp - 0x23c], cx
push 0x206
push 0
lea edx, [ebp - 0x23a]
push edx
call fcn.10050bb0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x23c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x23c]
push edx
lea ecx, [ebp - 0x258]
call fcn.100029e0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x258]
push eax
lea ecx, [ebp - 0x274]
push ecx
call fcn.10071790
add esp, 8
mov dword [ebp - 0x2c8], eax
mov edx, dword [ebp - 0x2c8]
mov dword [ebp - 0x2cc], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x2cc]
push eax
mov ecx, 0x10090590
call fcn.10001447
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x274]
call fcn.1000143d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x258]
call fcn.1000143d
mov byte [0x1009058c], 1
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x290]
call fcn.100029e0
mov dword [ebp - 4], 2
lea edx, [ebp - 0x290]
push edx
lea eax, [ebp - 0x34]
push eax
call fcn.10071790
add esp, 8
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x290]
call fcn.1000143d
push 0x10090590
lea ecx, [ebp - 0x34]
push ecx
call fcn.100083d0
add esp, 8
movzx edx, al
test edx, edx
je 0x10071bf8
mov byte [ebp - 0x291], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.1000143d
mov al, byte [ebp - 0x291]
jmp 0x10071c2c
mov byte [ebp - 0x292], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.1000143d
mov al, byte [ebp - 0x292]
jmp 0x10071c2c
jmp 0x10071a96
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.1005097c
mov esp, ebp
pop ebp
ret
Function at 0x100219a
Capabilities:
Manipulate console buffer

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [0x101203c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov dword [ebp - 0xa8], eax
xor eax, eax
xor edi, edi
push 0x9e
mov word [ebp - 0xa4], ax
lea eax, [ebp - 0xa2]
push edi
push eax
mov dword [ebp - 0xb0], edi
call sub.msvcrt.dll_memset
add esp, 0xc
cmp ebx, edi
je 0x100227c
xor eax, eax
mov word [ebp - 0xac], ax
mov ax, word [esi + 6]
push 0x50
mov word [ebp - 0xaa], ax
pop ecx
lea eax, [ebp - 0xa4]
mov byte [eax], 0
inc eax
dec ecx
jne 0x100220c
push dword [ebp - 0xac]
mov esi, dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
push ebx
call esi
push edi
lea eax, [ebp - 0xb0]
push eax
push 0x4f
push 0x4f
push 0x4f
push 0x1001300
lea eax, [ebp - 0xa4]
push eax
call fcn.0100a740
mov edi, dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push eax
push ebx
call edi
push dword [ebp - 0xac]
push ebx
call esi
xor eax, eax
cmp dword [ebp - 0xa8], eax
je 0x100227c
push eax
lea ecx, [ebp - 0xb0]
push ecx
push eax
push dword [ebp - 0xa8]
call fcn.0100966d
push eax
push dword [ebp - 0xa8]
push ebx
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01008ac3
leave
ret 0xc
Function at 0x1008aa9
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1010790
call fcn.01008f04
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x10124e4
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x10088be
cmp eax, esi
jne 0x10088b1
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x10088c1
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1008898
xor esi, esi
inc esi
mov eax, dword [0x10124e0]
cmp eax, esi
jne 0x10088d4
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x100890f
mov eax, dword [0x10124e0]
test eax, eax
jne 0x1008909
mov dword [0x10124e0], esi
push 0x10012ac
push 0x10012a0
call fcn.01008815
pop ecx
pop ecx
test eax, eax
je 0x100890f
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x10089d9
mov dword [0x1012088], esi
mov eax, dword [0x10124e0]
cmp eax, esi
jne 0x1008933
push 0x100129c
push 0x1001294
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x10124e0], 2
cmp dword [ebp - 0x1c], ebx
jne 0x1008940
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x10124e8], ebx
je 0x1008961
push 0x10124e8
call fcn.01008e79
pop ecx
test eax, eax
je 0x1008961
push ebx
push 2
push ebx
call dword [0x10124e8]
push dword [0x1012070]
push dword [0x1012074]
push dword [0x101206c]
call fcn.01004f94
add esp, 0xc
mov dword [0x1012084], eax
cmp dword [0x1012078], ebx
jne 0x10089bf
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x1012088], ebx
jne 0x10089cd
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1012084]
call fcn.01008f49
ret
call fcn.01009051
jmp 0x1008876
Function at 0x100c395
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa08
mov eax, dword [0x101203c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
xor esi, esi
mov dword [ebp - 0x9e4], eax
push 7
xor eax, eax
pop ecx
lea edi, [ebp - 0xa04]
mov dword [ebp - 0xa08], esi
mov dword [ebp - 0x9e8], edx
mov dword [ebp - 0x9e0], esi
mov dword [ebp - 0x9dc], esi
rep stosd dword es:[edi], eax
mov word [ebp - 0x46], ax
cmp dword [ebp - 0x9e4], esi
je 0x100c519
cmp ebx, esi
je 0x100c519
mov eax, dword [ebx]
cmp eax, esi
je 0x100c412
cmp eax, 2
jb 0x100c519
cmp edx, esi
je 0x100c519
cmp dword [0x10123c4], esi
jne 0x100c446
lea eax, [ebp - 0x9d8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x100c43c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
jmp 0x100c525
mov dword [0x10123c4], 1
lea eax, [ebp - 0x9dc]
push eax
lea eax, [ebp - 0xa08]
push eax
push esi
push dword [ebp - 0x9e4]
call dword [sym.imp.WS2_32.dll_GetAddrInfoW]
test eax, eax
jne 0x100c52b
mov esi, dword [ebp - 0x9dc]
xor edi, edi
jmp 0x100c4b3
push 4
xor eax, eax
mov word [ebp - 0x848], ax
push 0x20
lea eax, [ebp - 0x44]
push eax
push 0x401
lea eax, [ebp - 0x848]
push eax
push dword [esi + 0x10]
push dword [esi + 0x18]
call dword [sym.imp.WS2_32.dll_GetNameInfoW]
cmp eax, edi
je 0x100c4b9
cmp eax, 0x2afc
jne 0x100c4b0
cmp word [ebp - 0x848], di
jne 0x100c4b9
mov esi, dword [esi + 0x1c]
cmp esi, edi
jne 0x100c473
jmp 0x100c505
lea esi, [ebp - 0x848]
cmp dword [ebp + 0x14], edi
jne 0x100c4d6
mov eax, esi
push 0x1001b00
push eax
call dword [sym.imp.msvcrt.dll_wcstok]
pop ecx
pop ecx
mov esi, eax
push edi
push esi
call fcn.0100966d
mov ecx, dword [ebx]
inc eax
cmp ecx, eax
jae 0x100c4f2
mov dword [ebx], eax
mov dword [ebp - 0x9e0], 1
jmp 0x100c505
push ecx
push esi
push dword [ebp - 0x9e8]
call fcn.01009f59
mov dword [ebp - 0x9e0], eax
push dword [ebp - 0x9dc]
call dword [sym.imp.WS2_32.dll_FreeAddrInfoW]
mov eax, dword [ebp - 0x9e0]
jmp 0x100c52d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100c52b
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01008ac3
leave
ret 0x10
Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x461f20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x455015
lea edi, [esi - 0x54015]
push edi
or ebp, 0xffffffff
jmp 0x461f42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x461f49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x461f38
mov eax, 1
add ebx, ebx
jne 0x461f5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x461f50
jne 0x461f6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f50
xor ecx, ecx
sub eax, 3
jb 0x461f80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x461ff2
mov ebp, eax
add ebx, ebx
jne 0x461f8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x461f98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x461fbc
inc ecx
add ebx, ebx
jne 0x461fa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x461f9d
jne 0x461fb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x461fdc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x461fcd
jmp 0x461f3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x461fdc
add edi, ecx
jmp 0x461f3e
pop esi
mov edi, esi
mov ecx, 0x32d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x461ffa
cmp byte [edi], 0
jne 0x461ffa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x461fff
lea edi, [esi + 0x5f000]
mov eax, dword [edi]
or eax, eax
je 0x46206e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x621f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x62254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46202c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x62258]
or eax, eax
je 0x462068
mov dword [ebx], eax
add ebx, 4
jmp 0x462049
call dword [esi + 0x6225c]
popal
jmp 0x4095a4
Function at 0x10001020
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x210
push esi
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 4]
push eax
push 0x10008100
push 1
push 0
push 0x10008010
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jl 0x100010e6
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x218]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x21c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x224]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
lea edx, [esp + 8]
mov eax, dword [esp + 4]
push edx
push 0x10008400
push eax
mov ecx, dword [eax]
call dword [ecx]
mov esi, eax
test esi, esi
jl 0x100010dc
mov ecx, dword [esp + 0x220]
lea eax, [esp + 0xc]
push 0x104
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea ecx, [esp + 0xc]
push 1
mov eax, dword [esp + 0xc]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x18]
mov esi, eax
mov eax, dword [esp + 8]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
pop esi
add esp, 0x210
ret 0x10

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

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 4

Function at 0x10001120
Capabilities:
Create directory

Disassembly:
sub esp, 0x200
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x100]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x214]
lea ebp, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x3f
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov al, byte [esp + 0x110]
lea esi, [esp + 0x110]
test al, al
je 0x100011cb
mov bl, byte [esi]
cmp bl, 0x2f
je 0x10001187
cmp bl, 0x5c
jne 0x100011bf
cmp byte [esp + 0x11], 0x3a
jne 0x100011a1
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 3
jbe 0x100011bf
lea ecx, [esp + 0x10]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x100011bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x100011eb
mov al, byte [esi + 1]
mov byte [ebp], bl
inc ebp
inc esi
test al, al
jne 0x1000117b
lea edx, [esp + 0x10]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x100011e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x100011eb
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x200
ret 4
Function at 0x10001200
Capabilities:
Delete file
Move file

Disassembly:
sub esp, 0x124
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x12c]
lea ecx, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, 7
xor eax, eax
lea edi, [esp + 4]
lea edx, [esp + 0x24]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
mov dword [esp + 0xc], 3
mov dword [esp + 0x10], edx
mov word [esp + 0x18], 0x14
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov eax, 1
pop edi
add esp, 0x124
ret 4

Function at 0x10001310
Capabilities:
Enumerate files on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x348
lea eax, [esp + 0x244]
push ebx
push ebp
push esi
push edi
mov esi, 1
push eax
push ecx
mov ebx, esi
call fcn.10001270
lea edx, [esp + 0x254]
lea eax, [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x10]
push str..
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x114]
lea eax, [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x10001395
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
test esi, esi
je 0x10001395
cmp byte [esp + 0x140], 0x2e
jne 0x10001393
lea ecx, [esp + 0x114]
push ecx
push edi
call ebp
mov esi, eax
jmp 0x10001376
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x348
ret 4
Function at 0x100013b0
Capabilities:
Delete directory
Enumerate files on windows

Disassembly:
sub esp, 0x368
mov ecx, dword [esp + 0x36c]
push ebx
push ebp
push esi
lea eax, [esp + 0x130]
push edi
push eax
push ecx
mov ebp, 1
call fcn.10001270
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x134]
lea eax, [esp + 0x30]
push edx
push eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x30]
push str..
push ecx
call esi
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x10]
lea edx, [esp + 0x238]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x30]
push edx
push eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 3
mov word [esp + 0x28], 0x14
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x100014a5
test ebp, ebp
je 0x100014a5
cmp byte [esp + 0x264], 0x2e
je 0x10001492
lea ecx, [esp + 0x134]
lea edx, [esp + 0x30]
push ecx
push edx
call ebx
lea eax, [esp + 0x30]
push 0x1000a030
push eax
call esi
lea ecx, [esp + 0x264]
lea edx, [esp + 0x30]
push ecx
push edx
call esi
lea eax, [esp + 0x30]
push 0x1000d990
push eax
call esi
lea edx, [esp + 0x10]
lea ecx, [esp + 0x30]
push edx
mov dword [esp + 0x1c], ecx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
lea eax, [esp + 0x238]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov ebp, eax
jmp 0x1000143b
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x134]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov esi, eax
test esi, esi
je 0x100014d4
lea edx, [esp + 0x134]
push 0
push edx
push 1
push 0x10
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x368
ret 4

Function at 0x100015f0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
mov edx, dword [esp + 0x60]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x60]
push ecx
push 0
push 0
push 0x20
push 0
push 0
push 0
push edx
push eax
mov dword [esp + 0x3c], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov eax, dword [esp + 4]
test eax, eax
je 0x1000164b
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
add esp, 0x54
ret 8

Function at 0x100018b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
lea eax, [esp + 0xc]
push esi
mov esi, dword [esp + 0x10]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
mov byte [esi], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000190a
lea ecx, [esp + 4]
lea edx, [esp + 8]
push ecx
push esi
push edx
push eax
mov eax, dword [esp + 0x20]
push str.ProgramFilesDir
push eax
mov dword [esp + 0x1c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
add esp, 8
ret 4
Function at 0x100023a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x100023c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.100035d0
add esp, 4
or eax, 0xffffffff
ret
test al, 1
je 0x100023e8
test byte [esp + 8], 2
je 0x100023e8
call fcn.10003650
mov dword [eax], 0xd
call fcn.10003660
mov dword [eax], 5
or eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x100036d0
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
call fcn.10003790
mov eax, dword [0x1000da78]
mov ebp, dword [esp + 0x10]
cmp eax, 1
jne 0x100036f4
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x1000da74], 1
mov byte [0x1000da70], bl
jne 0x1000374e
mov ecx, dword [0x1000f068]
test ecx, ecx
je 0x1000373c
mov esi, dword [0x1000f064]
sub esi, 4
cmp esi, ecx
jb 0x1000373c
mov eax, dword [esi]
test eax, eax
je 0x10003735
call eax
mov ecx, dword [0x1000f068]
sub esi, 4
cmp esi, ecx
jae 0x10003727
push 0x1000a01c
push 0x1000a014
call fcn.100037b0
add esp, 8
push 0x1000a024
push 0x1000a020
call fcn.100037b0
add esp, 8
test ebx, ebx
je 0x1000376d
call fcn.100037a0
pop esi
pop ebp
pop ebx
ret
push ebp
mov dword [0x1000da78], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x10003880
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x1000a7a0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x100038ee
push 0x74
push 1
call fcn.100066e0
mov esi, eax
add esp, 8
test esi, esi
je 0x100038e4
mov ecx, dword [0x1000a7a0]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x100038e4
push esi
call fcn.10003860
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
push 0x10
call fcn.100025c0
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret