joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000f500
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x18]
push edi
push eax
xor edi, edi
push 0x8004667e
push ebx
mov dword [esp + 0x28], edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test esi, esi
jle 0x1000f545
mov ebp, dword [esp + 0x18]
push 0
lea ecx, [edi + ebp]
push esi
push ecx
push ebx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x1000f545
sub esi, eax
add edi, eax
test esi, esi
jg 0x1000f52b
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x1000f550
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
mov eax, 0x2104
call fcn.100154c0
mov eax, dword [esp + 0x2108]
push ebx
push ebp
push esi
mov ebp, dword [eax]
mov ebx, dword [eax + 4]
push edi
mov ecx, 0x7ff
xor eax, eax
lea edi, [esp + 0x115]
mov byte [esp + 0x114], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov al, byte [0x1001ef20]
test al, al
je 0x1000f672
mov edi, dword [sym.imp.WS2_32.dll_recv]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 1
xor eax, eax
lea ecx, [esp + 0x14]
cmp dword [ecx], ebx
je 0x1000f5b7
inc eax
add ecx, 4
cmp eax, 1
jb 0x1000f5aa
cmp eax, 1
jne 0x1000f5c8
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], 2
push 0
push 0
lea eax, [esp + 0x18]
push 0
push eax
push 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x1000f672
lea ecx, [esp + 0x10]
push ecx
push ebp
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1000f624
push 0
lea edx, [esp + 0x118]
push 0x2000
push edx
push ebp
call edi
mov esi, eax
test esi, esi
jle 0x1000f672
lea eax, [esp + 0x114]
push esi
push eax
push ebx
call fcn.1000f500
add esp, 0xc
test eax, eax
je 0x1000f672
cmp eax, esi
jne 0x1000f672
lea ecx, [esp + 0x10]
push ecx
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1000f665
push 0
lea edx, [esp + 0x118]
push 0x2000
push edx
push ebx
call edi
mov esi, eax
test esi, esi
jle 0x1000f672
lea eax, [esp + 0x114]
push esi
push eax
push ebp
call fcn.1000f500
add esp, 0xc
test eax, eax
je 0x1000f672
cmp eax, esi
jne 0x1000f672
mov al, byte [0x1001ef20]
test al, al
jne 0x1000f598
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
push ebp
call esi
push ebx
call esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2104
ret 4

Function at 0x1000f690
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x10
push esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1000f6ae
xor eax, eax
pop esi
add esp, 0x10
ret
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push ecx
mov word [esp + 8], 2
mov dword [esp + 0xc], eax
call dword [sym.imp.WS2_32.dll_htons]
lea edx, [esp + 4]
push 0x10
push edx
push esi
mov word [esp + 0x12], ax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1000f6ee
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
pop esi
add esp, 0x10
ret
mov eax, esi
pop esi
add esp, 0x10
ret
Function at 0x1000f7c0
Capabilities:
Create thread
Receive data
Receive data on socket

Disassembly:
mov eax, 0x1038
call fcn.100154c0
push ebx
push ebp
push esi
push edi
mov ecx, 0x40c
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0x44], 0xffffffff
mov dword [esp + 0x18], 0x100166a4
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x1054]
lea ecx, [esp + 0x1c]
push eax
push 0x1001af58
push 0x20
push ecx
call dword [sym.imp.MSVCRT.dll__snprintf]
mov eax, dword [esp + 0x1060]
mov ecx, dword [esp + 0x105c]
mov dx, word [esp + 0x1068]
push eax
push ecx
mov word [esp + 0x54], dx
call fcn.1000f700
mov edi, eax
add esp, 0x18
test edi, edi
jbe 0x1000f8e0
mov al, byte [0x1001ef20]
mov dword [esp + 0x40], edi
test al, al
je 0x1000f8e0
mov ebx, dword [sym.imp.WS2_32.dll_recv]
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
lea edx, [esp + 0x16]
push 2
push edx
push edi
call ebx
test eax, eax
jle 0x1000f8e0
mov edx, dword [0x1001df1c]
mov eax, dword [esp + 0x44]
inc edx
cmp eax, 0x800
mov dword [0x1001df1c], edx
jge 0x1000f88e
mov cx, word [esp + 0x12]
inc eax
mov dword [esp + 0x44], eax
mov word [esp + eax*2 + 0x48], cx
mov edx, dword [0x1001ef24]
lea eax, [esp + 0x18]
inc edx
mov dword [0x1001ef24], edx
lea edx, [esp + 0x14]
push edx
push 0
push eax
push 0x1000f720
push 0
push 0
call esi
mov ecx, dword [0x1001ef24]
test eax, eax
mov dword [ecx*4 + 0x1001df20], eax
je 0x1000f8c8
push eax
call ebp
jmp 0x1000f8d3
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov al, byte [0x1001ef20]
test al, al
jne 0x1000f857
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1038
ret 0x10

Function at 0x1000f900
Capabilities:
Terminate thread

Disassembly:
sub esp, 0x80
mov byte [0x1001ef20], 0
push esi
push edi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x1001df18]
test eax, eax
je 0x1000f963
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
mov edi, dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [0x1001df18]
lea ecx, [esp + 8]
push eax
push str.nsocket_di:_d
push ecx
call esi
mov edx, dword [0x1001df18]
add esp, 0xc
mov eax, dword [edx*4 + 0x1001cf18]
cmp eax, 0xffffffff
je 0x1000f956
push eax
call edi
mov eax, dword [0x1001df18]
dec eax
mov dword [0x1001df18], eax
jne 0x1000f92c
mov eax, dword [0x1001ef24]
test eax, eax
je 0x1000f9a2
mov esi, dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x1001ef24]
mov eax, dword [eax*4 + 0x1001df20]
cmp eax, 0xffffffff
je 0x1000f995
push 0
push eax
call esi
push 0x1001df20
call edi
mov eax, dword [0x1001ef24]
dec eax
mov dword [0x1001ef24], eax
jne 0x1000f978
pop edi
mov dword [0x1001ef24], 0
mov dword [0x1001df18], 0
mov byte [0x1001ef20], 1
pop esi
add esp, 0x80
ret
Function at 0x401f1a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401f59
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401f59
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401f59
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401f59
cmp dword [ecx + 0x74], 0xe
jbe 0x401f59
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x42e410
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1c000]
push edi
jmp 0x42e42a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x42e431
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x42e420
mov eax, 1
add ebx, ebx
jne 0x42e443
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x42e438
jne 0x42e454
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42e438
xor ecx, ecx
sub eax, 3
jb 0x42e468
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42e4da
mov ebp, eax
add ebx, ebx
jne 0x42e473
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x42e480
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42e4a4
inc ecx
add ebx, ebx
jne 0x42e490
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42e485
jne 0x42e4a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42e485
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42e4c4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42e4b5
jmp 0x42e426
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42e4c4
add edi, ecx
jmp 0x42e426
pop esi
mov edi, esi
mov ecx, 0xa88
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42e4e2
cmp byte [edi], 0x12
jne 0x42e4e2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x42e4e7
lea edi, [esi + 0x2c000]
mov eax, dword [edi]
or eax, eax
je 0x42e55f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x33130]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x33210]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42e514
mov ecx, edi
jns 0x42e543
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x33218]
or eax, eax
je 0x42e559
mov dword [ebx], eax
add ebx, 4
jmp 0x42e531
call dword [esi + 0x33214]
mov ebp, dword [esi + 0x3321c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x42e593
sub esp, 0xffffff80
jmp 0x41c35f
Function at 0x411860
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6b8
push ebx
push esi
push edi
lea edi, [ebp - 0x478]
mov ecx, 0x11e
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x41b004]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 0x41d036
call fcn.00411348
mov eax, dword [str.anypassword]
mov dword [ebp - 0x14], eax
mov ecx, dword [0x418bdc]
mov dword [ebp - 0x10], ecx
mov edx, dword [0x418be0]
mov dword [ebp - 0xc], edx
xor eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x14]
push eax
call fcn.0041139d
add esp, 4
mov dword [ebp - 0x450], eax
push 8
push 0
push str.SHA256
lea eax, [ebp - 0x45c]
push eax
call fcn.004111b3
mov dword [ebp - 0x468], eax
cmp dword [ebp - 0x468], 0
je 0x41190d
mov esi, esp
push 1
call dword [sym.imp.ucrtbased.dll_exit]
cmp esi, esp
call fcn.0041126c
mov eax, dword [ebp - 0x45c]
push eax
call fcn.00411a70
add esp, 4
mov dword [ebp - 0x474], eax
push 0
mov eax, dword [ebp - 0x474]
push eax
lea ecx, [ebp - 0x444]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x20
lea ecx, [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x450]
push edx
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x45c]
push ecx
call fcn.004111fe
mov dword [ebp - 0x468], eax
push 0
mov eax, dword [ebp - 0x45c]
push eax
call fcn.00411244
cmp dword [ebp - 0x468], 0
je 0x411985
mov esi, esp
push 1
call dword [sym.imp.ucrtbased.dll_exit]
cmp esi, esp
call fcn.0041126c
push edx
mov ecx, ebp
push eax
lea edx, [0x4119b4]
call fcn.00411203
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411154
add esp, 0x6b8
cmp ebp, esp
call fcn.0041126c
mov esp, ebp
pop ebp
ret
Function at 0x1e7a599f
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x1e7a59da
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x1e7a59c1
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x1e7a59d2
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x1e7a59dc
inc edi
add eax, 0x28
cmp edi, esi
jb 0x1e7a59b7
xor eax, eax
pop edi
pop esi
ret

Function at 0x1e7a5c80
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.1e7a595f
mov cl, 0xb
invalid
Function at 0x1e7a6620
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call dword [ebp - 0x538]
mov dword [ebp - 0x398], eax
mov byte [ebp - 0x544], 1
cmp dword [ebp - 0x398], 0
je 0x1e7a6653
cmp dword [ebp - 0x398], 0
je 0x1e7a681d
cmp dword [ebp + 0xc], 1
je 0x1e7a681d
cmp dword [ebp + 0xc], 8
jne 0x1e7a67e5
and byte [ebp - 0x6b8], 0
and byte [ebp - 0x6b7], 0
mov byte [ebp - 0x6b6], 0x9b
and byte [ebp - 0x6b5], 0
mov byte [ebp - 0x6b4], 0x33
mov byte [ebp - 0x6b3], 0x16
mov byte [ebp - 0x6b2], 0xd
mov byte [ebp - 0x6b1], 0x10
mov byte [ebp - 0x6b0], 1
mov byte [ebp - 0x6af], 0x34
mov byte [ebp - 0x6ae], 0x16
mov byte [ebp - 0x6ad], 0xb
mov byte [ebp - 0x6ac], 7
mov byte [ebp - 0x6ab], 1
mov byte [ebp - 0x6aa], 0x17
mov byte [ebp - 0x6a9], 0x17
mov byte [ebp - 0x6a8], 0x29
mov byte [ebp - 0x6a7], 1
mov byte [ebp - 0x6a6], 9
mov byte [ebp - 0x6a5], 0xb
mov byte [ebp - 0x6a4], 0x16
mov byte [ebp - 0x6a3], 0x1d
mov byte [ebp - 0x6a2], 0x64
lea eax, [ebp - 0x6b8]
push eax
call fcn.1e7a596f
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.1e7a5924
add esp, 0xc
mov dword [ebp - 0x690], eax
mov byte [ebp - 0x6a0], 0x8b
or byte [ebp - 0x69f], 0xff
mov byte [ebp - 0x69e], 0x55
invalid
stc
invalid
call dword [ebp - 0x3a]
test dword [ebx - 7], esp
invalid
dec dword [ebx - 0x69b7a3a]
invalid
invalid
in al, dx
lea eax, [ebp - 0x694]
push eax
push 5
lea eax, [ebp - 0x6a0]
push eax
push dword [ebp - 0x33c]
push 0xffffffffffffffff
call dword [ebp - 0x690]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x6c0], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x6bc], eax
push 0x1000
push 8
push dword [ebp - 0x674]
call dword [ebp - 0x67c]
mov dword [ebp - 0x698], eax
call fcn.1e7a595f
sbb eax, 0xff2c8f3f
mov ch, 0x68
stc
invalid
inc esp
stc
invalid
call fcn.1e7a595f
rol byte [edx], 1
push ss
jp 0x1e7a676f
movsd dword es:[edi], dword [esi]
mov esp, 0xfffffa
push 0
call dword [ebp - 0x340]
mov dword [ebp + 8], eax
push 0x104
lea eax, [ebp - 0x334]
push eax
push 0
call dword [ebp - 0x538]
call fcn.1e7a595f
imul eax, dword [ebx - 0x5a7fe217], 0xffffffd0
std
invalid
and byte [ebp - 0x230], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x22f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x12c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosd dword es:[edi], eax
Function at 0x1e7a6860
Capabilities:
Contain obfuscated stackstrings

Disassembly:
stosd dword es:[edi], eax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.1e7a593d
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.1e7a596f
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.1e7a5924
add esp, 0xc
mov dword [ebp - 0x3d4], eax
call fcn.1e7a595f
cmp esi, dword [eax + 0x468963b]
add dword [eax], eax
add byte [ebp - 0x12b7b], cl
call dword [eax - 1]
xchg ebp, eax
sub al, 0xfc
invalid

Function at 0x1e7a9c90
Capabilities:
Set thread local storage value

Disassembly:
cmp dword [sym.pywintypes27.dll_struct__is__PyWin_InterpreterState], 0
push ebx
mov ebx, dword [sym.imp.python27.dll_Py_FatalError]
push esi
push edi
mov edi, dword [sym.imp.python27.dll_PyThreadState_Swap]
jne 0x1e7a9ccd
push 0
call edi
mov esi, eax
add esp, 4
test esi, esi
jne 0x1e7a9cbf
push str.pywintypes:_can_not_setup_interpreter_state__as_current_state_is_invalid
call ebx
add esp, 4
mov eax, dword [esi + 4]
push esi
mov dword [sym.pywintypes27.dll_struct__is__PyWin_InterpreterState], eax
call edi
add esp, 4
push 8
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
jne 0x1e7a9ce7
push 0x1e7b10fc
call ebx
add esp, 4
mov ecx, dword [0x1e7ba8b8]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0
call edi
push eax
mov dword [esi], eax
call edi
add esp, 8
pop edi
mov dword [esi + 4], 0
pop esi
pop ebx
ret
Function at 0x77c1e82c
Capabilities:
Get disk size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
jne 0x77c1e83c
xor ecx, ecx
jmp 0x77c1e85a
cmp eax, 0x1a
jbe 0x77c1e846
push 0x57
pop eax
pop ebp
ret
add al, 0x40
lea ecx, [ebp + 8]
mov byte [ebp + 8], al
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
mov eax, dword [ebp + 0xc]
push eax
lea edx, [eax + 4]
push edx
lea edx, [eax + 0xc]
push edx
add eax, 8
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x77c1e87c
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop ebp
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x77c1f37a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.77c1f2d8
pop ecx
or eax, 0xffffffff
pop ebp
ret
test al, 1
je 0x77c1f39c
test byte [ebp + 0xc], 2
je 0x77c1f39c
call sym.msvcrt.dll__errno
mov dword [eax], 0xd
call sym.msvcrt.dll___doserrno
mov dword [eax], 5
jmp 0x77c1f375
xor eax, eax
pop ebp
ret

Function at 0x77c1f4ac
Capabilities:
Set current directory

Disassembly:
push 0x10
push 0x77c11308
call fcn.77c37420
mov ebx, dword [ebp + 8]
cmp ebx, 1
jl 0x77c1f51b
cmp ebx, 0x1f
jg 0x77c1f51b
push 7
call sym.msvcrt.dll__lock
pop ecx
and dword [ebp - 4], 0
add ebx, 0x40
mov byte [ebp - 0x1c], bl
mov byte [ebp - 0x1b], 0x3a
mov byte [ebp - 0x1a], 0
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x77c1f4f3
and dword [ebp - 0x20], 0
jmp 0x77c1f504
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.77c1f2d8
pop ecx
or dword [ebp - 0x20], 0xffffffff
or dword [ebp - 4], 0xffffffff
call fcn.77c1f512
mov eax, dword [ebp - 0x20]
jmp 0x77c1f534
call sym.msvcrt.dll__errno
mov dword [eax], 0xd
call sym.msvcrt.dll___doserrno
mov dword [eax], 0xf
or eax, 0xffffffff
call fcn.77c3745b
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x77c1f56e
test byte [ebp + 0xc], 0x80
je 0x77c1f55d
and eax, 0xfffffffe
jmp 0x77c1f560
or eax, 1
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x77c1f580
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.77c1f2d8
pop ecx
or eax, 0xffffffff
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x77c1f63a
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x77c1f66a
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x77c1f66f
cmp eax, 1
je 0x77c1f66f
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x77c1f678
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x77c5fac4]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
je 0x77c1f709
push ebx
call fcn.77c1f63a
test eax, eax
pop ecx
jne 0x77c1f6c8
call sym.msvcrt.dll___doserrno
mov dword [eax], 0xf
call sym.msvcrt.dll__errno
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.77c57993
leave
ret
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x108]
push eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x10c]
add bl, 0x40
push eax
mov byte [ebp - 0x10c], bl
mov byte [ebp - 0x10b], 0x3a
mov byte [ebp - 0x10a], 0x2e
mov byte [ebp - 0x109], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x77c1f71c
lea eax, [ebp - 0x108]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x77c1f6b9
inc eax
cmp eax, esi
ja 0x77c1f6b9
test edi, edi
jne 0x77c1f74e
cmp eax, dword [ebp + 0x10]
jg 0x77c1f731
mov eax, dword [ebp + 0x10]
push eax
call sym.msvcrt.dll_malloc
mov edi, eax
test edi, edi
pop ecx
jne 0x77c1f763
call sym.msvcrt.dll__errno
mov dword [eax], 0xc
jmp 0x77c1f6b9
cmp eax, dword [ebp + 0x10]
jle 0x77c1f763
call sym.msvcrt.dll__errno
mov dword [eax], 0x22
jmp 0x77c1f6b9
lea ecx, [ebp - 0x108]
mov esi, edi
mov eax, ecx
sub esi, eax
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x77c1f76f
mov eax, edi
jmp 0x77c1f6bb
Function at 0x77c2044e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x77c20473
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.77c1f2d8
pop ecx
or eax, 0xffffffff
pop ebp
ret
test al, 1
je 0x77c20495
test byte [ebp + 0xc], 2
je 0x77c20495
call sym.msvcrt.dll__errno
mov dword [eax], 0xd
call sym.msvcrt.dll___doserrno
mov dword [eax], 5
jmp 0x77c2046e
xor eax, eax
pop ebp
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x77c20573
test byte [ebp + 0xc], 0x80
je 0x77c20562
and eax, 0xfffffffe
jmp 0x77c20565
or eax, 1
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x77c20585
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.77c1f2d8
pop ecx
or eax, 0xffffffff
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x77c20643
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x77c5fac4]
push esi
mov esi, dword [ebp + 8]
test esi, esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
je 0x77c206c9
push esi
call fcn.77c1f63a
test eax, eax
pop ecx
jne 0x77c20691
call sym.msvcrt.dll___doserrno
mov dword [eax], 0xf
call sym.msvcrt.dll__errno
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.77c57993
leave
ret
and word [ebp - 6], 0
lea eax, [ebp - 0x218]
push eax
add esi, 0x40
lea eax, [ebp - 0x214]
push eax
mov word [ebp - 0xc], si
mov esi, 0x104
push esi
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0xa], 0x3a
mov word [ebp - 8], 0x2e
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
jmp 0x77c206dc
lea eax, [ebp - 0x214]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x77c20683
inc eax
cmp eax, esi
ja 0x77c20683
test edi, edi
mov ecx, edi
jne 0x77c20712
cmp eax, dword [ebp + 0x10]
jg 0x77c206f3
mov eax, dword [ebp + 0x10]
add eax, eax
push eax
call sym.msvcrt.dll_malloc
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x77c20727
call sym.msvcrt.dll__errno
mov dword [eax], 0xc
jmp 0x77c20683
cmp eax, dword [ebp + 0x10]
jle 0x77c20727
call sym.msvcrt.dll__errno
mov dword [eax], 0x22
jmp 0x77c20683
lea eax, [ebp - 0x214]
push eax
push ecx
call sym.msvcrt.dll_wcscpy
pop ecx
pop ecx
jmp 0x77c20685