joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Get file version info

Disassembly:
sub esp, 0x118
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x114], eax
push ebp
mov ebp, dword [esp + 0x120]
push esi
mov esi, dword [esp + 0x128]
push edi
lea eax, [esp + 0xc]
push eax
push ebp
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], 0
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
je 0x4010e0
push ebx
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [esp + 0x10]
mov ebx, eax
push ebx
push edi
push ecx
push ebp
call sub.VERSION.dll_GetFileVersionInfoA
push 0x417218
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
push ebx
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 0x18]
movzx ecx, word [eax + 0xc]
movzx edx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
push edx
movzx edx, word [eax + 0xa]
mov eax, dword [esp + 0x1c]
push ecx
push edx
push str._02d._02d._02d._04d
push eax
call fcn.0040143c
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004015d0
add esp, 0x118
ret
push str.NULL
push esi
mov edi, 1
call fcn.0040143c
mov ecx, dword [esp + 0x128]
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004015d0
add esp, 0x118
ret

Function at 0x4015d0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x4015da
repz ret
jmp fcn.00402fc4
Function at 0x40af64
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004048ce
xor ebx, ebx
cmp dword [0x41b9a8], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x40b039
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x40afa4
xor eax, eax
jmp 0x40b0fd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40af9d
push eax
call fcn.0040486b
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41b9a8], eax
call esi
push eax
call fcn.0040486b
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41b9ac], eax
call esi
push eax
call fcn.0040486b
mov dword [0x41b9b0], eax
lea eax, [ebp - 8]
push eax
call fcn.004039f5
test eax, eax
pop ecx
pop ecx
je 0x40b007
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004028d2
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x40b039
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040486b
cmp eax, ebx
pop ecx
mov dword [0x41b9b8], eax
je 0x40b039
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040486b
pop ecx
mov dword [0x41b9b4], eax
mov eax, dword [0x41b9b4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x40b0b2
cmp dword [0x41b9b8], esi
je 0x40b0b2
push eax
call fcn.004048d7
pop ecx
call eax
cmp eax, ebx
je 0x40b07f
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x41b9b8]
call fcn.004048d7
pop ecx
call eax
test eax, eax
je 0x40b07f
test byte [ebp - 0x18], 1
jne 0x40b0b2
lea eax, [ebp - 0xc]
push eax
call fcn.00403aa4
test eax, eax
pop ecx
je 0x40b09a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004028d2
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x40b0a9
or dword [ebp + 0x10], 0x200000
jmp 0x40b0e3
or dword [ebp + 0x10], 0x40000
jmp 0x40b0e3
mov eax, dword [0x41b9ac]
cmp eax, esi
je 0x40b0e3
push eax
call fcn.004048d7
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40b0e3
mov eax, dword [0x41b9b0]
cmp eax, esi
je 0x40b0e3
push dword [ebp - 4]
push eax
call fcn.004048d7
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x41b9a8]
call fcn.004048d7
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408310
Capabilities:
Create thread
Resume thread

Disassembly:
push ecx
lea eax, [esp]
push esi
mov esi, ecx
push eax
push 4
push esi
push 0x407ad0
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0x18], eax
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
pop esi
pop ecx
ret

Function at 0x408340
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [esi + 8]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 1
push ecx
call edi
mov ebx, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call ebx
mov edx, dword [esi + 8]
push 0
push 0x37
push edx
call edi
push eax
call ebx
mov eax, dword [esi + 8]
push 0
push 0x39
push eax
call edi
push eax
call ebx
mov ecx, dword [esi + 8]
push 0
push 0x38
push ecx
call edi
push eax
call ebx
push 1
mov ecx, esi
mov dword [esi + 0x1c], 0
call fcn.00407a50
lea edx, [esp + 0xc]
push edx
push 0
push esi
push 0x407b00
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0x18], eax
mov eax, 1
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x408ee0
Capabilities:
Delete file
Hide graphical window

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
mov eax, dword [esi + 0xc]
push 0
push 0x110a
push eax
call edi
mov ebx, dword [esp + 0x10]
push eax
push 9
push 0x110b
mov dword [ebx], eax
mov ecx, dword [esi + 0xc]
push ecx
call edi
mov edx, dword [ebx]
mov eax, dword [esi + 0xc]
push edx
push 0
push 0x1114
push eax
call edi
mov ecx, dword [esi + 8]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0x19c
push ecx
call edi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esi + 8]
push 0
push 0x3e8
push 0x402
push 0x19a
push edx
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov eax, dword [esi + 8]
push 0x426fec
push 0x19b
push eax
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x408fd6
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x408fd6
mov ecx, dword [esp + 0x20]
call fcn.004109f0
mov ecx, dword [esp + 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ecx
call ebx
mov edx, dword [esp + 0x18]
push edx
call ebx
push 0
mov ecx, esi
call fcn.00407a50
mov eax, dword [esi + 8]
push 1
push 1
push eax
call edi
mov ebx, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call ebx
mov ecx, dword [esi + 8]
push 1
push 0x37
push ecx
call edi
push eax
call ebx
mov edx, dword [esi + 8]
push 1
push 0x39
push edx
call edi
push eax
call ebx
mov eax, dword [esi + 8]
push 1
push 0x38
push eax
call edi
push eax
call ebx
pop edi
pop esi
pop ebx
ret 0x14
Function at 0x40a310
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push 0
push 0
push 0
mov esi, ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [esi + 0x88], eax
jne 0x40a331
xor al, al
pop esi
pop ecx
ret
lea eax, [esp + 4]
push eax
push 0
push esi
push 0x40a360
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
neg eax
sbb eax, eax
pop esi
neg eax
pop ecx
ret
Function at 0x40c520
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x41f58b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0xc], edi
mov edx, dword [esp + 0x134]
mov eax, dword [ebx]
lea ecx, [esp + 0x14]
mov dword [esp + 0x12c], edi
push ecx
push 0x2001f
push edi
push edx
push eax
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
cmp esi, edi
jne 0x40c598
mov ecx, dword [esp + 0xc]
xor eax, eax
cmp ecx, edi
je 0x40c588
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
cmp eax, edi
mov esi, eax
mov dword [esp + 0xc], ecx
je 0x40c5aa
jmp 0x40c59c
mov ecx, dword [esp + 0xc]
cmp ecx, edi
je 0x40c645
push ecx
jmp 0x40c63f
lea eax, [esp + 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
push edi
push edi
lea edx, [esp + 0x1c]
push edi
lea eax, [esp + 0x34]
push edx
push eax
push edi
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
jne 0x40c610
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x10]
call fcn.0040c520
mov ebx, eax
cmp ebx, edi
jne 0x40c661
lea edx, [esp + 0x1c]
lea eax, [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
push edi
push edi
push edi
lea ecx, [esp + 0x34]
push eax
push ecx
push edi
push edx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
je 0x40c5d2
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x40c623
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], edi
mov eax, dword [esp + 0x134]
mov ecx, dword [ebx]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x40c645
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x124
ret 4
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x40c670
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x40c647
Function at 0x40cae0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x1008
call fcn.0041e780
push esi
push 0
push 0
mov esi, dword [esp + 0x1018]
push 0
lea eax, [esp + 0x10]
push 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push esi
mov dword [esp + 0x34], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x40cb2a
xor eax, eax
pop esi
add esp, 0x1008
ret 4
mov eax, dword [esp + 4]
cmp eax, 1
jne 0x40cb71
push 0
push 0
push 0
lea ecx, [esp + 0x14]
push 0
lea edx, [esp + 0x1c]
push ecx
push edx
push 0
push esi
mov dword [esp + 0x28], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x40cb1e
mov al, byte [esp + 0xc]
test al, al
je 0x40cb1e
mov eax, 1
pop esi
add esp, 0x1008
ret 4
xor ecx, ecx
pop esi
cmp ecx, eax
sbb eax, eax
neg eax
add esp, 0x1008
ret 4

Function at 0x40e7b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x41f70b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push esi
mov esi, ecx
push edi
push 0xfd4
mov dword [esp + 0xc], esi
mov dword [esi], eax
mov dword [esi + 8], 0x421b54
mov dword [esi + 0x10], 0x3f5
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [esi + 0x10]
mov edi, eax
shl ecx, 2
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esi + 0xc], edi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor edi, edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov eax, dword [esp + 0x24]
mov dword [esp + 0x18], edi
push eax
call fcn.00419230
mov ecx, dword [esp + 0x14]
add esp, 8
mov dword [esi + 4], eax
mov dword [esi + 0x24], 1
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], 0xffffffff
mov dword [esi + 0x30], edi
mov dword [esi + 0x18], edi
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x417b30
Capabilities:
Enumerate network shares

Disassembly:
sub esp, 0x14
push esi
mov esi, dword [esp + 0x20]
movsx eax, byte [esi]
push eax
call dword [sym.imp.MSVCRT.dll_toupper]
add esp, 4
cmp al, 0x41
mov byte [esp + 0x20], al
jl 0x417ca0
cmp al, 0x5a
jg 0x417ca0
cmp byte [esi + 1], 0x3a
jne 0x417ca0
mov al, byte [esi + 2]
add esi, 2
cmp al, 0x5c
mov dword [esp + 0x14], esi
jne 0x417ca0
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 1
push 1
call sub.MPR.dll_WNetOpenEnumA
test eax, eax
jne 0x417ca0
push ebx
push ebp
mov ebx, 0x640
push edi
push ebx
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov ebp, eax
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push ebp
push eax
push ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], 0xffffffff
call sub.MPR.dll_WNetEnumResourceA
cmp eax, 0xea
jne 0x417be8
mov eax, dword [esp + 0x14]
push eax
push ebp
mov ebx, eax
call dword [sym.imp.MSVCRT.dll_realloc]
add esp, 8
mov ebp, eax
jmp 0x417bab
test eax, eax
jne 0x417c80
mov eax, dword [esp + 0x10]
xor esi, esi
test eax, eax
jle 0x417bab
lea edi, [ebp + 0x10]
mov eax, dword [edi]
test eax, eax
je 0x417c19
movsx edx, byte [eax]
push edx
call dword [sym.imp.MSVCRT.dll_toupper]
movsx ecx, byte [esp + 0x30]
add esp, 4
cmp ecx, eax
je 0x417c27
mov eax, dword [esp + 0x10]
inc esi
add edi, 0x20
cmp esi, eax
jl 0x417bfd
jmp 0x417bab
shl esi, 5
or ecx, 0xffffffff
xor eax, eax
mov edi, dword [esi + ebp + 0x14]
mov edx, dword [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x1c], 1
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 edi, dword [esp + 0x20]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
push ecx
call sub.MPR.dll_WNetCloseEnum
push ebp
call dword [sym.imp.MSVCRT.dll_free]
mov eax, dword [esp + 0x20]
add esp, 4
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x14
ret
xor eax, eax
pop esi
add esp, 0x14
ret

Function at 0x4185d9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x418631
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x426fec
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x418624
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x418633
xor eax, eax
pop esi
leave
ret 4
Function at 0x419470
Capabilities:
Get geographical location

Disassembly:
mov al, byte [0x427178]
sub esp, 0x50
test al, al
jne 0x419490
push 0xa
push 0x427178
push 0xe
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
push esi
push edi
test eax, eax
jg 0x4194c6
jl 0x4194a8
cmp ecx, 0x3e8
jae 0x4194c6
push ecx
lea eax, [esp + 0xc]
push 0x426690
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov edi, str._bytes
jmp 0x41955e
test eax, eax
jg 0x419536
jl 0x4194d4
cmp ecx, 0xfa000
jae 0x4194fe
fild qword [esp + 0x5c]
sub esp, 8
lea ecx, [esp + 0x10]
fmul dword [0x421c4c]
fstp qword [esp]
push str._.1f
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
mov edi, 0x42669c
jmp 0x41955e
test eax, eax
jg 0x419536
jl 0x41950c
cmp ecx, 0x3e800000
jae 0x419536
fild qword [esp + 0x5c]
sub esp, 8
lea edx, [esp + 0x10]
fmul dword [0x421c48]
fstp qword [esp]
push str._.1f
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
mov edi, 0x426698
jmp 0x41955e
fild qword [esp + 0x5c]
sub esp, 8
lea eax, [esp + 0x10]
fmul dword [0x421c44]
fstp qword [esp]
push str._.1f
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
mov edi, 0x426694
mov cl, byte [0x427178]
test cl, cl
je 0x419588
cmp cl, 0x2e
je 0x419588
mov dl, byte [esp + 8]
lea eax, [esp + 8]
test dl, dl
je 0x419588
cmp byte [eax], 0x2e
jne 0x419580
mov byte [eax], cl
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x419579
mov esi, dword [esp + 0x64]
lea ecx, [esp + 8]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
pop edi
pop esi
add esp, 0x50
ret
Function at 0x4197a0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x210]
push ebp
push esi
push edi
lea eax, [esp + 0x114]
push ebx
push eax
mov byte [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebp, dword [sym.imp.MSVCRT.dll_strtok]
lea ecx, [esp + 0x114]
push 0x426068
push ecx
call ebp
mov esi, eax
mov ax, word [ebx]
mov edx, 0x4266b8
add esp, 8
cmp ax, word [edx]
jne 0x41980b
push esi
lea ecx, [esp + 0x14]
push str._s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x426068
push 0
call ebp
add esp, 0x14
mov esi, eax
test esi, esi
je 0x419883
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov al, byte [esp + 0x10]
test al, al
jne 0x419822
cmp byte [ebx], 0x5c
jne 0x41982e
lea edx, [esp + 0x10]
push 0x426068
push edx
call edi
lea eax, [esp + 0x10]
push esi
push eax
call edi
push 0x426068
push 0
call ebp
mov esi, eax
mov al, byte [esp + 0x18]
add esp, 8
test al, al
je 0x41987f
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esp + eax + 0xf], 0x3a
je 0x41987f
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41987f
lea eax, [esp + 0x10]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x419893
test esi, esi
jne 0x419815
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x208
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x208
ret

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

Disassembly:
sub esp, 0x128
push ebx
push ebp
mov ebp, dword [esp + 0x138]
push esi
cmp byte [ebp], 0
setne bl
test bl, bl
je 0x419a7e
lea eax, [esp + 0x2c]
push 0
push eax
push 0x105
push ebp
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dl, byte [esp + eax + 0x2b]
lea ecx, [esp + eax + 0x2c]
cmp dl, 0x5c
jne 0x419a45
cmp eax, 1
jle 0x419a45
cmp byte [ecx - 2], 0x3a
je 0x419a45
mov byte [ecx - 1], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea edx, [esp + 0x2c]
push edx
call esi
cmp eax, 0xffffffff
jne 0x419a7e
push edi
mov edi, dword [sym.imp.MSVCRT.dll__mbsrchr]
lea eax, [esp + 0x30]
push 0x5c
push eax
call edi
add esp, 8
test eax, eax
je 0x419a7d
lea ecx, [esp + 0x30]
mov byte [eax], 0
push ecx
call esi
cmp eax, 0xffffffff
je 0x419a5e
pop edi
mov ecx, dword [esp + 0x144]
xor esi, esi
mov edx, dword [esp + 0x138]
mov eax, dword [esp + 0x140]
neg ecx
sbb ecx, ecx
mov dword [esp + 0xc], edx
and ecx, 0xfffffe00
mov dword [esp + 0x18], eax
add ecx, 0x200
lea edx, [esp + 0x2c]
or ecx, 0x41
lea eax, [esp + 0xc]
neg bl
sbb ebx, ebx
push eax
and ebx, edx
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], 0x419950
mov dword [esp + 0x28], ebx
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderA]
cmp eax, esi
je 0x419af8
push ebp
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x128
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x128
ret
Function at 0x419cd0
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x1000
call fcn.0041e780
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
push esi
mov esi, dword [esp + 0x100c]
push edi
mov edi, dword [esp + 0x1014]
push esi
push edi
lea eax, [esp + 0x14]
push str._dbg_printf__s:_d__:
push eax
call ebx
mov edx, dword [esp + 0x1028]
lea ecx, [esp + 0x102c]
push ecx
lea eax, [esp + eax + 0x20]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_vsprintf]
add esp, 0x1c
test eax, eax
jge 0x419d32
push edi
push esi
lea ecx, [esp + 0x14]
push str._dbg_printf__s:_d__:__vsprintf_error_
push ecx
call ebx
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
pop ebx
add esp, 0x1000
ret
Function at 0x41a8f0
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 0x10
mov edi, dword [esi + 0x110]
mov dword [esp + 0x14], 0
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
xor eax, eax
mov ecx, ebx
add esp, 4
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov edi, dword [edi + 0x1c]
add edi, 0x104
je 0x41a975
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esi + 0x10c]
push 0
push 0
push edi
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esi + 0x10c]
lea eax, [esp + 0x10]
push 0
push eax
push 0x10
push ebx
push ecx
call ebp
test eax, eax
je 0x41a975
mov dword [esi + 0x134], edi
mov eax, dword [ebx + 8]
mov edi, dword [ebx + 0xc]
cmp eax, 0xffffffff
je 0x41a989
cmp dword [esp + 0x18], eax
jle 0x41a989
test edi, edi
jne 0x41a931
push ebx
call fcn.0041e706
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
mov eax, dword [ebx]
lea edx, [eax + eax*4]
lea eax, [edx*4 + 0x10]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
push ebx
mov dword [esi + 0x114], edi
mov eax, dword [ebx]
lea ecx, [eax + eax*4]
xor eax, eax
lea ecx, [ecx*4 + 0x10]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esi + 0x114]
mov eax, ebx
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
call fcn.0041e706
mov eax, dword [esi + 0x114]
add esp, 8
lea ecx, [esp + 0x10]
mov dword [esi + 0x11c], 0
push 0
push ecx
mov ecx, dword [eax]
add eax, 0x10
lea edx, [ecx + ecx*4]
shl edx, 2
push edx
push eax
mov eax, dword [esi + 0x10c]
push eax
call ebp
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
pop ebp
dec eax
pop ebx
pop ecx
ret 4
Function at 0x41aa30
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push edi
mov ebp, ecx
push 0x104
mov dword [esp + 0x10], 0
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
mov ecx, 0x41
xor eax, eax
mov edi, ebx
push eax
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0x10c]
lea eax, [esp + 0x10]
push eax
push 0x104
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41aa86
push ebx
call fcn.0041e706
add esp, 4
or eax, 0xffffffff
pop edi
pop ebp
pop ebx
pop ecx
ret
mov edx, dword [ebx + 0x1c]
push esi
add edx, 0x104
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
xor eax, eax
mov dword [ebp + 0x110], edi
mov ecx, dword [ebx + 0x1c]
add ecx, 0x104
mov esi, ebx
mov edx, ecx
push ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [ebp + 0x110]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
call fcn.0041e706
mov eax, dword [ebp + 0x110]
add esp, 8
lea ecx, [esp + 0x10]
mov edx, dword [eax + 0x1c]
push 0
push ecx
add eax, 0x104
push edx
push eax
mov eax, dword [ebp + 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
neg eax
sbb eax, eax
pop esi
neg eax
pop edi
pop ebp
dec eax
pop ebx
pop ecx
ret