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

Disassembly:
push ebp
push esi
push edi
mov edi, ecx
push 0
push 0
mov eax, dword [edi + 0x1a8]
push 0x1004
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebp, eax
xor esi, esi
test ebp, ebp
jle 0x40d9d9
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
add edi, 0x18c
push esi
mov ecx, edi
call fcn.0047b40e
push 0
push 0
push eax
push 0x40b890
push 0
push 0
call ebx
test eax, eax
je 0x40d9d3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, ebp
jl 0x40d9b0
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x40ef50
Capabilities:
Get disk information

Disassembly:
sub esp, 0x100
lea eax, [esp]
push esi
push edi
push eax
mov edi, ecx
push 0x100
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov al, byte [esp + 8]
lea esi, [esp + 8]
test al, al
je 0x40efa2
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov al, byte [esi]
cmp al, 0x41
je 0x40ef95
cmp al, 0x42
je 0x40ef95
cmp al, 0x43
je 0x40ef95
push 0
push esi
mov ecx, edi
call fcn.0040efe0
push esi
call ebx
lea esi, [esi + eax + 1]
cmp byte [esi], 0
jne 0x40ef7d
pop ebx
push 0x3f9
mov ecx, edi
call fcn.00480970
push 1
mov ecx, eax
call fcn.00480c6a
push 0
push 0
push 0x4af228
mov ecx, edi
call fcn.0047f043
pop edi
xor eax, eax
pop esi
add esp, 0x100
ret
Function at 0x411110
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
sub esp, 0x80c
push esi
push edi
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
push 0
stosb byte es:[edi], al
mov eax, dword [esp + 0x82c]
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
test edi, edi
mov dword [esp + 0xc], edi
je 0x411232
mov ecx, dword [esp + 0x820]
mov edx, dword [esp + 0x818]
push 0
push 0x4400000
push 0xffffffffffffffff
push ecx
push edx
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
test esi, esi
je 0x41122b
mov eax, dword [esp + 0x81c]
push ebx
push ebp
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x1c]
mov ebp, dword [sym.imp.WININET.dll_InternetReadFile]
lea edx, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
push ecx
push 0x800
push edx
push esi
call ebp
mov eax, dword [esp + 0x10]
test eax, eax
je 0x411207
lea ecx, [esp + 0x18]
push 0
push ecx
lea edx, [esp + 0x24]
push eax
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
push 0x800
push ecx
push esi
call ebp
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4111cc
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x14]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edx
call edi
push esi
call edi
pop ebp
pop ebx
pop edi
mov al, 1
pop esi
add esp, 0x80c
ret
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
xor al, al
pop esi
add esp, 0x80c
ret

Function at 0x411330
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
xor eax, eax
test edx, edx
jle 0x41134e
mov ecx, dword [esp + 4]
push ebx
mov bl, byte [eax + ecx]
xor bl, 0x20
mov byte [eax + ecx], bl
inc eax
cmp eax, edx
jl 0x41133f
pop ebx
ret

Function at 0x411350
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
push 0
push 0
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4113db
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea ecx, [edi + 1]
push ecx
call fcn.00480d9f
add esp, 4
lea edx, [esp + 0x14]
mov esi, eax
push 0
push edx
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x10]
mov byte [esi + edi], 0
push eax
push esi
call fcn.00424290
add esp, 8
test eax, eax
pop edi
push ebx
je 0x4113cc
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00480dc8
add esp, 4
mov eax, 1
pop esi
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00480dc8
add esp, 4
pop esi
xor eax, eax
pop ebx
ret
Function at 0x411420
Capabilities:
Set tcp connection state

Disassembly:
sub esp, 0x20
push ebx
push esi
push edi
mov ecx, 7
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
lea edx, [esp + 0xc]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0x30]
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
mov eax, ecx
mov esi, edi
mov edi, edx
mov dword [esp + 0x34], ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x34]
push ecx
push ebx
call sub.iphlpapi.dll_GetTcpTable
cmp eax, 0x7a
jne 0x41150f
mov edx, dword [esp + 0x30]
push ebp
push edx
call fcn.00423dab
add esp, 4
mov ebp, eax
lea eax, [esp + 0x34]
push 1
push eax
push ebp
call sub.iphlpapi.dll_GetTcpTable
test eax, eax
jne 0x4114f7
cmp dword [ebp], ebx
jle 0x4114f7
lea edi, [ebp + 4]
mov eax, dword [edi + 0xc]
lea esi, [esp + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4114d7
test cl, cl
je 0x4114d3
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4114d7
add eax, 2
add esi, 2
test cl, cl
jne 0x4114b3
xor eax, eax
jmp 0x4114dc
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4114ec
push edi
mov dword [edi], 0xc
call sub.iphlpapi.dll_SetTcpEntry
mov eax, dword [ebp]
inc ebx
add edi, 0x14
cmp ebx, eax
jl 0x4114a5
push ebp
call fcn.00423cc2
add esp, 4
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x20
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x20
ret 4

Function at 0x4115a0
Capabilities:
Resolve dns

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
test eax, eax
jge 0x4115c4
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x4115bd
pop esi
ret
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
pop esi
ret

Function at 0x4188b0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push esi
push 0
push 1
mov esi, ecx
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 4], eax
pop esi
ret

Function at 0x4188d0
Capabilities:
Create thread

Disassembly:
sub esp, 0x10
push esi
push edi
mov edi, dword [esp + 0x1c]
mov esi, ecx
push edi
mov word [esp + 0xc], 2
mov dword [esp + 0x10], 0
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esi + 4]
mov word [esp + 0xa], ax
lea eax, [esp + 8]
push 0x10
push eax
push ecx
mov dword [esi + 0x10], edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x418919
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 4
mov edx, dword [esi + 4]
push 0xa
push edx
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x418934
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 4
push 0
push 0
push esi
push 0x418560
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
add esp, 0x10
ret 4
Function at 0x418980
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
ret 0xc
Function at 0x419870
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov ecx, dword [esp + 8]
mov eax, 0x55555556
imul ecx
mov eax, edx
push ebx
shr eax, 0x1f
add edx, eax
mov eax, ecx
mov ebx, edx
mov ecx, 3
cdq
idiv ecx
push ebp
push esi
push edi
test edx, edx
je 0x419897
inc ebx
lea esi, [ebx + ebx*2]
push esi
call fcn.00480d9f
mov ecx, esi
mov ebp, eax
mov edx, ecx
xor eax, eax
mov edi, ebp
mov esi, dword [esp + 0x18]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x18]
mov edi, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x1c]
test ebx, ebx
jle 0x419967
lea esi, [ebp + 1]
mov cl, byte [esi - 1]
add esi, 3
sar cl, 2
and cl, 0x3f
and ecx, 0xff
inc eax
mov dl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + edi - 1], dl
mov cl, byte [esi - 4]
mov dl, byte [esi - 3]
and cl, 3
shl cl, 4
sar dl, 4
and ecx, 0xff
and edx, 0xff
or ecx, edx
inc eax
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + edi - 1], cl
mov dl, byte [esi - 3]
mov cl, byte [esi - 2]
and dl, 0xf
shl dl, 2
sar cl, 6
and edx, 0xff
and ecx, 0xff
or edx, ecx
inc eax
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + edi - 1], dl
mov cl, byte [esi - 2]
and ecx, 0x3f
inc eax
dec ebx
mov dl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + edi - 1], dl
jne 0x4198e2
push ebp
mov byte [eax + edi], 0
call fcn.00480dc8
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x4199c0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [esp + 0x1c]
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 6], ax
mov eax, dword [esp + 8]
cmp eax, 0xffffffff
mov word [esp + 4], 2
jne 0x419a24
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x419a4c
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
push edi
lea edi, [esp + 0xc]
mov esi, dword [edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ax, word [eax + 8]
pop edi
mov word [esp + 4], ax
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
lea ecx, [esp + 4]
mov esi, eax
push 0x10
push ecx
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x419a56
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop esi
add esp, 0x10
ret 8
mov eax, esi
pop esi
add esp, 0x10
ret 8
Function at 0x419a60
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
mov edi, dword [esp + 0x14]
push 0
push ebx
push ebp
push edi
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x419aa3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x419a9a
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x419a70
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x419ab0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_recv]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x1c]
push 0
push edi
push ebx
push esi
call ebp
cmp eax, 0xffffffff
jne 0x419af3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x419ae9
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x419ac6
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x419b60
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, 0xfe
and eax, 0xff
push esi
cdq
idiv ecx
mov esi, dword [esp + 0xc]
inc dl
test esi, esi
jbe 0x419b8c
mov eax, dword [esp + 8]
mov cl, byte [eax]
xor cl, dl
add cl, dl
mov byte [eax], cl
inc eax
dec esi
jne 0x419b80
pop esi
ret 0xc

Function at 0x419b90
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
ret 0xc

Function at 0x419bb0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x100
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
mov edx, dword [esp + 0x10c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x110]
lea ecx, [esp + 4]
push eax
mov eax, dword [esp + 0x10c]
push 0x104
push ecx
push 0x4b8c40
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 4]
pop edi
add esp, 0x100
ret 0xc

Function at 0x41b6d0
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
lea ebx, [ecx + 0x104]
push edi
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, str.update.inf
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
ret
Function at 0x41b720
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
call fcn.0041b6d0
mov eax, dword [esp + 0x10]
push eax
call fcn.0041b560
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x41b743
pop esi
pop ebx
pop ecx
ret 4
push 0
push 0x80
push 2
push 0
push 3
add esi, 0x104
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41b771
pop esi
xor eax, eax
pop ebx
pop ecx
ret 4
push edi
lea ecx, [esp + 0xc]
push 0
push ecx
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x14], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 4

Function at 0x41b7e0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, str._setting.ini
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x118]
mov ecx, ebp
and ecx, 3
lea eax, [esp + 0x10]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x11c]
push eax
push ecx
push edx
mov ecx, ebx
call fcn.00419b90
mov edx, dword [esp + 0x120]
pop edi
cmp eax, edx
pop esi
sbb eax, eax
pop ebp
neg eax
pop ebx
add esp, 0x104
ret 0xc

Function at 0x41b880
Capabilities:
Download url
Get common file path
Receive data

Disassembly:
sub esp, 0x104
push ebx
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, str.Back_
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x120]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x120]
push ecx
push 0
call sub.urlmon.dll_URLDownloadToFileA
neg eax
sbb eax, eax
pop edi
pop esi
inc eax
pop ebx
add esp, 0x104
ret 8
Function at 0x4306d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x490986
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esp + 0xc], esi
mov dword [esi + 0x28], 0x499208
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], 0x11
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], 0xa
lea ecx, [esi + 0x44]
mov dword [esp + 0x1c], edi
call fcn.0043ed90
mov dword [esi + 0x64], 0x4991fc
mov dword [esi + 0x68], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x6c], edi
mov bl, 2
push 0x3c
mov byte [esp + 0x20], bl
mov dword [esi], 0x4991ec
mov dword [esi + 0x18], edi
mov dword [esi + 0xc], edi
call fcn.00480d9f
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, edi
mov byte [esp + 0x1c], 3
je 0x430766
push esi
mov ecx, eax
call fcn.00442240
jmp 0x430768
xor eax, eax
push 0x1c
mov byte [esp + 0x20], bl
mov dword [esi + 0x1c], eax
call fcn.00480d9f
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, edi
mov byte [esp + 0x1c], 4
je 0x43078f
mov ecx, eax
call fcn.004465e0
jmp 0x430791
xor eax, eax
mov ecx, eax
mov byte [esp + 0x1c], bl
mov dword [esi + 0x78], eax
call fcn.0043dbb0
mov eax, dword [esi + 0x2c]
cmp eax, edi
je 0x4307b2
push eax
call fcn.00480dc8
add esp, 4
mov dword [esi + 0x2c], edi
mov eax, 1
mov dword [esi + 0x30], 0xc7
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x20], 0xf
call fcn.0043e610
mov ecx, eax
call fcn.0043e750
mov dword [esi + 4], eax
call fcn.0043e610
mov ecx, eax
call fcn.0043e680
and eax, 0xff
mov dword [esi + 0x24], edi
mov dword [esi + 8], eax
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
call fcn.0043f240
push str.USER32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
cmp ebx, edi
je 0x430855
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetWinEventHook
push ebx
call ebp
push str.UnhookWinEvent
push ebx
mov dword [esi + 0x5c], eax
call ebp
mov ecx, dword [esi + 0x5c]
mov dword [esi + 0x60], eax
cmp ecx, edi
pop ebp
je 0x430855
cmp eax, edi
je 0x430855
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x43d070
push edi
push 0x8004
push 0x8004
call dword [esi + 0x5c]
mov dword [esi + 0x24], eax
mov ecx, esi
call fcn.00430890
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4322a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x490b5d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00480441
xor edi, edi
mov dword [esi + 0x20], 0x499218
mov dword [esp + 0x18], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], 0x11
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], 0xa
mov eax, dword [0x4afd08]
mov dword [esi + 0x48], eax
lea ecx, [esi + 0x4c]
mov byte [esp + 0x18], 2
call fcn.0043ed90
mov dword [esi + 0x64], 0x499294
mov dword [esi + 0x68], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x6c], edi
push 0xa
lea ecx, [esi + 0x80]
mov byte [esp + 0x1c], 4
call fcn.0047c768
mov ebx, dword [esp + 0x20]
mov byte [esp + 0x18], 5
cmp ebx, edi
mov dword [esi], method.COleControlContainer.virtual_0
mov dword [esi + 0x40], ebx
je 0x432345
lea ecx, [ebx + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ebx, dword [ebx + 0x34]
push str.GLOBALS
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x1c], 1
call fcn.00432640
push str.WINDOW
mov dword [esi + 0x78], eax
call fcn.00432640
mov dword [esi + 0x7c], eax
mov eax, dword [esi + 0x24]
add esp, 8
cmp eax, edi
je 0x432382
push eax
call fcn.00480dc8
add esp, 4
mov dword [esi + 0x24], edi
push 0x170
mov dword [esi + 0x28], 0xc7
call fcn.00480d9f
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, edi
mov byte [esp + 0x18], 6
je 0x4323b0
push esi
mov ecx, eax
call fcn.00430010
mov dword [esi + 0x44], eax
jmp 0x4323b3
mov dword [esi + 0x44], edi
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x43ef40
Capabilities:
Create thread
Resume thread

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x14]
mov dword [esi], 0
push eax
mov dword [esi + 0x10], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea ecx, [esp + 4]
push ecx
push 4
push esi
push 0x43eec0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0xc], eax
je 0x43ef8c
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov edx, dword [esi + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
pop ecx
ret

Function at 0x43ef90
Capabilities:
Terminate thread

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0xc], ebx
je 0x43f016
mov eax, dword [esi + 0x14]
push ebp
push edi
push eax
mov dword [esi + 0x10], 1
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [esi + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], ebx
push ecx
push edx
call edi
test eax, eax
je 0x43f003
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [esp + 0x10], 0x103
jne 0x43f003
inc ebx
cmp ebx, 0xa
ja 0x43eff7
mov eax, dword [esi + 0xc]
push 0x64
push eax
call ebp
mov edx, dword [esi + 0xc]
lea ecx, [esp + 0x10]
push ecx
push edx
call edi
test eax, eax
jne 0x43efce
jmp 0x43f003
mov eax, dword [esi + 0xc]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov dword [esi + 0xc], 0
pop ebp
pop esi
pop ebx
pop ecx
ret

Function at 0x43f6e0
Capabilities:
Get system information on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x24
mov edx, dword [esp + 0x38]
push ebx
mov ebx, ecx
mov ecx, dword [esp + 0x38]
push esi
push edi
mov edi, dword [esp + 0x38]
mov dword [ebx + 4], eax
mov dword [ebx + 0x40], ecx
or ecx, 0xffffffff
xor eax, eax
mov dword [ebx + 8], 0
mov dword [ebx + 0x44], edx
mov dword [ebx], 0x499460
lea edx, [ebx + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebx + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x3c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x4c36dc]
test eax, eax
jne 0x43f765
call fcn.0047d98a
mov dword [0x4c36dc], eax
mov ecx, dword [0x4c36d8]
test ecx, ecx
jne 0x43f784
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 0x18]
mov dword [0x4c36d8], ecx
mov eax, dword [ebx + 0x40]
cmp eax, ecx
jbe 0x43f796
cmp byte [eax], 0x68
jne 0x43f796
mov edx, dword [eax + 1]
mov dword [ebx + 0x40], edx
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x24
ret 0x14