joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d79e
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ecx, ecx
xor bl, bl
call fcn.0041c5e2
test al, al
je 0x41d86b
lea eax, [ebp - 8]
push eax
mov byte [ebp - 0x10], bl
mov byte [ebp - 0xc], 1
mov byte [ebp - 1], bl
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test eax, eax
je 0x41d85a
xor edx, edx
cmp dword [ebp - 8], edx
jle 0x41d81f
mov ecx, dword [eax + edx*4]
test ecx, ecx
je 0x41d819
cmp word [ecx], 0x2d
jne 0x41d819
movzx ecx, word [ecx + 2]
cmp ecx, 0x66
je 0x41d815
cmp ecx, 0x69
je 0x41d811
cmp ecx, 0x6e
je 0x41d80b
cmp ecx, 0x76
jne 0x41d819
mov byte [ebp - 1], 1
jmp 0x41d819
mov byte [ebp - 0xc], 0
jmp 0x41d819
mov bl, 1
jmp 0x41d819
mov byte [ebp - 0x10], 1
inc edx
cmp edx, dword [ebp - 8]
jl 0x41d7e0
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
test bl, bl
je 0x41d831
call fcn.0041d13b
jmp 0x41d865
cmp byte [ebp - 1], 0
je 0x41d85a
call fcn.00412f41
call fcn.00417799
test byte [0x42ac78], 4
mov bl, al
je 0x41d867
push 0
mov eax, 0x42a598
call fcn.00412dba
jmp 0x41d867
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call fcn.0041d348
mov bl, al
test bl, bl
jne 0x41d88a
push 0x10
push 0
push 0x408f18
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
test bl, bl
sete al
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
test byte [0x42ac78], 2
je 0x41d87c
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_Sleep]
pop ebx
leave
ret

Function at 0x41fab4
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push 0xf0000040
push 1
xor ebx, ebx
push ebx
push ebx
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 1], bl
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x41fb40
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 0x8003
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
cmp eax, 1
jne 0x41fb36
push ebx
push dword [ebp + 0x10]
mov dword [ebp - 0xc], 0x10
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
cmp eax, 1
jne 0x41fb2d
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
push 2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp eax, 1
jne 0x41fb2d
cmp dword [ebp - 0xc], 0x10
jne 0x41fb2d
mov byte [ebp - 1], al
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, byte [ebp - 1]
pop ebx
leave
ret 0xc
Function at 0x41fb48
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [0x42bf3c]
cmp eax, 0x270
jl 0x41fa80
push esi
push edi
xor edx, edx
mov esi, accept
mov ecx, edx
mov eax, dword [ecx*4 + 0x42b574]
xor eax, dword [ecx*4 + 0x42b570]
and eax, esi
xor eax, dword [ecx*4 + 0x42b570]
mov edi, eax
shr eax, 1
and edi, 1
xor eax, dword [edi*4 + 0x42a3a0]
xor eax, dword [ecx*4 + 0x42bba4]
inc edx
mov dword [ecx*4 + 0x42b570], eax
cmp edx, 0xe3
jl 0x41f9d9
cmp edx, 0x26f
jge 0x41fa52
lea ecx, [edx*4 + 0x42b570]
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 + 0x42a3a0]
xor edi, dword [ecx - 0x38c]
shr eax, 1
xor edi, eax
mov dword [ecx], edi
add ecx, 4
cmp ecx, 0x42bf2c
jl 0x41fa26
mov ecx, dword [0x42bf2c]
mov eax, dword [0x42b570]
xor eax, ecx
and eax, esi
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
xor eax, dword [ecx*4 + 0x42a3a0]
pop edi
xor eax, dword [0x42bba0]
pop esi
mov dword [0x42bf2c], eax
xor eax, eax
mov ecx, dword [eax*4 + 0x42b570]
inc eax
mov dword [0x42bf3c], 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
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x42b568]
je 0x41fb8f
xor ecx, ecx
mov dword [0x42b568], eax
mov dword [0x42b570], eax
inc ecx
mov eax, 0x42b570
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, 0x42bf2c
jl 0x41fb69
mov dword [0x42bf3c], ecx
pop esi
jmp 0x41f9c0

Function at 0x41fbbe
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp byte [0x42a432], 0
jne 0x41fbf7
xor ecx, ecx
push 8
mov eax, ecx
pop edx
test al, 1
je 0x41fbdb
shr eax, 1
xor eax, 0xedb88320
jmp 0x41fbdd
shr eax, 1
dec edx
jne 0x41fbce
mov dword [ecx*4 + 0x42b168], eax
inc ecx
cmp ecx, 0x100
jb 0x41fbc9
mov byte [0x42a432], 1
xor ecx, ecx
or eax, 0xffffffff
cmp dword [esp + 8], ecx
jbe 0x41fc23
mov edx, dword [esp + 4]
movzx edx, byte [ecx + edx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x42b168]
inc ecx
cmp ecx, dword [esp + 8]
jb 0x41fc02
not eax
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov cl, byte [eax + 0x100]
push edi
mov byte [ebp - 1], cl
mov cl, byte [eax + 0x101]
xor edi, edi
mov byte [ebp - 2], cl
cmp dword [ebp + 0xc], edi
jbe 0x41fce5
push ebx
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 esi, byte [esi + eax]
mov ecx, dword [ebp + 8]
movzx edx, dl
add esi, edx
and esi, 0xff
mov dl, byte [esi + eax]
xor byte [ecx + edi], dl
inc edi
cmp edi, dword [ebp + 0xc]
jb 0x41fcab
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 8
Function at 0x41fe84
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 0x41fed5
lea eax, [ebp - 0x1c]
push eax
push esi
mov dword [ebp - 0x1c], 0x1c
call dword [sym.imp.KERNEL32.dll_Thread32First]
jmp 0x41fec8
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x41febd
inc edi
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x41feb4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
leave
ret 4

Function at 0x420056
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 0x42007d
push 0x44
pop edx
push edx
push esi
lea eax, [ebp - 0x58]
push eax
call fcn.0041e8b4
mov dword [ebp - 0x58], edx
lea eax, [ebp - 0x58]
lea ecx, [ebp - 4]
cmp dword [ebp + 8], esi
je 0x420088
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 0x4200cf
cmp dword [ebp + 0x10], esi
je 0x4200ba
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x10]
call fcn.0041e83d
jmp 0x4200ca
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 0x4200d1
xor eax, eax
pop esi
leave
ret 0xc
Function at 0x420131
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
xor ebx, ebx
push 0x40928c
mov byte [ebp - 1], bl
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x420215
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
push 0x409298
push eax
call esi
push 0x4092b0
push dword [ebp - 0x10]
mov edi, eax
call esi
mov dword [ebp - 0x14], eax
cmp edi, ebx
je 0x42020a
cmp eax, ebx
je 0x42020a
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0xc], ebx
call edi
test eax, eax
jne 0x420196
mov dword [ebp - 0xc], ebx
push 0x44
pop edx
xor eax, eax
push edx
mov word [ebp - 8], ax
push ebx
lea eax, [ebp - 0x68]
push eax
call fcn.0041e8b4
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x60], ebx
cmp ecx, ebx
jne 0x4201ba
lea ecx, [ebp - 8]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebp - 0xc]
push ebx
push eax
neg eax
sbb eax, eax
and eax, 0x400
or eax, 0x4000000
push eax
push ebx
push ebx
push ebx
push ecx
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x4201ff
push dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x24]
call esi
cmp dword [ebp - 0x1c], ebx
setne byte [ebp - 1]
cmp dword [ebp - 0xc], ebx
je 0x42020a
push dword [ebp - 0xc]
call dword [ebp - 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
movzx eax, byte [ebp - 1]
pop ebx
leave
ret 8

Function at 0x420244
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 0x42026e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x10]
jmp 0x420270
xor eax, eax
pop ebp
ret 0xc
Function at 0x4202cf
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x56c
lea eax, [ebp - 0x24c]
push eax
push 0x4092ec
call fcn.00424009
test al, al
je 0x4203dd
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 0x4092f4
push eax
call fcn.0041f5d3
add esp, 0x10
cmp eax, 0xffffffff
je 0x4203d1
push ebx
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x24c]
push eax
call fcn.00423e3d
push dword [ebp + 8]
mov bl, al
call fcn.0041e801
test bl, bl
pop ebx
je 0x4203d1
push edi
lea eax, [ebp - 0x24c]
push eax
push 0x409314
mov edx, 0x10e
lea edi, [ebp - 0x56c]
call fcn.0041f4f4
pop ecx
pop ecx
pop edi
cmp eax, 0xffffffff
jle 0x4203d1
push 0x104
lea eax, [ebp - 0x24c]
push eax
push 0x409324
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0x102
ja 0x4203d1
push 0x44
pop edx
push edx
push 0
lea eax, [ebp - 0x44]
push eax
call fcn.0041e8b4
xor eax, eax
push eax
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x44]
push eax
push 0
lea eax, [ebp - 0x56c]
push eax
lea eax, [ebp - 0x24c]
push eax
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x18], 1
call fcn.004200d6
test eax, eax
setne al
jmp 0x4203df
lea eax, [ebp - 0x24c]
push eax
call fcn.00423fe8
xor al, al
leave
ret 4

Function at 0x4203e3
Capabilities:
Get common file path
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push esi
push edi
xor esi, esi
push esi
mov edi, 0x42bf58
push edi
call fcn.004222b1
push esi
mov ebx, 0x80
push ebx
push 4
push esi
push 1
push 0x40040000
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
call edi
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x420487
mov eax, dword [0x42bf40]
cmp eax, esi
je 0x420431
cmp eax, 3
jne 0x4204bd
xor eax, eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x218]
push eax
push esi
push esi
push esi
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x218]
push eax
push eax
mov eax, 0x409334
call fcn.00424512
push esi
lea eax, [ebp - 0x218]
push eax
call fcn.004222b1
push esi
push ebx
push 4
push esi
push 1
push 0xc0000000
lea eax, [ebp - 0x218]
push eax
call edi
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x4204bd
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4204bd
cmp dword [ebp - 0xc], esi
jne 0x4204bd
cmp dword [ebp - 0x10], esi
jne 0x4204bd
push esi
lea eax, [ebp - 0x10]
push eax
push 3
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], 0xbfbbef
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4204c5
Capabilities:
Get common file path

Disassembly:
push esi
push edi
mov edi, 0x42bf44
mov esi, 0x42c168
call fcn.0042221f
test eax, eax
setne al
mov byte [0x42a433], al
call fcn.0041ff63
movzx eax, al
xor ecx, ecx
mov dword [0x42bf40], eax
cmp eax, ecx
je 0x42051e
cmp eax, 3
je 0x42051e
mov esi, 0x42bf58
push esi
push ecx
push ecx
push ecx
xor eax, eax
push ecx
mov word [0x42bf58], ax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push esi
push esi
mov eax, 0x409334
call fcn.00424512
jmp 0x42053f
mov ecx, 0x409348
call fcn.0041f350
add eax, eax
push eax
push ecx
push 0x42bf58
call fcn.0041e83d
xor ecx, ecx
mov word [eax + 0x42bf58], cx
pop edi
pop esi
ret
Function at 0x4207c6
Capabilities:
Connect to http server
Create http request

Disassembly:
push ebx
push edi
xor edi, edi
cmp ecx, edi
jne 0x4207d3
mov ecx, 0x4095c0
push edi
push edi
not eax
push edi
and eax, 1
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebx, eax
cmp ebx, edi
je 0x42082b
push esi
xor esi, esi
push 4
lea eax, [esi + 0x42a00c]
push eax
push dword [esi + 0x42a008]
push ebx
call dword [sym.imp.WININET.dll_InternetSetOptionA]
add esi, 8
cmp esi, 0x18
jb 0x4207ec
push edi
push edi
push 3
push edi
push edi
push dword [esp + 0x28]
push dword [esp + 0x28]
push ebx
call dword [sym.imp.WININET.dll_InternetConnectA]
pop esi
cmp eax, edi
jne 0x42082d
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
pop edi
pop ebx
ret 8

Function at 0x4208f7
Capabilities:
Check http status code
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x18]
and ebx, 2
push esi
push edi
mov esi, 0x8404f700
je 0x42090f
mov esi, 0x8444f700
test byte [ebp + 0x18], 4
je 0x42091b
or esi, 0x800000
push dword [ebp + 0xc]
xor edi, edi
push 0x4096bc
push edi
push 0x86
push 0x409650
push 0x4096d4
call fcn.00420542
add esp, 0x18
test byte [ebp + 0x18], 1
mov eax, 0x4067cc
jne 0x42094d
mov eax, 0x4067d4
push edi
push esi
push section..data
push edi
push 0x40199c
push dword [ebp + 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
cmp esi, edi
je 0x4209c9
cmp ebx, edi
je 0x420977
xor eax, eax
xor ecx, ecx
jmp 0x42097f
push 0x13
mov eax, 0x4096ec
pop ecx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ecx
push eax
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x4209c2
push edi
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 0x18]
push eax
push 0x20000013
push esi
mov dword [ebp + 0x18], edi
mov dword [ebp + 0xc], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x4209c2
cmp dword [ebp + 0x18], 0xc8
jne 0x4209c2
mov eax, esi
jmp 0x4209cb
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x4209d2
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor edi, edi
mov eax, 0xa00000
cmp ebx, edi
je 0x4209eb
cmp ebx, eax
jbe 0x4209ed
mov ebx, eax
mov dword [ebp - 8], edi
cmp dword [ebp + 0x10], 0
je 0x420a08
push 0
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x420a49
lea ecx, [edi + 0x1000]
lea esi, [ebp - 8]
mov dword [ebp - 4], 0x1000
call fcn.0041e78c
test al, al
je 0x420a49
mov esi, dword [ebp - 8]
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
lea eax, [esi + edi]
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x420a49
cmp dword [ebp - 4], 0
je 0x420a5a
add edi, dword [ebp - 4]
cmp edi, ebx
jbe 0x4209f0
push dword [ebp - 8]
call fcn.0041e801
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0xc
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x420a68
mov dword [eax], esi
mov dword [eax + 4], edi
jmp 0x420a6e
push esi
call fcn.0041e801
mov al, 1
jmp 0x420a53

Function at 0x420a72
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 0x420b3d
mov eax, 0x1000
call fcn.0041e7d1
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x420b29
mov dword [ebp - 0xc], ebx
cmp dword [ebp + 0x14], ebx
je 0x420acd
push ebx
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x420b21
lea eax, [ebp - 8]
push eax
push 0x1000
push dword [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x420b21
cmp dword [ebp - 8], ebx
je 0x420b16
push ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
push dword [ebp - 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x420b21
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x14]
jne 0x420b21
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x10]
jbe 0x420ab7
jmp 0x420b21
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov byte [ebp - 1], 1
push dword [ebp - 0x10]
call fcn.0041e801
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 1], bl
jne 0x420b3d
push dword [ebp + 0xc]
call fcn.00423fe8
mov al, byte [ebp - 1]
pop edi
pop ebx
leave
ret 0x10
Function at 0x420e70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [eax]
sub edx, dword [ebp + 8]
xor ecx, ecx
sub esp, 0xc
mov dword [eax + 0x40], edx
mov dword [eax + 0x44], ecx
cmp dword [ebp + 8], ecx
jbe 0x420f03
mov edx, dword [eax + 0x4c]
mov dword [ebp - 4], edx
mov edx, dword [eax + 0x58]
push ebx
push esi
mov esi, dword [eax + 0x54]
mov dword [ebp - 8], edx
mov edx, dword [eax + 0x5c]
push edi
mov edi, dword [eax + 0x50]
mov dword [ebp - 0xc], edx
mov edx, dword [eax + 0x48]
sub edi, esi
movzx ebx, byte [edx + ecx]
movzx eax, byte [edx + ecx + 1]
shl ebx, 5
xor eax, ebx
movzx ebx, byte [edx + ecx + 2]
dec dword [ebp + 8]
shl eax, 5
xor eax, ebx
mov ebx, dword [ebp - 4]
imul eax, eax, 0x9f5f
shr eax, 5
and eax, 0xffff
mov ebx, dword [ebx + eax*4]
mov dword [edi + esi], ebx
mov ebx, dword [ebp - 4]
mov dword [ebx + eax*4], ecx
mov ebx, dword [ebp - 8]
mov dword [esi], 0x801
inc dword [ebx + eax*4]
movzx eax, word [edx + ecx]
mov ebx, dword [ebp - 0xc]
mov dword [ebx + eax*4], ecx
inc ecx
add esi, 4
cmp dword [ebp + 8], 0
ja 0x420ea8
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x421333
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
jbe 0x4213b4
push ebx
push esi
mov esi, dword [edi + 0x34]
mov edx, edi
call fcn.00421164
mov ecx, dword [edi + 0x30]
mov eax, dword [edi + 0x48]
lea edx, [ecx + eax]
movzx eax, byte [edx]
movzx esi, byte [edx + 1]
shl eax, 5
xor eax, esi
movzx esi, byte [edx + 2]
mov ebx, dword [edi + 0x50]
shl eax, 5
xor eax, esi
mov esi, dword [edi + 0x4c]
imul eax, eax, 0x9f5f
shr eax, 5
and eax, 0xffff
shl eax, 2
add esi, eax
mov dword [ebp - 4], esi
mov esi, dword [esi]
mov dword [ebx + ecx*4], esi
mov esi, dword [ebp - 4]
mov dword [esi], ecx
mov esi, dword [edi + 0x54]
mov dword [esi + ecx*4], 0x801
mov esi, dword [edi + 0x58]
inc dword [eax + esi]
movzx eax, word [edx]
mov edx, dword [edi + 0x5c]
mov dword [edx + eax*4], ecx
mov eax, edi
call fcn.004212c7
dec dword [ebp + 8]
jne 0x42133f
pop esi
pop ebx
leave
ret 4

Function at 0x421b73
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push esi
cmp ecx, 0xffffffff
je 0x421b99
xor edx, edx
mov eax, ecx
mov esi, 0x3e8
div esi
imul edx, edx, 0x3e8
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
inc ecx
neg ecx
sbb ecx, ecx
lea eax, [ebp - 8]
and ecx, eax
push ecx
xor esi, esi
push esi
push esi
lea eax, [ebp - 0x10c]
push eax
push esi
mov dword [ebp - 0x10c], 1
mov dword [ebp - 0x108], ebx
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 1
je 0x421bd0
or eax, 0xffffffff
jmp 0x421bde
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [sym.imp.WS2_32.dll_recv]
pop esi
leave
ret 8
Function at 0x421be3
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, eax
mov ebx, ecx
cmp dword [ebp + 0xc], 0
jbe 0x421c00
mov ecx, dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00421b73
jmp 0x421c0d
push 0
push esi
push dword [ebp + 8]
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x421c27
add dword [ebp + 8], eax
sub esi, eax
test esi, esi
jg 0x421bec
xor eax, eax
test esi, esi
sete al
pop esi
pop ebx
pop ebp
ret 8
xor al, al
jmp 0x421c21

Function at 0x421c5a
Capabilities:
Send data
Send data on socket

Disassembly:
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, dword [esp + 0xc]
sete al
ret 0xc

Function at 0x421c78
Capabilities:
Connect socket

Disassembly:
movzx eax, word [edi]
push esi
push 6
push 1
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x421cb5
xor eax, eax
cmp word [edi], 2
setne al
dec eax
and eax, 0xfffffff4
add eax, 0x1c
push eax
push edi
push esi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x421cb5
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or esi, 0xffffffff
mov eax, esi
pop esi
ret

Function at 0x421cb9
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
rol ax, 8
movzx ebx, ax
xor edi, edi
lea eax, [ebp + 8]
push eax
push edi
push edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x421cea
or eax, 0xffffffff
jmp 0x421d6c
push esi
mov esi, dword [ebp + 8]
jmp 0x421d1e
mov eax, dword [esi + 4]
cmp eax, 2
jne 0x421d08
push dword [esi + 0x10]
push dword [esi + 0x18]
call fcn.0041e854
mov dword [ebp - 4], eax
jmp 0x421d1b
cmp eax, 0x17
jne 0x421d1b
push dword [esi + 0x10]
push dword [esi + 0x18]
call fcn.0041e854
mov dword [ebp - 8], eax
mov esi, dword [esi + 0x1c]
cmp esi, edi
jne 0x421cf0
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, dword [ebp - 4]
or esi, 0xffffffff
cmp eax, edi
je 0x421d42
mov edi, eax
mov word [eax + 2], bx
call fcn.00421c78
mov esi, eax
mov edi, dword [ebp - 8]
test edi, edi
je 0x421d59
cmp esi, 0xffffffff
jne 0x421d59
mov word [edi + 2], bx
call fcn.00421c78
mov esi, eax
push dword [ebp - 4]
call fcn.0041e801
push dword [ebp - 8]
call fcn.0041e801
mov eax, esi
pop esi
pop edi
pop ebx
leave
ret 4