joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a5570
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0
push 0
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0x4a52c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0xffffffff
je 0x4a55ae
mov eax, 1
jmp 0x4a55b0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4a55e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x61b000]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.00402270
mov dword [ebp - 0x6c], eax
push 0x44
push 0
lea eax, [ebp - 0x68]
push eax
call fcn.00568440
add esp, 0xc
mov dword [ebp - 0x68], 0x44
mov dword [ebp - 0x3c], 1
xor ecx, ecx
mov word [ebp - 0x38], cx
xor edx, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], edx
lea ecx, [ebp + 8]
call fcn.00406190
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0
jne 0x4a5647
mov dword [ebp - 0x80], 0
jmp 0x4a56a3
mov eax, dword [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x3fffffff
jle 0x4a566c
mov dword [ebp - 0x84], 0
jmp 0x4a569a
mov eax, dword [ebp - 0x18]
shl eax, 1
call fcn.00570840
mov dword [ebp - 0x88], esp
mov ecx, dword [ebp - 0x6c]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x78]
push eax
mov ecx, dword [ebp - 0x88]
push ecx
call fcn.00402280
mov dword [ebp - 0x84], eax
mov edx, dword [ebp - 0x84]
mov dword [ebp - 0x80], edx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x68]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 0x80]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0
je 0x4a56fd
push 0xffffffffffffffff
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x79], 1
lea ecx, [ebp + 8]
call fcn.004060d0
mov al, byte [ebp - 0x79]
jmp 0x4a5715
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x70], eax
mov byte [ebp - 0x7a], 0
lea ecx, [ebp + 8]
call fcn.004060d0
mov al, byte [ebp - 0x7a]
lea esp, [ebp - 0x88]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00560c61
mov esp, ebp
pop ebp
ret
Function at 0x4ae2d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [eax], 0
push 0
push 0x14
call fcn.004aa660
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4ae2fc
mov eax, 7
jmp 0x4ae3ac
movzx ecx, byte [0x61c49c]
test ecx, ecx
je 0x4ae318
push 0xc8
call fcn.004af030
add esp, 4
test eax, eax
je 0x4ae32d
xor edx, edx
mov eax, dword [ebp - 4]
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
jmp 0x4ae37d
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0xc], ecx
mov edx, dword [ebp - 4]
add edx, 4
push edx
push 0
mov eax, dword [ebp - 4]
push eax
push 0x4ae290
push 0
push 0
call fcn.005679c9
add esp, 0x18
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
cmp dword [edx], 0
jne 0x4ae37d
xor eax, eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 8], 0
jne 0x4ae3a2
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov edx, dword [ebp + 0x10]
push edx
call dword [ebp + 0xc]
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov dword [edx], eax
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4f9890
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov byte [eax + 0x10], 1
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push str.SELECT_1_FROM___w_.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d___Q___d_NULL
mov eax, dword [ebp + 8]
push eax
call fcn.005003e0
add esp, 0x1c
cmp dword [ebp + 0x10], 0
jne 0x4f98e2
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0xc]
push eax
push str.SELECT_1_FROM_temp.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1___Q___d_NULL
mov ecx, dword [ebp + 8]
push ecx
call fcn.005003e0
add esp, 0x14
pop ebp
ret
Function at 0x553e20
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], 0
jmp 0x553e3b
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x100
jge 0x553e92
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], 0
jmp 0x553e5c
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 8
jge 0x553e84
mov eax, dword [ebp - 4]
and eax, 1
je 0x553e7a
mov ecx, dword [ebp - 4]
shr ecx, 1
xor ecx, 0xedb88320
mov dword [ebp - 4], ecx
jmp 0x553e82
mov edx, dword [ebp - 4]
shr edx, 1
mov dword [ebp - 4], edx
jmp 0x553e53
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
mov dword [ecx + eax*4], edx
jmp 0x553e32
mov esp, ebp
pop ebp
ret
Function at 0x560c61
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x61b000]
jne 0x560c6b
repz ret
jmp fcn.0056b16b

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x563c32
call fcn.0056855b
mov dword [eax], esi
call fcn.00568548
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00561774
add esp, 0x14
push 0x16
pop eax
jmp 0x563c87
test dword [ebp + 0xc], 0xfffffff9
jne 0x563c0e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x563c5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0056856e
pop ecx
call fcn.00568548
mov eax, dword [eax]
jmp 0x563c87
test al, 0x10
jne 0x563c85
test al, 1
je 0x563c85
test byte [ebp + 0xc], 2
je 0x563c85
call fcn.0056855b
mov dword [eax], 5
call fcn.00568548
mov dword [eax], 0xd
jmp 0x563c56
xor eax, eax
pop esi
pop ebp
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x56b8bc
call fcn.0056855b
mov dword [eax], esi
call fcn.00568548
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00561774
add esp, 0x14
push 0x16
pop eax
jmp 0x56b911
test dword [ebp + 0xc], 0xfffffff9
jne 0x56b898
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x56b8e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0056856e
pop ecx
call fcn.00568548
mov eax, dword [eax]
jmp 0x56b911
test al, 0x10
jne 0x56b90f
test al, 1
je 0x56b90f
test byte [ebp + 0xc], 2
je 0x56b90f
call fcn.0056855b
mov dword [eax], 5
call fcn.00568548
mov dword [eax], 0xd
jmp 0x56b8e0
xor eax, eax
pop esi
pop ebp
ret
Function at 0x57ccfe
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0056e18d
and dword [ebp - 4], 0
cmp dword [0x63e43c], 0
mov ebx, eax
jne 0x57cdaf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x57ce60
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5947b4
push edi
call esi
test eax, eax
je 0x57ce60
push eax
call fcn.0056e11b
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x63e43c], eax
call esi
push eax
call fcn.0056e11b
mov dword [esp], 0x594790
push edi
mov dword [0x63e440], eax
call esi
push eax
call fcn.0056e11b
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x63e444], eax
call esi
push eax
call fcn.0056e11b
pop ecx
mov dword [0x63e44c], eax
test eax, eax
je 0x57cdaf
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0056e11b
pop ecx
mov dword [0x63e448], eax
mov eax, dword [0x63e448]
cmp eax, ebx
je 0x57ce07
cmp dword [0x63e44c], ebx
je 0x57ce07
push eax
call fcn.0056e196
push dword [0x63e44c]
mov esi, eax
call fcn.0056e196
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x57ce07
test edi, edi
je 0x57ce07
call esi
test eax, eax
je 0x57cdfe
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x57cdfe
test byte [ebp - 0xc], 1
jne 0x57ce07
or dword [ebp + 0x10], 0x200000
jmp 0x57ce40
mov eax, dword [0x63e440]
cmp eax, ebx
je 0x57ce40
push eax
call fcn.0056e196
pop ecx
test eax, eax
je 0x57ce40
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x57ce40
mov eax, dword [0x63e444]
cmp eax, ebx
je 0x57ce40
push eax
call fcn.0056e196
pop ecx
test eax, eax
je 0x57ce40
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x63e43c]
call fcn.0056e196
pop ecx
test eax, eax
je 0x57ce60
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x57ce62
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x54501330
Capabilities:
Copy file
Set file attributes

Disassembly:
sub esp, 0x10c
mov eax, dword [0x5454141c]
xor eax, esp
mov dword [esp + 0x108], eax
push 0x104
lea eax, [esp + 8]
push eax
call dword [0x54542958]
push str.usp10.dll
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, 0x54542da0
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x54501370
sub eax, edx
je 0x545013c7
push 1
lea edx, [esp + 8]
push edx
push 0x54542da0
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x545013c7
lea eax, [esp + 4]
push eax
call fcn.54515df0
add esp, 4
push 6
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, 1
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.54516b6f
add esp, 0x10c
ret
mov ecx, dword [esp + 0x108]
xor ecx, esp
xor eax, eax
call fcn.54516b6f
add esp, 0x10c
ret

Function at 0x54501aa0
Capabilities:
Set file attributes

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0x10]
mov eax, dword [esi]
mov ebp, dword [esp + 0xc]
and al, 0x10
neg al
push edi
push 0
sbb eax, eax
and eax, 0x1ffff80
add eax, 0x80
push eax
push 3
push 0
push 5
push 0xc0000000
push ebp
call dword [0x54542914]
mov edi, eax
cmp edi, 0xffffffff
jne 0x54501adf
pop edi
pop esi
xor al, al
pop ebp
ret
push ebx
lea ecx, [esi + 0x14]
push ecx
lea edx, [esi + 0xc]
push edx
lea eax, [esi + 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
setne bl
test bl, bl
je 0x54501b0b
mov ecx, dword [esi]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
setne bl
push edi
call dword [0x54542850]
mov al, bl
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x54501ba0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x37c
mov eax, dword [0x5454141c]
xor eax, esp
mov dword [esp + 0x378], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x38c]
push edi
push 0x130
lea eax, [esp + 0x18]
push 0xff
push eax
mov ebx, ecx
call fcn.54516b80
mov eax, esi
add esp, 0xc
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x54501be0
sub eax, edx
jne 0x54501c6f
push eax
mov ecx, ebx
call fcn.54501b60
mov ebp, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
xor esi, esi
lea ecx, [esi + 0x41]
push ecx
lea edx, [esp + 0x40]
push 0x545315b8
push edx
call fcn.54516af4
mov edi, eax
add esp, 0xc
lea eax, [esp + 0x3c]
push eax
call ebp
cmp eax, 1
je 0x54501c3d
mov edx, dword [ebx]
add edi, 0x2d
push edi
lea ecx, [esp + 0x18]
push ecx
push edx
mov dword [esp + 0x20], eax
call fcn.54515520
add esp, 0xc
add esi, 1
cmp esi, 0x1a
jl 0x54501c01
push 0x130
lea eax, [esp + 0x18]
push 0
push eax
call fcn.54516b80
mov edx, dword [ebx]
push 0x2c
lea ecx, [esp + 0x24]
push ecx
push edx
call fcn.54515520
add esp, 0x18
xor eax, eax
jmp 0x54501df4
push esi
lea eax, [esp + 0x288]
push str._s.
push eax
xor ebp, ebp
call fcn.54516af4
add esp, 0xc
lea ecx, [esp + 0x144]
push ecx
lea edx, [esp + 0x288]
push edx
call dword [0x54542934]
mov edi, eax
cmp edi, 0xffffffff
jne 0x54501cb9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, ebx
call fcn.54501b60
or eax, edi
jmp 0x54501df4
push esi
lea eax, [ebx + 0x10]
push 0x545315b4
push eax
call fcn.54516af4
add esp, 0xc
push 0
mov ecx, ebx
call fcn.54501b60
lea ecx, [esp + 0x170]
call fcn.545017d0
lea ecx, [esp + 0x170]
push 0x5453146c
push ecx
call fcn.545240e4
add esp, 8
test eax, eax
je 0x54501db1
mov edx, dword [esp + 0x148]
mov ecx, dword [esp + 0x14c]
mov eax, dword [esp + 0x144]
test al, 0x10
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x150]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x154]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x158]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x15c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], ecx
je 0x54501d57
or eax, 0xffffffff
mov dword [esp + 0x38], eax
jmp 0x54501d7b
mov edx, dword [esp + 0x160]
push 1
push 0
push 0
push edx
call fcn.54516c90
mov ecx, dword [esp + 0x164]
xor esi, esi
add eax, ecx
adc edx, esi
mov dword [esp + 0x38], edx
lea edx, [esp + 0x170]
push edx
mov dword [esp + 0x38], eax
lea eax, [esp + 0x40]
push 0x54531448
push eax
call fcn.54516af4
mov edx, dword [ebx]
lea esi, [eax + 0x2d]
push esi
lea ecx, [esp + 0x24]
push ecx
push edx
call fcn.54515520
add esp, 0x18
cmp eax, esi
jne 0x54501dc8
add ebp, 1
lea eax, [esp + 0x144]
push eax
push edi
call dword [0x54542938]
test eax, eax
jne 0x54501cd4
push 0x130
lea ecx, [esp + 0x18]
push 0
push ecx
call fcn.54516b80
mov eax, dword [ebx]
push 0x2c
lea edx, [esp + 0x24]
push edx
push eax
call fcn.54515520
add esp, 0x18
push edi
call dword [0x5454293c]
mov eax, ebp
mov ecx, dword [esp + 0x388]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.54516b6f
add esp, 0x37c
ret 4
Function at 0x54501f00
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x5452f77b
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x5454141c]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5454141c]
xor eax, esp
push eax
lea eax, [esp + 0x250]
mov dword fs:[0], eax
mov eax, dword [esp + 0x260]
mov edi, ecx
push eax
lea ecx, [esp + 0x38]
call fcn.54514f70
xor ebx, ebx
lea ecx, [esp + 0x34]
mov dword [esp + 0x258], ebx
call fcn.54514e50
lea ecx, [esp + 0x34]
mov ebp, eax
call fcn.54514e60
cmp ebp, 2
mov esi, eax
je 0x54501f96
push 0x57
mov ecx, edi
call fcn.54501b60
lea ecx, [esp + 0x34]
mov dword [esp + 0x258], 0xffffffff
call fcn.54514e30
xor eax, eax
jmp 0x5450206b
push 0x103
lea eax, [esp + 0x49]
push ebx
push eax
mov byte [esp + 0x50], bl
call fcn.54516b80
push 0x103
lea ecx, [esp + 0x159]
push ebx
push ecx
mov byte [esp + 0x160], bl
call fcn.54516b80
mov edx, dword [esi]
push edx
lea eax, [esp + 0x60]
push 0x54531448
push eax
call fcn.54516af4
mov ecx, dword [esi + 4]
push ecx
lea edx, [esp + 0x170]
push 0x54531448
push edx
call fcn.54516af4
xor eax, eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov word [esp + 0x60], ax
add esp, 0x30
lea edx, [esp + 0x14]
lea eax, [esp + 0x44]
lea ecx, [esp + 0x148]
push edx
mov word [esp + 0x28], 0x61c
mov dword [esp + 0x2e], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x32], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], 1
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov esi, eax
push esi
mov ecx, edi
call fcn.54501b60
lea ecx, [esp + 0x34]
mov dword [esp + 0x258], 0xffffffff
call fcn.54514e30
mov eax, esi
mov ecx, dword [esp + 0x250]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.54516b6f
add esp, 0x248
ret 4

Function at 0x545020a0
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x5452f7b8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x5454141c]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [esp + 0x2c]
push eax
lea ecx, [esp + 0x10]
call fcn.54514f70
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0
call fcn.54514e50
lea ecx, [esp + 0xc]
mov esi, eax
call fcn.54514e60
cmp esi, 2
je 0x54502126
push 0x57
mov ecx, edi
call fcn.54501b60
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.54514e30
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret 4
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov esi, eax
test esi, esi
je 0x5450213d
xor eax, eax
jmp 0x54502143
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, edi
call fcn.54501b60
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.54514e30
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret 4
Function at 0x54502a20
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x108
mov eax, dword [0x5454141c]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push edi
mov edi, dword [esp + 0x114]
push str.usb.fx
push 0x54542fe8
lea eax, [esp + 0x10]
push 0x5453144c
push eax
mov esi, ecx
call fcn.54516af4
add esp, 0x10
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x54502a77
push 2
mov ecx, esi
call fcn.54501b60
xor eax, eax
jmp 0x54502a9c
push edi
call fcn.54501260
add esp, 4
cmp eax, 0x20
jle 0x54502a89
push 0
jmp 0x54502a90
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.54501b60
mov eax, 1
mov ecx, dword [esp + 0x10c]
pop edi
pop esi
xor ecx, esp
call fcn.54516b6f
add esp, 0x108
ret 4

Function at 0x54503210
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x5452f7eb
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x5454141c]
xor eax, esp
mov dword [esp + 0x420], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5454141c]
xor eax, esp
push eax
lea eax, [esp + 0x438]
mov dword fs:[0], eax
mov esi, dword [esp + 0x448]
mov eax, dword [esi + 4]
push eax
lea ecx, [esp + 0x18]
call fcn.54514f70
lea ecx, [esp + 0x14]
mov dword [esp + 0x440], 0
call fcn.54514e50
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.54514e60
mov esi, dword [esi]
push 5
push esi
mov ebp, eax
call fcn.54506040
mov edi, eax
add esp, 8
test edi, edi
jne 0x545032a3
push 0x54531650
push esi
call fcn.54516060
jmp 0x54503362
push 0x104
lea ecx, [esp + 0x12c]
push ecx
call dword [0x5454295c]
lea edx, [esp + 0x22c]
push edx
push 0x104
call dword [0x54542960]
lea eax, [esp + 0x128]
push eax
lea ecx, [esp + 0x334]
push str._scmd.exe
push ecx
call fcn.54516af4
lea edx, [esp + 0x238]
push edx
lea eax, [esp + 0x34]
push str._sxmd.exe
push eax
call fcn.54516af4
push 0x108
call fcn.54516c18
push 0x108
mov esi, eax
push 0
push esi
call fcn.54516b80
add esp, 0x28
cmp ebx, 2
mov dword [esi], edi
jge 0x54503342
push 1
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x338]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x104
lea eax, [esp + 0x28]
push eax
lea ecx, [esi + 4]
push ecx
jmp 0x5450334f
mov edx, dword [ebp + 4]
push 0x104
push edx
lea eax, [esi + 4]
push eax
call fcn.545173d0
add esp, 0xc
push esi
push 0x54502f80
call fcn.54506120
add esp, 8
lea ecx, [esp + 0x14]
mov dword [esp + 0x440], 0xffffffff
call fcn.54514e30
xor eax, eax
mov ecx, dword [esp + 0x438]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x420]
xor ecx, esp
call fcn.54516b6f
add esp, 0x430
ret
Function at 0x545033f0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
push esi
mov dword [esp + 8], 0
mov dword [esp + 0xc], 1
call sub.WS2_32.dll_inet_addr
mov edx, dword [esp + 0x18]
push 0
neg esi
mov dword [esp + 0x10], eax
lea eax, [esp + 8]
push eax
sbb esi, esi
lea ecx, [esp + 0x10]
and esi, ecx
push esi
push 0
push 1
push edx
call sub.DNSAPI.dll_DnsQuery_A
test eax, eax
je 0x5450343d
xor al, al
pop esi
add esp, 0xc
ret
mov eax, dword [esp + 4]
mov eax, dword [eax + 0x18]
push eax
call sub.WS2_32.dll_inet_ntoa
test eax, eax
je 0x54503467
mov edx, dword [esp + 0x1c]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x54503454
mov esi, 1
jmp 0x54503469
xor esi, esi
mov ecx, dword [esp + 4]
push 1
push ecx
call sub.DNSAPI.dll_DnsRecordListFree
test esi, esi
setne al
pop esi
add esp, 0xc
ret
Function at 0x545039f0
Capabilities:
Encode data using xor

Disassembly:
movzx eax, byte [esp + 0xc]
cdq
mov ecx, 0xfe
idiv ecx
push esi
mov esi, dword [esp + 0xc]
add dl, 1
test esi, esi
jbe 0x54503a20
mov eax, dword [esp + 8]
lea ecx, [ecx]
mov cl, byte [eax]
sub cl, dl
xor cl, dl
mov byte [eax], cl
add eax, 1
sub esi, 1
jne 0x54503a10
pop esi
ret

Function at 0x54504530
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5452f8de
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x5454141c]
xor eax, esp
mov dword [esp + 0x114], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5454141c]
xor eax, esp
push eax
lea eax, [esp + 0x12c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x13c]
mov edi, ecx
lea esi, [edi + 4]
xor ebp, ebp
mov dword [esp + 0x14], edi
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ebp
push ebp
push 0x7c
push 0x103
lea ecx, [esp + 0x30]
push ecx
push eax
mov dword [esp + 0x148], ebp
mov dword [edi], ebp
call fcn.545157e0
mov ebx, eax
add esp, 0x14
cmp ebx, ebp
je 0x54504632
nop
lea edx, [esp + 0x24]
push edx
call fcn.54526db8
mov edx, dword [esi + 4]
add esp, 4
cmp edx, ebp
mov dword [esp + 0x18], eax
jne 0x545045cc
xor edi, edi
jmp 0x545045d4
mov edi, dword [esi + 8]
sub edi, edx
sar edi, 2
cmp edx, ebp
je 0x545045f1
mov ecx, dword [esi + 0xc]
sub ecx, edx
sar ecx, 2
cmp edi, ecx
jae 0x545045f1
mov ecx, dword [esi + 8]
mov dword [ecx], eax
add ecx, 4
mov dword [esi + 8], ecx
jmp 0x54504610
mov edi, dword [esi + 8]
cmp edx, edi
jbe 0x545045fd
call fcn.545178c6
lea eax, [esp + 0x18]
push eax
push edi
push esi
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
call fcn.545044a0
push ebp
push 0x7c
push 0x103
lea edx, [esp + 0x30]
push edx
push ebx
call fcn.545157e0
mov ebx, eax
add esp, 0x14
cmp ebx, ebp
jne 0x545045b0
mov eax, dword [esp + 0x14]
jmp 0x54504634
mov eax, edi
mov ecx, dword [esp + 0x12c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.54516b6f
add esp, 0x124
ret 4