joyce8/EMBER2024-capa huggingface dataset:
Function at 0x479b90
Capabilities:
Query environment variable

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
movzx eax, byte [esi + 0x17]
push edi
cmp eax, 3
ja case.default.0x479ba3
jmp dword [eax*4 + 0x479d64]
mov eax, esi
call fcn.00401160
cmp dword [0x4ca6d0], 0
jne 0x479c6f
cmp dword [esi + 0xc], 0
jne 0x479c6f
mov edi, dword [esp + 0x14]
cmp dword [0x4cca60], esi
jne 0x479bd8
test edi, edi
jne 0x479c35
mov ecx, dword [esi + 0x18]
push 0
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
test eax, eax
je 0x479c31
mov dword [0x4cca60], 0
test edi, edi
je 0x479c29
mov eax, dword [0x4ca6ac]
test eax, eax
je 0x479c1a
mov edx, dword [esi + 0x18]
push edx
push str.An_environment_variable_is_being_accessed__see_NoEnv.
push eax
push 0x4cb508
xor ecx, ecx
call fcn.00430ee0
mov ecx, dword [esi + 0x18]
call fcn.00477c60
pop edi
pop esi
pop ebx
pop ecx
ret 4
dec eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
test edi, edi
je 0x479c60
cmp byte [esi + 0x17], 0
jne 0x479c40
mov eax, dword [esi + 0xc]
jmp 0x479c42
mov eax, esi
test byte [eax + 0x15], 4
je 0x479c4f
mov eax, esi
call fcn.00430ff0
xor eax, eax
mov word [edi], ax
mov dword [0x4cca60], eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov dword [0x4cca60], esi
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov eax, dword [esi + 0xc]
mov edi, dword [esp + 0x14]
mov ebx, eax
shr ebx, 1
test edi, edi
je 0x479cf0
test eax, eax
jne 0x479ca7
movzx eax, byte [esi + 0x17]
neg eax
sbb eax, eax
and eax, esi
test byte [eax + 0x15], 4
je 0x479c99
mov eax, esi
call fcn.00430ff0
xor ecx, ecx
mov word [edi], cx
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov ecx, dword [esi + 8]
cmp edi, ecx
je 0x479cf0
cmp eax, 0x186a0
jae 0x479cdf
movzx eax, word [ecx]
test ax, ax
je 0x479cd1
lea ecx, [ecx]
add ecx, 2
mov word [edi], ax
movzx eax, word [ecx]
add edi, 2
test ax, ax
jne 0x479cc0
xor edx, edx
mov word [edi], dx
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
ret 4
push eax
push ecx
push edi
call fcn.00497ff0
add esp, 0xc
xor eax, eax
mov word [edi + ebx*2], ax
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [esi + 0xc]
call fcn.00479b90
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov esi, dword [esp + 0x14]
push esi
mov ecx, 0x4cc048
call fcn.00404410
cmp eax, 0xffffffff
jne 0x479d23
xor eax, eax
test esi, esi
je 0x479d5b
xor edx, edx
mov word [esi + eax*2], dx
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x479d41
xor ecx, ecx
mov word [eax], cx
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov edx, dword [esi + 0x18]
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x10]
push edx
push eax
call ecx
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
ret 4
Function at 0x47a880
Capabilities:
Check for time delay via gettickcount

Disassembly:
cmp byte [esp + 8], 0
je 0x47a890
mov eax, esi
call fcn.004562b0
jmp 0x47a89d
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [esp + 4]
test eax, eax
js 0x47a8f8
je 0x47a8f8
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_GetTickCount]
push edi
call ebp
push 1
push 0x8000012f
mov edi, eax
call fcn.004013d0
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
add esp, 8
push esi
call ebx
test eax, eax
je 0x47a8f5
add edi, dword [esp + 0x10]
call ebp
mov ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x47a8f5
push 1
push 0x8000012f
call fcn.004013d0
add esp, 8
push esi
call ebx
test eax, eax
jne 0x47a8d4
pop edi
pop ebp
pop ebx
mov eax, esi
ret
Function at 0x47c6e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
cmp dword [edi + 8], 0
jne 0x47c6fc
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
mov eax, dword [0x4c6a44]
push eax
push esi
mov ecx, edi
call fcn.0047cba0
cmp byte [edi], 0
mov dword [esp + 0x10], eax
je 0x47c733
test eax, eax
jne 0x47c737
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push edi
call fcn.0047c7f0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
test eax, eax
jne 0x47c7b6
test esi, esi
je 0x47c7b6
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
mov ebp, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call ebp
push 1
push 0x8000012f
mov ebx, eax
call fcn.004013d0
mov edi, dword [sym.imp.USER32.dll_IsWindow]
add esp, 8
push esi
call edi
test eax, eax
je 0x47c795
mov edi, edi
call ebp
lea ecx, [ebx + 0x1f4]
sub ecx, eax
cmp ecx, 5
jle 0x47c795
push 1
push 0x8000012f
call fcn.004013d0
add esp, 8
push esi
call edi
test eax, eax
jne 0x47c770
mov edx, dword [0x4c6a44]
mov eax, dword [edx + 0x54]
cmp eax, 0xffffffff
jle 0x47c7ae
push 1
push eax
call fcn.004013d0
add esp, 8
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
cmp byte [edi], 0
je 0x47c7d0
mov ecx, dword [esp + 0x1c]
push 0
push ecx
push edi
call fcn.0047c7f0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov edx, dword [esp + 0x1c]
push edx
mov ecx, edi
call fcn.0047c970
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x496a86
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4c5dd0]
jne 0x496a90
repz ret
jmp fcn.0049b016

Function at 0x499220
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4c5dd0]
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.00493962
and dword [ebp - 0x14], 0
cmp dword [0x4c8cd4], 0
mov dword [ebp - 0x18], eax
jne 0x4992d3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x49937b
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x4a3020
push ebx
call edi
test eax, eax
je 0x49937b
mov esi, dword [fcn.0048fd10]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4c8cd4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4c8cd8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4c8cdc], eax
call edi
push eax
call esi
mov dword [0x4c8ce4], eax
test eax, eax
je 0x4992d3
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4c8ce0], eax
mov eax, dword [0x4c8ce0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [fcn.0048fd14]
cmp eax, ecx
je 0x49932c
cmp dword [0x4c8ce4], ecx
je 0x49932c
push eax
call esi
push dword [0x4c8ce4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x49932c
test ebx, ebx
je 0x49932c
call edi
test eax, eax
je 0x499323
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x499323
test byte [ebp - 8], 1
jne 0x49932c
or dword [ebp + 0x10], 0x200000
jmp 0x49935f
mov eax, dword [0x4c8cd8]
cmp eax, dword [ebp - 0x18]
je 0x49935f
push eax
call esi
test eax, eax
je 0x49935f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x49935f
mov eax, dword [0x4c8cdc]
cmp eax, dword [ebp - 0x18]
je 0x49935f
push eax
call esi
test eax, eax
je 0x49935f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4c8cd4]
call esi
test eax, eax
je 0x49937b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x49937d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00496a86
leave
ret
Function at 0x4018b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
mov eax, dword [ebp + 0x10]
mov cl, byte [eax]
mov byte [ebp - 2], cl
mov edx, dword [ebp + 0x10]
mov al, byte [edx + 1]
mov byte [ebp - 1], al
mov dword [ebp - 8], 0
jmp 0x4018dc
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 0xc]
jge 0x401a29
movzx eax, byte [ebp - 2]
add eax, 1
cdq
mov ecx, 0x24d
idiv ecx
mov byte [ebp - 2], dl
movzx edx, byte [ebp - 2]
mov eax, dword [0x47e358]
movzx eax, byte [eax + edx]
movzx ecx, byte [ebp - 1]
add eax, ecx
cdq
mov ecx, 0x24d
idiv ecx
mov byte [ebp - 1], dl
movzx edx, byte [ebp - 1]
add edx, dword [0x47e358]
push edx
movzx eax, byte [ebp - 2]
add eax, dword [0x47e358]
push eax
call fcn.00401a40
add esp, 8
movzx ecx, byte [ebp - 2]
mov edx, dword [0x47e358]
movzx eax, byte [edx + ecx]
movzx ecx, byte [ebp - 1]
mov edx, dword [0x47e358]
movzx ecx, byte [edx + ecx]
add eax, ecx
cdq
mov ecx, 0x24d
idiv ecx
mov byte [ebp - 9], dl
push 0x464a67
push 0x480dc8
call fcn.004035f0
add esp, 8
mov dword [ebp - 0x28], eax
push 0xa
mov ecx, dword [ebp - 0x28]
call fcn.004023c0
mov ecx, dword [ebp - 0x28]
call fcn.004029d0
push 0x464a67
push 0x480dc8
call fcn.004035f0
add esp, 8
mov dword [ebp - 0x44], eax
push 0xa
mov ecx, dword [ebp - 0x44]
call fcn.004023c0
mov ecx, dword [ebp - 0x44]
call fcn.004029d0
push 0x464a67
push 0x480dc8
call fcn.004035f0
add esp, 8
mov dword [ebp - 0x60], eax
push 0xa
mov ecx, dword [ebp - 0x60]
call fcn.004023c0
mov ecx, dword [ebp - 0x60]
call fcn.004029d0
push 0x464a67
push 0x480dc8
call fcn.004035f0
add esp, 8
mov dword [ebp - 0x168], eax
push 0xa
mov ecx, dword [ebp - 0x168]
call fcn.004023c0
mov ecx, dword [ebp - 0x168]
call fcn.004029d0
movzx edx, byte [ebp - 9]
mov eax, dword [0x47e358]
movzx ecx, byte [eax + edx]
mov edx, dword [ebp + 8]
add edx, dword [ebp - 8]
movzx eax, byte [edx]
xor eax, ecx
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
mov byte [ecx], al
jmp 0x4018d3
mov edx, dword [ebp + 0x10]
mov al, byte [ebp - 2]
mov byte [edx], al
mov ecx, dword [ebp + 0x10]
mov dl, byte [ebp - 1]
mov byte [ecx + 1], dl
mov esp, ebp
pop ebp
ret
Function at 0x4461d3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x47ccc0]
jne 0x4461dd
repz ret
jmp fcn.0044dabc

Function at 0x457573
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0044d4af
and dword [ebp - 4], 0
cmp dword [0x480d3c], 0
mov ebx, eax
jne 0x457624
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4576d5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x46ce20
push edi
call esi
test eax, eax
je 0x4576d5
push eax
call fcn.0044d43d
mov dword [esp], 0x46ce10
push edi
mov dword [0x480d3c], eax
call esi
push eax
call fcn.0044d43d
mov dword [esp], 0x46cdfc
push edi
mov dword [0x480d40], eax
call esi
push eax
call fcn.0044d43d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x480d44], eax
call esi
push eax
call fcn.0044d43d
pop ecx
mov dword [0x480d4c], eax
test eax, eax
je 0x457624
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0044d43d
pop ecx
mov dword [0x480d48], eax
mov eax, dword [0x480d48]
cmp eax, ebx
je 0x45767c
cmp dword [0x480d4c], ebx
je 0x45767c
push eax
call fcn.0044d4b8
push dword [0x480d4c]
mov esi, eax
call fcn.0044d4b8
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x45767c
test edi, edi
je 0x45767c
call esi
test eax, eax
je 0x457673
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x457673
test byte [ebp - 0xc], 1
jne 0x45767c
or dword [ebp + 0x10], 0x200000
jmp 0x4576b5
mov eax, dword [0x480d40]
cmp eax, ebx
je 0x4576b5
push eax
call fcn.0044d4b8
pop ecx
test eax, eax
je 0x4576b5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4576b5
mov eax, dword [0x480d44]
cmp eax, ebx
je 0x4576b5
push eax
call fcn.0044d4b8
pop ecx
test eax, eax
je 0x4576b5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x480d3c]
call fcn.0044d4b8
pop ecx
test eax, eax
je 0x4576d5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4576d7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43300c
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x401340
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413048
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x41b004]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov eax, ecx
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x78], ecx
test eax, eax
je 0x401507
test edi, edi
je 0x401507
test ecx, ecx
je 0x401507
test ebx, ebx
je 0x401507
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x401507
push 0x4198c8
lea ecx, [ebp - 0x74]
call fcn.00401d50
push edi
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x5c]
call fcn.00402830
push 0x4198c0
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.00402830
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x78]
mov edx, eax
call fcn.00402830
add esp, 0xc
lea ecx, [ebp - 0x44]
call fcn.00401d10
lea ecx, [ebp - 0x5c]
call fcn.00401d10
lea ecx, [ebp - 0x74]
call fcn.00401d10
push 0
push 0
push 2
push 0
push 1
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x78], eax
test eax, eax
je 0x4014f1
cmp eax, 0xffffffff
je 0x4014f1
push 0
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x80], 0
push ecx
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4014f1
cmp dword [ebp - 0x80], esi
jne 0x4014f1
lea ecx, [ebp - 0x78]
call fcn.00401080
push 0x40
lea eax, [ebp - 0xd8]
mov dword [ebp - 0xdc], 0x44
push 0
push eax
call fcn.00404ee0
add esp, 0xc
lea ecx, [ebp - 0x94]
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
xorps xmm0, xmm0
cmovae eax, dword [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0xdc]
push ecx
push dword [ebp - 0x7c]
movups xmmword [ebp - 0x94], xmm0
push 0
push 0x2000000
push 0
push 0
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4014f1
mov ecx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x90]
push 0xffffffffffffffff
push ecx
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x7c], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 0x7c]
mov bl, 1
call fcn.00401060
lea ecx, [ebp - 0x84]
call fcn.00401060
jmp 0x4014f3
xor bl, bl
lea ecx, [ebp - 0x78]
call fcn.00401060
lea ecx, [ebp - 0x2c]
call fcn.00401d10
mov al, bl
jmp 0x401509
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00402c5d
mov esp, ebp
pop ebp
ret
Function at 0x100013b0
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x1000b638
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x198
push esi
mov esi, ecx
mov dword [esp + 4], esi
lea ecx, [esi + 4]
call fcn.10001000
lea ecx, [esi + 0x2c]
mov dword [esp + 0x1a4], 0
call fcn.10001000
lea ecx, [esi + 0x54]
mov byte [esp + 0x1a4], 1
call fcn.10001000
lea ecx, [esi + 0x7c]
mov byte [esp + 0x1a4], 2
call fcn.10001000
lea eax, [esp + 0xc]
mov byte [esp + 0x1a4], 3
push eax
push 0x202
mov dword [esi], 0x1000d150
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0
push 0
push 1
push 0
call dword [0x100128f0]
mov dword [esi + 0xac], eax
mov al, 0x43
mov byte [esp + 4], al
mov byte [esp + 5], al
mov byte [esp + 6], 0x54
mov byte [esp + 7], 0x56
mov edx, dword [esp + 4]
lea ecx, [esi + 0xb0]
mov al, 0x30
mov byte [esi + 0xb5], 0
mov dword [ecx], edx
mov dword [esi + 0xa8], 0xffffffff
mov byte [ecx + 4], al
mov ecx, dword [esp + 0x19c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1a4
ret
Function at 0x10001570
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x20
push esi
push edi
mov esi, ecx
call fcn.10001a70
mov eax, dword [esi + 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 6
push 1
push 2
mov byte [esi + 0xb5], 0
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0xa8], eax
jne 0x100015b1
pop edi
xor al, al
pop esi
add esp, 0x20
ret 8
mov ecx, dword [esp + 0x2c]
push ebx
push ebp
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
lea edi, [ebx + 1]
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, edi
mov ebp, eax
mov edx, ecx
xor eax, eax
mov edi, ebp
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
push 0
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x3c]
push ebx
push ebp
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebp
call dword [sym.imp.WS2_32.dll_gethostbyname]
push ebp
mov edi, eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
test edi, edi
pop ebp
pop ebx
jne 0x10001629
pop edi
xor al, al
pop esi
add esp, 0x20
ret 8
mov ecx, dword [esp + 0x30]
mov word [esp + 0x18], 2
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x1a], ax
mov edx, dword [edi + 0xc]
push 0x10
mov eax, dword [edx]
lea edx, [esp + 0x1c]
push edx
mov ecx, dword [eax]
mov eax, dword [esi + 0xa8]
push eax
mov dword [esp + 0x28], ecx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1000166e
pop edi
xor al, al
pop esi
add esp, 0x20
ret 8
mov ecx, dword [esi + 0xa8]
push 4
push 0x10012010
push 8
push 0xffff
push ecx
mov dword [esp + 0x1c], 0x10012010
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x100016cf
mov ecx, dword [esi + 0xa8]
push eax
lea edx, [esp + 0xc]
push eax
push edx
push eax
push eax
lea eax, [esp + 0x20]
push 0xc
push eax
push 0x98000004
push ecx
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], 0x2bf20
mov dword [esp + 0x38], 0x1388
call dword [sym.imp.WS2_32.dll_WSAIoctl]
push 1
push 0
push 0
push esi
push 0x10001700
push 0
push 0
mov byte [esi + 0xb5], 1
call fcn.10003fe0
add esp, 0x1c
mov dword [esi + 0xa4], eax
mov al, 1
pop edi
pop esi
add esp, 0x20
ret 8
Function at 0x10001c90
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x14]
cmp ebp, esi
mov ebx, ecx
mov dword [esp + 0x14], 0
jb 0x10001cfa
mov dword [esp + 0x1c], 0
mov eax, dword [ebx + 0xa8]
push 0
push esi
push edi
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x10001cd9
mov ecx, dword [esp + 0x1c]
inc ecx
cmp ecx, 0xf
mov dword [esp + 0x1c], ecx
jl 0x10001cb6
cmp dword [esp + 0x1c], 0xf
je 0x10001d30
mov ecx, dword [esp + 0x14]
push 5
add ecx, eax
add edi, esi
mov dword [esp + 0x18], ecx
call dword [0x1001291c]
sub ebp, esi
cmp ebp, esi
jae 0x10001cae
test ebp, ebp
jle 0x10001d24
xor esi, esi
mov ecx, dword [ebx + 0xa8]
push 0
push ebp
push edi
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x10001d1b
inc esi
cmp esi, 0xf
jl 0x10001d00
cmp esi, 0xf
je 0x10001d30
add dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
cmp eax, ecx
je 0x10001d33
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x10001da0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
mov eax, dword [esi + 0x3c]
mov eax, dword [eax + esi + 0x78]
add eax, esi
mov edi, dword [eax + 0x24]
mov ebx, dword [eax + 0x1c]
mov ecx, dword [eax + 0x20]
mov edx, dword [eax + 0x18]
mov ebp, dword [eax + 0x10]
add edi, esi
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x20]
add ebx, esi
add ecx, esi
test edi, 0xffff0000
mov dword [esp + 0x10], edx
jne 0x10001dfb
cmp edi, ebp
jb 0x10001e2f
mov ecx, dword [eax + 0x14]
lea edx, [ecx + ebp - 1]
cmp edi, edx
ja 0x10001e2f
sub edi, ebp
mov eax, dword [ebx + edi*4]
pop edi
add eax, esi
pop esi
pop ebp
pop ebx
add esp, 8
ret
xor ebp, ebp
test edx, edx
jle 0x10001e2f
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x1c]
mov eax, esi
add eax, dword [ecx]
push eax
push edi
call fcn.10001d50
add esp, 8
test eax, eax
je 0x10001e39
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
inc ebp
add ecx, 4
cmp ebp, eax
mov dword [esp + 0x1c], ecx
jl 0x10001e05
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x14]
xor edx, edx
pop edi
mov dx, word [eax + ebp*2]
mov eax, dword [ebx + edx*4]
add eax, esi
pop esi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x10001e50
Capabilities:
Access peb ldr_data

Disassembly:
xor ecx, ecx
mov esi, dword fs:[ecx + 0x30]
mov esi, dword [esi + 0xc]
mov esi, dword [esi + 0x1c]
mov eax, dword [esi + 8]
mov edi, dword [esi + 0x20]
mov esi, dword [esi]
cmp byte [edi + 0x18], cl
jne 0x10001e5c
ret
Function at 0x100026a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000d170
push 0x1000b472
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
je 0x10002821
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, edi
mov dword [ebp - 0x1c], esi
cmp word [edi], 0x5c
jne 0x1000275f
lea eax, [edi + 2]
cmp word [eax], 0x5c
jne 0x1000275f
mov esi, eax
mov dword [ebp - 0x1c], esi
add esi, 2
mov dword [ebp - 0x1c], esi
mov ax, word [esi]
test ax, ax
je 0x10002732
cmp ax, 0x5c
je 0x10002732
push esi
call dword [sym.imp.USER32.dll_CharNextW]
mov esi, eax
jmp 0x10002716
cmp word [esi], 0
je 0x1000273e
add esi, 2
mov dword [ebp - 0x1c], esi
mov ax, word [esi]
test ax, ax
je 0x10002757
cmp ax, 0x5c
je 0x10002757
push esi
call dword [sym.imp.USER32.dll_CharNextW]
mov esi, eax
jmp 0x1000273b
cmp word [esi], 0
je 0x10002787
jmp 0x10002781
lea eax, [edi + 2]
cmp word [eax], 0x3a
jne 0x10002787
mov esi, eax
mov dword [ebp - 0x1c], esi
add esi, 2
mov dword [ebp - 0x1c], esi
mov ax, word [esi]
test ax, ax
je 0x10002787
cmp ax, 0x5c
jne 0x10002787
add esi, 2
mov dword [ebp - 0x1c], esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ax, word [esi]
test ax, ax
je 0x100027e5
cmp ax, 0x5c
jne 0x100027d7
mov word [esi], 0
push edi
call ebx
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
jne 0x100027c8
push 0
push edi
call dword [0x10012878]
test eax, eax
jne 0x100027d2
call dword [0x100128cc]
cmp eax, 0xb7
je 0x100027d2
push edi
jmp 0x10002818
and eax, 0x10
cmp al, 0x10
je 0x100027d2
push edi
jmp 0x10002818
mov word [esi], 0x5c
push esi
call dword [sym.imp.USER32.dll_CharNextW]
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x1000278d
mov dword [ebp - 4], 0xffffffff
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10002840
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x2e
push esi
call dword [sym.imp.MSVCRT.dll_wcsrchr]
add esp, 8
test eax, eax
je 0x1000287a
mov eax, dword [esp + 0xc]
test eax, eax
je 0x10002861
push 5
jmp 0x10002863
push 0
push 0
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jae 0x10002880
xor al, al
pop esi
ret 8
mov al, 1
pop esi
ret 8