joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ef1e
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x455214]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
xor edi, edi
or eax, 0xffffffff
xor ecx, ecx
mov dword [ebp - 0x808], edi
call fcn.00401c10
lea eax, [ebp - 0x808]
push eax
push 0x20019
push edi
push str.SYSTEMCurrentControlSetControlSession_ManagerEnvironment
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor eax, eax
push 0x7fe
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x802]
push edi
push eax
call fcn.004226c0
add esp, 0xc
mov dword [ebp - 0x80c], 0x400
cmp dword [ebp - 0x808], edi
je 0x40f038
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0x810]
push eax
push edi
push str.TEMP
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40f02c
lea eax, [ebp - 0x804]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40efcc
sub eax, edx
push ebx
sar eax, 1
lea ecx, [ebp - 0x804]
call fcn.00401efe
push 0xc
mov edi, 0x44cd00
push edi
xor eax, eax
mov ecx, esi
call fcn.00408fbf
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40f02b
push 0x400
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x40f02b
lea eax, [ebp - 0x804]
push eax
push edi
call fcn.004243c2
pop ecx
push eax
push ebx
push esi
call fcn.0040d686
pop ebx
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042066a
leave
ret
Function at 0x40f046
Capabilities:
Get common file path

Disassembly:
push 0x87c
mov eax, 0x44230c
call fcn.004269d5
mov eax, dword [ebp + 8]
mov dword [ebp - 0x884], eax
xor eax, eax
xor ebx, ebx
push 0x7fe
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x80e]
push ebx
push eax
mov dword [ebp - 0x888], ebx
call fcn.004226c0
add esp, 0xc
lea eax, [ebp - 0x810]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x810]
push eax
lea esi, [ebp - 0x848]
call fcn.00406b7a
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x834], 8
mov eax, dword [ebp - 0x848]
jae 0x40f0bc
mov eax, esi
mov ecx, dword [ebp - 0x838]
lea eax, [eax + ecx*2]
cmp word [eax - 2], 0x5c
je 0x40f0df
xor edi, edi
push 0x44c94c
inc edi
lea eax, [ebp - 0x848]
call fcn.0040372a
push 7
pop eax
xor ecx, ecx
mov dword [ebp - 0x850], eax
mov dword [ebp - 0x854], ebx
mov word [ebp - 0x864], cx
mov dword [ebp - 0x818], eax
xor eax, eax
mov dword [ebp - 0x81c], ebx
mov word [ebp - 0x82c], ax
push 8
lea eax, [ebp - 0x864]
pop ebx
mov byte [ebp - 4], 2
call fcn.0040cf6b
lea ecx, [ebp - 0x848]
push ecx
lea ecx, [ebp - 0x880]
push ecx
mov ebx, eax
call fcn.0040f27a
pop ecx
pop ecx
mov ebx, eax
lea eax, [ebp - 0x82c]
mov byte [ebp - 4], 3
call fcn.00403620
push 1
xor edi, edi
lea esi, [ebp - 0x880]
mov byte [ebp - 4], 2
call fcn.00402032
cmp dword [ebp - 0x818], 8
mov eax, dword [ebp - 0x82c]
jae 0x40f16e
lea eax, [ebp - 0x82c]
push 0
push eax
call fcn.00422165
pop ecx
pop ecx
test eax, eax
jne 0x40f19f
push 1
xor edi, edi
lea esi, [ebp - 0x82c]
call fcn.00402032
push 1
lea esi, [ebp - 0x864]
call fcn.00402032
xor ebx, ebx
jmp 0x40f0df
cmp dword [ebp - 0x818], 8
mov eax, dword [ebp - 0x82c]
jae 0x40f1b4
lea eax, [ebp - 0x82c]
push eax
call fcn.00421d2d
mov esi, dword [ebp - 0x884]
pop ecx
lea ebx, [ebp - 0x82c]
call fcn.00403673
push 1
xor edi, edi
mov esi, ebx
call fcn.00402032
push 1
lea esi, [ebp - 0x864]
call fcn.00402032
push 1
lea esi, [ebp - 0x848]
call fcn.00402032
mov eax, dword [ebp - 0x884]
call fcn.00426a58
ret
Function at 0x40faf7
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2d14
call fcn.00431dd0
mov eax, dword [0x455214]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push ebx
lea eax, [ebp - 0x5ec]
push str..PhysicalDrive_d
push eax
mov dword [ebp - 0x2d10], ebx
call fcn.00421a16
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea eax, [ebp - 0x5ec]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2d0c], eax
cmp eax, 0xffffffff
je 0x40fd4f
push edi
push 0xc
lea eax, [ebp - 0x2d08]
push ebx
push eax
mov dword [ebp - 0x2d14], ebx
call fcn.004226c0
mov edi, 0x2710
push edi
lea eax, [ebp - 0x2cfc]
push ebx
push eax
mov dword [ebp - 0x2d08], ebx
mov dword [ebp - 0x2d04], ebx
call fcn.004226c0
add esp, 0x18
push ebx
lea eax, [ebp - 0x2d14]
push eax
push edi
lea eax, [ebp - 0x2cfc]
push eax
push 0xc
lea eax, [ebp - 0x2d08]
push eax
push 0x2d1400
push dword [ebp - 0x2d0c]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40fc82
push esi
push 0x3e7
lea eax, [ebp - 0x3eb]
push ebx
push eax
mov byte [ebp - 0x3ec], bl
call fcn.004226c0
mov eax, dword [ebp - 0x2cf0]
push ebx
mov esi, 0x45d388
lea ecx, [ebp - 0x2cfc]
call fcn.0040f9ae
mov eax, dword [ebp - 0x2cec]
push ebx
mov esi, 0x45d788
lea ecx, [ebp - 0x2cfc]
call fcn.0040f9ae
mov eax, dword [ebp - 0x2ce4]
push 1
lea esi, [ebp - 0x3ec]
lea ecx, [ebp - 0x2cfc]
call fcn.0040f9ae
push 0x45d788
push 0x45cf88
call fcn.00424090
add esp, 0x20
pop esi
cmp byte [0x45cb88], bl
jne 0x40fc6e
movzx eax, byte [ebp - 0x3ec]
push eax
call fcn.00425d5f
pop ecx
test eax, eax
jne 0x40fc59
movzx eax, byte [ebp - 0x3d9]
push eax
call fcn.00425d5f
pop ecx
test eax, eax
je 0x40fc6e
lea eax, [ebp - 0x3ec]
push eax
push 0x45cb88
call fcn.00424090
pop ecx
pop ecx
jmp 0x40fc88
cmp byte [0x45cf88], bl
je 0x40fc88
mov dword [ebp - 0x2d10], 1
jmp 0x40fc88
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
lea eax, [ebp - 0x2cfc]
push ebx
push eax
call fcn.004226c0
add esp, 0xc
push ebx
lea eax, [ebp - 0x2d14]
push eax
push edi
lea eax, [ebp - 0x2cfc]
push eax
push ebx
push ebx
push 0x2d0c10
push dword [ebp - 0x2d0c]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
pop edi
test eax, eax
je 0x40fd3d
xor eax, eax
push 0x3e6
mov word [ebp - 0x3ec], ax
lea eax, [ebp - 0x3ea]
push ebx
push eax
call fcn.004226c0
lea eax, [ebp - 0x2cec]
push eax
lea eax, [ebp - 0x3ec]
push eax
call fcn.00424090
add esp, 0x14
cmp byte [0x45cb88], bl
jne 0x40fd43
movsx eax, byte [ebp - 0x3ec]
push eax
call fcn.00425d5f
pop ecx
test eax, eax
jne 0x40fd1e
movsx eax, byte [ebp - 0x3d9]
push eax
call fcn.00425d5f
pop ecx
test eax, eax
je 0x40fd43
lea eax, [ebp - 0x3ec]
push eax
push 0x45cb88
call fcn.00424090
pop ecx
pop ecx
mov dword [ebp - 0x2d10], 1
jmp 0x40fd43
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x2d0c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2d10]
xor ecx, ebp
pop ebx
call fcn.0042066a
leave
ret
Function at 0x4107a3
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.00431dd0
mov eax, dword [0x455214]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
call fcn.004105f5
mov dword [ebp - 0x1018], eax
xor eax, eax
mov esi, 0x7fe
push esi
mov word [ebp - 0x1008], ax
xor edi, edi
lea eax, [ebp - 0x1006]
push edi
push eax
call fcn.004226c0
xor eax, eax
push esi
mov word [ebp - 0x808], ax
lea eax, [ebp - 0x806]
push edi
push eax
mov dword [ebp - 0x100c], edi
mov dword [ebp - 0x1010], edi
mov dword [ebp - 0x1014], edi
call fcn.004226c0
add esp, 0x18
mov eax, 0x400
push eax
lea ecx, [ebp - 0x808]
push ecx
lea ecx, [ebp - 0x1014]
push ecx
lea ecx, [ebp - 0x1010]
push ecx
lea ecx, [ebp - 0x100c]
push ecx
push eax
lea eax, [ebp - 0x1008]
push eax
push 0x44cf18
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov eax, dword [ebp - 0x1018]
mov ecx, dword [ebp - 0x100c]
mov edx, ebx
call fcn.004106fc
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.0042066a
leave
ret

Function at 0x410869
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1024
call fcn.00431dd0
mov eax, dword [0x455214]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x1024], eax
call fcn.004105f5
mov dword [ebp - 0x1018], eax
xor eax, eax
mov esi, 0x7fe
push esi
mov word [ebp - 0x810], ax
xor ebx, ebx
lea eax, [ebp - 0x80e]
push ebx
push eax
call fcn.004226c0
xor eax, eax
push esi
mov word [ebp - 0x1010], ax
lea eax, [ebp - 0x100e]
push ebx
push eax
mov dword [ebp - 0x1014], ebx
mov dword [ebp - 0x1020], ebx
mov dword [ebp - 0x101c], ebx
call fcn.004226c0
add esp, 0x18
mov eax, 0x400
push eax
lea ecx, [ebp - 0x1010]
push ecx
lea ecx, [ebp - 0x101c]
push ecx
lea ecx, [ebp - 0x1020]
push ecx
lea ecx, [ebp - 0x1014]
push ecx
push eax
lea eax, [ebp - 0x810]
push eax
push 0x44cf18
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov ecx, dword [ebp - 0x1014]
xor eax, eax
mov byte [ebp - 0x10], bl
lea edi, [ebp - 0xf]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp - 0x1018]
lea edx, [ebp - 0x10]
call fcn.004106fc
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x1024]
call fcn.00412dc0
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0042066a
leave
ret
Function at 0x410a12
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push 0x20
mov eax, 0x43ffe7
call fcn.0042699f
push dword [ebp + 8]
xor esi, esi
push esi
push 0x43a
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp + 8], eax
cmp eax, esi
jne 0x410a50
mov dword [ebp - 0x1c], esi
push 0x44f4a4
lea eax, [ebp - 0x1c]
push eax
call fcn.00425e39
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 4
push 0x1000
lea edi, [eax + eax + 2]
push edi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
mov dword [ebp - 0x14], ebx
cmp ebx, esi
jne 0x410a85
mov dword [ebp - 0x20], esi
push 0x44f4a4
lea eax, [ebp - 0x20]
jmp 0x410a4a
push esi
push edi
push dword [ebp + 0xc]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x410aa5
mov dword [ebp - 0x24], esi
push 0x44f4a4
lea eax, [ebp - 0x24]
jmp 0x410a4a
push 0x44cf24
push str.Kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
jne 0x410ad0
mov dword [ebp - 0x28], esi
push 0x44f4a4
lea eax, [ebp - 0x28]
jmp 0x410a4a
push esi
push esi
push ebx
push eax
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
cmp eax, esi
jne 0x410b22
mov dword [ebp - 0x2c], esi
push 0x44f4a4
lea eax, [ebp - 0x2c]
jmp 0x410a4a
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x18]
call fcn.00426a44
ret 8

Function at 0x410bea
Capabilities:
Enumerate gui resources

Disassembly:
push 0x2c
mov eax, 0x442278
call fcn.004269d5
mov eax, dword [ebp + 8]
mov esi, ecx
mov ecx, dword [esi + 4]
mov edi, dword [esi]
mov dword [ebp - 0x38], eax
cmp edi, ecx
je 0x410c21
mov ebx, ecx
sub ebx, ecx
sar ebx, 2
shl ebx, 2
push ebx
push ecx
push edi
call fcn.004208e0
add esp, 0xc
add ebx, edi
mov dword [esi + 4], ebx
mov eax, dword [ebp - 0x38]
and dword [ebp - 0x20], 0
mov dword [ebp - 0x34], eax
xor eax, eax
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
and dword [ebp - 4], eax
push str.XLMAIN
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x14], esi
call fcn.00401f79
lea eax, [ebp - 0x34]
push eax
push 0x410b3d
call dword [sym.imp.USER32.dll_EnumWindows]
mov ebx, dword [esi + 4]
sub ebx, dword [esi]
push 1
xor edi, edi
lea esi, [ebp - 0x30]
sar ebx, 2
call fcn.00402032
mov eax, ebx
call fcn.00426a58
ret
Function at 0x41243b
Capabilities:
Write file on windows

Disassembly:
push 0x460
mov eax, 0x442b11
call fcn.004269d5
mov eax, dword [ebp + 8]
mov dword [ebp - 0x468], eax
xor ebx, ebx
xor eax, eax
mov esi, ecx
mov dword [ebp - 0x434], 7
mov dword [ebp - 0x438], ebx
mov word [ebp - 0x448], ax
lea eax, [ebp - 0x448]
push eax
mov dword [ebp - 4], ebx
call fcn.0040edd7
cmp dword [ebp - 0x434], 8
mov eax, dword [ebp - 0x448]
pop ecx
jae 0x412495
lea eax, [ebp - 0x448]
push 0x44c944
push eax
call fcn.00421e1d
pop ecx
pop ecx
mov dword [ebp - 0x46c], eax
cmp eax, ebx
jne 0x412511
xor eax, eax
push 0x3fe
mov word [ebp - 0x410], ax
lea eax, [ebp - 0x40e]
push ebx
push eax
call fcn.004226c0
mov eax, dword [ebp - 0x448]
add esp, 0xc
cmp dword [ebp - 0x434], 8
jae 0x4124df
lea eax, [ebp - 0x448]
push eax
lea eax, [ebp - 0x410]
push str.Cannot_open_file___s_
push eax
call fcn.00421a16
add esp, 0xc
lea eax, [ebp - 0x410]
mov dword [ebp - 0x468], eax
push 0x44f688
lea eax, [ebp - 0x468]
push eax
call fcn.00425e39
push 0xf
pop edi
mov dword [ebp - 0x418], edi
mov dword [ebp - 0x41c], ebx
mov byte [ebp - 0x42c], bl
mov byte [ebp - 4], 1
cmp dword [esi + 0x14], 0x10
mov ebx, dword [esi + 0x10]
jb 0x412535
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x42c]
push eax
call fcn.00412196
test eax, eax
je 0x412614
mov eax, dword [ebp - 0x468]
xor ecx, ecx
cmp dword [eax + 0x30], ecx
je 0x4125e8
mov dword [ebp - 0x450], edi
mov dword [ebp - 0x454], ecx
mov byte [ebp - 0x464], cl
mov byte [ebp - 4], 2
cmp dword [ebp - 0x418], 0x10
mov ecx, dword [ebp - 0x42c]
jae 0x412586
lea ecx, [ebp - 0x42c]
add eax, 0x20
cmp dword [eax + 0x14], 0x10
jb 0x412591
mov eax, dword [eax]
push dword [ebp - 0x41c]
push ecx
push eax
lea ecx, [ebp - 0x464]
call fcn.00412c00
mov eax, dword [ebp - 0x464]
add esp, 0xc
cmp dword [ebp - 0x450], 0x10
jae 0x4125bc
lea eax, [ebp - 0x464]
push dword [ebp - 0x46c]
push 1
push dword [ebp - 0x454]
push eax
call fcn.00421f8b
add esp, 0x10
push 1
xor edi, edi
lea esi, [ebp - 0x464]
mov byte [ebp - 4], 1
call fcn.00406af1
jmp 0x412614
cmp dword [ebp - 0x418], 0x10
mov eax, dword [ebp - 0x42c]
jae 0x4125fd
lea eax, [ebp - 0x42c]
push dword [ebp - 0x46c]
push 1
push dword [ebp - 0x41c]
push eax
call fcn.00421f8b
add esp, 0x10
push dword [ebp - 0x46c]
call fcn.00422072
pop ecx
mov ecx, dword [ebp - 0x468]
push 0xffffffffffffffff
push 0
add ecx, 4
lea eax, [ebp - 0x448]
call fcn.00401c81
push 1
xor edi, edi
lea esi, [ebp - 0x42c]
call fcn.00406af1
push 1
lea esi, [ebp - 0x448]
call fcn.00402032
call fcn.00426a58
ret 4
Function at 0x4126e6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [edi + 4]
cmp dword [eax + 0x14], 8
jb 0x4126f5
mov eax, dword [eax]
push ebx
push 0x44cd1c
push eax
call fcn.00421e1d
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x41277a
push esi
mov esi, ebx
call fcn.0040ecc7
mov esi, eax
push esi
call fcn.0041f90c
push esi
push 0
push eax
mov dword [ebp - 4], eax
call fcn.004226c0
push ebx
push 1
push esi
push dword [ebp - 4]
call fcn.004251be
push ebx
call fcn.00422072
add esp, 0x24
cmp dword [edi + 0x30], 0
je 0x41275d
lea eax, [edi + 0x20]
cmp dword [eax + 0x14], 0x10
jb 0x41274b
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
push esi
push dword [ebp - 4]
push eax
call fcn.00412c00
add esp, 0xc
jmp 0x41276a
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov eax, esi
call fcn.0040822c
push dword [ebp - 4]
call fcn.00420d7b
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
pop ecx
pop esi
pop ebx
leave
ret 4

Function at 0x414bd0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x455214]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x206
xor ebx, ebx
lea ecx, [ebp - 0x20a]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x20c], ax
call fcn.004226c0
mov edx, dword [edi + 0x18]
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x218], edx
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x210], eax
mov eax, dword [edi + 0x1c]
lea edx, [ebp - 0x218]
push edx
push ebx
mov dword [ebp - 0x214], eax
mov eax, dword [edi]
push 0x44b
lea ecx, [ebp - 0x20c]
push eax
mov dword [ebp - 0x210], ecx
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
lea edx, [ebp - 0x254]
lea ecx, [ebp - 0x20c]
push edx
mov dword [ebp - 0x254], 0x3c
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x24c], ebx
mov dword [ebp - 0x248], ebx
mov dword [ebp - 0x244], ecx
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x238], 5
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov eax, dword [esi + 0x38]
push eax
call dword [sym.imp.USER32.dll_HideCaret]
mov ecx, dword [esi + 0xb4]
pop ebx
cmp ecx, dword [esi + 0xb8]
je 0x414ce1
mov eax, dword [ecx]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0042066a
mov esp, ebp
pop ebp
ret

Function at 0x417c90
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test ecx, ecx
jne 0x417c9b
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
pop ebp
jmp fcn.00417cb0
Function at 0x41a2f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [esi + 0x2c]
mov dword [ebp - 0xc], edi
jmp 0x41a303
mov edi, dword [ebp - 0xc]
mov ebx, dword [esi + 0x3c]
sub ebx, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub ebx, eax
lea edx, [edi + ecx - 0x106]
mov dword [ebp - 4], ebx
cmp eax, edx
jb 0x41a37d
mov eax, dword [esi + 0x38]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call fcn.00422740
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x44]
sub dword [esi + 0x70], edi
sub dword [esi + 0x6c], edi
add esp, 0xc
sub dword [esi + 0x5c], edi
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, edi
jb 0x41a351
sub eax, edi
jmp 0x41a353
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x41a342
mov ecx, dword [esi + 0x40]
mov edx, edi
lea ecx, [ecx + edi*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, edi
jb 0x41a370
sub eax, edi
jmp 0x41a372
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x41a361
add ebx, edi
mov dword [ebp - 4], ebx
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x41a432
mov edx, dword [esi + 0x74]
add edx, dword [esi + 0x6c]
mov eax, dword [edi + 4]
add edx, dword [esi + 0x38]
mov ecx, dword [ebp - 4]
mov ebx, eax
mov dword [ebp - 8], edx
cmp ebx, ecx
jbe 0x41a3a3
mov ebx, ecx
test ebx, ebx
je 0x41a3f6
sub eax, ebx
mov dword [edi + 4], eax
mov eax, dword [edi + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x41a3c5
mov edx, dword [edi]
mov ecx, dword [edi + 0x30]
mov eax, ebx
call fcn.0041ae20
jmp 0x41a3de
cmp eax, 2
jne 0x41a3e4
mov ecx, dword [edi]
mov eax, dword [edi + 0x30]
test ecx, ecx
jne 0x41a3d7
xor eax, eax
jmp 0x41a3e1
mov edx, ebx
call fcn.00417cb0
mov edx, dword [ebp - 8]
mov dword [edi + 0x30], eax
mov ecx, dword [edi]
push ebx
push ecx
push edx
call fcn.00422740
add dword [edi], ebx
add esp, 0xc
add dword [edi + 8], ebx
add dword [esi + 0x74], ebx
mov edi, dword [esi + 0x74]
cmp edi, 3
jb 0x41a41e
mov edx, dword [esi + 0x6c]
add edx, dword [esi + 0x38]
mov ecx, dword [esi + 0x58]
movzx eax, byte [edx]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp edi, 0x106
jae 0x41a432
mov edx, dword [esi]
cmp dword [edx + 4], 0
jne 0x41a300
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41e700
Capabilities:
Connect socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x455214]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x1c], eax
test edi, edi
jne 0x41e720
xor esi, esi
jmp 0x41e761
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x41e75d
lea ebx, [eax + eax]
mov eax, ebx
call fcn.00426020
mov esi, esp
test esi, esi
je 0x41e75d
push 0
push 0
push ebx
push esi
push 0xffffffffffffffff
push edi
push 0
push 3
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x41e75f
xor eax, eax
mov esi, eax
xor eax, eax
mov ecx, 2
mov dword [ebp - 0x18], eax
push 0x7b
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov word [ebp - 0x18], cx
call dword [sym.imp.WSOCK32.dll_htons]
push esi
mov word [ebp - 0x16], ax
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
jne 0x41e7a8
push esi
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x41e7d4
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push 0x10
lea edx, [ebp - 0x18]
push edx
push ecx
call dword [sym.imp.WSOCK32.dll_connect]
neg eax
sbb eax, eax
inc eax
lea esp, [ebp - 0x24]
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0042066a
mov esp, ebp
pop ebp
ret 4
xor eax, eax
jmp 0x41e7bf

Function at 0x41e7e0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x455214]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, 0x10624dd3
mul ecx
mov eax, dword [ebp + 8]
shr edx, 6
mov dword [ebp - 0x11c], edx
imul edx, edx, 0x3e8
sub ecx, edx
lea edx, [ebp - 0x11c]
push edx
push 0
mov dword [ebp - 0x118], ecx
mov ecx, dword [eax]
push 0
lea eax, [ebp - 0x114]
push eax
push 0
mov dword [ebp - 0x110], ecx
mov dword [ebp - 0x114], 1
call dword [sym.imp.WSOCK32.dll_select]
cmp eax, 0xffffffff
jne 0x41e857
xor eax, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0042066a
mov esp, ebp
pop ebp
ret 4
xor ecx, ecx
test eax, eax
setne cl
mov eax, 1
mov dword [esi], ecx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0042066a
mov esp, ebp
pop ebp
ret 4
Function at 0x41ec81
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x45b740], 0
push esi
push edi
jne 0x41ebf7
call fcn.0041eb63
test eax, eax
je 0x41ec3c
mov eax, dword [0x45b740]
cmp eax, 1
jne 0x41ec18
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x41ec3c
jmp 0x41ec7e
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x41ec7e
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x41ec40
xor eax, eax
jmp 0x41ec7e
mov eax, dword [esi]
push dword [0x45b740]
call edi
mov edi, eax
test edi, edi
je 0x41ec62
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x41ec7e
lea edi, [esi + 0xff0]
push esi
push dword [0x45b740]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x41ec68
mov eax, esi
pop edi
pop esi
ret
jmp 0x41ebe3

Function at 0x42066a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x455214]
jne 0x420674
repz ret
jmp fcn.00427f1d

Function at 0x4220e6
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 0x42210d
call fcn.004264fe
mov dword [eax], esi
call fcn.004264eb
push 0x16
pop esi
mov dword [eax], esi
call fcn.00429424
mov eax, esi
jmp 0x422162
test dword [ebp + 0xc], 0xfffffff9
jne 0x4220f3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42213a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00426511
pop ecx
call fcn.004264eb
mov eax, dword [eax]
jmp 0x422162
test al, 0x10
jne 0x422160
test al, 1
je 0x422160
test byte [ebp + 0xc], 2
je 0x422160
call fcn.004264fe
mov dword [eax], 5
call fcn.004264eb
mov dword [eax], 0xd
jmp 0x422131
xor eax, eax
pop esi
pop ebp
ret