joyce8/EMBER2024-capa huggingface dataset:
Function at 0x546edc
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push ecx
mov eax, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x18]
push edi
xor edi, edi
test eax, eax
je 0x5470a9
cmp word [eax], di
je 0x5470a9
push edi
push 0x80
push 3
push edi
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 8], eax
cmp eax, 0xffffffff
je 0x5470a5
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x1c], eax
test eax, eax
jle 0x54709b
push ebx
push ebp
call fcn.00548896
mov ebx, eax
test ebx, ebx
je 0x54709a
push esi
push 2
pop eax
cmp ebp, 0xffffffff
cmovne eax, ebp
push eax
push dword [esp + 0x20]
call fcn.0054593c
mov esi, eax
test esi, esi
je 0x547090
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
mov dword [esi + 0x2c], ebx
cmove eax, esi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], eax
mov eax, dword [esi + 4]
mov dword [esi + 0x38], eax
mov eax, dword [esp + 0x24]
add eax, 8
mov dword [esi + 0x40], edi
push eax
push edi
mov dword [esi + 0x14], edi
push dword [0x6b78c0]
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 0x28], eax
test eax, eax
je 0x546fb6
mov ecx, dword [esp + 0x1c]
mov dword [eax + 4], ecx
mov eax, dword [esi + 0x28]
mov dword [eax], edi
mov eax, dword [esi + 0x28]
add eax, 8
mov dword [esi + 0x44], eax
cmp ebp, 0xffffffff
je 0x546fc2
mov dword [esi + 0x34], 1
push esi
push ebx
call fcn.00581360
mov edx, dword [esp + 0x2c]
mov ebp, 0x4000
pop ecx
pop ecx
mov ecx, edi
mov dword [esp + 0x1c], ecx
lea eax, [ecx + ebp]
cmp eax, edx
jle 0x546fe5
mov ebp, edx
sub ebp, ecx
push ebp
push ebx
call fcn.00580c10
mov dword [esp + 0x1c], eax
pop ecx
pop ecx
test eax, eax
je 0x54707f
push edi
lea ecx, [esp + 0x24]
push ecx
push ebp
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x20]
cmp ecx, ebp
jne 0x54706f
mov eax, dword [esp + 0x1c]
add eax, ecx
mov dword [esp + 0x1c], eax
cmp dword [esi + 0x14], edi
jne 0x547038
push ecx
push dword [esp + 0x18]
call fcn.00548941
mov dword [esi + 0x14], eax
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x24]
jl 0x547042
push 1
jmp 0x547043
push edi
push ecx
push ebx
call fcn.00580f50
add esp, 0xc
test eax, eax
je 0x547063
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
cmp ecx, edx
jl 0x546fda
jmp 0x54708d
push ebx
call fcn.00580f20
pop ecx
mov dword [esi + 0x18], eax
jmp 0x547086
mov dword [esi + 0x18], 0x100
mov dword [esi + 0x24], str.file_read_error
jmp 0x54708d
mov dword [esi + 0x18], 1
push ebx
push esi
call fcn.005489ed
mov dword [esi + 0x2c], edi
push ebx
call fcn.00581090
pop ecx
mov edi, esi
pop esi
pop ebx
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x5470ab
xor eax, eax
pop edi
pop ebp
pop ecx
pop ecx
ret 0xc
Function at 0x547108
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp + 8]
push edi
push 0
push eax
mov edi, 0x1000
mov eax, edi
sub eax, dword [esi + 4]
push eax
push dword [esi + 0x10]
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, edi
sub eax, dword [esi + 4]
cmp dword [ebp + 8], eax
jne 0x547144
mov eax, dword [esi + 0x10]
mov dword [esi], eax
xor eax, eax
mov dword [esi + 4], edi
inc eax
jmp 0x547146
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x548ecc
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
je 0x548f67
push edi
push 0x6b9f60
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x6b86f0]
test edi, edi
je 0x548f3a
push ebp
push esi
lea ebp, [edi + 8]
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x548f33
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebp
push 0x6b86f0
call fcn.0057a733
pop ecx
pop ecx
jmp 0x548f35
mov edi, dword [edi]
test edi, edi
jne 0x548f08
pop ebp
mov esi, dword [0x6b62d0]
push 0x10
push 0x6b86f0
lea eax, [esi + 1]
mov dword [0x6b62d0], eax
call fcn.0057a704
pop ecx
pop ecx
push 0x6b9f60
mov dword [eax], ebx
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
pop ecx
ret 8

Function at 0x54900c
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
push 0
push edi
call fcn.00548fc0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ebx, 0x6b9f60
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x6b86f0]
jmp 0x54903d
cmp dword [esi + 0xc], edi
je 0x549043
mov esi, dword [esi]
test esi, esi
jne 0x549036
jmp 0x54905b
add esi, 8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 0x6b86f0
call fcn.0057a733
pop ecx
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
ret 4
Function at 0x5662b9
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
push dword [0x6b9fb8]
call fcn.00579e51
mov esi, eax
or ebx, 0xffffffff
mov dword [esp + 0x20], esi
mov dword [esp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ebp, dword [esp + 0x28]
mov edx, eax
movzx ecx, word [edx]
test cx, cx
je 0x5663f6
mov eax, dword [esi]
mov edi, ecx
mov esi, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0x20
push 0x22
pop ecx
movzx eax, di
cmp di, word [esp + 0x18]
jne 0x56631f
push 0x20
pop edi
add edx, 2
movzx eax, word [edx]
cmp ax, di
je 0x566314
mov dword [esp + 0x14], 1
cmp ax, cx
jne 0x566359
add edx, 2
mov edi, edx
movzx eax, word [edx]
mov ebx, eax
test ax, ax
je 0x5663b3
push 0x22
mov ecx, eax
pop esi
movzx ebx, cx
cmp cx, si
je 0x5663b3
add edx, 2
movzx eax, word [edx]
mov ecx, eax
mov ebx, eax
test ax, ax
jne 0x566340
jmp 0x5663b3
test ax, ax
je 0x5663c6
push 0x20
mov edi, edx
movzx eax, ax
pop ebp
movzx ebx, ax
cmp ax, bp
je 0x5663af
add edx, 2
push 0x22
pop ebx
movzx eax, word [edx]
mov ecx, eax
cmp ax, bx
jne 0x5663a4
add edx, 2
movzx eax, word [edx]
mov ecx, eax
test ax, ax
je 0x5663a4
mov esi, eax
movzx ecx, si
cmp si, bx
je 0x5663a4
add edx, 2
movzx eax, word [edx]
mov esi, eax
mov ecx, eax
test ax, ax
jne 0x56638d
movzx eax, cx
movzx ebx, cx
test cx, cx
jne 0x566366
mov ebp, dword [esp + 0x28]
test bx, bx
lea eax, [edx + 2]
mov ebx, dword [esp + 0x10]
mov esi, edx
cmove eax, edx
mov edx, eax
jmp 0x5663cd
and dword [esp + 0x14], 0
xor edi, edi
cmp dword [esp + 0x1c], ebx
jne 0x5663d7
test ebp, ebp
jne 0x5663fe
cmp dword [esp + 0x14], 0
lea eax, [ebx + 1]
movzx ecx, word [edx]
cmove eax, ebx
mov edi, ecx
mov ebx, eax
mov dword [esp + 0x10], ebx
test cx, cx
jne 0x566304
test ebp, ebp
jne 0x566413
mov eax, ebx
jmp 0x566419
test edi, edi
je 0x566413
mov eax, dword [esp + 0x20]
sub esi, edi
sar esi, 1
mov dword [ebp], esi
inc dword [eax]
mov eax, edi
jmp 0x566419
and dword [ebp], 0
mov eax, edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret

Function at 0x566559
Capabilities:
Query environment variable

Disassembly:
push ebp
push esi
push edi
push dword [0x6b9fb8]
xor esi, esi
call fcn.00579e51
mov ebp, eax
cmp dword [ebp + 8], esi
je 0x566583
push dword [ebp + 8]
push esi
push dword [0x6b78c0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov edi, eax
test edi, edi
je 0x5665dc
push ebx
mov ebx, edi
cmp word [edi], si
je 0x5665a9
push ebx
call fcn.00539a3f
pop ecx
lea ebx, [ebx + eax*2]
add ebx, 2
cmp word [ebx], si
jne 0x566597
sub ebx, edi
add ebx, 2
push ebx
push esi
push dword [0x6b78c0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp + 8], eax
test eax, eax
je 0x5665d4
push ebx
push edi
push eax
call fcn.00541db0
mov dword [ebp + 0xc], esi
add esp, 0xc
xor esi, esi
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x566dc1
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, 0x1000
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebp, ebp
cmp dword [esp + 0x24], 0x18
mov ebx, eax
je 0x566e80
cmp dword [esp + 0x24], 2
je 0x566e80
push 0x2000
push ebp
push dword [0x6b78c0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
jmp 0x566e4f
cmp dword [esp + 0x18], 2
jne 0x566e6b
cmp dword [esp + 0x28], 0xffffffff
je 0x566e13
cmp ebp, dword [esp + 0x28]
jae 0x566e6b
add ebp, 2
test ebx, ebx
jne 0x566e38
lea eax, [edi*2 + 0x2000]
push eax
push esi
push 8
push dword [0x6b78c0]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov ax, word [esp + 0x14]
cmp ax, 0xa
je 0x566e6b
cmp ax, 0xd
je 0x566e4f
mov word [esi + edi*2], ax
inc edi
dec ebx
push 0
lea eax, [esp + 0x1c]
push eax
push 2
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x566dff
push dword [esp + 0x2c]
xor eax, eax
push esi
mov word [esi + edi*2], ax
call fcn.0061a4e0
jmp 0x566f12
push eax
push 0
push dword [0x6b78c0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp dword [esp + 0x28], 0xffffffff
je 0x566e9e
cmp ebp, dword [esp + 0x28]
jae 0x566ef6
push 0
lea eax, [esp + 0x1c]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x566ef6
cmp dword [esp + 0x18], 1
jne 0x566ef6
inc ebp
test ebx, ebx
jne 0x566ee3
lea eax, [edi + 0x1000]
push eax
push esi
push 8
push dword [0x6b78c0]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov al, byte [esp + 0x13]
cmp al, 0xa
je 0x566ef6
cmp al, 0xd
je 0x566e91
mov byte [esi + edi], al
inc edi
dec ebx
jmp 0x566e91
cmp dword [esp + 0x24], 0x18
push dword [esp + 0x2c]
mov byte [esi + edi], 0
push esi
jne 0x566f0d
call fcn.0061a1f0
jmp 0x566f12
call fcn.0061a410
push esi
push 0
push dword [0x6b78c0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10
Function at 0x567968
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0x6b9fc4]
call fcn.00579e51
mov edi, dword [eax + 0x24]
test edi, edi
je 0x567a26
cmp dword [edi + 8], 1
je 0x567a26
mov edi, dword [edi + 0xc]
test edi, edi
je 0x567a26
mov al, byte [edi]
cmp al, 0x20
je 0x5679a1
cmp al, 9
jne 0x5679a4
inc edi
jmp 0x567997
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor eax, eax
push eax
push eax
push 0xffffffffffffffff
push edi
push eax
push 0xfde9
call esi
push dword [esp + 0x14]
mov ebx, eax
lea ecx, [ebx - 1]
push ecx
call fcn.0057b590
push ebx
mov ebp, eax
push ebp
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call esi
test ebx, ebx
jle 0x5679f5
push 9
pop edx
lea eax, [ebp - 2]
lea eax, [eax + ebx*2]
movzx ecx, word [eax]
push 0x20
pop esi
cmp cx, si
je 0x567a11
cmp cx, dx
je 0x567a11
pop edi
pop esi
pop ebp
pop ebx
ret 4
movzx ecx, word [eax]
cmp cx, si
je 0x567a09
cmp cx, dx
jne 0x567a15
xor ecx, ecx
mov word [eax], cx
sub eax, 2
cmp eax, ebp
jae 0x5679fc
push ebp
call fcn.00539a3f
pop ecx
sub ebx, eax
push ebx
call fcn.0057b740
jmp 0x5679f5
pop edi
pop esi
pop ebp
pop ebx
jmp fcn.0057b720

Function at 0x5685b7
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
xor edi, edi
test esi, esi
je 0x568619
cmp word [esi], di
je 0x568619
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.005a1820
push dword [esp + 0x1c]
mov ebx, eax
push ebx
call dword [esp + 0x20]
push esi
push ebx
call fcn.005a1a80
add esp, 0x10
test eax, eax
jne 0x568618
push 0x2c
push 8
push dword [0x6b78c0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
mov eax, dword [esp + 0x10]
mov dword [ecx + 0x1c], edi
mov edi, ecx
mov dword [ecx], ebx
mov dword [ecx + 0x10], 1
mov dword [ecx + 0x28], eax
mov dword [eax + 4], ecx
pop ebx
mov eax, edi
pop edi
pop esi
ret 0x10
Function at 0x56c189
Capabilities:
Create thread
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push dword [0x6ba088]
xor edi, edi
call fcn.00579e51
mov ebx, eax
cmp dword [ebp + 0xc], edi
je 0x56c273
push esi
push 0x60
push 8
push dword [0x6b78c0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push dword [ebp + 0xc]
mov esi, eax
or dword [esi + 4], 0xffffffff
mov dword [esi], 1
call fcn.0061f228
mov dword [esi + 8], eax
mov dword [esp], str.Mozilla_5.0_Gecko_41.0_Firefox_41.0
call fcn.0061f228
pop ecx
mov ecx, dword [ebp + 0x18]
mov dword [esi + 0x40], eax
mov dword [esi + 0x24], ecx
mov eax, dword [ebx]
mov dword [esi + 0x28], eax
mov eax, dword [ebx + 4]
mov ebx, dword [ebp + 0x14]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x54], ebx
mov dword [esi + 0x4c], eax
test cl, 1
je 0x56c263
test ebx, ebx
je 0x56c231
push ebx
push edi
push dword [0x6b78c0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 0x48], eax
test eax, eax
je 0x56c22c
push ebx
push dword [ebp + 0x10]
push eax
call fcn.00541db0
add esp, 0xc
cmp dword [esi + 0x48], edi
je 0x56c25a
lea eax, [ebp + 0xc]
push eax
push edi
push esi
push 0x56c27b
push 0x10000
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x56c255
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x56c270
cmp dword [ebp + 0xc], edi
jne 0x56c270
push esi
call fcn.0056b646
pop ecx
jmp 0x56c272
mov eax, dword [ebp + 0x10]
push esi
mov dword [esi + 0x48], eax
call fcn.0056bd8b
pop ecx
mov edi, esi
pop esi
mov eax, edi
pop edi
pop ebx
pop ebp
ret 0x18

Function at 0x56c3d2
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push dword [0x6ba088]
xor esi, esi
call fcn.00579e51
mov ebx, eax
cmp dword [ebp + 8], esi
je 0x56c489
cmp dword [ebp + 0xc], esi
je 0x56c489
push edi
push 0x60
push 8
push dword [0x6b78c0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push dword [ebp + 8]
mov edi, eax
or dword [edi + 4], 0xffffffff
mov dword [edi], esi
call fcn.0061f228
push dword [ebp + 0xc]
mov dword [edi + 8], eax
call fcn.0061f228
push dword [ebp + 0x14]
mov dword [edi + 0xc], eax
call fcn.0061f228
mov dword [edi + 0x40], eax
add esp, 0xc
mov eax, dword [ebx]
mov dword [edi + 0x28], eax
mov eax, dword [ebx + 4]
mov dword [edi + 0x2c], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x24], eax
test al, 1
je 0x56c478
lea eax, [ebp + 8]
push eax
push esi
push edi
push 0x56c636
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x56c470
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, edi
jmp 0x56c488
push edi
call fcn.0056b646
jmp 0x56c487
push edi
call fcn.0056c4a3
push edi
mov esi, eax
call fcn.0056b646
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x56c4a3
Capabilities:
Delete file

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
xor ebx, ebx
mov eax, dword [edi + 0xc]
push dword [edi + 8]
mov dword [esp + 0x20], eax
call fcn.0061a2f0
push dword [edi + 0x40]
mov ebp, eax
mov dword [esp + 0x14], ebp
call fcn.0061a2f0
mov dword [esp + 0x14], eax
call fcn.005dd930
mov esi, eax
xor eax, eax
inc eax
test esi, esi
je 0x56c602
push ebx
push 0x80
push 2
push ebx
push eax
push 0xc0000000
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x56c5f4
test byte [edi + 0x24], 2
mov dword [edi + 0x10], ebp
jne 0x56c51c
push 1
push 0x34
push esi
call fcn.005e0720
add esp, 0xc
mov eax, dword [0x6b8928]
test eax, eax
je 0x56c534
push eax
push 0x2714
push esi
call fcn.005e0720
add esp, 0xc
mov eax, dword [0x6b892c]
test eax, eax
je 0x56c565
cmp dword [0x6b8930], ebx
je 0x56c565
push eax
push 0x27bf
push esi
call fcn.005e0720
push dword [0x6b8930]
push 0x27c0
push esi
call fcn.005e0720
add esp, 0x18
push dword [esp + 0x10]
push 0x2712
push esi
call fcn.005e0720
push dword [esp + 0x20]
push 0x2722
push esi
call fcn.005e0720
push 0x56c645
push 0x4e2b
push esi
call fcn.005e0720
push edi
push 0x2711
push esi
call fcn.005e0720
push dword [edi + 0x28]
push 0x9c
push esi
call fcn.005e0720
push dword [edi + 0x2c]
push 0x9b
push esi
call fcn.005e0720
add esp, 0x48
push 1
push 0x63
push esi
call fcn.005e0720
push esi
call fcn.005dd9d0
add esp, 0x10
test eax, eax
jne 0x56c5df
cmp dword [edi + 4], 0xfffffffb
push 1
pop eax
cmovne ebx, eax
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x56c5f4
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call fcn.005dd8f0
mov ebp, dword [esp + 0x14]
xor eax, eax
pop ecx
inc eax
cmp ebx, eax
jne 0x56c60f
mov dword [edi + 4], 0xfffffffe
jmp 0x56c61e
xor ecx, ecx
cmp dword [edi + 4], 0xfffffffb
setne cl
add ecx, 0xfffffffc
mov dword [edi + 4], ecx
push ebp
call fcn.0061a2e0
push dword [esp + 0x14]
call fcn.0061a2e0
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
pop ecx
ret
Function at 0x56cf93
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push 0x56cee5
push 0x10
push 0x2c
call fcn.0057a095
push 0
push 0
push 8
mov dword [0x6b894c], eax
call fcn.00579ebc
cmp word [0x6b8944], 0
mov dword [0x6ba094], eax
jne 0x56d073
lea eax, [esp]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
neg eax
push str.ws2_32.dll
sbb eax, eax
inc eax
mov word [0x6b8944], ax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x6b8950], eax
test eax, eax
je 0x56d073
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x64ddb0
push eax
call esi
push 0x64ddbc
push dword [0x6b8950]
mov dword [0x6b8934], eax
call esi
push str.getnameinfo
push dword [0x6b8950]
mov dword [0x6b8938], eax
call esi
push str.WSAStringToAddressA
push dword [0x6b8950]
mov dword [0x6b893c], eax
call esi
cmp dword [0x6b8934], 0
mov ecx, eax
mov dword [0x6b8940], ecx
pop esi
je 0x56d073
cmp dword [0x6b8938], 0
je 0x56d073
cmp dword [0x6b893c], 0
je 0x56d073
mov eax, dword [0x6b8948]
xor edx, edx
inc edx
test ecx, ecx
cmovne eax, edx
mov dword [0x6b8948], eax
add esp, 0x190
ret

Function at 0x56d181
Capabilities:
Check os version

Disassembly:
sub esp, 0x34c
push ebp
push esi
push edi
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x114
push eax
mov esi, 0xc8
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x56d2ea
mov eax, dword [esp + 0x1c]
sub eax, 1
je 0x56d2cd
sub eax, 1
jne 0x56d2ea
lea eax, [esp + 0x120]
xor edi, edi
push eax
call fcn.0056d13a
pop ecx
test eax, eax
je 0x56d1f8
cmp byte [esp + 0x23a], 1
mov ecx, dword [esp + 0x124]
mov eax, dword [esp + 0x128]
mov ebp, dword [esp + 0x12c]
jne 0x56d22e
inc edi
jmp 0x56d22e
lea eax, [esp + 0x23c]
mov dword [esp + 0x23c], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x56d2ea
mov ecx, dword [esp + 0x10]
xor edx, edx
mov eax, dword [esp + 0x14]
inc edx
cmp byte [esp + 0x356], dl
cmove edi, edx
sub ecx, 3
je 0x56d2c9
sub ecx, 1
je 0x56d2c5
sub ecx, 1
je 0x56d2a7
sub ecx, 1
je 0x56d26b
sub ecx, 4
jne 0x56d2ea
test eax, eax
jne 0x56d2ea
cmp ebp, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x56d2ea
sub eax, 0
je 0x56d29a
sub eax, 1
je 0x56d28d
sub eax, 1
je 0x56d286
sub eax, 1
jne 0x56d2ea
push 0x69
pop esi
push 0x64
jmp 0x56d29f
push 0x5a
pop esi
push 0x5f
jmp 0x56d292
push 0x50
pop esi
push 0x55
test edi, edi
pop eax
cmove esi, eax
jmp 0x56d2ea
push 0x4b
pop esi
push 0x46
test edi, edi
pop eax
cmovne esi, eax
jmp 0x56d2ea
sub eax, 0
je 0x56d2c1
sub eax, 1
je 0x56d2bd
sub eax, 1
jne 0x56d2ea
push 0x41
pop esi
push 0x3c
jmp 0x56d29f
push 0x3c
jmp 0x56d2e9
push 0x32
jmp 0x56d2e9
push 0x14
jmp 0x56d2e9
push 5
jmp 0x56d2e9
mov eax, dword [esp + 0x14]
test eax, eax
je 0x56d2e7
cmp eax, 0xa
je 0x56d2e3
cmp eax, 0x5a
jne 0x56d2ea
push 0x28
jmp 0x56d2e9
push 0x1e
jmp 0x56d2e9
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x34c
ret
Function at 0x56d35f
Capabilities:
Copy file

Disassembly:
cmp dword [esp + 4], 0
je 0x56d37f
cmp dword [esp + 8], 0
je 0x56d37f
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x56d381
xor eax, eax
ret 8

Function at 0x56d384
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x56d3fc
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call fcn.0061f2c7
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call fcn.00539a3f
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x56d3dd
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x56d3da
cmp ecx, 0x5c
je 0x56d3da
cmp ecx, 0x2f
jne 0x56d3e7
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x56d3c7
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x56d3fe
xor eax, eax
leave
ret 4

Function at 0x56d740
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x56d769
test byte [esp + 8], 2
je 0x56d75d
push 0x80
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x56d76b
xor eax, eax
ret 8

Function at 0x56d846
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebx
mov ebx, eax
mov eax, dword [0x6b8968]
push esi
push edi
test eax, eax
jne 0x56d86c
push fcn.0056d975
push 0x10
push 0x258
call fcn.0057a095
mov dword [0x6b8968], eax
mov edi, dword [esp + 0x10]
push edi
push eax
call fcn.0057a001
mov esi, eax
test esi, esi
je 0x56d96d
cmp dword [esp + 0x14], ebx
mov eax, 0x6363f8
push ebp
cmovne eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
test ebp, ebp
je 0x56d8a4
xor ecx, ecx
cmp word [ebp], cx
jne 0x56d8ad
mov ebp, 0x64de10
mov dword [esp + 0x1c], ebp
push eax
call fcn.00539a3f
push ebp
mov dword [esp + 0x20], eax
call fcn.00539a3f
add eax, dword [esp + 0x20]
pop ecx
pop ecx
lea eax, [eax*2 + 4]
push eax
xor eax, eax
push eax
push dword [0x6b78c0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
je 0x56d95a
push dword [esp + 0x14]
push ebp
call fcn.0061f307
pop ecx
pop ecx
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x56d90d
mov eax, dword [esp + 0x14]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x56d90d
push 0x633750
push ebp
call fcn.0061f329
pop ecx
pop ecx
push dword [esp + 0x1c]
push ebp
call fcn.0061f329
pop ecx
pop ecx
lea eax, [esi + 8]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x56d932
xor ecx, ecx
mov dword [esi + 4], ecx
jmp 0x56d946
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 2
jne 0x56d948
mov dword [esi + 4], 1
mov ebx, esi
push ebp
push ecx
push dword [0x6b78c0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
jne 0x56d96c
cmp edi, 0xffffffff
cmove edi, esi
push edi
push dword [0x6b8968]
call fcn.00579f74
pop ebp
pop edi
pop esi
mov eax, ebx
pop ebx
ret 0xc