joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10017368
Capabilities:
Get hostname

Disassembly:
push 0x16c
mov eax, 0x100463d4
call fcn.10020c22
mov esi, edx
mov eax, ecx
mov dword [ebp - 0x178], eax
mov dword [ebp - 0x170], eax
mov dword [ebp - 0x170], eax
call fcn.10003536
push eax
lea ecx, [ebp - 0x16c]
call fcn.10002cfd
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.10003536
push eax
lea ecx, [ebp - 0x168]
call fcn.10002cfd
mov byte [ebp - 4], 1
call fcn.10003536
push eax
lea ecx, [ebp - 0x164]
call fcn.10002cfd
mov byte [ebp - 4], 2
lea edi, [ebp - 0x20]
xor eax, eax
mov ecx, 0x1000
stosd dword es:[edi], eax
mov dword [ebp - 0x174], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x174]
push eax
push ecx
lea ecx, [ebp - 0x168]
call fcn.100030db
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x168]
call fcn.10004a6b
push esi
lea eax, [ebp - 0x168]
push eax
lea eax, [ebp - 0x170]
push eax
call fcn.1000482b
add esp, 0xc
push eax
lea ecx, [ebp - 0x164]
mov byte [ebp - 4], 3
call fcn.100049f7
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x170]
lea ecx, [ecx - 0x10]
call fcn.100035e1
push 3
push dword [ebp - 0x164]
lea eax, [ebp - 0xdc]
lea ecx, [ebp - 0xe0]
mov dword [ebp - 0xe0], eax
call fcn.100027cb
mov byte [ebp - 4], 4
push dword [ebp - 0xe0]
call fcn.100028c9
pop ecx
push eax
push dword [ebp - 0xe0]
lea ecx, [ebp - 0x16c]
call fcn.10002c83
lea eax, [ebp - 0xdc]
mov byte [ebp - 4], 2
cmp dword [ebp - 0xe0], eax
je 0x100174a0
push dword [ebp - 0xe0]
call fcn.10025d2a
pop ecx
lea eax, [ebp - 0xb8]
push eax
call fcn.10004a97
mov eax, dword [ebp - 0x16c]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.1000535d
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.10005403
mov esi, str.0123456789ABCDEF
lea edi, [ebp - 0x34]
add esp, 0x18
mov edx, ebx
xor eax, eax
movsd dword es:[edi], dword [esi]
push 8
pop ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x58]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
cmp edx, 0x21
jae 0x1001751a
movzx ecx, byte [ebp + ebx - 0x20]
mov eax, ecx
and ecx, 0xf
shr eax, 4
inc ebx
mov al, byte [ebp + eax - 0x34]
mov byte [ebp + edx - 0x58], al
mov al, byte [ebp + ecx - 0x34]
mov byte [ebp + edx - 0x57], al
add edx, 2
cmp ebx, 0x10
jb 0x100174ef
lea eax, [ebp - 0x15c]
mov dword [ebp - 0x160], eax
lea ecx, [ebp - 0x160]
push 3
lea eax, [ebp - 0x58]
push eax
call fcn.10002992
mov byte [ebp - 4], 5
push dword [ebp - 0x160]
call fcn.10002e2a
pop ecx
push eax
push dword [ebp - 0x160]
lea ecx, [ebp - 0x164]
call fcn.10003241
lea eax, [ebp - 0x15c]
mov byte [ebp - 4], 2
cmp dword [ebp - 0x160], eax
je 0x10017577
push dword [ebp - 0x160]
call fcn.10025d2a
pop ecx
mov esi, dword [ebp - 0x178]
lea ecx, [ebp - 0x164]
push 0x10
push 0xa
push esi
call fcn.1000496f
mov ecx, dword [ebp - 0x164]
lea ecx, [ecx - 0x10]
call fcn.100035e1
mov ecx, dword [ebp - 0x168]
add ecx, 0xfffffff0
call fcn.100035e1
mov ecx, dword [ebp - 0x16c]
add ecx, 0xfffffff0
call fcn.100035e1
mov eax, esi
call fcn.10020bcc
ret
Function at 0x100176f0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
mov esi, ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0x3b8], eax
test eax, eax
jne 0x10017711
xor eax, eax
jmp 0x1001772a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10017727
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
jmp 0x1001770d
xor eax, eax
inc eax
pop esi
pop ebp
ret 4

Function at 0x10017c22
Capabilities:
Check mutex on windows

Disassembly:
push 0xc
mov eax, 0x10045982
call fcn.10020bee
push str.Coupon
lea ecx, [ebp - 0x10]
call fcn.10002f61
push str.CouponMiniNews
lea eax, [ebp - 0x10]
xor edi, edi
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 4], edi
push eax
call fcn.1000482b
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
mov edx, dword [eax]
call fcn.10017368
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.100035e1
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.100035e1
mov esi, dword [ebp - 0x18]
push esi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
test ebx, ebx
je 0x10017ca1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10017ca1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10017ca4
xor edi, edi
inc edi
lea ecx, [esi - 0x10]
call fcn.100035e1
mov eax, edi
call fcn.10020bb7
ret

Function at 0x1001a270
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x1005ca48], 0
push esi
mov esi, dword [ebp + 8]
jne 0x1001a37b
push 0x1005ca4c
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x1001a369
test esi, esi
jne 0x1001a35e
push ebx
push edi
push str.advapi32.dll
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
je 0x1001a33e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptAcquireContextA
push esi
call edi
mov ebx, eax
test ebx, ebx
je 0x1001a33e
push str.CryptGenRandom
push esi
call edi
mov dword [ebp - 8], eax
test eax, eax
je 0x1001a33e
push str.CryptReleaseContext
push esi
call edi
mov edi, eax
test edi, edi
je 0x1001a33e
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp + 8]
push eax
call ebx
test eax, eax
je 0x1001a33e
lea eax, [ebp - 4]
push eax
push 4
push dword [ebp + 8]
call dword [ebp - 8]
push 0
push dword [ebp + 8]
mov esi, eax
call edi
test esi, esi
je 0x1001a33e
mov eax, dword [ebp - 4]
movzx esi, al
shl esi, 8
movzx eax, ah
or esi, eax
movzx eax, byte [ebp - 2]
shl esi, 8
or esi, eax
movzx eax, byte [ebp - 1]
shl esi, 8
or esi, eax
jmp 0x1001a352
push 0
call fcn.1002a93d
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor esi, eax
test esi, esi
mov eax, 1
pop edi
cmove esi, eax
pop ebx
mov dword [0x1005ca48], esi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_SwitchToThread]
nop
call esi
cmp dword [0x1005ca48], 0
je 0x1001a370
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1001a380
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
add ecx, 0xdeadbeef
push ebx
mov ebx, dword [ebp + 8]
add ecx, edx
push esi
mov esi, ecx
mov dword [ebp + 0x10], esi
push edi
mov edi, ecx
cmp edx, 0xc
jbe switch.0x1001a48c
add edx, 0xfffffff3
mov eax, 0xaaaaaaab
mul edx
mov eax, edx
shr eax, 3
inc eax
mov dword [ebp - 4], eax
nop dword [eax + eax]
movzx esi, byte [ebx + 7]
movzx eax, byte [ebx + 6]
movzx edx, byte [ebx + 0xb]
shl esi, 8
add esi, eax
shl edx, 8
movzx eax, byte [ebx + 5]
shl esi, 8
add esi, eax
movzx eax, byte [ebx + 4]
add edi, eax
shl esi, 8
movzx eax, byte [ebx + 0xa]
add edi, esi
movzx esi, byte [ebx + 8]
add edx, eax
movzx eax, byte [ebx + 9]
add esi, ecx
shl edx, 8
add edx, eax
shl edx, 8
add esi, edx
mov edx, dword [ebp + 8]
mov ebx, esi
rol ebx, 4
movzx ecx, byte [edx + 3]
movzx eax, byte [edx + 2]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx + 1]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx]
shl ecx, 8
add ecx, eax
sub ecx, esi
add esi, edi
add ecx, dword [ebp + 0x10]
xor ebx, ecx
sub edi, ebx
mov eax, ebx
add ebx, esi
rol eax, 6
xor eax, edi
sub esi, eax
mov edx, eax
rol edx, 8
add eax, ebx
xor edx, esi
sub ebx, edx
mov esi, edx
rol esi, 0x10
add edx, eax
xor esi, ebx
mov ebx, dword [ebp + 8]
mov edi, esi
sub eax, esi
ror edi, 0xd
add esi, edx
xor edi, eax
mov dword [ebp + 0x10], esi
sub edx, edi
mov ecx, edi
rol ecx, 4
add ebx, 0xc
xor ecx, edx
mov dword [ebp + 8], ebx
mov edx, dword [ebp + 0xc]
add edi, esi
sub edx, 0xc
sub dword [ebp - 4], 1
mov dword [ebp + 0xc], edx
jne 0x1001a3c0
cmp edx, 0xc
ja 0x1001a4f8
jmp dword [edx*4 + 0x1001a548]
movzx eax, byte [ebx + 0xb]
shl eax, 0x18
add ecx, eax
movzx eax, byte [ebx + 0xa]
shl eax, 0x10
add ecx, eax
movzx eax, byte [ebx + 9]
shl eax, 8
add ecx, eax
movzx eax, byte [ebx + 8]
add ecx, eax
movzx eax, byte [ebx + 7]
shl eax, 0x18
add edi, eax
movzx eax, byte [ebx + 6]
shl eax, 0x10
add edi, eax
movzx eax, byte [ebx + 5]
shl eax, 8
add edi, eax
movzx eax, byte [ebx + 4]
add edi, eax
movzx eax, byte [ebx + 3]
shl eax, 0x18
add esi, eax
movzx eax, byte [ebx + 2]
shl eax, 0x10
add esi, eax
movzx eax, byte [ebx + 1]
shl eax, 8
add esi, eax
movzx eax, byte [ebx]
add esi, eax
mov dword [ebp + 0x10], esi
xor ecx, edi
mov eax, edi
rol eax, 0xe
sub ecx, eax
mov eax, ecx
mov esi, ecx
xor esi, dword [ebp + 0x10]
rol eax, 0xb
sub esi, eax
xor edi, esi
mov eax, esi
ror eax, 7
sub edi, eax
mov eax, edi
xor ecx, edi
rol eax, 0x10
sub ecx, eax
mov eax, ecx
mov edx, ecx
rol eax, 4
xor edx, esi
sub edx, eax
mov eax, edx
xor edi, edx
rol eax, 0xe
sub edi, eax
mov eax, edi
xor ecx, edi
ror eax, 8
sub ecx, eax
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001bbed
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0xc
mov eax, 0x100466f6
call fcn.10020bee
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.10002f61
push dword [ebp - 0x10]
and dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1001bc83
push eax
jmp 0x1001bc72
call fcn.10003536
push eax
lea ecx, [ebp - 0x14]
call fcn.10002cfd
inc edi
mov byte [ebp - 4], 1
push edi
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.10004883
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.100049f7
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.100035e1
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1001bc65
push esi
call fcn.1002a97f
pop ecx
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 0
call fcn.100035e1
push edi
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.1000a1ef
mov edi, eax
cmp edi, 0xffffffff
jne 0x1001bc18
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.100035e1
call fcn.10020bb7
ret

Function at 0x1001c669
Capabilities:
Get common file path

Disassembly:
push 4
mov eax, 0x1004697f
call fcn.10020bee
call fcn.10003536
push eax
lea ecx, [ebp - 0x10]
call fcn.10002cfd
xor esi, esi
lea ecx, [ebp - 0x10]
push esi
push 0x1a
push 0x200
mov dword [ebp - 4], esi
call fcn.100030db
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.10004a6b
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 0xc]
test eax, eax
jne 0x1001c6ce
mov ecx, dword [ebp + 8]
push 0x1004ee64
call fcn.10002f61
lea ecx, [esi - 0x10]
call fcn.100035e1
mov eax, dword [ebp + 8]
jmp 0x1001c727
dec eax
lea ecx, [ebp - 0x10]
push eax
call fcn.10004a47
cmp ax, 0x5c
je 0x1001c6ed
push 1
push 0x1004f1cc
lea ecx, [ebp - 0x10]
call fcn.10002a5a
push 7
push str.Coupon_
lea ecx, [ebp - 0x10]
call fcn.10002a5a
cmp dword [ebp + 0xc], 0
mov esi, dword [ebp - 0x10]
je 0x1001c70c
push esi
call fcn.1001bbed
pop ecx
lea edi, [esi - 0x10]
push edi
call fcn.10002700
mov esi, dword [ebp + 8]
add eax, 0x10
pop ecx
mov ecx, edi
mov dword [esi], eax
call fcn.100035e1
mov eax, esi
call fcn.10020bb7
ret
Function at 0x1001c72d
Capabilities:
Check if file exists

Disassembly:
push 8
mov eax, 0x100469aa
call fcn.10020bee
call fcn.10003536
push eax
lea ecx, [ebp - 0x10]
call fcn.10002cfd
xor ebx, ebx
lea eax, [ebp - 0x14]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.1001bd73
pop ecx
pop ecx
mov eax, dword [eax]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
push dword [eax - 0xc]
push eax
call fcn.10002a5a
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], bl
lea ecx, [ecx - 0x10]
call fcn.100035e1
inc ebx
lea ecx, [ebp - 0x10]
push ebx
push str.ApTest
call fcn.10002a5a
push ebx
mov esi, 0x1004f978
lea ecx, [ebp - 0x10]
push esi
call fcn.10002a5a
push ebx
push esi
lea ecx, [ebp - 0x10]
call fcn.10002a5a
push ebx
push 0x1004f97c
lea ecx, [ebp - 0x10]
call fcn.10002a5a
push ebx
push 0x1004f980
lea ecx, [ebp - 0x10]
call fcn.10002a5a
push ebx
push 0x1004f984
lea ecx, [ebp - 0x10]
call fcn.10002a5a
push ebx
push 0x1004f988
lea ecx, [ebp - 0x10]
call fcn.10002a5a
push 2
push 0x1004f98c
lea ecx, [ebp - 0x10]
call fcn.10002a5a
push 2
push 0x1004f994
lea ecx, [ebp - 0x10]
call fcn.10002a5a
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [esi - 0x10]
mov edi, eax
call fcn.100035e1
mov eax, edi
call fcn.10020bb7
ret

Function at 0x1001e01b
Capabilities:
Check if file exists
Delete file

Disassembly:
push 8
mov eax, 0x10046c90
call fcn.10020bee
mov edi, ecx
push dword [ebp + 0x10]
mov eax, dword [edi]
push dword [ebp + 8]
call dword [eax + 8]
test eax, eax
je 0x1001e11f
call fcn.10003536
push eax
lea ecx, [ebp + 0x10]
call fcn.10002cfd
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp + 0xc]
push ebx
mov byte [ebp - 4], 1
call fcn.10002e2a
pop ecx
push eax
push ebx
lea ecx, [ebp + 0x10]
call fcn.10003241
push 0x5c
push dword [ebp + 0x10]
call fcn.1002192a
pop ecx
pop ecx
test eax, eax
jne 0x1001e082
or eax, 0xffffffff
jmp 0x1001e087
sub eax, dword [ebp + 0x10]
sar eax, 1
inc eax
lea ecx, [ebp + 0x10]
push eax
lea eax, [ebp + 8]
push eax
call fcn.10004883
push eax
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 2
call fcn.100049f7
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 1
lea ecx, [ecx - 0x10]
call fcn.100035e1
mov esi, dword [ebp + 0x10]
push esi
call fcn.1001bbed
pop ecx
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001e0cd
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
lea ecx, [ebp - 0x14]
push eax
push eax
push 0x80
push 2
push eax
push 0xc0000000
push ebx
call fcn.1001dc32
test eax, eax
js 0x1001e104
push 0
push dword [edi + 8]
lea ecx, [ebp - 0x14]
push dword [edi + 4]
call fcn.1001e9b4
test eax, eax
js 0x1001e104
xor ebx, ebx
inc ebx
jmp 0x1001e106
xor ebx, ebx
cmp dword [ebp - 0x14], 0
je 0x1001e115
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esi - 0x10]
call fcn.100035e1
mov eax, ebx
call fcn.10020bb7
ret 0xc
Function at 0x1001ed51
Capabilities:
Get common file path
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x30fc
call fcn.10020d90
mov eax, dword [0x1005b030]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x104
lea eax, [ebp - 0x108]
push esi
xor ebx, ebx
mov edi, ecx
push ebx
push eax
call fcn.10022200
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.10022200
add esp, 0x18
lea eax, [ebp - 0x108]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
movsx eax, byte [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push str.._c:
push eax
call fcn.1001f0b6
add esp, 0xc
lea eax, [ebp - 0x20c]
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1001ede0
mov al, 1
jmp 0x1001eee9
push 0x2710
lea eax, [ebp - 0x30ec]
mov dword [ebp - 0x30fc], ebx
push ebx
push eax
call fcn.10022200
push 0x3e8
lea eax, [ebp - 0x9dc]
push ebx
push eax
call fcn.10022200
push 0x3e8
lea eax, [ebp - 0x5f4]
push ebx
push eax
call fcn.10022200
add esp, 0x24
mov dword [ebp - 0x30f0], ebx
lea eax, [ebp - 0x30fc]
mov dword [ebp - 0x30f8], ebx
mov dword [ebp - 0x30f4], ebx
push ebx
push eax
push 0x2710
lea eax, [ebp - 0x30ec]
push eax
push 0xc
lea eax, [ebp - 0x30f8]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1001ee62
mov bl, 2
jmp 0x1001eee0
lea eax, [ebp - 0x5f4]
push eax
push ebx
push dword [ebp - 0x30dc]
lea eax, [ebp - 0x30ec]
push eax
call fcn.1001eef8
lea eax, [ebp - 0x9dc]
push eax
push 1
push dword [ebp - 0x30d4]
lea eax, [ebp - 0x30ec]
push eax
call fcn.1001eef8
lea ecx, [ebp - 0x5f4]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001eea3
sub ecx, edx
lea eax, [ebp - 0x5f4]
push ecx
push eax
push edi
call fcn.1000535d
lea ecx, [ebp - 0x9dc]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001eec6
sub ecx, edx
lea eax, [ebp - 0x9dc]
push ecx
push eax
push edi
call fcn.1000535d
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001fb7a
leave
ret
Function at 0x1001f0ec
Capabilities:
Create raw socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x1005b030]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
lea eax, [ebp - 0x194]
push eax
xor edi, edi
push 0x101
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
call dword [sym.imp.WS2_32.dll_WSAStartup]
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push edi
push edi
push edi
xor ebx, ebx
mov word [esi + 8], ax
inc ebx
push ebx
push 3
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x1001f169
push ebx
push dword [esi + 4]
push eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
push 0x2c
mov dword [esi + 0x10], ebx
call fcn.10025d1f
mov dword [esi + 0xc], eax
pop ecx
test eax, eax
jne 0x1001f169
mov dword [esi + 0x10], edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001fb7a
leave
ret

Function at 0x1001f26a
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x1005b030]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x64
mov dword [ebp - 0x7c], eax
xor edi, edi
lea eax, [ebp - 0x68]
push edi
push eax
call fcn.10022200
add esp, 0xc
test esi, esi
je 0x1001f303
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x1001f303
mov ecx, dword [esi + 0xc]
mov ecx, dword [ecx]
jmp 0x1001f2e5
movsx eax, word [esi + 0xa]
push eax
push ecx
lea eax, [ebp - 0x74]
push eax
call fcn.10022360
add esp, 0xc
push dword [ebp - 0x74]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea eax, [ebp - 0x68]
push 0x10048014
push eax
call fcn.1001f0d1
mov eax, dword [esi + 0xc]
add esp, 0xc
inc edi
mov ecx, dword [eax + edi*4]
test ecx, ecx
jne 0x1001f2b1
push dword [ebp + 0x10]
lea eax, [ebp - 0x68]
push dword [ebp - 0x7c]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push eax
mov ecx, ebx
call fcn.1001f316
jmp 0x1001f305
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001fb7a
leave
ret 0xc
Function at 0x1001f316
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x1005b030]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x10], 0
je 0x1001f4cd
push 2
pop eax
mov word [ebp - 0x114], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x144], 0x10
call fcn.1001f1e6
mov cx, word [0x1005d3d0]
inc cx
mov dword [ebp - 0x14c], eax
push 0x2c
mov word [0x1005d3d0], cx
push 0
push dword [edi + 0xc]
movzx eax, cx
mov dword [ebp - 0x148], eax
call fcn.10022200
mov esi, dword [edi + 0xc]
add esp, 0xc
mov ecx, edi
mov word [esi], 8
mov ax, word [edi + 8]
mov word [esi + 4], ax
mov eax, dword [ebp - 0x148]
mov word [esi + 6], ax
mov eax, dword [ebp - 0x14c]
push 0x2c
mov dword [esi + 8], eax
push dword [edi + 0xc]
call fcn.1001f198
mov word [esi + 2], ax
lea eax, [ebp - 0x114]
push dword [ebp - 0x144]
push eax
push 0
push 0x2c
push dword [edi + 0xc]
push dword [edi]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
je 0x1001f4cd
test ebx, ebx
jne 0x1001f3ef
xor eax, eax
inc eax
jmp 0x1001f4cf
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.10022200
add esp, 0xc
lea esi, [edi + 4]
push 0
push 0x64
push 0
push esi
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
cmp eax, 0x102
je 0x1001f4b7
lea eax, [ebp - 0x140]
push eax
push dword [esi]
push dword [edi]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test byte [ebp - 0x140], 1
je 0x1001f4b7
mov ecx, edi
call fcn.1001f1e6
mov esi, eax
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x114]
push eax
push 0
push 0x100
lea eax, [ebp - 0x104]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edx, eax
cmp edx, 0xffffffff
je 0x1001f4b4
mov cl, byte [ebp - 0x104]
and cl, 0xf
movzx ecx, cl
shl cx, 2
movzx eax, cx
movzx ecx, ax
mov dword [ebp - 0x150], eax
mov ax, word [ebp + ecx - 0x100]
cmp ax, word [edi + 8]
jne 0x1001f4b4
cmp byte [ebp + ecx - 0x104], 0
jne 0x1001f4b4
mov eax, dword [ebp - 0x148]
cmp word [ebp + ecx - 0xfe], ax
je 0x1001f4e0
lea esi, [edi + 4]
mov ecx, edi
call fcn.1001f1e6
sub eax, dword [ebp - 0x14c]
cmp eax, dword [ebp + 0x10]
jb 0x1001f408
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001fb7a
leave
ret 0xc
sub esi, dword [ebp + ecx - 0xfc]
mov ecx, dword [ebp - 0x150]
movzx ecx, cx
sub edx, ecx
mov word [ebx], ax
movzx ecx, byte [ebp - 0xfc]
sub edx, 0xc
mov dword [ebx + 4], esi
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], ecx
jmp 0x1001f3e7

Function at 0x1003860e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1003848d

Function at 0x1003aae5
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1003a7a5
Function at 0x41283e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419354]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040b40f
and dword [ebp - 0x14], 0
cmp dword [0x43096c], 0
mov dword [ebp - 0x18], eax
jne 0x4128f1
push 0x403e48
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x412999
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403e3c
push ebx
call edi
test eax, eax
je 0x412999
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403e2c
push ebx
mov dword [0x43096c], eax
call edi
push eax
call esi
push 0x403e18
push ebx
mov dword [0x430970], eax
call edi
push eax
call esi
push 0x403dfc
push ebx
mov dword [0x430974], eax
call edi
push eax
call esi
mov dword [0x43097c], eax
test eax, eax
je 0x4128f1
push 0x403de4
push ebx
call edi
push eax
call esi
mov dword [0x430978], eax
mov eax, dword [0x430978]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41294a
cmp dword [0x43097c], ecx
je 0x41294a
push eax
call esi
push dword [0x43097c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41294a
test ebx, ebx
je 0x41294a
call edi
test eax, eax
je 0x412941
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x412941
test byte [ebp - 8], 1
jne 0x41294a
or dword [ebp + 0x10], 0x200000
jmp 0x41297d
mov eax, dword [0x430970]
cmp eax, dword [ebp - 0x18]
je 0x41297d
push eax
call esi
test eax, eax
je 0x41297d
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41297d
mov eax, dword [0x430974]
cmp eax, dword [ebp - 0x18]
je 0x41297d
push eax
call esi
test eax, eax
je 0x41297d
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x43096c]
call esi
test eax, eax
je 0x412999
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41299b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040936b
leave
ret