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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a8
push ebx
push esi
or ecx, 0xffffffff
mov ebx, 0x484ea8
call fcn.0040f6f0
mov esi, eax
lea eax, [esp + 0xa8]
push esi
push eax
call fcn.00413650
push esi
call fcn.004111dc
add esp, 0xc
lea esi, [esp + 0x18]
call fcn.0040f820
lea eax, [esp + 0xa8]
mov ecx, esi
call fcn.0040f850
xor ebx, ebx
mov dword [edi + 8], ebx
xor ecx, ecx
mov eax, ebx
movzx edx, byte [esp + ecx + 0x18]
add eax, edx
movzx edx, byte [esp + ecx + 0x19]
add eax, edx
movzx edx, byte [esp + ecx + 0x1a]
add eax, edx
movzx edx, byte [esp + ecx + 0x1b]
add ecx, 4
add eax, edx
cmp ecx, 0x10
jl 0x40f7b4
mov dword [edi + 8], eax
mov eax, dword [ebp + 8]
push 0x488120
push eax
call fcn.004149c2
add esp, 8
mov dword [edi], eax
cmp eax, ebx
je 0x427c2a
push edi
call fcn.0040f5c0
cmp eax, ebx
je 0x427c34
mov ecx, dword [edi]
push ecx
mov esi, eax
call fcn.00414a46
add esp, 4
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, 1
jmp 0x40f813
mov edx, dword [edi]
push edx
push 0x10
lea eax, [esp + 0x10]
push 1
push eax
call fcn.00414d04
add esp, 0x10
push 0x99f2
push 0x10
lea ecx, [esp + 0x10]
push ecx
call fcn.0044afef
xor eax, eax
mov dword [edi + 8], ebx
xor ecx, ecx
movzx edx, byte [esp + eax + 8]
inc eax
imul ecx, edx
cmp eax, 0x10
jl 0x427c60
mov eax, dword [edi]
push eax
mov dword [edi + 8], ecx
call fcn.00414fe2
add esp, 4
mov dword [edi + 4], eax
xor eax, eax
jmp 0x40f813

Function at 0x40f820
Capabilities:
Hash data with md5

Disassembly:
push 8
lea eax, [esi + 0x44]
push 0
push eax
call fcn.00412f40
add esp, 0xc
mov dword [esi + 0x34], 0x67452301
mov dword [esi + 0x38], 0xefcdab89
mov dword [esi + 0x3c], 0x98badcfe
mov dword [esi + 0x40], 0x10325476
ret

Function at 0x410570
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x497520]
push esi
push 0
mov esi, dword [sym.imp.USER32.dll_CreateWindowExW]
push eax
push 0
push 0
push 0x64
push 0x12c
push accept
push accept
push 0xcf0000
push 0x484d10
push 0x484d10
push 0
call esi
mov ecx, dword [0x497520]
push 0
push ecx
push 1
push eax
push 0
push 0
push 0
push 0
push 0x50b008c4
push 0
push 0x484d24
push 0
mov dword [0x497518], eax
call esi
mov edx, dword [0x497518]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push edx
mov dword [0x497514], eax
call esi
mov eax, dword [0x497518]
push 0
push eax
call esi
pop esi
ret

Function at 0x410ab0
Capabilities:
Log keystrokes

Disassembly:
push ebx
xor ebx, ebx
push edi
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov dword [esi], 5
mov dword [esi + 4], 5
mov word [esi + 8], 1
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov word [esi + 0x18], bx
push ebx
mov dword [esi + 0x1a], ebx
mov word [esi + 0x1e], bx
push 0x5b
mov dword [esi + 0xc], 4
call edi
push ebx
push 0x10
mov byte [esi + 0x29], al
call edi
push ebx
push 0xa0
mov byte [esi + 0x26], al
call edi
push ebx
push 0xa1
mov byte [esi + 0x27], al
call edi
push ebx
push 0x11
mov byte [esi + 0x28], al
call edi
push ebx
push 0x12
mov byte [esi + 0x24], al
call edi
pop edi
mov byte [esi + 0x25], al
pop ebx
ret
Function at 0x41a208
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x490d40]
jne 0x41a212
repz ret
jmp fcn.00421f06

Function at 0x42009c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x490d40]
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.0041787c
and dword [ebp - 0x14], 0
cmp dword [0x497154], 0
mov dword [ebp - 0x18], eax
jne 0x42014f
push 0x4843bc
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4201f7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4843b0
push ebx
call edi
test eax, eax
je 0x4201f7
mov esi, dword [section..data]
push eax
call esi
push 0x4843a0
push ebx
mov dword [0x497154], eax
call edi
push eax
call esi
push 0x48438c
push ebx
mov dword [0x497158], eax
call edi
push eax
call esi
push 0x484370
push ebx
mov dword [0x49715c], eax
call edi
push eax
call esi
mov dword [0x497164], eax
test eax, eax
je 0x42014f
push 0x484358
push ebx
call edi
push eax
call esi
mov dword [0x497160], eax
mov eax, dword [0x497160]
mov ecx, dword [ebp - 0x18]
mov esi, dword [0x490004]
cmp eax, ecx
je 0x4201a8
cmp dword [0x497164], ecx
je 0x4201a8
push eax
call esi
push dword [0x497164]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4201a8
test ebx, ebx
je 0x4201a8
call edi
test eax, eax
je 0x42019f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x42019f
test byte [ebp - 8], 1
jne 0x4201a8
or dword [ebp + 0x10], 0x200000
jmp 0x4201db
mov eax, dword [0x497158]
cmp eax, dword [ebp - 0x18]
je 0x4201db
push eax
call esi
test eax, eax
je 0x4201db
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4201db
mov eax, dword [0x49715c]
cmp eax, dword [ebp - 0x18]
je 0x4201db
push eax
call esi
test eax, eax
je 0x4201db
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x497154]
call esi
test eax, eax
je 0x4201f7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4201f9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041a208
leave
ret
Function at 0x431be8
Capabilities:
Create directory
Delete directory

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
sub esp, 0xa28
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0xa28]
push ecx
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x431c1a
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push edi
lea eax, [ebp - 0xa28]
push eax
lea ecx, [ebp - 0x208]
push 0x48ad10
push ecx
call fcn.0041329b
lea edx, [ebp - 0x208]
push edx
call fcn.004111c1
mov edi, eax
add esp, 0x10
cmp word [ebp + edi*2 - 0x20a], 0x5c
jne 0x431c64
cmp word [ebp + edi*2 - 0x20c], 0x3a
je 0x431c64
xor eax, eax
mov word [ebp + edi*2 - 0x20a], ax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x431c7e
cmp byte [ebp + 0x10], al
jne 0x431c7e
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push esi
push 0
push 0x2200000
push 3
push 0
push 0
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x431d31
push 0x14
lea ecx, [ebp - 0x820]
push 0
push ecx
call fcn.00412f40
lea edx, [edi + edi]
mov word [ebp - 0x816], dx
mov eax, dword [ebp - 0x816]
push 0x104
lea ecx, [ebp - 0x208]
push ecx
lea edx, [ebp - 0x810]
add eax, 2
push edx
mov dword [ebp - 0x820], 0xa0000003
mov word [ebp - 0x814], ax
call fcn.00412fba
mov eax, dword [ebp - 0x816]
add esp, 0x18
push 0
add eax, 0xc
lea ecx, [ebp + 8]
push ecx
push 0
movzx edx, ax
push 0
add edx, 8
push edx
mov word [ebp - 0x81c], ax
lea eax, [ebp - 0x820]
push eax
push 0x900a4
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
test eax, eax
jne 0x431d43
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x432017
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x464]
test eax, eax
je 0x43202f
cmp eax, 0x10000
jne 0x432053
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x45c]
push eax
push 0x10000
push 1
push ecx
call fcn.00414d04
add esp, 0x10
mov dword [esi + 0x464], 0
mov ecx, dword [esi + 0x464]
mov edx, dword [esi + 0x45c]
mov al, byte [ecx + edx]
inc ecx
mov dword [esi + 0x464], ecx
pop esi
pop ebp
ret 4

Function at 0x43206e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x460]
test eax, eax
je 0x43209f
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x458]
push ecx
push eax
push 1
push edx
call fcn.004142b6
add esp, 0x10
mov dword [esi + 0x460], 0
pop esi
pop ebp
ret 4
Function at 0x4320a4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov dl, byte [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x460]
mov eax, dword [esi + 0x458]
mov byte [eax + ecx], dl
inc dword [esi + 0x460]
cmp dword [esi + 0x460], 0x10000
jne 0x4320f3
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x458]
push eax
push 0x10000
push 1
push ecx
call fcn.004142b6
add esp, 0x10
mov dword [esi + 0x460], 0
pop esi
pop ebp
ret 8

Function at 0x4321a4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 1
jne 0x4321cb
mov eax, dword [esi + 0xc]
add eax, dword [esi + 4]
push 8
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.00410e60
add esp, 0xc
jmp 0x4321df
mov edx, dword [esi + 0x1c]
push edx
push 8
lea eax, [ebp - 8]
push 1
push eax
call fcn.00414d04
add esp, 0x10
movzx ecx, byte [ebp - 4]
movzx edx, byte [ebp - 3]
movzx eax, byte [ebp - 2]
add dword [esi + 0xc], 8
shl ecx, 8
or ecx, edx
movzx edx, byte [ebp - 1]
shl ecx, 8
or ecx, eax
mov eax, dword [ebp + 0xc]
shl ecx, 8
or ecx, edx
mov dword [eax], ecx
lea ecx, [ebp - 8]
push 0x488130
push ecx
mov byte [ebp - 4], 0
call fcn.00414d30
add esp, 8
neg eax
sbb eax, eax
neg eax
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x432281
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [0x4a7540], eax
mov edx, 1
mov eax, 0x4a7540
push edi
mov ecx, dword [eax]
mov edi, ecx
shr edi, 0x1e
xor edi, ecx
imul edi, edi, 0x6c078965
add edi, edx
mov dword [eax + 4], edi
add eax, 4
inc edx
cmp eax, 0x4a7efc
jl 0x432297
mov dword [0x49205c], 1
mov dword [0x4a7f10], 1
pop edi
pop ebp
ret

Function at 0x4331a2
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
js 0x43323e
jne 0x4331c5
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp esi, 0xf
jae 0x433237
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [ebp - 0x18]
push eax
call edi
test eax, eax
je 0x433237
lea ecx, [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [ebp - 0x10]
push edx
call edi
fnstcw word [ebp + 0xa]
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
sbb ecx, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
fild qword [ebp - 0x20]
movzx eax, word [ebp + 0xa]
fild qword [ebp - 0x28]
or eax, 0xc00
mov dword [ebp - 4], eax
fdivp st(1)
fmul qword [0x48cd40]
fldcw word [ebp - 4]
fistp qword [ebp - 8]
mov edx, dword [ebp - 8]
fldcw word [ebp + 0xa]
cmp edx, esi
jb 0x4331e4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4333be
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x43341e
lea ecx, [ebp - 0x10]
push ecx
push 0x487d68
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebp - 4]
push 0
push 0
push 0
lea edx, [ebp - 0x14]
push edx
push 0
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x433425
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, 0x20
je 0x433471
cmp ebx, 0x40
je 0x433484
test bl, 0xb
jne 0x433442
push 0
push ebx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
test bl, 0x14
je 0x43344e
mov ecx, 1
xor eax, eax
test bl, 2
je 0x43345a
mov eax, 1
mov edx, dword [ebp + 0xc]
push edx
push eax
push ecx
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownExW]
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 1
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetSystemPowerState]
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_SetSystemPowerState]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x433493
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x298]
push eax
push 0x101
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x433570
push 0x100
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.WSOCK32.dll_gethostname]
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x433570
mov eax, dword [eax + 0xc]
xor edx, edx
cmp dword [eax], edx
je 0x4334fc
mov ecx, eax
lea ecx, [ecx]
add ecx, 4
inc edx
cmp dword [ecx], 0
jne 0x4334f3
cmp esi, edx
jle 0x43351a
push 0x487cb0
push edi
call fcn.00411567
add esp, 8
call dword [sym.imp.WSOCK32.dll_WSACleanup]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + esi*4 - 4]
push 4
push eax
lea ecx, [ebp - 4]
push ecx
call fcn.00410e60
mov edx, dword [ebp - 4]
add esp, 0xc
push edx
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00413650
lea ecx, [ebp - 0x108]
push 0xffffffffffffffff
push ecx
call fcn.0043299a
mov esi, eax
push esi
push edi
call fcn.00411567
push esi
call fcn.004111dc
add esp, 0x1c
call dword [sym.imp.WSOCK32.dll_WSACleanup]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x484ea8
push edi
call fcn.00411567
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x433a13
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x14
push esi
push edi
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push eax
push ecx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
jne 0x433a3a
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push esi
call fcn.004115d7
mov edx, dword [ebp + 8]
add esp, 4
mov ebx, eax
push ebx
push esi
push 0
push edx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
push edi
call fcn.004111c1
xor ecx, ecx
add eax, 0x1a
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004115d7
mov esi, eax
push 0x48565c
push esi
call fcn.00411567
push 0x48565c
push edi
call fcn.0041313c
add esp, 0x18
test eax, eax
je 0x433b29
push 0x487bf0
push esi
call fcn.00411536
push 0x48565c
push edi
call fcn.004134bd
add esp, 0x10
test eax, eax
jne 0x433b1f
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
push ecx
push 0x487c10
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x433afa
mov edx, dword [ebp - 8]
mov eax, dword [edx]
push 4
lea ecx, [esi + 0x20]
push ecx
push 0
push eax
mov dword [ebp - 0xc], eax
call fcn.00432e88
mov eax, dword [ebp - 0xc]
push 4
lea edx, [esi + 0x28]
push edx
shr eax, 0x10
push 0
push eax
call fcn.00432e88
add esp, 0x20
jmp 0x433b08
push 0x487c44
push esi
call fcn.00411536
add esp, 8
push 0x48565c
push esi
call fcn.00411536
push edi
push esi
call fcn.00411536
add esp, 0x10
jmp 0x433b29
push edi
push esi
call fcn.00411536
add esp, 8
push 0x487c58
push edi
call fcn.004114ab
add esp, 8
test eax, eax
jne 0x433b68
mov edi, dword [ebp + 0xc]
push 8
lea eax, [esi + 0x20]
push eax
push edi
call fcn.00412fba
xor ecx, ecx
push ebx
mov word [edi + 0x10], cx
call fcn.004111dc
push esi
call fcn.004111dc
add esp, 0x14
pop ebx
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 4]
push eax
push esi
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x433bf0
push 0x48565c
push edi
call fcn.0041313c
add esp, 8
test eax, eax
jne 0x433bba
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
movzx edx, cx
push edx
mov edx, dword [ebp + 0xc]
shr ecx, 0x10
push ecx
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
push 0x487c80
push edx
call fcn.0041329b
add esp, 0x18
jmp 0x433bd8
mov eax, dword [ebp - 4]
mov edi, dword [ebp + 0xc]
push 0x200
push eax
push edi
call fcn.00412fba
add esp, 0xc
xor ecx, ecx
mov word [edi + 0x400], cx
push ebx
call fcn.004111dc
push esi
call fcn.004111dc
add esp, 8
pop ebx
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
push ebx
call fcn.004111dc
push esi
call fcn.004111dc
add esp, 8
pop ebx
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x434418
Capabilities:
Find taskbar
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edi, dword [ebp + 8]
mov esi, eax
cmp edi, esi
jne 0x43443c
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 4
test esi, esi
jne 0x43444e
push esi
push 0x486134
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
push edi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x434462
push 9
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
mov dword [ebp - 8], 0
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x43455c
push ebx
push eax
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
mov eax, dword [ebp + 8]
push 0
push eax
call esi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
push eax
push ebx
mov dword [ebp - 4], eax
call esi
push 1
push edi
push ebx
call esi
mov ecx, dword [ebp - 4]
push 1
push ecx
push edi
call esi
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x434531
push eax
push eax
push eax
push 0x12
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
push 0x12
call dword [sym.imp.USER32.dll_keybd_event]
push 0
push 2
push 0
push 0x12
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
push 0x12
call dword [sym.imp.USER32.dll_keybd_event]
push 0
push 0
push 0
push 0x12
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
push 0x12
call dword [sym.imp.USER32.dll_keybd_event]
push 0
push 2
push 0
push 0x12
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
push 0x12
call dword [sym.imp.USER32.dll_keybd_event]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
je 0x434538
mov dword [ebp - 8], 4
jmp 0x434538
mov dword [ebp - 8], 3
mov ecx, dword [ebp - 4]
push 0
push ecx
push ebx
call esi
push 0
push edi
push ebx
call esi
mov edx, dword [ebp - 4]
push 0
push edx
push edi
call esi
mov eax, dword [ebp - 8]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
pop edi
mov eax, 2
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4423da
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x34]
push edi
push 0x488154
push eax
mov dword [ebp - 4], fcn.00414a46
call fcn.004149c2
mov edi, eax
add esp, 8
mov dword [ebp - 8], edi
test edi, edi
jne 0x44242e
push eax
push 0xdeadbeef
push 0x1f
push esi
call fcn.004422cb
mov bl, al
lea eax, [ebp - 8]
push eax
call fcn.00431848
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [ebp + 8], 1
jmp 0x44243a
mov eax, dword [ebp + 0xc]
lea ecx, [ebp + 8]
push ecx
push 0x400
lea edx, [ebp - 0x408]
push edx
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4424ac
mov eax, dword [ebp + 8]
test eax, eax
je 0x442480
push edi
push 1
push eax
lea ecx, [ebp - 0x408]
push ecx
call fcn.004142b6
mov eax, dword [ebp + 8]
add esp, 0x10
add dword [esi + 8], eax
adc dword [esi + 0xc], 0
test eax, eax
jne 0x44243a
mov eax, dword [esi + 8]
or eax, dword [esi + 0xc]
jne 0x4424d1
push eax
push 0xdeadbeef
push 0x21
push esi
call fcn.004422cb
lea ecx, [ebp - 8]
push ecx
mov bl, al
call fcn.00431848
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
push 0xdeadbeef
push 0x20
push esi
call fcn.004422cb
lea edx, [ebp - 8]
push edx
mov bl, al
call fcn.00431848
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
push 1
push 0
push 0
push esi
call fcn.004422cb
lea edx, [ebp - 8]
push edx
mov bl, al
call fcn.00431848
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x44256c
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
sub esp, 8
push esi
mov esi, dword [ebp + 8]
cmp ecx, 1
jne 0x442587
movzx eax, word [esi + 0x8c]
jmp 0x44258b
movzx eax, word [esi + 0x58]
cmp ecx, 1
movsx edx, ax
lea ecx, [esi + 0xb0]
je 0x44259c
lea ecx, [esi + 0x7c]
mov eax, dword [esi + 0xc0]
push 0
cmp edx, 1
jne 0x4425b0
push 0
push 0
push edx
jmp 0x4425f7
cmp edx, 2
jne 0x4425f1
mov ecx, dword [ecx]
push 0x48ad68
push ecx
push 3
jmp 0x4425f7
cmp byte [esi + 0xdc], 0
je 0x4425e8
push 8
lea eax, [ebp - 8]
push eax
push 0x32
push 0
mov dword [ebp - 8], 1
mov dword [ebp - 4], 0
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8
push 0
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 4], eax
test eax, eax
jne 0x4425c1
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x458651
Capabilities:
Connect network resource
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor eax, eax
push edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
call fcn.0040bc70
lea ecx, [ebp - 0x1c]
call fcn.0040bc70
lea ecx, [ebp - 0x3c]
call fcn.0040bc70
mov ebx, 0x48b3f4
lea eax, [ebp - 0x2c]
call fcn.00402160
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x2c]
call fcn.0040d200
mov edi, 0x48b418
lea eax, [ebp - 0x2c]
call fcn.0040d200
mov ebx, 0x484ea8
lea eax, [ebp - 0x1c]
call fcn.00402160
test esi, esi
je 0x4586da
cmp word [esi], 0x5c
je 0x4586da
cmp word [esi + 2], 0x5c
je 0x4586da
mov ebx, 0x48b428
lea eax, [ebp - 0x1c]
call fcn.00402160
mov edi, esi
lea eax, [ebp - 0x1c]
call fcn.0040d200
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x458731
push 0x20
lea eax, [ebp - 0x5c]
push 0
push eax
call fcn.00412f40
add esp, 0xc
lea ecx, [ebp - 0x1c]
push ecx
lea esi, [ebp - 0x3c]
mov dword [ebp - 0x58], 0
call fcn.0040e0a0
mov edi, 0x48b430
mov eax, esi
call fcn.0040d200
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp - 0x3c]
push 0
push ebx
push eax
lea ecx, [ebp - 0x5c]
push ecx
mov dword [ebp - 0x48], edx
call dword [sym.imp.MPR.dll_WNetAddConnection2W]
mov edi, eax
test edi, edi
js 0x4587c7
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 8]
push edx
push reloc.WSOCK32.dll_bind
push eax
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
mov edi, eax
test edi, edi
jne 0x4587c7
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0xc]
push ecx
push 0x20019
push eax
mov eax, dword [ebp - 8]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
test edi, edi
jne 0x4587c1
mov eax, dword [ebp - 0xc]
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp - 0x264]
push edx
push 0
push 0
push 0
push eax
mov dword [ebp + 0xc], 0x1fe
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x4587bb
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
shr eax, 1
xor ecx, ecx
mov dword [ebp + 0xc], eax
mov word [ebp + eax*2 - 0x264], cx
push edx
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
mov edi, eax
mov ecx, dword [ebp - 0xc]
push ecx
call esi
mov edx, dword [ebp - 8]
push edx
call esi
lea ecx, [ebp - 0x3c]
call fcn.00402250
lea ecx, [ebp - 0x1c]
call fcn.00402250
lea ecx, [ebp - 0x2c]
call fcn.00402250
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret