joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40fb24
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.004219f6
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 0x40fd7c
push edi
push 0xc
lea eax, [ebp - 0x2d08]
push ebx
push eax
mov dword [ebp - 0x2d14], ebx
call fcn.004226a0
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.004226a0
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 0x40fcaf
push esi
push 0x3e7
lea eax, [ebp - 0x3eb]
push ebx
push eax
mov byte [ebp - 0x3ec], bl
call fcn.004226a0
mov eax, dword [ebp - 0x2cf0]
push ebx
mov esi, 0x45d388
lea ecx, [ebp - 0x2cfc]
call fcn.0040f9db
mov eax, dword [ebp - 0x2cec]
push ebx
mov esi, 0x45d788
lea ecx, [ebp - 0x2cfc]
call fcn.0040f9db
mov eax, dword [ebp - 0x2ce4]
push 1
lea esi, [ebp - 0x3ec]
lea ecx, [ebp - 0x2cfc]
call fcn.0040f9db
push 0x45d788
push 0x45cf88
call fcn.00424070
add esp, 0x20
pop esi
cmp byte [0x45cb88], bl
jne 0x40fc9b
movzx eax, byte [ebp - 0x3ec]
push eax
call fcn.00425d3f
pop ecx
test eax, eax
jne 0x40fc86
movzx eax, byte [ebp - 0x3d9]
push eax
call fcn.00425d3f
pop ecx
test eax, eax
je 0x40fc9b
lea eax, [ebp - 0x3ec]
push eax
push 0x45cb88
call fcn.00424070
pop ecx
pop ecx
jmp 0x40fcb5
cmp byte [0x45cf88], bl
je 0x40fcb5
mov dword [ebp - 0x2d10], 1
jmp 0x40fcb5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
lea eax, [ebp - 0x2cfc]
push ebx
push eax
call fcn.004226a0
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 0x40fd6a
xor eax, eax
push 0x3e6
mov word [ebp - 0x3ec], ax
lea eax, [ebp - 0x3ea]
push ebx
push eax
call fcn.004226a0
lea eax, [ebp - 0x2cec]
push eax
lea eax, [ebp - 0x3ec]
push eax
call fcn.00424070
add esp, 0x14
cmp byte [0x45cb88], bl
jne 0x40fd70
movsx eax, byte [ebp - 0x3ec]
push eax
call fcn.00425d3f
pop ecx
test eax, eax
jne 0x40fd4b
movsx eax, byte [ebp - 0x3d9]
push eax
call fcn.00425d3f
pop ecx
test eax, eax
je 0x40fd70
lea eax, [ebp - 0x3ec]
push eax
push 0x45cb88
call fcn.00424070
pop ecx
pop ecx
mov dword [ebp - 0x2d10], 1
jmp 0x40fd70
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.0042064a
leave
ret
Function at 0x4107d0
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.00410622
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.004226a0
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.004226a0
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.00410729
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.0042064a
leave
ret

Function at 0x410896
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.00410622
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.004226a0
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.004226a0
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.00410729
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x1024]
call fcn.00412f01
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0042064a
leave
ret
Function at 0x410a3f
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push 0x20
mov eax, 0x43ffa7
call fcn.0042697f
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 0x410a7d
mov dword [ebp - 0x1c], esi
push 0x44f4a4
lea eax, [ebp - 0x1c]
push eax
call fcn.00425e19
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 0x410ab2
mov dword [ebp - 0x20], esi
push 0x44f4a4
lea eax, [ebp - 0x20]
jmp 0x410a77
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 0x410ad2
mov dword [ebp - 0x24], esi
push 0x44f4a4
lea eax, [ebp - 0x24]
jmp 0x410a77
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 0x410afd
mov dword [ebp - 0x28], esi
push 0x44f4a4
lea eax, [ebp - 0x28]
jmp 0x410a77
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 0x410b4f
mov dword [ebp - 0x2c], esi
push 0x44f4a4
lea eax, [ebp - 0x2c]
jmp 0x410a77
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x18]
call fcn.00426a24
ret 8

Function at 0x410c17
Capabilities:
Enumerate gui resources

Disassembly:
push 0x2c
mov eax, 0x442228
call fcn.004269b5
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 0x410c4e
mov ebx, ecx
sub ebx, ecx
sar ebx, 2
shl ebx, 2
push ebx
push ecx
push edi
call fcn.004208c0
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.00401f74
lea eax, [ebp - 0x34]
push eax
push 0x410b6a
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.0040202e
mov eax, ebx
call fcn.00426a38
ret
Function at 0x412563
Capabilities:
Write file on windows

Disassembly:
push 0x460
mov eax, 0x442ac1
call fcn.004269b5
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.0040ee04
cmp dword [ebp - 0x434], 8
mov eax, dword [ebp - 0x448]
pop ecx
jae 0x4125bd
lea eax, [ebp - 0x448]
push 0x44c944
push eax
call fcn.00421dfd
pop ecx
pop ecx
mov dword [ebp - 0x46c], eax
cmp eax, ebx
jne 0x412639
xor eax, eax
push 0x3fe
mov word [ebp - 0x410], ax
lea eax, [ebp - 0x40e]
push ebx
push eax
call fcn.004226a0
mov eax, dword [ebp - 0x448]
add esp, 0xc
cmp dword [ebp - 0x434], 8
jae 0x412607
lea eax, [ebp - 0x448]
push eax
lea eax, [ebp - 0x410]
push str.Cannot_open_file___s_
push eax
call fcn.004219f6
add esp, 0xc
lea eax, [ebp - 0x410]
mov dword [ebp - 0x468], eax
push 0x44f688
lea eax, [ebp - 0x468]
push eax
call fcn.00425e19
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 0x41265d
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x42c]
push eax
call fcn.004122be
test eax, eax
je 0x41273c
mov eax, dword [ebp - 0x468]
xor ecx, ecx
cmp dword [eax + 0x30], ecx
je 0x412710
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 0x4126ae
lea ecx, [ebp - 0x42c]
add eax, 0x20
cmp dword [eax + 0x14], 0x10
jb 0x4126b9
mov eax, dword [eax]
push dword [ebp - 0x41c]
push ecx
push eax
lea ecx, [ebp - 0x464]
call fcn.00412d41
mov eax, dword [ebp - 0x464]
add esp, 0xc
cmp dword [ebp - 0x450], 0x10
jae 0x4126e4
lea eax, [ebp - 0x464]
push dword [ebp - 0x46c]
push 1
push dword [ebp - 0x454]
push eax
call fcn.00421f6b
add esp, 0x10
push 1
xor edi, edi
lea esi, [ebp - 0x464]
mov byte [ebp - 4], 1
call fcn.00406b98
jmp 0x41273c
cmp dword [ebp - 0x418], 0x10
mov eax, dword [ebp - 0x42c]
jae 0x412725
lea eax, [ebp - 0x42c]
push dword [ebp - 0x46c]
push 1
push dword [ebp - 0x41c]
push eax
call fcn.00421f6b
add esp, 0x10
push dword [ebp - 0x46c]
call fcn.00422052
pop ecx
mov ecx, dword [ebp - 0x468]
push 0xffffffffffffffff
push 0
add ecx, 4
lea eax, [ebp - 0x448]
call fcn.00401c7c
push 1
xor edi, edi
lea esi, [ebp - 0x42c]
call fcn.00406b98
push 1
lea esi, [ebp - 0x448]
call fcn.0040202e
call fcn.00426a38
ret 4
Function at 0x41280e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [edi + 4]
cmp dword [eax + 0x14], 8
jb 0x41281d
mov eax, dword [eax]
push ebx
push 0x44cd1c
push eax
call fcn.00421dfd
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x4128a2
push esi
mov esi, ebx
call fcn.0040ecf4
mov esi, eax
push esi
call fcn.0041f8ec
push esi
push 0
push eax
mov dword [ebp - 4], eax
call fcn.004226a0
push ebx
push 1
push esi
push dword [ebp - 4]
call fcn.0042519e
push ebx
call fcn.00422052
add esp, 0x24
cmp dword [edi + 0x30], 0
je 0x412885
lea eax, [edi + 0x20]
cmp dword [eax + 0x14], 0x10
jb 0x412873
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
push esi
push dword [ebp - 4]
push eax
call fcn.00412d41
add esp, 0xc
jmp 0x412892
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov eax, esi
call fcn.0040826f
push dword [ebp - 4]
call fcn.00420d5b
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
pop ecx
pop esi
pop ebx
leave
ret 4

Function at 0x414d10
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.004226a0
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 0x414e21
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.0042064a
mov esp, ebp
pop ebp
ret

Function at 0x417de0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test ecx, ecx
jne 0x417deb
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
pop ebp
jmp fcn.00417e00
Function at 0x41a440
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 0x41a453
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 0x41a4cd
mov eax, dword [esi + 0x38]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call fcn.00422720
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 0x41a4a1
sub eax, edi
jmp 0x41a4a3
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x41a492
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 0x41a4c0
sub eax, edi
jmp 0x41a4c2
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x41a4b1
add ebx, edi
mov dword [ebp - 4], ebx
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x41a582
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 0x41a4f3
mov ebx, ecx
test ebx, ebx
je 0x41a546
sub eax, ebx
mov dword [edi + 4], eax
mov eax, dword [edi + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x41a515
mov edx, dword [edi]
mov ecx, dword [edi + 0x30]
mov eax, ebx
call fcn.0041af70
jmp 0x41a52e
cmp eax, 2
jne 0x41a534
mov ecx, dword [edi]
mov eax, dword [edi + 0x30]
test ecx, ecx
jne 0x41a527
xor eax, eax
jmp 0x41a531
mov edx, ebx
call fcn.00417e00
mov edx, dword [ebp - 8]
mov dword [edi + 0x30], eax
mov ecx, dword [edi]
push ebx
push ecx
push edx
call fcn.00422720
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 0x41a56e
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 0x41a582
mov edx, dword [esi]
cmp dword [edx + 4], 0
jne 0x41a450
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41e6e0
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 0x41e700
xor esi, esi
jmp 0x41e741
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x41e73d
lea ebx, [eax + eax]
mov eax, ebx
call fcn.00426000
mov esi, esp
test esi, esi
je 0x41e73d
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 0x41e73f
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 0x41e788
push esi
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x41e7b4
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.0042064a
mov esp, ebp
pop ebp
ret 4
xor eax, eax
jmp 0x41e79f

Function at 0x41e7c0
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 0x41e837
xor eax, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0042064a
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.0042064a
mov esp, ebp
pop ebp
ret 4
Function at 0x41ec61
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x45b740], 0
push esi
push edi
jne 0x41ebd7
call fcn.0041eb43
test eax, eax
je 0x41ec1c
mov eax, dword [0x45b740]
cmp eax, 1
jne 0x41ebf8
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x41ec1c
jmp 0x41ec5e
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x41ec5e
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 0x41ec20
xor eax, eax
jmp 0x41ec5e
mov eax, dword [esi]
push dword [0x45b740]
call edi
mov edi, eax
test edi, edi
je 0x41ec42
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x41ec5e
lea edi, [esi + 0xff0]
push esi
push dword [0x45b740]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x41ec48
mov eax, esi
pop edi
pop esi
ret
jmp 0x41ebc3

Function at 0x42064a
Capabilities:
Terminate process

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

Function at 0x4220c6
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 0x4220ed
call fcn.004264de
mov dword [eax], esi
call fcn.004264cb
push 0x16
pop esi
mov dword [eax], esi
call fcn.004293f4
mov eax, esi
jmp 0x422142
test dword [ebp + 0xc], 0xfffffff9
jne 0x4220d3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42211a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004264f1
pop ecx
call fcn.004264cb
mov eax, dword [eax]
jmp 0x422142
test al, 0x10
jne 0x422140
test al, 1
je 0x422140
test byte [ebp + 0xc], 2
je 0x422140
call fcn.004264de
mov dword [eax], 5
call fcn.004264cb
mov dword [eax], 0xd
jmp 0x422111
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4354e7
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x455214]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00428d56
and dword [ebp - 0x14], 0
cmp dword [0x45c86c], 0
mov dword [ebp - 0x18], eax
jne 0x43559a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x435642
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x448154
push ebx
call edi
test eax, eax
je 0x435642
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x448144
push ebx
mov dword [0x45c86c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x45c870], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x45c874], eax
call edi
push eax
call esi
mov dword [0x45c87c], eax
test eax, eax
je 0x43559a
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x45c878], eax
mov eax, dword [0x45c878]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4355f3
cmp dword [0x45c87c], ecx
je 0x4355f3
push eax
call esi
push dword [0x45c87c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4355f3
test ebx, ebx
je 0x4355f3
call edi
test eax, eax
je 0x4355ea
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4355ea
test byte [ebp - 8], 1
jne 0x4355f3
or dword [ebp + 0x10], 0x200000
jmp 0x435626
mov eax, dword [0x45c870]
cmp eax, dword [ebp - 0x18]
je 0x435626
push eax
call esi
test eax, eax
je 0x435626
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x435626
mov eax, dword [0x45c874]
cmp eax, dword [ebp - 0x18]
je 0x435626
push eax
call esi
test eax, eax
je 0x435626
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x45c86c]
call esi
test eax, eax
je 0x435642
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x435644
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042064a
leave
ret
Function at 0x43b377
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x455214]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
mov esi, 0x47dc20
cmp dword [0x47dc30], edi
jne 0x43b4a6
lea eax, [ebp - 0x804]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x804]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x43b3ba
sub eax, edx
sar eax, 1
lea ecx, [ebp - 0x804]
call fcn.00401ef9
cmp dword [0x47dc34], 8
mov eax, dword [0x47dc20]
jae 0x43b3e4
mov eax, esi
push edi
push eax
call fcn.00422145
pop ecx
pop ecx
test eax, eax
je 0x43b404
xor eax, eax
mov ecx, 0x4482ac
call fcn.00401ef9
mov ecx, esi
call fcn.0040ef4b
cmp dword [0x47dc30], edi
je 0x43b429
cmp dword [0x47dc34], 8
mov eax, dword [0x47dc20]
jae 0x43b41c
mov eax, esi
push edi
push eax
call fcn.00422145
pop ecx
pop ecx
test eax, eax
je 0x43b43b
push str.TEMP
call fcn.00422458
pop ecx
push eax
push esi
call fcn.00401f74
cmp dword [0x47dc30], edi
je 0x43b460
cmp dword [0x47dc34], 8
mov eax, dword [0x47dc20]
jae 0x43b453
mov eax, esi
push edi
push eax
call fcn.00422145
pop ecx
pop ecx
test eax, eax
je 0x43b472
push 0x44c9b8
call fcn.00422458
pop ecx
push eax
push esi
call fcn.00401f74
cmp dword [0x47dc30], edi
je 0x43b497
cmp dword [0x47dc34], 8
mov eax, dword [0x47dc20]
jae 0x43b48a
mov eax, esi
push edi
push eax
call fcn.00422145
pop ecx
pop ecx
test eax, eax
je 0x43b4a6
push 0xffffffffffffffff
push edi
mov eax, 0x47dbe8
mov ecx, esi
call fcn.00401c7c
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042064a
leave
ret