joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100024d7
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x20c
lea ebp, [esp - 4]
mov eax, dword [0x1002b2e0]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push 0x20
mov eax, 0x10023fe9
call fcn.1000ecae
xor esi, esi
push 0x208
lea eax, [ebp + 2]
mov dword [ebp - 0x1c], esi
push esi
push eax
mov dword [ebp - 0x18], esi
xor edi, edi
mov word [ebp], si
call fcn.1000dd80
mov eax, dword [0x1002cc50]
add esp, 0xc
mov ecx, 0x1002cc50
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push 0x20019
push esi
push str.SoftwareTencentQQPCMgr
mov dword [ebp - 4], esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x24], 0x20a
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10002613
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x2c]
push eax
push esi
push str.InstallDir
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000260a
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp]
push eax
lea eax, [ebp - 0x14]
call fcn.1000153b
lea eax, [ebp - 0x20]
push str.QQPCtray.exe
push eax
lea ecx, [ebp - 0x14]
call fcn.10002d9d
pop ecx
pop ecx
mov byte [ebp - 4], 1
push dword [eax]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ebx, ebx
inc ebx
mov dword [ebp - 0x1c], ebx
call esi
test eax, eax
je 0x100025e0
lea eax, [ebp - 0x28]
push str.QQPCMgr.exe
push eax
lea ecx, [ebp - 0x14]
call fcn.10002d9d
pop ecx
pop ecx
push 3
pop ebx
push dword [eax]
call esi
test eax, eax
mov byte [ebp - 0xd], 1
jne 0x100025e4
mov byte [ebp - 0xd], 0
test bl, 2
je 0x100025f4
lea eax, [ebp - 0x28]
and ebx, 0xfffffffd
call fcn.100015c1
test bl, 1
je 0x10002601
lea eax, [ebp - 0x20]
call fcn.100015c1
cmp byte [ebp - 0xd], 0
je 0x1000260a
xor edi, edi
inc edi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x14]
call fcn.100015c1
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x20c]
xor ecx, ebp
call fcn.1000d1e6
add ebp, 0x210
leave
ret
Function at 0x10003540
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp - 0x20], eax
mov dword [ebp - 8], 0
jmp 0x10003577
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 4
jge 0x10003596
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*4]
push ecx
call dword [sym.imp.WS2_32.dll_ntohl]
mov edx, dword [ebp - 8]
mov dword [ebp + edx*4 - 0x18], eax
jmp 0x1000356e
mov dword [ebp - 0x1c], 0
mov dword [ebp - 8], 0
jmp 0x100035af
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x10
jge 0x10003607
mov ecx, dword [ebp - 0x1c]
sub ecx, 0x61c88647
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x20]
shl edx, 4
add edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x1c]
xor edx, eax
mov ecx, dword [ebp - 0x20]
shr ecx, 5
add ecx, dword [ebp - 0x14]
xor edx, ecx
add edx, dword [ebp - 4]
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
shl edx, 4
add edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x1c]
xor edx, eax
mov ecx, dword [ebp - 4]
shr ecx, 5
add ecx, dword [ebp - 0xc]
xor edx, ecx
add edx, dword [ebp - 0x20]
mov dword [ebp - 0x20], edx
jmp 0x100035a6
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 4], eax
mov esp, ebp
pop ebp
ret

Function at 0x1000d1e6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1002b2e0]
jne 0x1000d1f0
repz ret
jmp fcn.10011c2e
Function at 0x100156fc
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x1002b9e8]
je 0x10015717
inc edi
cmp edi, 0x17
jb 0x10015708
cmp edi, 0x17
jae 0x10015897
push ebp
push 3
call fcn.1001cfae
cmp eax, 1
pop ecx
je 0x10015863
push 3
call fcn.1001cfae
test eax, eax
pop ecx
jne 0x1001574b
cmp dword [0x1002cc8c], 1
je 0x10015863
cmp ebx, 0xfc
je 0x10015896
push 0x10026310
mov ebx, 0x314
push ebx
mov ebp, 0x1002d180
push ebp
call fcn.10011e38
add esp, 0xc
test eax, eax
je 0x10015781
push esi
push esi
push esi
push esi
push esi
call fcn.1000e3bc
add esp, 0x14
push 0x104
mov esi, 0x1002d199
push esi
push 0
mov byte [0x1002d29d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100157c5
push 0x100262f8
push 0x2fb
push esi
call fcn.10011e38
add esp, 0xc
test eax, eax
je 0x100157c5
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.1000e3bc
add esp, 0x14
push esi
call fcn.1000d940
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1001580a
push esi
call fcn.1000d940
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x1002d494
push 0x100262f4
sub ecx, eax
push ecx
push eax
call fcn.100188dd
add esp, 0x14
test eax, eax
je 0x1001580a
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.1000e3bc
add esp, 0x14
jmp 0x1001580c
xor esi, esi
push 0x100262f0
push ebx
push ebp
call fcn.1001886c
add esp, 0xc
test eax, eax
je 0x1001582c
push esi
push esi
push esi
push esi
push esi
call fcn.1000e3bc
add esp, 0x14
push dword [edi*8 + 0x1002b9ec]
push ebx
push ebp
call fcn.1001886c
add esp, 0xc
test eax, eax
je 0x1001584e
push esi
push esi
push esi
push esi
push esi
call fcn.1000e3bc
add esp, 0x14
push 0x12010
push 0x100262c8
push ebp
call fcn.1001cdf1
add esp, 0xc
jmp 0x10015896
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x10015896
cmp ebp, 0xffffffff
je 0x10015896
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x1002b9ec]
push dword [esi]
call fcn.1000d940
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x1001cdf1
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.10013a85
xor ebx, ebx
cmp dword [0x1002d660], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x1001cec7
push 0x100274d8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1001cfa7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100274cc
push edi
call esi
cmp eax, ebx
je 0x1001cfa7
push eax
call fcn.10013a17
mov dword [esp], 0x100274bc
push edi
mov dword [0x1002d660], eax
call esi
push eax
call fcn.10013a17
mov dword [esp], 0x100274a8
push edi
mov dword [0x1002d664], eax
call esi
push eax
call fcn.10013a17
mov dword [0x1002d668], eax
lea eax, [ebp - 0xc]
push eax
call fcn.10014987
test eax, eax
pop ecx
pop ecx
je 0x1001ce95
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1000e3bc
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x1001cec7
push 0x1002748c
push edi
call esi
push eax
call fcn.10013a17
cmp eax, ebx
pop ecx
mov dword [0x1002d670], eax
je 0x1001cec7
push 0x10027474
push edi
call esi
push eax
call fcn.10013a17
pop ecx
mov dword [0x1002d66c], eax
mov eax, dword [0x1002d66c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x1001cf4c
cmp dword [0x1002d670], ecx
je 0x1001cf4c
push eax
call fcn.10013a8e
push dword [0x1002d670]
mov esi, eax
call fcn.10013a8e
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x1001cf4c
cmp edi, ebx
je 0x1001cf4c
call esi
cmp eax, ebx
je 0x1001cf19
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1001cf19
test byte [ebp - 0x18], 1
jne 0x1001cf4c
lea eax, [ebp - 0x10]
push eax
call fcn.100149be
test eax, eax
pop ecx
je 0x1001cf34
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1000e3bc
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x1001cf43
or dword [ebp + 0x10], 0x200000
jmp 0x1001cf87
or dword [ebp + 0x10], 0x40000
jmp 0x1001cf87
mov eax, dword [0x1002d664]
cmp eax, dword [ebp - 8]
je 0x1001cf87
push eax
call fcn.10013a8e
cmp eax, ebx
pop ecx
je 0x1001cf87
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1001cf87
mov eax, dword [0x1002d668]
cmp eax, dword [ebp - 8]
je 0x1001cf87
push eax
call fcn.10013a8e
cmp eax, ebx
pop ecx
je 0x1001cf87
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1002d660]
call fcn.10013a8e
cmp eax, ebx
pop ecx
je 0x1001cfa7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1001cfa9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

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

Disassembly:
xor edx, edx
push esi
mov esi, ecx
cmp dword [0x40b0c4], edx
jne 0x4013d5
push ebx
push edi
push 8
mov ecx, edx
pop edi
mov ebx, ecx
and bl, 1
movzx ebx, bl
neg ebx
sbb ebx, ebx
and ebx, 0xedb88320
shr ecx, 1
xor ecx, ebx
dec edi
jne 0x4013aa
mov dword [edx*4 + 0x40b0c0], ecx
inc edx
cmp edx, 0x100
jl 0x4013a5
pop edi
pop ebx
not esi
jmp 0x4013f3
movzx ecx, byte [eax]
dec dword [esp + 8]
xor ecx, esi
and ecx, 0xff
shr esi, 8
xor esi, dword [ecx*4 + 0x40b0c0]
inc eax
cmp dword [esp + 8], 0
ja 0x4013d9
mov eax, esi
not eax
pop esi
ret 4
Function at 0x40272c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040371c
test esi, esi
jne 0x402762
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040380c
jmp 0x402780
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402640
mov edi, eax
test esi, esi
je 0x402780
cmp dword [ebx], 0
je 0x402780
dec esi
jmp 0x402769
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402bf8
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x419008], 0x8088405
inc edx
mov dword [ebx + 0x419008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x402e44
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x419018]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402edc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402ebc
xor eax, eax
push ebp
push 0x402eb5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402ef8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
invalid
invalid

Function at 0x403524
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x41a034], 0
je 0x403585
cmp word [0x41a208], 0xd7b2
jne 0x40354d
cmp dword [0x41a210], 0
jbe 0x40354d
mov eax, 0x41a204
call dword [0x41a220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x419084
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4035ac
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x419024], 0
jne 0x4035a1
push 0
push 0x41907c
push 0x419084
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4036d8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004024d0
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x41a035], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4036a0
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4043b0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x404416
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.0040387c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402d38
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x404400
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40441d
lea eax, [ebp - 0x10]
call fcn.0040371c
ret

Function at 0x404a18
Capabilities:
Query or enumerate registry value

Disassembly:
add esp, 0xffffff54
cmp byte [0x4190dc], 0
jne 0x404aea
mov byte [0x4190dc], 1
xor eax, eax
mov dword [0x4190d4], eax
mov dword [esp + 0x18], 0x94
lea eax, [esp + 0x18]
push eax
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 0x1c], 3
ja 0x404a60
cmp dword [esp + 0x1c], 3
jne 0x404ac0
cmp dword [esp + 0x20], 0x33
jbe 0x404ac0
mov dword [esp + 4], 9
push esp
push 0x20019
push 0
push 0x404af4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x404aea
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0x404b24
mov eax, dword [esp + 0x14]
push eax
push 0
push 0x404b24
push 0x404b2c
call sub.kernel32.dll_GetProfileIntA
test eax, eax
je 0x404aea

Function at 0x4055d8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403a84
xor eax, eax
push ebp
push 0x40569f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.0040371c
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00403a94
push eax
call sub.kernel32.dll_CreateFileA_1
mov esi, eax
cmp esi, 0xffffffff
je 0x405689
mov eax, ebx
mov edx, 0x73
call fcn.00403bc4
push 0
lea eax, [ebp - 8]
push eax
push 0x73
mov eax, ebx
call fcn.00403aec
push eax
push esi
call sub.kernel32.dll_ReadFile_1
push esi
call sub.kernel32.dll_CloseHandle_1
mov edx, dword [ebx]
mov eax, 0x4056b4
call fcn.00403b7c
test eax, eax
jne 0x40566a
mov eax, ebx
call fcn.0040371c
jmp 0x405689
push ebx
mov edx, dword [ebx]
mov eax, 0x4056c0
call fcn.00403b7c
mov ecx, eax
dec ecx
sub ecx, 0x50
mov eax, dword [ebx]
mov edx, 0x51
call fcn.00403af4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4056a6
lea eax, [ebp - 4]
call fcn.0040371c
ret
Function at 0x40579c
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403a84
mov eax, dword [ebp - 8]
call fcn.00403a84
xor eax, eax
push ebp
push 0x40581e
push dword fs:[eax]
mov dword fs:[eax], esp
xor bl, 1
add esi, esi
fistp dword [ebx]
rcl byte [eax - 0x75], 0x45
clc
call fcn.00403a94
push eax
mov eax, dword [ebp - 4]
call fcn.00403a94
push eax
call sub.kernel32.dll_CopyFileA
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
test byte [ebp + 0x10], bl
je 0x405803
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 8]
call fcn.00405cd8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405825
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403740
ret

Function at 0x40587c
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea8
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x158], edx
mov dword [ebp - 0x154], edx
mov dword [ebp - 0x150], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403a84
xor eax, eax
push ebp
push 0x405a0c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00403894
cmp eax, 2
jl 0x4059e1
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 0x150]
mov ecx, 0x405a24
mov edx, dword [ebp - 4]
call fcn.004038e0
mov eax, dword [ebp - 0x150]
call fcn.00403a94
push eax
call sub.kernel32.dll_FindFirstFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4059b9
lea eax, [ebp - 0x154]
lea edx, [ebp - 0x120]
mov ecx, 0x104
call fcn.0040387c
mov ecx, dword [ebp - 0x154]
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004038e0
lea eax, [ebp - 0xc]
lea edx, [ebp - 0x120]
mov ecx, 0x104
call fcn.0040387c
test byte [ebp - 0x14c], 0x10
je 0x405982
mov eax, dword [ebp - 0xc]
mov edx, 0x405a30
call fcn.004039e0
je 0x4059a4
mov eax, dword [ebp - 0xc]
mov edx, 0x405a3c
call fcn.004039e0
je 0x4059a4
lea eax, [ebp - 0x158]
mov ecx, 0x405a48
mov edx, dword [ebp - 8]
call fcn.004038e0
mov eax, dword [ebp - 0x158]
call fcn.0040587c
jmp 0x4059a4
mov eax, dword [ebp - 8]
call fcn.00403a94
mov esi, eax
push esi
call sub.kernel32.dll_DeleteFileA
test eax, eax
jne 0x4059a4
push 0x20
push esi
call sub.kernel32.dll_SetFileAttributesA
push esi
call sub.kernel32.dll_DeleteFileA
lea eax, [ebp - 0x14c]
push eax
push ebx
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x405901
push ebx
call sub.kernel32.dll_FindClose
mov eax, dword [ebp - 4]
call fcn.00403a94
mov ebx, eax
push ebx
call sub.kernel32.dll_RemoveDirectoryA
test eax, eax
jne 0x4059e1
push 0x20
push ebx
call sub.kernel32.dll_SetFileAttributesA
push ebx
call sub.kernel32.dll_RemoveDirectoryA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405a13
lea eax, [ebp - 0x158]
mov edx, 3
call fcn.00403740
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403740
ret
Function at 0x406108
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe6c
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403a84
xor eax, eax
push ebp
push 0x406195
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x194]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
mov eax, dword [ebp - 4]
call fcn.00403a94
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
call sub.kernel32.dll_GetLastError_1
test eax, eax
jne 0x406173
test ebx, ebx
je 0x406173
mov eax, dword [ebx + 0xc]
mov eax, dword [eax]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
mov eax, esi
mov eax, esi
call fcn.0040371c

Function at 0x40650c
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor edx, edx
mov dword [ebp - 0x1c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40656c
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x15]
push eax
call sub.kernel32.dll_GetComputerNameA
lea eax, [ebp - 0x1c]
lea edx, [ebp - 0x15]
mov ecx, 0x11
call fcn.0040387c
mov eax, dword [ebp - 0x1c]
mov edx, ebx
call fcn.00405398
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406573
lea eax, [ebp - 0x1c]
call fcn.0040371c
ret

Function at 0x406578
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4065f7
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
mov ecx, 0x105
call fcn.0040387c
lea eax, [ebp - 0x10c]
mov edx, 0x40660c
call fcn.0040389c
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.004053d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4065fe
lea eax, [ebp - 0x10c]
call fcn.0040371c
ret

Function at 0x406714
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00403a84
mov eax, dword [ebp - 8]
call fcn.00403a84
xor eax, eax
push ebp
push 0x4067b7
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
push 0x41a6c0
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.00403a94
push eax
push ebx
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [0x41a6c4], eax
mov dword [ebp - 0x10], 4
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00403a94
push eax
mov eax, dword [0x41a6c0]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov dword [0x41a6c4], eax
mov eax, dword [0x41a6c0]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4067be
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403740
ret