joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402231
Capabilities:
Enumerate devices by category

Disassembly:
mov eax, 0x45d088
call fcn.0045c8d0
sub esp, 0x20
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
jl 0x4022a9
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x10]
mov dword [ebp - 4], ebx
push eax
push 0x48646c
push 1
push ebx
push 0x4864fc
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jne 0x402298
mov dword [ebp + 8], ebx
mov eax, dword [ebp - 0x10]
lea edx, [ebp + 8]
push ebx
push edx
mov ecx, dword [eax]
push 0x4864ec
push eax
mov byte [ebp - 4], 1
call dword [ecx + 0xc]
cmp eax, ebx
je 0x4022b0
mov eax, dword [ebp + 8]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x402298
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x4022a9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor al, al
jmp 0x402376
mov eax, dword [ebp + 8]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x14]
mov ecx, dword [eax]
push edx
push 1
push eax
xor esi, esi
call dword [ecx + 0xc]
cmp edi, ebx
jl 0x402352
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x18]
push edx
push 0x486580
mov ecx, dword [eax]
push ebx
push ebx
push eax
call dword [ecx + 0x24]
cmp eax, ebx
jl 0x402331
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x2c]
push ebx
mov word [ebp - 0x2c], 8
mov ecx, dword [eax]
push edx
push str.FriendlyName
push eax
call dword [ecx + 0xc]
cmp eax, ebx
jne 0x402328
cmp esi, edi
jne 0x40231f
push dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push 0x48645c
push ebx
push ebx
push eax
call dword [ecx + 0x20]
push dword [ebp - 0x24]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x14]
mov ecx, dword [eax]
push edx
push 1
push eax
inc esi
call dword [ecx + 0xc]
cmp esi, edi
jle 0x4022d3
mov eax, dword [ebp + 8]
mov byte [ebp - 4], bl
cmp eax, ebx
pop esi
je 0x402363
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x402374
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x402550
Capabilities:
Initialize winsock library

Disassembly:
mov eax, 0x45d0c0
call fcn.0045c8d0
sub esp, 0x19c
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x18], esi
lea ecx, [esi + 4]
call fcn.004013d6
xor ebx, ebx
lea ecx, [esi + 0x2c]
mov dword [ebp - 4], ebx
call fcn.004013d6
lea ecx, [esi + 0x54]
mov byte [ebp - 4], 1
call fcn.004013d6
lea ecx, [esi + 0x7c]
mov byte [ebp - 4], 2
call fcn.004013d6
lea eax, [ebp - 0x1a8]
mov byte [ebp - 4], 3
push eax
push 0x202
mov dword [esi], 0x47d5d0
call dword [sym.imp.WS2_32.dll_WSAStartup]
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateEventA]
or dword [esi + 0xa8], 0xffffffff
mov dword [esi + 0xac], eax
lea eax, [ebp - 0x14]
push 5
push eax
push 0x49bf28
mov byte [esi + 0xb0], bl
mov byte [ebp - 0x14], 0x4b
mov byte [ebp - 0x13], 0x75
mov byte [ebp - 0x12], 0x47
mov byte [ebp - 0x11], 0x6f
mov byte [ebp - 0x10], 0x75
call sub.MSVCRT.dll_memcpy
mov edi, 0x49d868
push edi
call sub.MSVCRT.dll_strlen
add esp, 0x10
mov ecx, esi
push eax
push edi
push 0x49be28
call fcn.004031d9
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4026ce
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov esi, ecx
call fcn.00402f23
push dword [esi + 0xac]
call dword [sym.imp.KERNEL32.DLL_ResetEvent]
xor ebx, ebx
mov byte [esi + 0xb0], bl
mov eax, dword [0x49bb24]
cmp eax, ebx
je 0x402709
cmp eax, 4
je 0x402709
cmp eax, 5
jne 0x4027a6
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0xa8], eax
je 0x4027a6
cmp dword [0x49bb24], ebx
je 0x402733
push 0x49bb28
jmp 0x40273b
cmp dword [ebp + 8], ebx
je 0x4027a6
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
cmp edi, ebx
je 0x4027a6
cmp dword [0x49bb24], ebx
mov word [ebp - 0x20], 2
je 0x40275e
mov ax, word [0x48a0a8]
push eax
jmp 0x402761
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1e], ax
mov eax, dword [edi + 0xc]
push 0x10
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
push dword [esi + 0xa8]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x4027a6
cmp dword [0x49bb24], 5
jne 0x4027aa
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call fcn.00402826
test al, al
jne 0x4027aa
xor al, al
jmp 0x40281f
push 1
lea eax, [ebp - 4]
pop edi
push 4
push eax
push 8
push 0xffff
push dword [esi + 0xa8]
mov dword [ebp - 4], edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x4027fd
push ebx
lea eax, [ebp - 4]
push ebx
push eax
push ebx
push ebx
lea eax, [ebp - 0x10]
push 0xc
push eax
push 0x98000004
push dword [esi + 0xa8]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], 0xea60
mov dword [ebp - 8], 0x1388
call dword [sym.imp.WS2_32.dll_WSAIoctl]
push edi
push ebx
push ebx
push esi
push 0x402add
push ebx
push ebx
mov byte [esi + 0xb0], 1
call fcn.004134e8
mov dword [esi + 0xa4], eax
add esp, 0x1c
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4030e3
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
and byte [ebp - 0x108], 0
push ebx
push esi
push edi
mov esi, ecx
push 0x3f
pop ecx
xor eax, eax
lea edi, [ebp - 0x107]
and dword [ebp - 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x100
lea eax, [ebp - 0x108]
push 0x49be28
push eax
call sub.MSVCRT.dll_memcpy
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
add esp, 0xc
lea eax, [ebp - 0x108]
mov ecx, esi
push edi
push ebx
push eax
call fcn.0040326f
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp + 8], edi
cmp edi, ebx
mov edi, dword [sym.imp.WS2_32.dll_send]
jb 0x403189
and dword [ebp + 0x10], 0
push 0
push ebx
push dword [ebp - 8]
push dword [esi + 0xa8]
call edi
test eax, eax
jg 0x40316d
inc dword [ebp + 0x10]
cmp dword [ebp + 0x10], 0xf
jl 0x403152
cmp dword [ebp + 0x10], 0xf
je 0x4031c2
add dword [ebp - 4], eax
add dword [ebp - 8], ebx
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
sub dword [ebp + 8], ebx
cmp dword [ebp + 8], ebx
jae 0x40314e
xor ebx, ebx
cmp dword [ebp + 8], ebx
jbe 0x4031b6
push 0
push dword [ebp + 8]
push dword [ebp - 8]
push dword [esi + 0xa8]
call edi
test eax, eax
jg 0x4031aa
inc ebx
cmp ebx, 0xf
jl 0x403190
cmp ebx, 0xf
je 0x4031c2
mov ecx, dword [ebp - 4]
add ecx, eax
jmp 0x4031b9
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jne 0x4031c2
mov eax, ecx
jmp 0x4031c5
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret 0xc

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret
Function at 0x403469
Capabilities:
Get common file path
Query environment variable
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x334
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], 2
call fcn.004033d9
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x124]
mov ebx, 0x105
push eax
mov dword [ebp - 0x10], ebx
call dword [sym.imp.USERENV.dll_GetProfilesDirectoryA]
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea eax, [ebp - 0x124]
push 0x48a190
push eax
call esi
push dword [edi + 0x14]
lea eax, [ebp - 0x124]
push eax
call esi
push dword [0x48a0ac]
lea eax, [ebp - 0x124]
push eax
call esi
lea eax, [ebp - 0x124]
push eax
call fcn.00403374
test al, al
pop ecx
jne 0x4034f2
lea eax, [ebp - 0x124]
push ebx
push eax
push str._USERPROFILE_Application_DataMicrosoftNetworkConnectionspbk_rasphone.pbk
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsA]
xor edi, edi
lea eax, [ebp - 0x334]
push edi
push 0x23
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 0x334]
push str.MicrosoftNetworkConnectionspbk_rasphone.pbk
push eax
lea eax, [ebp - 0x334]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
lea eax, [ebp - 0x22c]
push eax
push dword [ebp - 4]
call dword [sym.imp.USERENV.dll_GetUserProfileDirectoryA]
push dword [0x48a0ac]
lea eax, [ebp - 0x22c]
push eax
call esi
cmp dword [ebp - 4], edi
je 0x40355a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp - 0x124]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x334]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x22c]
push eax
call fcn.00403374
test al, al
pop ecx
je 0x4035a5
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
pop ecx
test eax, eax
pop ecx
je 0x4035a5
push 3
lea eax, [ebp - 0x22c]
pop edi
mov dword [ebp - 0x14], eax
jmp 0x4035a8
mov edi, dword [ebp - 8]
mov esi, 0x2000
push esi
call sub.MFC42.DLL_operatornew
and dword [ebp - 0xc], 0
pop ecx
test edi, edi
mov ebx, eax
jle 0x403605
lea eax, [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 4], eax
push esi
push 0
push ebx
call sub.MSVCRT.dll_memset
mov eax, dword [ebp - 4]
add esp, 0xc
push dword [eax]
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileSectionNamesA]
cmp byte [ebx], 0
mov edi, ebx
je 0x4035fc
inc dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
cmp byte [edi + eax + 1], 0
lea edi, [edi + eax + 1]
jne 0x4035e7
add dword [ebp - 4], 4
dec dword [ebp - 8]
jne 0x4035c7
push ebx
call sub.MFC42.DLL_operatordelete
mov eax, dword [ebp - 0xc]
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403614
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, 0x100
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x403667
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x110]
push ecx
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
je 0x403667
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
jne 0x40366b
xor eax, eax
leave
ret
push esi
push str.advapi32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov esi, eax
push str.ConvertSidToStringSidA
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x403696
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0x110]
push ecx
call eax
push esi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov eax, dword [ebp - 4]
pop esi
leave
ret
Function at 0x404133
Capabilities:
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d608
push 0x45c950
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
inc eax
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
pop ecx
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
je 0x404277
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
mov esi, edi
mov dword [ebp - 0x1c], esi
cmp byte [edi], 0x5c
jne 0x4041db
lea eax, [edi + 1]
cmp byte [eax], 0x5c
jne 0x4041db
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x4041b6
cmp al, 0x5c
je 0x4041b6
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x40419e
cmp byte [esi], 0
je 0x4041bf
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x4041d4
cmp al, 0x5c
je 0x4041d4
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x4041bc
cmp byte [esi], 0
je 0x4041fa
jmp 0x4041f6
lea eax, [edi + 1]
cmp byte [eax], 0x3a
jne 0x4041fa
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x4041fa
cmp al, 0x5c
jne 0x4041fa
inc esi
mov dword [ebp - 0x1c], esi
or ebx, 0xffffffff
mov al, byte [esi]
test al, al
je 0x404257
cmp al, 0x5c
jne 0x404249
and byte [esi], 0
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x404232
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
test eax, eax
jne 0x404246
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
jmp 0x404237
and eax, 0x10
cmp al, 0x10
je 0x404246
push edi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
mov dword [ebp - 4], ebx
jmp 0x40427b
mov byte [esi], 0x5c
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x4041fd
mov dword [ebp - 4], ebx
push edi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
mov al, 1
jmp 0x40427d
or dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40428e
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x354
push ebx
push esi
push edi
mov esi, 0x104
xor edi, edi
push esi
lea eax, [ebp - 0x160]
push edi
push eax
mov dword [ebp - 8], esi
call sub.MSVCRT.dll_memset
push 0x2e
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 0x14
cmp eax, edi
je 0x404354
lea ecx, [ebp - 4]
push ecx
push 0xf003f
push edi
push eax
push accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404354
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x160]
push eax
push edi
push dword [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
call edi
push dword [ebp - 4]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
push 0x1f4
lea eax, [ebp - 0x354]
push 0
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp - 0x354]
push str._s_shellopencommand
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea eax, [ebp - 4]
push eax
push 0xf003f
lea eax, [ebp - 0x354]
push 0
push eax
push accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40435b
xor al, al
jmp 0x40441d
push esi
lea eax, [ebp - 0x160]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
xor esi, esi
push eax
lea eax, [ebp - 0x160]
push eax
push esi
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call ebx
mov edi, dword [sym.imp.MSVCRT.dll_strstr]
lea eax, [ebp - 0x160]
push 0x48a228
push eax
call edi
pop ecx
cmp eax, esi
pop ecx
jne 0x4043d8
lea eax, [ebp - 0x160]
push 0x48a224
push eax
call edi
pop ecx
cmp eax, esi
pop ecx
jne 0x4043d8
mov edi, dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea eax, [ebp - 0x160]
push 0x48a220
push eax
call edi
push dword [ebp + 8]
lea eax, [ebp - 0x160]
push eax
call edi
jmp 0x4043e2
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push 0x10
xor eax, eax
cmp dword [ebp + 0xc], esi
pop ecx
lea edi, [ebp - 0x58]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x5c], 0x44
je 0x4043ff
mov dword [ebp - 0x54], str.WinSta0Default
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x160]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x404424
Capabilities:
Get disk information
Get disk size
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x784
push ebx
push esi
lea eax, [ebp - 0x224]
push edi
push eax
mov dword [ebp - 0x20], ecx
push 0x100
mov byte [ebp - 0x784], 0x67
call dword [sym.imp.KERNEL32.DLL_GetLogicalDriveStringsA]
xor ebx, ebx
push 1
cmp byte [ebp - 0x224], bl
lea edi, [ebp - 0x224]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
pop esi
je 0x4045bd
jmp 0x404479
xor ebx, ebx
push 0x104
lea eax, [ebp - 0x124]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x124]
push 0x104
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationA]
push 0x410
lea eax, [ebp - 0x384]
push 0x160
push eax
push 0x80
push edi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
lea eax, [ebp - 0x274]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov ebx, eax
lea eax, [ebp - 0x124]
push eax
inc ebx
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
inc eax
mov dword [ebp - 0xc], eax
mov al, byte [edi]
cmp al, 0x41
je 0x404527
cmp al, 0x42
je 0x404527
lea eax, [ebp - 0x14]
push 0
push eax
lea eax, [ebp - 0x1c]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_GetDiskFreeSpaceExA]
test eax, eax
je 0x404527
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
push 0x14
pop ecx
call fcn.0045c970
mov edx, dword [ebp - 0x18]
push 0x14
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x1c]
pop ecx
call fcn.0045c970
mov dword [ebp - 4], eax
jmp 0x40452f
and dword [ebp - 8], 0
and dword [ebp - 4], 0
mov al, byte [edi]
push edi
mov byte [ebp + esi - 0x784], al
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeA]
mov byte [ebp + esi - 0x783], al
lea eax, [ebp - 8]
push 4
push eax
lea eax, [ebp + esi - 0x782]
push eax
call sub.MSVCRT.dll_memcpy
lea eax, [ebp - 4]
push 4
push eax
lea eax, [ebp + esi - 0x77e]
push eax
call sub.MSVCRT.dll_memcpy
lea eax, [ebp - 0x274]
push ebx
push eax
lea eax, [ebp + esi - 0x77a]
push eax
call sub.MSVCRT.dll_memcpy
push dword [ebp - 0xc]
lea eax, [ebp - 0x124]
push eax
lea eax, [ebx + esi]
lea eax, [ebp + eax - 0x77a]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp - 0xc]
add esp, 0x30
add eax, ebx
push edi
lea esi, [esi + eax + 0xa]
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
cmp byte [edi + eax + 1], 0
lea edi, [edi + eax + 1]
jne 0x404477
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x784]
push esi
push eax
call fcn.0040a931
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4045d2
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
push esi
mov eax, 0x2800
push edi
mov esi, ecx
push eax
push 0x40
and dword [esi + 0x120], 0
mov dword [ebp - 8], esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
push dword [ebp + 8]
mov edi, eax
lea eax, [ebp - 0x24c]
push str._s.
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x404646
lea eax, [ebp + 0xb]
push 1
push eax
mov ecx, esi
mov byte [ebp + 0xb], 0xf
call fcn.0040a931
jmp 0x404749
push ebx
push 1
mov byte [edi], 0xf
pop esi
mov eax, dword [ebp - 4]
add eax, 0xfffffdf8
cmp esi, eax
jbe 0x40466e
add dword [ebp - 4], 0x208
push 0x42
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.DLL_LocalReAlloc]
mov edi, eax
lea eax, [ebp - 0x11c]
push 0x48a248
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x404712
lea eax, [ebp - 0x11c]
push 0x48a244
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x404712
mov al, byte [ebp - 0x148]
and al, 0x10
mov byte [esi + edi], al
lea eax, [ebp - 0x11c]
push eax
inc esi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov ebx, eax
lea eax, [ebp - 0x11c]
push ebx
push eax
lea eax, [esi + edi]
push eax
call sub.MSVCRT.dll_memcpy
add esi, ebx
lea eax, [ebp - 0x12c]
push 4
push eax
and byte [esi + edi], 0
inc esi
lea ebx, [esi + edi]
push ebx
call sub.MSVCRT.dll_memcpy
lea eax, [ebp - 0x128]
push 4
add ebx, 4
push eax
push ebx
call sub.MSVCRT.dll_memcpy
add esi, 8
lea eax, [ebp - 0x134]
push 8
push eax
lea eax, [esi + edi]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x30
add esi, 8
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x40464d
mov ecx, dword [ebp - 8]
push esi
push edi
call fcn.0040a931
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_LocalFree]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, esi
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x404822
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
lea esi, [ecx + 0x124]
push 0x104
push edi
push esi
mov dword [ebp - 0xc], ecx
call sub.MSVCRT.dll_memset
push dword [ebp + 8]
push esi
call sub.MSVCRT.dll_strcpy
add esp, 0x14
push edi
push 0x80
push 3
push edi
push 1
push accept
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x404871
xor eax, eax
jmp 0x4048e9
lea eax, [ebp - 4]
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push esi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.DLL_lstrlenA]
call ebx
mov edi, eax
add edi, 0xa
push edi
push 0x40
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov esi, eax
push edi
push 0
push esi
call sub.MSVCRT.dll_memset
mov byte [esi], 0x10
mov eax, dword [ebp - 4]
add esp, 0xc
mov dword [esi + 1], eax
mov eax, dword [ebp - 8]
push dword [ebp + 8]
mov dword [esi + 5], eax
call ebx
inc eax
push eax
lea eax, [esi + 9]
push dword [ebp + 8]
push eax
call sub.MSVCRT.dll_memcpy
mov ecx, dword [ebp - 0xc]
add esp, 0xc
push edi
push esi
call fcn.0040a931
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_LocalFree]
mov eax, edi
pop ebx
pop edi
pop esi
leave
ret 4

Function at 0x4048ef
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ecx
cmp dword [edi + 4], 0xffffffff
jne 0x40490c
call fcn.004049ab
jmp 0x4049a4
xor esi, esi
add ecx, 0x124
push esi
push 0x80
push 3
push esi
push 1
push accept
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4049a4
push esi
push edi
push dword [edi + 4]
push ebx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push 0x1fe1
push 0x40
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov esi, eax
push 8
push edi
lea eax, [esi + 1]
mov byte [esi], 0x11
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [ebp + 8]
push 0
push eax
lea eax, [esi + 9]
push 0x1fd8
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 8]
test eax, eax
jbe 0x404995
mov ecx, dword [ebp - 4]
add eax, 9
push eax
push esi
call fcn.0040a931
jmp 0x40499d
mov ecx, dword [ebp - 4]
call fcn.004049ab
push esi
call dword [sym.imp.KERNEL32.DLL_LocalFree]
pop edi
pop esi
pop ebx
leave
ret 4