joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6d990a10
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x6dac1718]
test esi, esi
jle 0x6d990b20
mov edi, dword [0x6dac171c]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x6d990a44
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x6d990ac5
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x6d990a30
mov dword [esp], eax
mov ebx, eax
call fcn.6d991160
test eax, eax
mov edi, eax
je 0x6d990b47
mov eax, dword [0x6dac171c]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.6d991260
add eax, dword [edi + 0xc]
mov edx, dword [0x6dac171c]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x6d990b27
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x6d990abe
sub eax, 4
and eax, 0xfffffffb
jne 0x6d990ad0
add dword [0x6dac1718], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
add ebx, dword [0x6dac171c]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x6d990abe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.6d9917a0
lea esi, [esi]
xor esi, esi
jmp 0x6d990a4e
mov eax, dword [0x6dac171c]
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 fcn.6d9917a0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.6d9917a0
mov esi, esi
lea edi, [edi]

Function at 0x6d990de0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x6dac1728
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x6dac1720]
sub esp, 4
test ebx, ebx
je 0x6d990e35
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
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x6d990e2e
test esi, esi
je 0x6d990e2e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x6d990e10
mov dword [esp], 0x6dac1728
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x6d9917a0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.6d991780
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 sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.6d991780
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
jmp fcn.6d8c13e0
Function at 0x887230
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1d3000]
push edi
or ebp, 0xffffffff
jmp 0x887252
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x887259
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x887248
mov eax, 1
add ebx, ebx
jne 0x88726b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x88727c
jne 0x88729b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x88729b
dec eax
add ebx, ebx
jne 0x887288
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x887260
add ebx, ebx
jne 0x887297
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x8872ed
xor ecx, ecx
sub eax, 3
jb 0x8872b3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x887322
sar eax, 1
mov ebp, eax
jmp 0x8872be
add ebx, ebx
jne 0x8872be
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x88728c
inc ecx
add ebx, ebx
jne 0x8872cc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x88728c
add ebx, ebx
jne 0x8872d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x8872ce
jne 0x8872ea
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x8872ce
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x88730c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x8872fe
jmp 0x88724e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x88730c
add edi, ecx
jmp 0x88724e
pop esi
mov edi, esi
mov ecx, 0x697f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x88732a
cmp byte [edi], 0xa
jne 0x88732a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x88732f
lea edi, [esi + 0x47e000]
mov eax, dword [edi]
or eax, eax
je 0x8873a7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x48bb94]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x48bcd4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x88735c
mov ecx, edi
jns 0x88738b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x48bcd8]
or eax, eax
je 0x8873a1
mov dword [ebx], eax
add ebx, 4
jmp 0x887379
call dword [esi + 0x48bce8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x8873d8
cmp al, 0xef
ja 0x8873cb
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x8873ad
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x8873ba
mov ebp, dword [esi + 0x48bcdc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x88740c
sub esp, 0xffffff80
jmp 0x4aedb0
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

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

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
mov ecx, 0x135e5ee9
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x7b113c31
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x433084
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..reloc
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x42e072
nop
mov ebx, 0x407ef8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x5fd06ac1
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x42e060
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x42e0d2
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x2799357e
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x401510
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x14c
mov edi, dword [esp + 0x164]
mov dword [esp + 4], 0
mov dword [esp], 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov ebx, eax
cmp eax, 0xffffffff
push ecx
push ecx
je 0x4015c9
lea esi, [esp + 0x18]
mov dword [esp + 0x18], 0x128
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.KERNEL32.DLL_Process32First
test eax, eax
push edx
push edx
jne 0x401574
jmp 0x4015c0
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.KERNEL32.DLL_Process32Next
test eax, eax
push ebp
push ebp
je 0x4015c0
cmp dword [esp + 0x30], edi
jne 0x401562
mov eax, dword [esp + 0x20]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp], 0x1f0fff
call sub.KERNEL32.DLL_OpenProcess
sub esp, 0xc
mov ebp, eax
test eax, eax
je 0x401562
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sub.KERNEL32.DLL_TerminateProcess
push eax
push eax
mov dword [esp], ebp
call sub.KERNEL32.DLL_CloseHandle
push eax
jmp 0x401562
mov dword [esp], ebx
call sub.KERNEL32.DLL_CloseHandle
push ecx
mov eax, dword [esp + 0x160]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sub.KERNEL32.DLL_TerminateProcess
push edx
push edx
add esp, 0x14c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x401610
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x3c
lea eax, [esp + 0x2c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call sub.KERNEL32.DLL_ReadFile
xor edx, edx
sub esp, 0x14
test eax, eax
je 0x40164c
mov edx, dword [esp + 0x2c]
mov eax, edx
add esp, 0x3c
ret

Function at 0x401660
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x3c
lea eax, [esp + 0x2c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call sub.KERNEL32.DLL_WriteFile
xor edx, edx
sub esp, 0x14
test eax, eax
je 0x40169c
mov edx, dword [esp + 0x2c]
mov eax, edx
add esp, 0x3c
ret
Function at 0x41d610
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
push eax
mov esi, dword [esp + 0x18]
test esi, esi
je 0x41d6b5
mov eax, dword [esi]
xor edx, edx
mov byte [eax + 0x16], 0
mov eax, dword [esi]
mov byte [eax + 0x17], 0
mov eax, dword [esi]
mov byte [eax + 0x18], 0
mov eax, dword [esi]
mov byte [eax + 0x19], 0
xor eax, eax
mov ebp, dword [esi + 4]
mov edi, dword [esi]
test ebp, ebp
jle 0x41d668
xor ecx, ecx
mov ebx, eax
shr eax, 0x18
mov cl, byte [edi + edx]
xor ecx, eax
inc edx
shl ebx, 8
mov eax, dword [ecx*4 + 0x6ea080]
xor eax, ebx
cmp edx, ebp
jne 0x41d646
mov edx, eax
shr edx, 0x18
mov ecx, dword [esi + 0xc]
mov dword [esp], ecx
test ecx, ecx
jle 0x41d69b
mov ebp, dword [esi + 8]
xor edx, edx
xor ecx, ecx
mov ebx, eax
shr eax, 0x18
mov cl, byte [ebp + edx]
xor ecx, eax
inc edx
shl ebx, 8
mov eax, dword [ecx*4 + 0x6ea080]
xor eax, ebx
cmp edx, dword [esp]
jne 0x41d677
mov edx, eax
shr edx, 0x18
mov byte [edi + 0x16], al
mov ebx, eax
shr ebx, 8
mov ecx, dword [esi]
shr eax, 0x10
mov byte [ecx + 0x17], bl
mov ecx, dword [esi]
mov byte [ecx + 0x18], al
mov eax, dword [esi]
mov byte [eax + 0x19], dl
pop eax
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x447360
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebp, dword [esp + 0x48]
mov ebx, ebp
mov edx, ebp
shr ebx, 5
lea ecx, [ebx + 1]
cmp ebp, ecx
jb 0x4473ae
mov edi, dword [esp + 0x44]
mov eax, dword [esp + 0x44]
xor edi, 0xffffffff
add eax, ebp
add edi, ecx
sub edi, ebx
lea esi, [esi]
mov esi, edx
mov ebx, edx
shl ebx, 5
shr esi, 2
add esi, ebx
xor ebx, ebx
mov bl, byte [eax - 1]
sub eax, ecx
add ebx, esi
xor edx, ebx
lea ebx, [edi + eax]
cmp ecx, ebx
jbe 0x447390
mov ebx, dword [esp + 0x40]
mov ebx, dword [ebx + 0x10]
mov dword [esp + 0x1c], ebx
mov eax, dword [ebx + 8]
mov ecx, dword [ebx]
dec eax
and eax, edx
mov eax, dword [ecx + eax*4]
test eax, eax
jne 0x4473d6
jmp 0x447420
mov eax, dword [eax]
test eax, eax
je 0x447420
mov ebx, eax
cmp dword [eax + 0xc], ebp
jne 0x4473d0
mov ecx, ebp
lea edi, [eax + 0x10]
cmp ebp, ebp
mov esi, dword [esp + 0x44]
repe cmpsb byte [esi], byte es:[edi]
seta byte [esp + 0x1b]
setb cl
cmp byte [esp + 0x1b], cl
jne 0x4473d0
mov ecx, dword [esp + 0x1c]
mov dl, byte [eax + 5]
mov al, byte [ecx + 0x14]
xor eax, 3
and eax, edx
test al, 3
je 0x447411
xor edx, 3
mov byte [ebx + 5], dl
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp + 1]
cmp eax, 0xffffffed
ja 0x4474f0
mov ebx, dword [esp + 0x40]
lea eax, [ebp + 0x11]
mov dword [esp], ebx
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
call fcn.00447ab0
mov ecx, dword [esp + 0x40]
mov ebx, eax
mov dword [eax + 0xc], ebp
mov edx, dword [esp + 0x14]
mov dword [eax + 8], edx
mov eax, dword [ecx + 0x10]
mov ecx, dword [esp + 0x44]
mov al, byte [eax + 0x14]
mov byte [ebx + 4], 4
and eax, 3
mov byte [ebx + 6], 0
mov byte [ebx + 5], al
lea eax, [ebx + 0x10]
mov dword [esp + 4], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 8], ebp
mov dword [esp], eax
call sub.MSVCRT.DLL_memcpy
mov ecx, dword [esp + 0x40]
mov byte [ebx + ebp + 0x10], 0
mov eax, dword [ecx + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, dword [eax + 8]
dec ecx
and ecx, edx
mov edx, dword [eax]
shl ecx, 2
mov edx, dword [edx + ecx]
mov dword [ebx], edx
mov edx, dword [eax]
mov dword [edx + ecx], ebx
mov edx, dword [eax + 4]
inc edx
mov dword [eax + 4], edx
mov eax, dword [eax + 8]
cmp edx, eax
jbe 0x447411
cmp eax, 0x3ffffffe
jg 0x447411
add eax, eax
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call fcn.00447250
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x14], edx
mov dword [esp], ebx
call fcn.00447a90
mov edx, dword [esp + 0x14]
jmp 0x44742c
Function at 0x450cb0
Capabilities:
Query environment variable

Disassembly:
push esi
push ebx
sub esp, 0x24
mov esi, dword [esp + 0x30]
mov dword [esi + 4], 0
mov dword [esp], esi
call fcn.00454ba0
mov dword [esp + 4], 0x54
mov dword [esp + 0x18], eax
mov dword [esp], esi
call fcn.00454b30
mov ebx, eax
test eax, eax
je 0x450df0
mov eax, dword [esp + 0x18]
mov dword [ebx], fcn.0044ffd0
mov dword [ebx + 4], fcn.004507d0
mov dword [ebx + 8], fcn.00450990
mov dword [ebx + 0xc], fcn.004508a0
mov dword [ebx + 0x10], 0x4501d0
mov dword [ebx + 0x14], 0x450150
mov dword [ebx + 0x18], 0x450a80
mov dword [ebx + 0x1c], 0x4505f0
mov dword [ebx + 0x20], 0x450400
mov dword [ebx + 0x24], fcn.00450250
mov dword [ebx + 0x28], 0x4503a0
mov dword [ebx + 0x30], 0x3b9aca00
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x4c], 0x54
mov dword [esi + 4], ebx
mov dword [esp], str.JPEGMEM
call sub.MSVCRT.DLL_getenv
test eax, eax
je 0x450dd4
lea edx, [esp + 0x1f]
mov byte [esp + 0x1f], 0x78
mov dword [esp + 0xc], edx
lea edx, [esp + 0x18]
mov dword [esp + 8], edx
mov dword [esp + 4], str._ld_c
mov dword [esp], eax
call sub.MSVCRT.DLL_sscanf
test eax, eax
jle 0x450dd4
mov al, byte [esp + 0x1f]
cmp al, 0x4d
jne 0x450de0
mov eax, dword [esp + 0x18]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
mov dword [ebx + 0x2c], eax
add esp, 0x24
pop ebx
pop esi
ret
cmp al, 0x6d
je 0x450db5
mov eax, dword [esp + 0x18]
jmp 0x450dc5
mov dword [esp], esi
call fcn.00454bb0
mov eax, dword [esi]
mov dword [eax + 0x18], 0
mov dword [eax + 0x14], 0x36
mov eax, dword [esi]
mov dword [esp], esi
call dword [eax]
jmp 0x450ce6
Function at 0x456f50
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov esi, dword [esp + 0x30]
mov eax, dword [esi + 4]
mov dword [esp + 8], 0x2c
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [eax]
cmp dword [esi + 0x78], 3
mov dword [esi + 0x204], eax
mov ebp, eax
mov dword [eax], 0x455c20
mov dword [eax + 0xc], 0x455c00
mov dword [eax + 0x20], 0
mov dword [eax + 0x28], 0
je 0x456faa
mov eax, dword [esi]
mov dword [eax + 0x14], 0x2f
mov dword [esp], esi
call dword [eax]
mov eax, dword [esi + 4]
mov dword [esp + 8], pe_nt_image_headers32
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [eax]
xor ebx, ebx
mov edi, eax
mov dword [ebp + 0x18], eax
jmp 0x456fd3
mov edi, dword [ebp + 0x18]
mov eax, dword [esi + 4]
mov dword [esp + 8], 0x2000
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [eax + 4]
add edi, ebx
add ebx, 4
mov dword [edi], eax
cmp ebx, 0x80
jne 0x456fd0
mov edx, dword [esi + 0x6c]
mov dword [ebp + 0x1c], 1
test edx, edx
je 0x457066
mov ebx, dword [esi + 0x60]
cmp ebx, 7
jle 0x4570ab
cmp ebx, 0x100
jle 0x457034
mov eax, dword [esi]
mov dword [eax + 0x18], 0x100
mov dword [eax + 0x14], 0x39
mov eax, dword [esi]
mov dword [esp], esi
call dword [eax]
mov eax, dword [esi + 4]
mov dword [esp + 0xc], 3
mov dword [esp + 8], ebx
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [eax + 8]
mov dword [ebp + 0x14], ebx
mov dword [ebp + 0x10], eax
mov eax, dword [esi + 0x58]
test eax, eax
jne 0x457074
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esi + 0x58]
mov dword [ebp + 0x10], 0
test eax, eax
je 0x45705e
mov eax, dword [esi + 0x70]
mov edx, dword [esi + 4]
mov dword [esi + 0x58], 2
mov dword [esp], esi
lea eax, [eax + eax*2]
mov dword [esp + 4], 1
lea eax, [eax + eax + 0xc]
mov dword [esp + 8], eax
call dword [edx + 4]
mov dword [ebp + 0x20], eax
add esp, 0x1c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.00455b50
mov eax, dword [esi]
mov dword [eax + 0x18], 8
mov dword [eax + 0x14], 0x38
mov eax, dword [esi]
mov dword [esp], esi
call dword [eax]
jmp 0x457034
Function at 0x468910
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x1ac
lea eax, [esp + 0x10]
mov dword [esp], 0x101
mov dword [esp + 4], eax
call sub.WS2_32.DLL_WSAStartup
push edx
push edx
or edx, 0xffffffff
test eax, eax
jne 0x468945
mov eax, dword [esp + 0x10]
cmp al, 1
jne 0x468950
shr ax, 8
xor edx, edx
dec al
jne 0x468950
mov eax, edx
add esp, 0x1ac
ret
call sub.WS2_32.DLL_WSACleanup
or edx, 0xffffffff
mov eax, edx
add esp, 0x1ac
ret

Function at 0x468a60
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push edi
push esi
push ebx
sub esp, 0x40
mov edi, dword [esp + 0x50]
mov esi, dword [esp + 0x54]
cmp edi, 2
mov dword [esp + 8], 0
sete al
and eax, 0xff
mov dword [esp], 2
inc eax
mov dword [esp + 4], eax
call sub.WS2_32.DLL_socket
sub esp, 0xc
mov ebx, eax
cmp eax, 0xffffffff
mov dword [esp + 0x38], 1
mov dword [esp + 0x3c], 0x40000
je 0x468b1e
cmp edi, 2
je 0x468b54
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov word [esp + 0x28], 2
test esi, esi
je 0x468afc
mov eax, dword [esi + 4]
and eax, 0xffff
mov dword [esp], eax
call sub.WS2_32.DLL_htons
push edx
mov word [esp + 0x2a], ax
mov eax, dword [esi]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x28]
mov dword [esp + 8], 0x10
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.WS2_32.DLL_bind
sub esp, 0xc
inc eax
je 0x468b3f
test esi, esi
jne 0x468b27
add esp, 0x40
mov eax, ebx
pop ebx
pop esi
pop edi
ret
dec edi
jne 0x468b1e
mov dword [esp + 4], 0x7fffffff
mov dword [esp], ebx
call sub.WS2_32.DLL_listen
inc eax
push esi
push esi
jne 0x468b1e
mov dword [esp], ebx
call sub.WS2_32.DLL_closesocket
push ebx
or ebx, 0xffffffff
add esp, 0x40
mov eax, ebx
pop ebx
pop esi
pop edi
ret
lea eax, [esp + 0x38]
mov dword [esp + 4], 0x8004667e
mov dword [esp + 8], eax
mov dword [esp], ebx
call sub.WS2_32.DLL_ioctlsocket
sub esp, 0xc
lea eax, [esp + 0x3c]
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1002
mov dword [esp + 4], 0xffff
mov dword [esp], ebx
call sub.WS2_32.DLL_setsockopt
sub esp, 0x14
jmp 0x468ab5

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

Disassembly:
push ebx
sub esp, 0x58
mov ebx, dword [esp + 0x64]
test ebx, ebx
je 0x468d40
mov eax, dword [ebx + 4]
mov word [esp + 0x3c], 2
and eax, 0xffff
mov dword [esp], eax
call sub.WS2_32.DLL_htons
push edx
mov edx, 0x10
mov word [esp + 0x3e], ax
mov eax, dword [ebx]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x4c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], 0
mov dword [esp], eax
call sub.WS2_32.DLL_WSASendTo
sub esp, 0x24
inc eax
je 0x468d46
mov eax, dword [esp + 0x4c]
add esp, 0x58
pop ebx
ret
xor edx, edx
xor eax, eax
jmp 0x468cec
call sub.WS2_32.DLL_WSAGetLastError
cmp eax, 0x2733
sete al
add esp, 0x58
and eax, 0xff
dec eax
pop ebx
ret