joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e596
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
xor ebx, ebx
push 0x404ea4
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x2c], eax
cmp eax, ebx
je 0x41e731
push 0x404eb0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
cmp eax, ebx
je 0x41e728
push ebx
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x28]
push ecx
call eax
test eax, eax
jne 0x41e728
push ebx
push ebx
push ebx
push 0x408c00
call dword [sym.imp.GDI32.dll_CreateDCW]
mov edi, eax
mov dword [ebp - 0x20], edi
cmp edi, ebx
je 0x41e70c
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x41e705
push 0x8040
push ebx
push ebx
push 2
push 0x7f00
push ebx
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x41e65a
lea ecx, [ebp - 0x50]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetIconInfo]
test eax, eax
je 0x41e657
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
jne 0x41e65a
mov dword [ebp - 0xc], ebx
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 8
push edi
call esi
push 0xa
push edi
mov dword [ebp - 0x10], eax
call esi
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x41e6fc
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push dword [ebp - 8]
call esi
mov dword [ebp - 0x24], eax
cmp eax, ebx
je 0x41e6f3
push 0x40cc0020
push ebx
push ebx
push edi
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
push ebx
push ebx
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
je 0x41e6eb
cmp dword [ebp - 0xc], ebx
je 0x41e6d7
mov ecx, dword [ebp - 0x34]
sub ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x30]
push dword [ebp - 0xc]
cmovs ecx, ebx
sub eax, dword [ebp - 0x48]
cmovs eax, ebx
push eax
push ecx
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_DrawIcon]
push dword [ebp + 8]
lea edi, [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00409673
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
push dword [ebp - 0x24]
push dword [ebp - 8]
call esi
push dword [ebp - 0x14]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_DeleteDC]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp dword [ebp - 0x2c], ebx
je 0x41e731
push 0x404ec0
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x41e728
push dword [ebp - 0x28]
call eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x41e73b
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
xor ecx, ecx
mov dword [0x43f7f0], eax
inc ecx
mov eax, 0x43f7f0
push esi
mov edx, dword [eax]
mov esi, edx
shr esi, 0x1e
xor esi, edx
imul esi, esi, 0x6c078965
add esi, ecx
mov dword [eax + 4], esi
add eax, 4
inc ecx
cmp eax, 0x4401ac
jl 0x41e749
mov dword [0x43f7ec], ecx
pop esi
ret

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

Disassembly:
mov eax, dword [0x43f7ec]
cmp eax, 0x270
jl 0x41e830
push esi
push edi
xor edx, edx
mov esi, 0x7fffffff
mov ecx, edx
mov eax, dword [ecx*4 + 0x43f7f4]
xor eax, dword [ecx*4 + 0x43f7f0]
and eax, esi
xor eax, dword [ecx*4 + 0x43f7f0]
mov edi, eax
shr eax, 1
and edi, 1
xor eax, dword [edi*4 + 0x43e380]
xor eax, dword [ecx*4 + 0x43fe24]
inc edx
mov dword [ecx*4 + 0x43f7f0], eax
cmp edx, 0xe3
jl 0x41e789
cmp edx, 0x26f
jge 0x41e802
lea ecx, [edx*4 + 0x43f7f0]
mov eax, dword [ecx]
xor eax, dword [ecx + 4]
and eax, esi
xor eax, dword [ecx]
mov edi, eax
and edi, 1
mov edi, dword [edi*4 + 0x43e380]
xor edi, dword [ecx - 0x38c]
shr eax, 1
xor edi, eax
mov dword [ecx], edi
add ecx, 4
cmp ecx, 0x4401ac
jl 0x41e7d6
mov ecx, dword [0x4401ac]
mov eax, dword [0x43f7f0]
xor eax, ecx
and eax, esi
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
xor eax, dword [ecx*4 + 0x43e380]
pop edi
xor eax, dword [0x43fe20]
pop esi
mov dword [0x4401ac], eax
xor eax, eax
mov ecx, dword [eax*4 + 0x43f7f0]
inc eax
mov dword [0x43f7ec], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
ret

Function at 0x41eb65
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
xor edi, edi
push edi
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
or eax, 0xffffffff
cmp esi, eax
je 0x41ebb6
lea eax, [ebp - 0x1c]
push eax
push esi
mov dword [ebp - 0x1c], 0x1c
call dword [sym.imp.KERNEL32.dll_Thread32First]
jmp 0x41eba9
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x41eb9e
inc edi
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x41eb95
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
leave
ret 4
Function at 0x41ed3b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
xor ecx, ecx
xor esi, esi
mov word [ebp - 4], cx
cmp eax, esi
jne 0x41ed68
push 0x44
lea eax, [ebp - 0x58]
push esi
push eax
call dword [sym.imp.msvcrt.dll_memset]
add esp, 0xc
mov dword [ebp - 0x58], 0x44
lea eax, [ebp - 0x58]
lea ecx, [ebp - 4]
cmp dword [ebp + 8], esi
je 0x41ed73
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x14]
push edx
push eax
push dword [ebp + 0xc]
push esi
push 0x4000000
push esi
push esi
push esi
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x41edba
cmp dword [ebp + 0x10], esi
je 0x41eda5
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x10]
call fcn.00421d23
jmp 0x41edb5
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x14]
call esi
mov eax, dword [ebp - 0xc]
jmp 0x41edbc
xor eax, eax
pop esi
leave
ret 0xc

Function at 0x41ee1c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push edi
xor edi, edi
push 0x408c74
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0xc], eax
cmp eax, edi
je 0x41ef03
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x408c80
push eax
call esi
push 0x408c98
push dword [ebp - 0xc]
mov ebx, eax
call esi
mov dword [ebp - 0x14], eax
cmp ebx, edi
je 0x41eef8
cmp eax, edi
je 0x41eef8
push edi
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], edi
call ebx
test eax, eax
jne 0x41ee81
mov dword [ebp - 8], edi
push 0x44
pop esi
xor eax, eax
push esi
mov word [ebp - 4], ax
lea eax, [ebp - 0x68]
push edi
push eax
call dword [sym.imp.msvcrt.dll_memset]
mov ecx, dword [ebp + 0xc]
add esp, 0xc
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x60], edi
cmp ecx, edi
jne 0x41eea9
lea ecx, [ebp - 4]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebp - 8]
push edi
push eax
neg eax
sbb eax, eax
and eax, 0x400
or eax, 0x4000000
push eax
push edi
push edi
push edi
push ecx
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x41eeed
push dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x24]
call esi
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 8], edi
je 0x41eef8
push dword [ebp - 8]
call dword [ebp - 0x14]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
pop ebx
mov eax, dword [ebp - 0x10]
pop edi
leave
ret 8

Function at 0x41ef2f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x41ef59
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x10]
jmp 0x41ef5b
xor eax, eax
pop ebp
ret 0xc
Function at 0x41efba
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x56c
push ebx
push edi
lea eax, [ebp - 0x24c]
push eax
push 0x408cec
call fcn.0040bbdd
test al, al
je 0x41f0cd
lea eax, [ebp - 0x350]
push eax
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.USER32.dll_CharToOemW]
lea eax, [ebp - 0x350]
push eax
push dword [ebp + 8]
lea eax, [ebp + 8]
push 0x408cf4
push eax
call fcn.0041bc92
add esp, 0x10
cmp eax, 0xffffffff
je 0x41f0c1
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x24c]
push eax
call fcn.0040bab5
push dword [ebp + 8]
mov bl, al
call fcn.00421ce7
test bl, bl
je 0x41f0c1
lea eax, [ebp - 0x24c]
push eax
push 0x408d14
mov ebx, 0x10e
lea edi, [ebp - 0x56c]
call fcn.0041bb91
pop ecx
pop ecx
cmp eax, 0xffffffff
jle 0x41f0c1
push 0x104
lea eax, [ebp - 0x24c]
push eax
push 0x408d24
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0x102
ja 0x41f0c1
push 0x44
xor edi, edi
lea eax, [ebp - 0x44]
push edi
push eax
call dword [sym.imp.msvcrt.dll_memset]
add esp, 0xc
xor eax, eax
mov word [ebp - 0x14], ax
push edi
lea eax, [ebp - 0x44]
push eax
push edi
lea eax, [ebp - 0x56c]
push eax
lea eax, [ebp - 0x24c]
push eax
mov dword [ebp - 0x44], 0x44
mov dword [ebp - 0x18], 1
call fcn.0041edc1
neg eax
sbb eax, eax
neg eax
jmp 0x41f0cf
lea eax, [ebp - 0x24c]
push eax
call fcn.0042ec57
xor al, al
pop edi
pop ebx
leave
ret 4

Function at 0x41f93f
Capabilities:
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov eax, esi
call fcn.0041f9ca
mov eax, dword [ebp + 8]
xor ebx, ebx
xor edi, edi
cmp eax, ebx
jne 0x41f95d
call fcn.0041fd80
mov edi, eax
push ebx
push ebx
push ebx
push dword [ebp + 0x14]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
push edi
mov dword [esi], eax
call fcn.00421ce7
cmp dword [esi], ebx
jne 0x41f97a
xor al, al
jmp 0x41f9c4
mov edi, 0x405394
mov dword [ebp + 8], 4
push 4
lea eax, [edi + 4]
push eax
push dword [edi]
push dword [esi]
call dword [sym.imp.WININET.dll_InternetSetOptionA]
add edi, 8
dec dword [ebp + 8]
jne 0x41f986
push ebx
push ebx
push 3
push ebx
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi]
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [esi + 4], eax
cmp eax, ebx
jne 0x41f9c2
mov eax, esi
call fcn.0041f9ca
jmp 0x41f976
mov al, 1
pop edi
pop ebx
pop ebp
ret 0x10
Function at 0x41fa09
Capabilities:
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push ebx
push esi
mov dword [ebp - 4], eax
and dword [ebp - 4], 2
push edi
mov esi, ecx
mov edi, 0x840cff00
je 0x41fa2a
mov edi, 0x844cff00
test al, 4
je 0x41fa34
or edi, 0x800000
mov ebx, 0x408d38
test al, 1
jne 0x41fa42
mov ebx, 0x408d40
call fcn.0041f9f6
push 0
push edi
push 0x43e388
push 0
push 0x408d44
push dword [ebp + 8]
push ebx
push dword [esi + 4]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [esi + 8], eax
test eax, eax
je 0x41fb63
push 4
lea ecx, [ebp + 8]
push ecx
push 0x4d
push eax
mov dword [ebp + 8], 1
call dword [sym.imp.WININET.dll_InternetSetOptionA]
call fcn.00422f39
mov edi, dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
mov ebx, 0xa0000000
cmp al, 4
jne 0x41faa5
call fcn.00422f7d
test al, al
je 0x41fb2a
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x107]
push eax
mov dword [ebp + 8], pe_nt_image_headers32
call dword [sym.imp.SHLWAPI.dll_GetAcceptLanguagesA]
test eax, eax
jne 0x41fb2a
mov eax, 0xff
cmp dword [ebp + 8], eax
cmovb eax, dword [ebp + 8]
mov byte [ebp + eax - 0x107], 0
lea eax, [ebp - 0x107]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp + 8], eax
test eax, eax
je 0x41fb2a
push 0x11
lea eax, [ebp - 0x118]
push 0x408d50
push eax
call dword [sym.imp.msvcrt.dll_memcpy]
mov eax, dword [ebp + 8]
add esp, 0xc
push 0x407794
lea eax, [ebp + eax - 0x107]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp + 8]
push ebx
add eax, 0x13
push eax
lea eax, [ebp - 0x118]
push eax
push dword [esi + 8]
call edi
cmp dword [ebp - 4], 0
jne 0x41fb42
push ebx
push 0x13
push 0x408d64
push dword [esi + 8]
call edi
cmp eax, 1
jne 0x41fb5e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 0
push dword [esi + 8]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
cmp eax, 1
jne 0x41fb5e
mov al, al
jmp 0x41fb65
call fcn.0041f9f6
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x41fb6c
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, eax
push edi
test esi, esi
je 0x41fb88
push 8
push 0
push esi
call dword [sym.imp.msvcrt.dll_memset]
add esp, 0xc
and dword [ebp - 8], 0
mov edi, 0x1000
push edi
call fcn.00421cc7
mov ebx, eax
test ebx, ebx
je 0x41fc2c
cmp dword [ebp + 0x10], 0
je 0x41fbb9
push 0
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x41fc1b
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push edi
push ebx
push dword [eax + 8]
mov dword [ebp - 4], edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x41fc1b
mov eax, dword [ebp - 4]
test eax, eax
je 0x41fc11
add dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0xc]
ja 0x41fc1b
test esi, esi
je 0x41fba1
mov ecx, dword [esi + 4]
add ecx, eax
call fcn.00421c25
test al, al
je 0x41fc1b
push dword [ebp - 4]
mov eax, dword [esi]
add eax, dword [esi + 4]
push ebx
push eax
call dword [sym.imp.msvcrt.dll_memcpy]
mov eax, dword [ebp - 4]
add esp, 0xc
add dword [esi + 4], eax
jmp 0x41fba1
push ebx
call fcn.00421ce7
mov al, 1
jmp 0x41fc2e
push ebx
call fcn.00421ce7
test esi, esi
je 0x41fc2c
push dword [esi]
call fcn.00421ce7
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x41fc35
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, 0x14
push ebx
push edi
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push dword [ebp + 0xc]
mov byte [ebp - 1], bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41fd03
push esi
mov esi, 0x1000
push esi
call fcn.00421cc7
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x41fcee
mov dword [ebp - 8], ebx
cmp dword [ebp + 0x10], ebx
je 0x41fc92
push ebx
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x41fce6
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push esi
push dword [ebp - 0xc]
push dword [eax + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x41fce6
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x41fcdb
add dword [ebp - 8], eax
cmp dword [ebp - 8], 0xa00000
ja 0x41fce6
push ebx
lea ecx, [ebp - 0x14]
push ecx
push eax
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41fce6
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
je 0x41fc7c
jmp 0x41fce6
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov byte [ebp - 1], 1
push dword [ebp - 0xc]
call fcn.00421ce7
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
cmp byte [ebp - 1], bl
jne 0x41fd03
push dword [ebp + 0xc]
call fcn.0042ec57
mov al, byte [ebp - 1]
pop edi
pop ebx
leave
ret 0xc
Function at 0x4200cb
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
cmp dword [ebp + 0xc], 0xffffffff
je 0x42017b
test byte [ebp + 0x14], 2
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xa8]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], 0x80
je 0x42010b
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x420113
or eax, 0xffffffff
jmp 0x4201dd
call dword [sym.imp.WS2_32.dll_getsockname]
jmp 0x4200ff
cmp word [ebp - 0xa8], 2
jne 0x420147
push 4
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp + 0xf], 1
call fcn.00421d23
push 2
lea eax, [ebp - 0xa6]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00421d23
jmp 0x42019d
cmp word [ebp - 0xa8], 0x17
jne 0x420103
push 0x10
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp + 0xf], 4
call fcn.00421d23
push 2
lea eax, [ebp - 0xa6]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00421d23
jmp 0x420190
push 0x1c
lea eax, [ebp - 0x20]
push eax
call fcn.00421ddc
test byte [ebp + 0x14], 1
je 0x420199
mov byte [ebp + 0xf], 4
mov dword [ebp - 4], 0x12
jmp 0x4201a4
mov byte [ebp + 0xf], 1
mov dword [ebp - 4], 6
mov al, byte [ebp + 0x10]
mov byte [ebp + 0xd], al
push 4
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp + 0xc], 5
mov byte [ebp + 0xe], 0
call fcn.00421d23
mov eax, dword [ebp - 4]
add eax, 4
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 8]
call fcn.0041598f
xor ecx, ecx
test al, al
setne cl
mov eax, ecx
leave
ret 0x10
Function at 0x420ac7
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
cmp dword [ebp + 0xc], 0xffffffff
je 0x420b0e
test byte [ebp + 0x14], 2
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], 0x10
je 0x420afa
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x420b02
or eax, 0xffffffff
jmp 0x420b39
call dword [sym.imp.WS2_32.dll_getsockname]
jmp 0x420af1
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
mov ax, word [ebp - 0x1a]
jmp 0x420b14
and dword [ebp - 8], 0
xor eax, eax
mov word [ebp - 0xa], ax
mov al, byte [ebp + 0x10]
mov byte [ebp - 0xb], al
push 8
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
mov byte [ebp - 0xc], 0
call fcn.0041598f
xor ecx, ecx
test al, al
setne cl
mov eax, ecx
leave
ret 0x10
Function at 0x420f9f
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
push ebx
push esi
push edi
push 0
lea eax, [ebp - 0xd0]
push eax
push 0xff220823
call fcn.00413297
lea esi, [ebp - 0x68]
mov eax, 0xb8
call fcn.00413de7
xor bl, bl
mov edi, 0x80000001
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x68]
push eax
push edi
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
test eax, eax
jne 0x42102b
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 4]
push eax
push 1
push 0
lea eax, [ebp - 0x68]
push eax
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42101e
lea eax, [ebp - 0xd0]
push eax
lea esi, [ebp - 4]
call fcn.00417ad0
jmp 0x421020
xor al, al
test al, al
je 0x421032
inc bl
cmp bl, 5
jb 0x420fd2
xor al, al
pop edi
pop esi
pop ebx
leave
ret
mov al, 1
jmp 0x42102d

Function at 0x4217b9
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push 7
push 0x80000000
push dword [ebp + 0xc]
mov ebx, eax
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x42181c
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00421036
test al, al
jne 0x421839
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], edi
je 0x42180e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 8], edi
je 0x42181c
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], edi
je 0x421830
cmp dword [ebp - 0xc], 0xffffffff
je 0x421830
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8
mov eax, dword [ebx + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp + 0xc], eax
cmp dword [ebp - 4], edi
je 0x42184f
push dword [ebp - 4]
call esi
push dword [ebp + 0xc]
push edi
push edi
push 4
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 4], eax
cmp eax, edi
je 0x42180e
push dword [ebx + 0x20]
push eax
push dword [ebp + 8]
call fcn.004215a1
push dword [ebp - 4]
mov bl, al
call esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], edi
je 0x421889
push dword [ebp - 8]
call esi
cmp dword [ebp - 0xc], edi
je 0x421899
cmp dword [ebp - 0xc], 0xffffffff
je 0x421899
push dword [ebp - 0xc]
call esi
mov al, bl
jmp 0x421832
Function at 0x421afc
Capabilities:
Create thread
Resume thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [edi + 0xc]
push esi
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
cmp dword [edi + 8], ebx
jne 0x421ba9
cmp dword [ebp + 0xc], ebx
je 0x421ba9
mov ecx, dword [edi]
lea esi, [edi + 4]
lea ecx, [ecx*4 + 4]
mov dword [ebp - 4], esi
call fcn.00421c25
test al, al
je 0x421ba9
push ebx
push 4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
cmp esi, ebx
je 0x421b85
cmp dword [ebp + 0x14], ebx
je 0x421b94
push 2
push ebx
push ebx
push dword [ebp + 0x14]
push 0xffffffffffffffff
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x421b94
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [edi]
mov esi, dword [ebp - 4]
shl ecx, 2
call fcn.00421c25
jmp 0x421ba9
mov eax, dword [edi]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
mov dword [ecx + eax*4], esi
inc dword [edi]
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov bl, 1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
leave
ret 0x10

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
mov edi, ecx
mov cl, byte [eax + 0x100]
mov byte [ebp - 1], cl
mov cl, byte [eax + 0x101]
mov byte [ebp - 2], cl
test edx, edx
je 0x42221a
mov ecx, dword [ebp + 8]
sub ecx, edi
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp + 8], edx
push esi
inc byte [ebp - 1]
movzx esi, byte [ebp - 1]
mov dl, byte [esi + eax]
add byte [ebp - 2], dl
movzx ecx, byte [ebp - 2]
mov bl, byte [ecx + eax]
mov byte [esi + eax], bl
mov byte [ecx + eax], dl
movzx ecx, byte [esi + eax]
movzx edx, dl
add ecx, edx
mov edx, dword [ebp - 8]
and ecx, 0xff
mov cl, byte [ecx + eax]
xor cl, byte [edx + edi]
mov byte [edi], cl
inc edi
dec dword [ebp + 8]
jne 0x4221de
pop esi
pop ebx
mov cl, byte [ebp - 1]
mov byte [eax + 0x100], cl
mov cl, byte [ebp - 2]
mov byte [eax + 0x101], cl
pop edi
leave
ret 4