joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x431001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
nop
popal
jmp int.00401219
Function at 0x807850
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x24d000]
mov dword [edi + 0x2cd47c], 0x15685f3e
push edi
jmp 0x80787a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x807881
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x807870
mov eax, 1
add ebx, ebx
jne 0x807893
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x8078a4
jne 0x8078c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8078c3
dec eax
add ebx, ebx
jne 0x8078b0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x807888
add ebx, ebx
jne 0x8078bf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x807915
xor ecx, ecx
sub eax, 3
jb 0x8078db
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x80794a
sar eax, 1
mov ebp, eax
jmp 0x8078e6
add ebx, ebx
jne 0x8078e6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8078b4
inc ecx
add ebx, ebx
jne 0x8078f4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8078b4
add ebx, ebx
jne 0x807901
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x8078f6
jne 0x807912
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x8078f6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x807934
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x807926
jmp 0x807876
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x807934
add edi, ecx
jmp 0x807876
pop esi
mov edi, esi
mov ecx, 0xef8e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x807952
cmp byte [edi], 0x26
jne 0x807952
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 al, bl
loop 0x807957
lea edi, [esi + 0x3f6000]
mov eax, dword [edi]
or eax, eax
je 0x8079cf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x477934]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x477b08]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x807984
mov ecx, edi
jns 0x8079b3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x477b10]
or eax, eax
je 0x8079c9
mov dword [ebx], eax
add ebx, 4
jmp 0x8079a1
call dword [esi + 0x477b0c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x807a00
cmp al, 0xef
ja 0x8079f3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x8079d5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x8079e2
mov ebp, dword [esi + 0x477b14]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x26f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x807a34
sub esp, 0xffffff80
jmp 0x5c9f5a
Function at 0x100013c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10026ea5
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
mov eax, dword [0x10037018]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0x10]
cmp byte [ecx], 0
mov eax, ecx
je 0x100013fb
inc eax
cmp byte [eax], 0
jne 0x100013f5
sub eax, ecx
mov dword [esp + 0x18], 0x100005
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
mov esi, dword [ebp + 8]
xor eax, eax
cmp byte [ebp + 0x14], al
lea ecx, [esp + 0xc]
setne al
push ecx
lea ebx, [esp + 0x20]
add eax, 0x101
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0xc]
call fcn.10001a70
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10001590
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10026aa5
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10037018]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
push edi
mov eax, dword [0x10037018]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x24], 0x100005
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov edi, eax
cmp byte [eax], cl
je 0x100015f6
inc edi
cmp byte [edi], 0
jne 0x100015f0
push edx
sub edi, eax
push eax
lea ebx, [esp + 0x20]
call fcn.10001d50
mov ecx, dword [esi + 8]
cmp dword [esi + 4], ecx
jb 0x10001635
mov edi, 0x10
test ecx, ecx
je 0x10001617
lea edi, [ecx + ecx]
cmp edi, ecx
jbe 0x10001635
mov edx, dword [esp + 0x14]
mov eax, edi
shl eax, 4
push eax
push edx
mov edx, dword [esi]
shl ecx, 4
call fcn.10001e80
mov dword [esi], eax
mov dword [esi + 8], edi
mov ecx, dword [esi + 4]
mov eax, ecx
shl eax, 4
add eax, dword [esi]
inc ecx
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x18]
mov dword [eax], ecx
mov edx, dword [esp + 0x1c]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x20]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x24]
mov dword [eax + 0xc], edx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.100256d0
mov esp, ebp
pop ebp
ret
Function at 0x10006780
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10027c48
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x10037018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], ecx
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100067c0
mov ebx, dword [sym.imp.MSVCR100.dll_malloc]
sub eax, edx
sar eax, 1
lea esi, [eax + eax + 2]
push esi
call ebx
push esi
mov edi, eax
push 0
push edi
call sub.MSVCR100.dll_memset
mov edx, dword [ebp - 0x34]
add esi, 0xfffffffe
push esi
push edx
push edi
call sub.MSVCR100.dll_memcpy
mov eax, dword [ebp - 0x30]
add esp, 0x1c
mov dword [0x100382f4], edi
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x10006804
sub eax, ecx
sar eax, 1
lea esi, [eax + eax + 2]
push esi
call ebx
push esi
xor ebx, ebx
mov edi, eax
push ebx
push edi
call sub.MSVCR100.dll_memset
mov eax, dword [ebp - 0x30]
add esi, 0xfffffffe
push esi
push eax
push edi
call sub.MSVCR100.dll_memcpy
add esp, 0x1c
mov dword [0x100382f8], edi
call sym.libBasic.dll_public:_static_wchar_t____cdecl_BASUtilitySys::GetAppDataDir_void_
xor ecx, ecx
mov edi, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10006857
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea esi, [ebp - 0x2c]
call fcn.10007710
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.MSVCR100.dll_free]
mov eax, dword [0x100382f4]
mov ecx, eax
add esp, 4
lea esi, [ecx + 2]
jmp 0x10006890
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x10006890
sub ecx, esi
sar ecx, 1
push ecx
lea ecx, [ebp - 0x2c]
call fcn.10003b30
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x100068b4
lea eax, [ebp - 0x2c]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call ebx
push 1
mov eax, 0x10029680
lea ecx, [ebp - 0x2c]
call fcn.10003b30
mov ecx, eax
mov eax, dword [0x100382f8]
mov edx, eax
lea edi, [edx + 2]
lea esp, [esp]
mov si, word [edx]
add edx, 2
test si, si
jne 0x100068e0
sub edx, edi
sar edx, 1
push edx
call fcn.10003b30
mov eax, dword [ebp - 0x2c]
mov esi, 8
cmp dword [ebp - 0x18], esi
jae 0x10006905
lea eax, [ebp - 0x2c]
push 0
push eax
call ebx
push 1
mov eax, 0x10029680
lea ecx, [ebp - 0x2c]
call fcn.10003b30
mov ecx, eax
push 0x10
mov eax, str.Preferences.json
call fcn.10003b30
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x10006932
lea eax, [ebp - 0x2c]
push eax
push str.UserDefault
call sym.libBasic.dll_public:_static_bool___cdecl_BASUserDefaults::InitUserDefaults_char_const___wchar_t_const__
add esp, 8
mov bl, al
cmp dword [ebp - 0x18], esi
jb 0x10006954
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100256d0
mov esp, ebp
pop ebp
ret
Function at 0x10006b00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 4]
push ebx
push esi
push edi
push 0x1002aac4
push ecx
mov dword [esp + 0x14], eax
call dword [sym.imp.MSVCR100.dll__wfopen]
mov edi, eax
add esp, 8
test edi, edi
je 0x10006bea
mov esi, dword [sym.imp.MSVCR100.dll_fseek]
push 2
push 0
push edi
call esi
add esp, 0xc
push edi
call dword [sym.imp.MSVCR100.dll_ftell]
add esp, 4
push 0
push 0
push edi
mov ebx, eax
call esi
lea eax, [ebx + 1]
add esp, 0xc
push eax
call dword [sym.imp.MSVCR100.dll_malloc]
mov esi, eax
add esp, 4
lea eax, [ebx + 1]
push eax
push 0
push esi
call sub.MSVCR100.dll_memset
add esp, 0xc
push edi
push 1
push ebx
push esi
call dword [sym.imp.MSVCR100.dll_fread]
push edi
mov byte [esi + ebx], 0
call dword [sym.imp.MSVCR100.dll_fclose]
mov ebx, dword [esp + 0x20]
add esp, 0x14
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
call fcn.10008700
cmp dword [eax + 0x28], 0
je 0x10006bf3
mov eax, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
push eax
push ecx
mov ecx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push str.parse_error
push ecx
call fcn.100078f0
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
test ebx, ebx
je 0x10006be0
xor eax, eax
mov dword [ebx + 0xc], 3
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
push esi
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10006c10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10027740
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x10037018]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov eax, dword [0x10037018]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov eax, ecx
mov esi, dword [eax + 8]
mov eax, dword [eax + 4]
push 0x1002aad8
push eax
call dword [sym.imp.MSVCR100.dll__wfopen]
xor ebx, ebx
push 1
mov dword [esp + 0x38], eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], 0x100
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 0xc
cmp eax, ebx
je 0x10006c90
mov byte [eax], bl
jmp 0x10006c92
xor eax, eax
mov edi, dword [esp + 0x28]
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.MSVCR100.dll_malloc]
add edi, eax
add esp, 4
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x80], ebx
push 0x100
lea edi, [esp + 0x38]
mov dword [esp + 0x34], ecx
call fcn.10001bb0
mov byte [esp + 0x4c], 0x20
mov dword [esp + 0x50], 4
lea edx, [esp + 0x30]
push edx
mov ecx, esi
mov byte [esp + 0x84], 1
call fcn.10007b40
mov ecx, dword [esp + 0x20]
lea eax, [ecx + 1]
cmp eax, dword [esp + 0x24]
jb 0x10006d34
mov esi, dword [esp + 0x28]
mov edi, ecx
mov ecx, dword [esp + 0x1c]
sub edi, ecx
add esi, esi
lea eax, [edi + 1]
cmp esi, eax
jae 0x10006d18
mov esi, eax
push esi
push ecx
call dword [sym.imp.MSVCR100.dll_realloc]
add esp, 8
mov dword [esp + 0x1c], eax
lea ecx, [eax + edi]
add eax, esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], eax
mov eax, ecx
inc ecx
mov dword [esp + 0x20], ecx
mov byte [eax], bl
mov eax, dword [esp + 0x1c]
dec dword [esp + 0x20]
mov ecx, eax
mov dword [esp + 0x68], 0xf
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
lea esi, [ecx + 1]
lea ebx, [ebx]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x10006d60
sub ecx, esi
mov esi, ecx
lea ecx, [esp + 0x54]
call fcn.10001c80
mov eax, dword [esp + 0x54]
mov edi, 0x10
cmp dword [esp + 0x68], edi
jae 0x10006d87
lea eax, [esp + 0x54]
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x64]
push esi
push 1
push ecx
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
push esi
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 0x14
cmp dword [esp + 0x68], edi
mov edi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
jb 0x10006dba
mov edx, dword [esp + 0x54]
push edx
call edi
add esp, 4
mov esi, dword [esp + 0x38]
mov dword [esp + 0x68], 0xf
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
cmp esi, ebx
je 0x10006dd7
call fcn.100019c0
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.MSVCR100.dll_free]
mov ecx, dword [esp + 0x1c]
add esp, 4
push ecx
call edi
add esp, 4
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.100256d0
mov esp, ebp
pop ebp
ret
Function at 0x1000a210
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push 1
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop ebp
ret

Function at 0x1000a230
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push 1
push 0
push 0
push eax
push str.explore
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop ebp
ret
Function at 0x1000ab70
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov ecx, dword [ebp + 8]
mov eax, 0x14
mov word [ebp - 0x10], ax
xor eax, eax
lea edx, [ebp - 0x20]
push edx
mov dword [ebp - 0xa], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 6], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov esp, ebp
pop ebp
ret

Function at 0x1000abb0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov word [ebp - 4], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
mov edx, 0x214
push eax
mov dword [ebp - 0x1c], 2
mov dword [ebp - 0x14], ecx
mov word [ebp - 0x10], dx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb eax, eax
inc eax
mov esp, ebp
pop ebp
ret
Function at 0x1000af90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x10037018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push 0x206
xor ebx, ebx
lea ecx, [ebp - 0x412]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x414], ax
call sub.MSVCR100.dll_memset
push 0x208
lea edx, [ebp - 0x20c]
push ebx
push edx
call sub.MSVCR100.dll_memset
add esp, 0x18
lea eax, [ebp - 0x414]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [ebp - 0x20c]
lea edx, [ebp - 0x414]
mov dword [ebp - 0x434], edi
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x418], ebx
mov dword [ebp - 0x424], 0x51
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x428], edx
cmp esi, ebx
je 0x1000b03a
mov dword [ebp - 0x41c], esi
mov dword [ebp - 0x420], 0x1000af60
jmp 0x1000b046
mov dword [ebp - 0x41c], ebx
mov dword [ebp - 0x420], ebx
lea eax, [ebp - 0x434]
push eax
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
mov esi, eax
cmp esi, ebx
je 0x1000b072
lea ecx, [ebp - 0x20c]
push ecx
push esi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push esi
test eax, eax
jne 0x1000b085
call dword [sym.imp.ole32.dll_CoTaskMemFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100256d0
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x1000b094
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 - 0x20e], 0x5c
je 0x1000b0bb
mov edx, 0x5c
mov word [ebp + eax*2 - 0x20c], dx
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x1000b0c4
sub eax, edx
sar eax, 1
lea esi, [eax + eax + 2]
push esi
call dword [sym.imp.MSVCR100.dll_malloc]
push esi
mov edi, eax
push ebx
push edi
call sub.MSVCR100.dll_memset
add esi, 0xfffffffe
push esi
lea eax, [ebp - 0x20c]
push eax
push edi
call sub.MSVCR100.dll_memcpy
mov ecx, dword [ebp - 4]
add esp, 0x1c
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100256d0
mov esp, ebp
pop ebp
ret