joyce8/EMBER2024-capa huggingface dataset:
Function at 0x431130
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov edi, ecx
lea ebx, [ebp - 0x30]
sub esp, 0x4c
mov esi, dword [ebp + 0xc]
test esi, 0x1ff
je 0x431199
lea ebx, [ebp - 0x30]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 2
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov ecx, ebx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0x53d084
mov dword [esp], eax
call dword [method.QMessageLogger.debug___const]
sub esp, 4
mov ecx, ebx
mov dword [esp], str.write:_NOT_SECTOR_ALIGNED
call fcn.00403a70
sub esp, 4
mov ecx, ebx
call dword [method.QDebug.QDebug__]
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov eax, dword [edi + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esp, 0x14
test eax, eax
je 0x4311d2
mov eax, dword [ebp - 0x30]
xor edx, edx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
lea ebx, [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 4], 0xffffffff
mov dword [edi + 0x18], eax
mov dword [esp], ebx
call dword [sym.imp.Qt5Core.dll_qt_error_string_int_]
mov edx, dword [ebp - 0x2c]
mov eax, dword [edi + 0x10]
mov ecx, ebx
mov dword [edi + 0x10], edx
mov dword [ebp - 0x2c], eax
call fcn.00402570
or eax, 0xffffffff
mov edx, eax
jmp 0x4311c8
Function at 0x4372f0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
cmp dword [eax + 0x90], 2
je 0x437310
jmp fcn.00436c90
repz ret
Function at 0x43f700
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [0x536394]
cmp eax, 0xffffffff
je 0x43f710
test eax, eax
setg al
ret
sub esp, 0x1c
mov dword [esp + 8], 0
mov dword [esp + 4], 2
mov dword [esp], 0x17
call dword [sym.imp.WS2_32.dll_socket]
sub esp, 0xc
cmp eax, 0xffffffff
je 0x43f760
mov dword [esp + 4], eax
mov dword [esp], 0
mov dword [0x536394], 1
call fcn.00437520
mov eax, dword [0x536394]
test eax, eax
setg al
add esp, 0x1c
ret
mov dword [0x536394], 0
xor eax, eax
add esp, 0x1c
ret

Function at 0x43f770
Capabilities:
Create udp socket

Disassembly:
sub esp, 0x1c
mov eax, 1
mov edx, dword [esp + 0x20]
cmp dword [edx + 0x298], 2
je 0x43f790
add esp, 0x1c
ret
mov eax, dword [0x536394]
cmp eax, 0xffffffff
je 0x43f7a3
test eax, eax
setg al
add esp, 0x1c
ret
mov dword [esp + 8], 0
mov dword [esp + 4], 2
mov dword [esp], 0x17
call dword [sym.imp.WS2_32.dll_socket]
sub esp, 0xc
cmp eax, 0xffffffff
je 0x43f7f0
mov dword [esp + 4], eax
mov dword [esp], 0
mov dword [0x536394], 1
call fcn.00437520
mov eax, dword [0x536394]
test eax, eax
setg al
jmp 0x43f785
mov dword [0x536394], 0
xor eax, eax
jmp 0x43f785
Function at 0x43f800
Capabilities:
Create udp socket

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, 2
sub esp, 0xcc
mov ebp, dword [esp + 0xe0]
mov eax, dword [esp + 0xec]
mov edi, dword [ebp]
mov dword [eax], 0
mov eax, dword [ebp + 0x298]
cmp eax, 1
je 0x43f859
cmp eax, 2
mov ebx, 0x17
mov eax, 0
cmovne ebx, eax
mov eax, dword [0x536394]
cmp eax, 0xffffffff
je 0x43f943
test eax, eax
mov eax, 2
cmovle ebx, eax
lea esi, [esp + 0x20]
xor ecx, ecx
xor eax, eax
mov dword [esi + eax], ecx
add eax, 4
cmp eax, 0x20
jb 0x43f861
mov eax, dword [ebp + 0x90]
mov dword [esp + 0x24], ebx
lea ebx, [esp + 0x40]
mov dword [esp], 2
mov dword [esp + 8], ebx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xe4]
mov dword [esp + 4], eax
call fcn.0043e160
cmp eax, 1
je 0x43f903
mov eax, dword [esp + 0xe4]
mov dword [esp + 8], ebx
mov dword [esp], 0x17
mov dword [esp + 4], eax
call fcn.0043e160
cmp eax, 1
je 0x43f903
mov edx, dword [esp + 0xe8]
xor eax, eax
test edx, edx
jne 0x43f918
mov dword [esp + 4], eax
mov eax, dword [esp + 0xe4]
lea ecx, [esp + 0x10]
mov dword [esp + 8], esi
mov dword [esp + 0xc], ecx
mov dword [esp], eax
call fcn.00441a80
test eax, eax
mov edx, dword [esp + 0x10]
jne 0x43f9a4
add esp, 0xcc
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [esp + 0xe8]
xor eax, eax
mov dword [esp + 0x20], 4
test edx, edx
je 0x43f8cb
mov eax, dword [esp + 0xe8]
lea ebx, [esp + 0x14]
mov dword [esp + 8], 0x5e4640
mov dword [esp + 4], 0xc
mov dword [esp], ebx
mov dword [esp + 0xc], eax
call fcn.004672f0
mov eax, ebx
jmp 0x43f8cb
mov dword [esp + 8], 0
mov dword [esp + 4], 2
mov dword [esp], 0x17
call dword [sym.imp.WS2_32.dll_socket]
sub esp, 0xc
cmp eax, 0xffffffff
je 0x43f990
mov dword [esp + 4], eax
mov dword [esp], 0
mov dword [0x536394], 1
call fcn.00437520
mov eax, dword [0x536394]
jmp 0x43f84f
mov dword [0x536394], 0
mov ebx, 2
jmp 0x43f859
mov eax, dword [esp + 0xe8]
mov dword [esp + 4], str.getaddrinfo_3__failed_for__s:_d_n
mov dword [esp], edi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xe4]
mov dword [esp + 8], eax
call fcn.0045fe80
xor edx, edx
jmp 0x43f8f6
Function at 0x4420a0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x2c
xor eax, eax
mov edx, dword [esp + 0x34]
mov dword [esp + 4], 0x8004667e
test edx, edx
setne al
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
sub esp, 0xc
add esp, 0x2c
ret
Function at 0x4440b0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1ac
test byte [esp + 0x1c0], 2
je 0x4440ff
lea eax, [esp + 0x10]
mov dword [esp], 0x202
mov dword [esp + 4], eax
call dword [sym.imp.WS2_32.dll_WSAStartup]
sub esp, 8
test eax, eax
jne 0x444236
movzx eax, word [esp + 0x10]
cmp al, 2
jne 0x444230
shr ax, 8
cmp ax, 2
jne 0x444230
call fcn.004711b0
test eax, eax
mov ebx, eax
je 0x444120
add esp, 0x1ac
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
lea edx, [esp + 0x1c]
mov ecx, 0x24
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
lea ebp, [esp + 0x10]
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0x9c
mov dword [esp + 0x14], 6
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 2
mov dword [esp + 0xc], 3
mov dword [esp + 8], 2
mov dword [esp], 0
mov dword [esp + 4], 0
call esi
sub esp, 0x10
mov dword [esp + 0xc], 3
mov dword [esp + 8], 1
mov dword [esp], eax
mov dword [esp + 4], edx
call esi
sub esp, 0x10
mov dword [esp + 0xc], 3
mov dword [esp + 8], 0x20
mov dword [esp], eax
mov dword [esp + 4], edx
call esi
sub esp, 0x10
mov dword [esp + 0xc], 3
mov dword [esp + 8], 0x10
mov dword [esp], eax
mov dword [esp + 4], edx
call esi
sub esp, 0x10
mov dword [esp + 0xc], 1
mov dword [esp + 8], 8
mov dword [esp], eax
mov dword [esp + 4], edx
call esi
sub esp, 0x10
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 4], 0x33
mov dword [esp], ebp
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
sub esp, 0x10
test eax, eax
je 0x444250
mov byte [0x630788], 1
mov dword [esp], 0x630790
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
sub esp, 4
mov eax, ebx
add esp, 0x1ac
pop ebx
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
add esp, 0x1ac
mov ebx, 2
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov byte [0x630788], 0
add esp, 0x1ac
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4444c0
Capabilities:
Get common file path

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov esi, dword [esp + 0x40]
mov dword [esp], str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
sub esp, 4
test eax, eax
je 0x4445f0
mov ebx, eax
mov dword [esp + 4], str.LoadLibraryExA
mov dword [esp], eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call ebp
sub esp, 8
mov edi, eax
mov dword [esp + 4], 0x5e4f2c
mov dword [esp], esi
call sub.msvcrt.dll_strpbrk
test eax, eax
je 0x444540
test edi, edi
je 0x444650
mov dword [esp + 8], 8
mov dword [esp + 4], 0
mov dword [esp], esi
call edi
sub esp, 0xc
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
test edi, edi
je 0x444580
mov dword [esp + 4], str.AddDllDirectory
mov dword [esp], ebx
call ebp
sub esp, 8
test eax, eax
je 0x444580
mov dword [esp], esi
mov dword [esp + 8], 0x800
mov dword [esp + 4], 0
call edi
sub esp, 0xc
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 0
mov dword [esp], 0
mov ebp, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
call ebp
sub esp, 8
test eax, eax
mov ebx, eax
je 0x4445f0
mov dword [esp], esi
call sub.msvcrt.dll_strlen
lea eax, [ebx + eax + 1]
mov dword [esp], eax
call dword [0x536390]
test eax, eax
mov edx, eax
je 0x4445d3
mov dword [esp + 4], ebx
mov dword [esp], eax
mov dword [esp + 0x1c], eax
call ebp
sub esp, 8
test eax, eax
mov edx, dword [esp + 0x1c]
jne 0x444600
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp], edx
call dword [0x53638c]
mov eax, dword [esp + 0x1c]
jmp 0x444531
xor eax, eax
jmp 0x444531
mov dword [esp], edx
call sub.msvcrt.dll_strlen
mov edx, dword [esp + 0x1c]
mov byte [edx + eax], 0x5c
lea eax, [edx + eax + 1]
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
test edi, edi
mov edx, dword [esp + 0x1c]
je 0x444661
mov dword [esp], edx
mov dword [esp + 8], 8
mov dword [esp + 4], 0
call edi
sub esp, 0xc
mov edx, dword [esp + 0x1c]
jmp 0x4445d5
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
sub esp, 4
jmp 0x444531
mov dword [esp], edx
mov dword [esp + 0x1c], edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edx
mov edx, dword [esp + 0x1c]
jmp 0x4445d5
Function at 0x45fe80
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
push ebx
sub esp, 0x830
mov ebx, dword [esp + 0x840]
test ebx, ebx
je 0x45fe9d
test byte [ebx + 0xa6f], 0x40
jne 0x45feb0
add esp, 0x830
pop ebx
pop esi
pop edi
ret
lea eax, [esp + 0x848]
lea esi, [esp + 0x2f]
mov dword [esp + 4], 0x801
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x844]
mov dword [esp], esi
mov dword [esp + 8], eax
call fcn.00468240
cmp eax, 0x800
jbe 0x45ff21
mov eax, dword [esp + 0x844]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov edx, dword [esp + 0x844]
cmp byte [edx + eax - 1], 0xa
je 0x45ffd0
lea eax, [esp + 0x82c]
mov dword [esp + 8], 0x5e7f85
mov dword [esp + 4], 4
mov dword [esp], eax
call fcn.004672f0
mov dword [esp], esi
call sub.msvcrt.dll_strlen
mov edi, eax
mov eax, dword [ebx + 0x5e0]
test eax, eax
jne 0x45ff83
mov eax, dword [ebx + 0x570]
mov dword [esp + 8], 1
mov dword [esp + 4], 2
mov dword [esp], 0x5e8018
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [ebx + 0x570]
mov dword [esp + 4], edi
mov dword [esp], esi
mov dword [esp + 8], 1
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
add esp, 0x830
pop ebx
pop esi
pop edi
ret
mov dword [esp], ebx
mov dword [esp + 4], 1
call fcn.0043de60
mov eax, dword [ebx + 0x574]
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], 0
mov dword [esp + 0x10], eax
call dword [ebx + 0x5e0]
mov dword [esp], ebx
mov dword [esp + 4], 0
call fcn.0043de60
add esp, 0x830
pop ebx
pop esi
pop edi
ret
lea eax, [esp + 0x82b]
mov dword [esp + 8], str...._n
mov dword [esp + 4], 5
mov dword [esp], eax
call fcn.004672f0
jmp 0x45ff21
Function at 0x460000
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
push ebx
sub esp, 0x130
mov ebx, dword [esp + 0x140]
test byte [ebx + 0xa6f], 0x40
jne 0x460023
mov edx, dword [ebx + 0x578]
test edx, edx
je 0x460073
lea eax, [esp + 0x148]
lea esi, [esp + 0x2e]
mov dword [esp + 4], 0x100
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x144]
mov dword [esp], esi
mov dword [esp + 8], eax
call fcn.00468240
mov dword [esp], esi
call sub.msvcrt.dll_strlen
mov edi, eax
mov eax, dword [ebx + 0x578]
test eax, eax
je 0x46006a
test byte [ebx + 0xe04], 8
je 0x4600e5
test byte [ebx + 0xa6f], 0x40
jne 0x460080
add esp, 0x130
pop ebx
pop esi
pop edi
ret
mov eax, dword [ebx + 0x5e0]
mov byte [esp + edi + 0x2e], 0xa
add edi, 1
mov byte [esp + edi + 0x2e], 0
test eax, eax
jne 0x460104
mov eax, dword [ebx + 0x570]
mov dword [esp + 8], 1
mov dword [esp + 4], 2
mov dword [esp], 0x5e8018
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [ebx + 0x570]
mov dword [esp + 4], edi
mov dword [esp], esi
mov dword [esp + 8], 1
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
add esp, 0x130
pop ebx
pop esi
pop edi
ret
lea edx, [edi + 1]
mov dword [esp + 4], esi
mov dword [esp], eax
mov dword [esp + 8], edx
call sub.msvcrt.dll_memcpy
or byte [ebx + 0xe04], 8
jmp 0x46006a
mov dword [esp], ebx
mov dword [esp + 4], 1
call fcn.0043de60
mov eax, dword [ebx + 0x574]
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], 0
mov dword [esp + 0x10], eax
call dword [ebx + 0x5e0]
mov dword [esp], ebx
mov dword [esp + 4], 0
call fcn.0043de60
add esp, 0x130
pop ebx
pop esi
pop edi
ret
Function at 0x4606d0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x9c
mov ebx, dword [esp + 0xb0]
mov eax, dword [esp + 0xb4]
cmp dword [ebx + 0x1a4], eax
mov ecx, dword [ebx + 0x290]
sete al
test byte [ecx + 0x40], 3
movzx eax, al
lea edx, [ebx + eax*4]
mov edi, dword [edx + 0x1a0]
je 0x460715
cmp dword [edx + 0x1b4], 0x460160
je 0x460780
mov eax, dword [esp + 0xbc]
mov dword [esp + 0xc], 0
mov dword [esp], edi
mov dword [esp + 8], eax
mov eax, dword [esp + 0xb8]
mov dword [esp + 4], eax
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
sub esp, 0x10
xor eax, eax
cmp esi, 0xffffffff
je 0x460760
mov edx, dword [esp + 0xc0]
mov dword [edx], esi
add esp, 0x9c
pop ebx
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
mov edi, eax
jne 0x46086b
mov eax, 0x51
xor esi, esi
jmp 0x460748
shl eax, 4
lea esi, [ebx + eax]
mov eax, dword [esi + 0x1c8]
sub eax, dword [esi + 0x1cc]
mov ebp, eax
mov eax, dword [esi + 0x1c4]
test eax, eax
je 0x4607a6
test ebp, ebp
je 0x460715
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], 0xffffffff
mov dword [esp], edi
call fcn.00440960
cmp eax, 0xffffffff
je 0x460715
test al, 1
je 0x460715
mov eax, dword [esi + 0x1c4]
test eax, eax
jne 0x460836
mov eax, dword [ebx]
mov eax, dword [eax + 0x8c0]
add eax, eax
mov dword [esi + 0x1c8], eax
mov dword [esp], eax
call dword [0x536390]
test eax, eax
mov dword [esi + 0x1c4], eax
mov dword [esi + 0x1cc], 0
mov dword [esi + 0x1d0], 0
jne 0x460830
mov dword [esi + 0x1c8], 0
jmp 0x460715
mov ebp, dword [esi + 0x1c8]
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebp
add eax, dword [esi + 0x1cc]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.WS2_32.dll_recv]
sub esp, 0x10
test eax, eax
jle 0x460715
add dword [esi + 0x1cc], eax
jmp 0x460715
lea eax, [esp + 0x10]
mov dword [esp + 8], pe_nt_image_headers32
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.0043e580
mov dword [esp + 4], str.Send_failure:__s
mov dword [esp + 8], eax
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.00460000
mov eax, dword [ebx]
mov dword [eax + 0xc04], edi
mov eax, 0x37
jmp 0x460748

Function at 0x460dc0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_recv]
sub esp, 0x10
cmp eax, 0xffffffff
je 0x460e00
mov edx, dword [esp + 0x2c]
mov dword [edx], eax
xor eax, eax
add esp, 0x1c
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, 0x38
cmp eax, 0x2733
mov eax, 0x51
cmovne eax, edx
add esp, 0x1c
ret
Function at 0x460ea0
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
mov eax, dword [ebx + 0x5e0]
test eax, eax
jne 0x460ed0
xor edi, edi
cmp esi, 2
jbe 0x460f22
add esp, 0x20
mov eax, edi
pop ebx
pop esi
pop edi
ret
mov dword [esp], ebx
mov dword [esp + 4], 1
call fcn.0043de60
mov eax, dword [ebx + 0x574]
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 8], eax
call dword [ebx + 0x5e0]
mov dword [esp], ebx
mov dword [esp + 4], 0
mov edi, eax
call fcn.0043de60
add esp, 0x20
mov eax, edi
pop ebx
pop esi
pop edi
ret
mov eax, dword [ebx + 0x570]
mov dword [esp + 8], 1
mov dword [esp + 4], 2
mov dword [esp + 0xc], eax
lea eax, [esi + esi*2 + 0x5e8018]
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [ebx + 0x570]
mov dword [esp + 8], 1
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
add esp, 0x20
mov eax, edi
pop ebx
pop esi
pop edi
ret

Function at 0x466690
Capabilities:
Query environment variable

Disassembly:
push ebx
sub esp, 0x128
mov dword [esp], eax
call sub.msvcrt.dll_getenv
test eax, eax
mov byte [esp + 0x1c], 0
je 0x466680
lea ebx, [esp + 0x1c]
mov dword [esp + 8], 0x104
mov dword [esp], eax
mov dword [esp + 4], ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
sub esp, 0xc
cmp byte [esp + 0x1c], 0
je 0x466680
mov dword [esp], ebx
call dword [0x536384]
add esp, 0x128
pop ebx
ret
add esp, 0x128
xor eax, eax
pop ebx
ret
mov eax, dword [esp + 4]
jmp 0x466630
Function at 0x4de590
Capabilities:
Check if file exists
Generate random numbers via winapi
Get common file path
Get file attributes

Disassembly:
mov edx, dword [esp + 4]
xor eax, eax
jmp fcn.004ddd20

Function at 0x4dea70
Capabilities:
Read file on windows

Disassembly:
push ebx
sub esp, 0x38
mov eax, dword [esp + 0x40]
mov ebx, dword [esp + 0x48]
test eax, eax
js 0x4deb30
test ebx, ebx
jne 0x4dea90
xor eax, eax
add esp, 0x38
pop ebx
ret
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__get_osfhandle]
lea edx, [esp + 0x2c]
mov dword [esp + 8], ebx
mov dword [esp + 0x10], 0
mov dword [esp], eax
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x44]
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
sub esp, 0x14
test ebx, ebx
mov eax, dword [esp + 0x2c]
jne 0x4dea8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe8
je 0x4deb5c
cmp eax, 0x6d
je 0x4dea88
cmp eax, 5
je 0x4deb30
test eax, eax
jne 0x4deb08
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], 0
mov eax, 0xffffffff
jmp 0x4dea8a
add ebx, 1
cmp ebx, 0x2e
je 0x4deb46
cmp eax, dword [ebx*8 + 0x5fad40]
jne 0x4deb00
call dword [sym.imp.msvcrt.dll__errno]
mov edx, dword [ebx*8 + 0x5fad44]
mov dword [eax], edx
mov eax, 0xffffffff
jmp 0x4dea8a
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], 9
mov eax, 0xffffffff
jmp 0x4dea8a
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], 0x16
mov eax, 0xffffffff
jmp 0x4dea8a
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], 0xb
or eax, 0xffffffff
jmp 0x4dea8a

Function at 0x4dec40
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x38
mov eax, dword [esp + 0x40]
test eax, eax
js 0x4decf0
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__get_osfhandle]
lea edx, [esp + 0x2c]
mov dword [esp + 0x10], 0
mov dword [esp], eax
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x44]
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esp, 0x14
test eax, eax
mov edx, dword [esp + 0x2c]
je 0x4dec94
add esp, 0x38
mov eax, edx
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x4decf0
xor ebx, ebx
test eax, eax
jne 0x4decc8
call dword [sym.imp.msvcrt.dll__errno]
mov edx, 0xffffffff
mov dword [eax], 0
jmp 0x4dec8d
add ebx, 1
cmp ebx, 0x2e
je 0x4ded10
cmp eax, dword [ebx*8 + 0x5fad40]
jne 0x4decc0
call dword [sym.imp.msvcrt.dll__errno]
mov edx, dword [ebx*8 + 0x5fad44]
mov dword [eax], edx
mov edx, 0xffffffff
add esp, 0x38
mov eax, edx
pop ebx
ret
call dword [sym.imp.msvcrt.dll__errno]
mov edx, 0xffffffff
mov dword [eax], 9
add esp, 0x38
mov eax, edx
pop ebx
ret
call dword [sym.imp.msvcrt.dll__errno]
mov edx, 0xffffffff
mov dword [eax], 0x16
jmp 0x4dec8d
Function at 0x4e02a0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
push edi
mov ebp, edx
push esi
push ebx
xor edi, edi
mov ebx, eax
sub esp, 0x2c
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [esp], eax
call esi
sub esp, 4
cmp eax, 0xffffffff
je 0x4e0310
mov ecx, eax
or eax, 1
and ecx, 0xfffffffe
and ebp, 0x80
cmovne eax, ecx
test edi, edi
mov dword [esp + 4], eax
je 0x4e0300
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
sub esp, 8
test eax, eax
je 0x4e0352
xor ebx, ebx
mov dword [esp], edi
call sub.msvcrt.dll_free
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
sub esp, 8
jmp 0x4e02e5
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x1c], eax
call eax
cmp eax, 0x7b
je 0x4e0335
mov eax, dword [esp + 0x1c]
mov ebx, 0xffffffff
call eax
mov dword [esp], eax
call fcn.004df080
jmp 0x4e02eb
mov dword [esp], ebx
call fcn.004de7a0
mov edi, eax
mov dword [esp], eax
call esi
sub esp, 4
cmp eax, 0xffffffff
jne 0x4e02c0
jmp 0x4e0320
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], eax
mov ebx, 0xffffffff
call fcn.004df080
jmp 0x4e02eb
Function at 0x526fa0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x62fd80]
test esi, esi
jle 0x5270b0
mov edi, dword [0x62fd84]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x526fd4
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x527055
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x526fc0
mov dword [esp], eax
mov ebx, eax
call fcn.00527890
test eax, eax
mov edi, eax
je 0x5270d7
mov eax, dword [0x62fd84]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00527990
add eax, dword [edi + 0xc]
mov edx, dword [0x62fd84]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x5270b7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x52704e
sub eax, 4
and eax, 0xfffffffb
jne 0x527060
add dword [0x62fd80], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
add ebx, dword [0x62fd84]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x52704e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00532c20
lea esi, [esi]
xor esi, esi
jmp 0x526fde
mov eax, dword [0x62fd84]
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.00532c20
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00532c20
mov esi, esi
lea edi, [edi]

Function at 0x527510
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x62fd98
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x62fd90]
sub esp, 4
test ebx, ebx
je 0x527565
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 0x52755e
test esi, esi
je 0x52755e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x527540
mov dword [esp], 0x62fd98
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret