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

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

Function at 0x464305
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x486464
push 0x48645c
push str.FlsAlloc
push 0x1e
call fcn.00463fd5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x464339
push dword [ebp + 8]
mov ecx, esi
call dword [0x484338]
call esi
jmp 0x46433f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x464383
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x486474
push 0x48646c
push str.FlsGetValue
push 0x20
call fcn.00463fd5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4643ba
push dword [ebp + 8]
mov ecx, esi
call dword [0x484338]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x465242
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00465116
Function at 0x465b4e
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x496004]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x465b99
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00465ff6
test al, al
jne 0x465b93
sub edx, 2
cmp edx, edi
jne 0x465b79
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x465bbb
lea eax, [edi + 2]
cmp edx, eax
je 0x465bbb
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00465815
add esp, 0x10
jmp 0x465cb5
push esi
lea ecx, [ebp - 0x255]
call fcn.00465ff6
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x465bfe
push dword [ebp - 0x25c]
jmp 0x465bab
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x465c3b
cmp word [ebp - 0x226], 0
je 0x465c5c
cmp word [ebp - 0x226], ax
jne 0x465c3b
cmp word [ebp - 0x224], 0
je 0x465c5c
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00465815
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x465ca8
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x465c15
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x465c90
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x465cb5
push 0x465265
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0046f9f0
add esp, 0x10
jmp 0x465c85
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00436a89
leave
ret
Function at 0x467631
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4676ce
push ebx
push esi
call fcn.004675ed
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004674df
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x46767b
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4676cd
push edi
push eax
call fcn.00462972
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x46769b
call fcn.00462938
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4676cc
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004674df
add esp, 0x20
test eax, eax
jne 0x4676ba
push edi
call fcn.00462938
jmp 0x4676c2
push ebx
call fcn.00462938
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4676d1
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4676e2
pop esi
ret
push ebx
push edi
push esi
call fcn.004675ed
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00462972
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x46770a
push ebx
push esi
push edi
call fcn.00441f60
add esp, 0xc
push 0
call fcn.00462938
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x467feb
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0046797d
Function at 0x477bd5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x498600]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x477c15
cmp byte [ebx], 0xa
jne 0x477c15
or byte [eax + edi + 0x28], 4
jmp 0x477c1a
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x477d18
mov al, byte [edx]
cmp al, 0x1a
je 0x477cfa
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x477c49
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x477c6e
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x477c78
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x477c2b
jmp 0x477d18
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x477cf5
cmp dword [ebp - 0xc], 0
je 0x477cf5
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x498600]
test byte [eax + edi + 0x28], 0x48
je 0x477ccf
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x477cba
mov byte [esi], dl
jmp 0x477ccb
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x498600]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x477d18
cmp byte [ebp - 1], 0xa
jne 0x477cde
cmp esi, ebx
jne 0x477cde
mov byte [esi], 0xa
jmp 0x477d17
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00477a27
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x477d18
mov byte [esi], 0xd
jmp 0x477d17
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x498600]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x477d14
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x477d18
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x477d21
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x498600]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x477d64
cmp word [esi], dx
jne 0x477d64
or byte [edi + eax + 0x28], 4
jmp 0x477d69
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x477ebc
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x477e9c
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x477dab
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x477de1
cmp eax, edx
jae 0x477ded
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x477d83
jmp 0x477ebc
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x477e98
cmp dword [ebp - 0x14], 0
je 0x477e98
mov eax, dword [ebx*4 + 0x498600]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x477e70
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x477e39
mov word [esi], cx
jmp 0x477e6c
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x498600]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x498600]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x498600]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x477ebc
pop ebx
cmp word [ebp - 4], bx
jne 0x477e81
cmp esi, dword [ebp + 0xc]
jne 0x477e81
mov word [esi], bx
jmp 0x477eb9
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00477a27
add esp, 0x10
cmp word [ebp - 4], bx
je 0x477ebc
push 0xd
jmp 0x477eb5
mov ecx, dword [ebx*4 + 0x498600]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x477eb3
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x477ebc
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x47c940
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x47c96d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x47c96d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4017c0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404118
push 0x402a88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x40774c], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x407748], ecx
shl ecx, 8
add ecx, edx
mov dword [0x407744], ecx
shr eax, 0x10
mov dword [0x407740], eax
call fcn.00402950
test eax, eax
jne 0x40182a
push 0x1c
call fcn.00401990
add esp, 4
mov dword [ebp - 4], 0
call fcn.00402750
call fcn.00402740
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4080b4], eax
call fcn.00402100
mov dword [0x407728], eax
test eax, eax
je 0x40185d
mov eax, dword [0x4080b4]
test eax, eax
jne 0x401867
push 0xffffffffffffffff
call fcn.004019f0
add esp, 4
call fcn.00401e50
call fcn.00401d60
call fcn.004019c0
mov esi, dword [0x4080b4]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x401946
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x4018ae
test al, al
je 0x4018ae
and eax, 0xff
push eax
call fcn.00401d00
add esp, 4
test eax, eax
je 0x401888
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401888
cmp byte [esi], 0x22
jne 0x4018b7
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x4018c7
cmp al, 0x20
ja 0x4018c7
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4018b7
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x4018e8
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x4018ed
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.004019f0
jmp 0x40192b
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x4018b7
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401946

Function at 0x401a30
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x40777c]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x401a4f
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x407778], 1
mov byte [0x407774], bl
jne 0x401aa9
mov ecx, dword [0x4080ac]
test ecx, ecx
je 0x401a97
mov esi, dword [0x4080a8]
sub esi, 4
cmp esi, ecx
jb 0x401a97
mov eax, dword [esi]
test eax, eax
je 0x401a90
call eax
mov ecx, dword [0x4080ac]
sub esi, 4
cmp esi, ecx
jae 0x401a82
push 0x405014
push 0x405010
call fcn.00401ae0
add esp, 8
push 0x40501c
push 0x405018
call fcn.00401ae0
add esp, 8
test ebx, ebx
jne 0x401ad0
push ebp
mov dword [0x40777c], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x438c88
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x438a14
or ecx, edx
sub edx, ecx
call fcn.00438cc5
sub esp, 4
mov dword [esp], 0xe0428f35
mov ecx, dword [esp]
add esp, 4
xor dword [edi], esi
or edx, ecx
add ecx, 0xf83803e7
and edx, ecx
inc edi
push edx
pop edx
inc edx
cmp edi, eax
jne fcn.00438c88
add ecx, 0x2f110ee5
or edx, ecx
ret
Function at 0x5146e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xb7000]
mov dword [edi + 0xcf740], 0x21f462a4
push edi
jmp 0x51470a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x514711
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x514700
mov eax, 1
add ebx, ebx
jne 0x514723
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x514734
jne 0x514753
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x514753
dec eax
add ebx, ebx
jne 0x514740
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x514718
add ebx, ebx
jne 0x51474f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5147a5
xor ecx, ecx
sub eax, 3
jb 0x51476b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5147da
sar eax, 1
mov ebp, eax
jmp 0x514776
add ebx, ebx
jne 0x514776
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x514744
inc ecx
add ebx, ebx
jne 0x514784
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x514744
add ebx, ebx
jne 0x514791
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x514786
jne 0x5147a2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x514786
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5147c4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5147b6
jmp 0x514706
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5147c4
add edi, ecx
jmp 0x514706
pop esi
mov edi, esi
mov ecx, 0x40f0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5147e2
cmp byte [edi], 0x11
jne 0x5147e2
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 0x5147e7
lea edi, [esi + 0x10d000]
mov eax, dword [edi]
or eax, eax
je 0x51485f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1434bc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x143638]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x514814
mov ecx, edi
jns 0x514843
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 + 0x14363c]
or eax, eax
je 0x514859
mov dword [ebx], eax
add ebx, 4
jmp 0x514831
call dword [esi + 0x14364c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x514890
cmp al, 0xef
ja 0x514883
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x514865
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x514872
mov ebp, dword [esi + 0x143640]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
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 0x5148c4
sub esp, 0xffffff80
jmp 0x420577
Function at 0x401080
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push esi
push edi
mov esi, ecx
push eax
push 0x202
mov dword [esi], 0x4032a0
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor edi, edi
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x1c], eax
mov dword [esi + 0x4da9c], edi
mov dword [esi + 4], edi
mov ecx, 0x1369e
xor eax, eax
lea edi, [esi + 0x20]
mov dword [esi + 8], 0xffffffff
rep stosd dword es:[edi], eax
mov eax, esi
pop edi
pop esi
add esp, 0x190
ret

Function at 0x401160
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns

Disassembly:
sub esp, 0x10
push esi
push 6
push 1
mov esi, ecx
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 8], eax
jne 0x401183
xor eax, eax
pop esi
add esp, 0x10
ret 8
push ebx
mov ebx, dword [esp + 0x20]
push ebp
mov ebp, dword [esp + 0x20]
push edi
push ebp
call dword [sym.imp.WS2_32.dll_gethostbyname]
push ebx
mov edi, eax
mov word [esp + 0x14], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x12], ax
mov eax, dword [edi + 0xc]
push 0x10
mov ecx, dword [eax]
lea eax, [esp + 0x14]
push eax
mov edx, dword [ecx]
mov ecx, dword [esi + 8]
push ecx
mov dword [esp + 0x20], edx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4011e6
mov edx, dword [esi + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 0x1c]
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x40118e
push str.CreateThread
push str.KERNEL32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x405298
mov edi, eax
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 4
push 0
push 0
push esi
push 0x401230
push 0
push 0
call edi
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
add esp, 0x10
ret 8
Function at 0x4017f0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40299b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x9b52c
call fcn.00402690
mov eax, dword [str.GETSERVER2.0]
mov ecx, dword [0x4052f8]
mov edx, dword [0x4052fc]
push ebx
push esi
mov dword [ebp - 0x24], eax
mov al, byte [0x405300]
push edi
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x9b53c]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], edx
mov byte [ebp - 0x18], al
call fcn.00401080
lea ecx, [ebp - 0x9b53c]
mov dword [ebp - 4], 0
call fcn.00401130
test eax, eax
je 0x40189f
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x4052e4
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [ebp - 0x14]
push 0x4039e8
push ecx
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], 0x59
call sub.MSVCRT.dll__CxxThrowException
lea edx, [ebp - 0x24]
push 0xd
push edx
lea ecx, [ebp - 0x9b53c]
call fcn.00401420
mov eax, 0x40189f
ret
mov eax, dword [ebp - 0x4daa0]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
jne 0x4018bd
push 0x64
call esi
mov eax, dword [ebp - 0x4daa0]
test eax, eax
je 0x4018af
push 0xffffffffffffffff
call esi
lea ecx, [ebp - 0x9b53c]
mov dword [ebp - 4], 0xffffffff
call fcn.00401100
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x419b00
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0xa56218a8
sbb eax, 0xa054bd
xlatb
and al, 0x53
xor ah, dh
fcomp qword [edi + 0xb8270fd]
cmc
sub eax, 0x3d0774e4
sbb byte [edi + 0x17], bl
aaa
xor ecx, edx
jecxz 0x419b1c
jl 0x419b5b
mov dword [0x7e9c2ec7], eax
inc edi
out 0xd0, eax
mov edi, dword [esi]
sbb esi, dword [edx]
int 0xcf
rcl byte [eax]
fiadd dword [ebp + 0x12]
jecxz 0x419b69
sbb al, byte [eax + eax + 0x74000000]
stc
test byte [eax], al
add byte [eax], al
add byte [ecx + edi*8 - 0x43], dh
je 0x419afb
mov ebp, 0x7731d031
add dword [eax], eax
invalid
jp 0x419b0c
je 0x419afb
mov ebp, 0x7731d031
add dword [eax], eax
call 0xab419b88
jae 0x419b16
add byte [ebx + 0x26000673], ch
add byte [esi], ah
add eax, 0x31a8d00
add byte [ecx], ch
cdq
sub byte [0x45157ab7], 0x2e
loopne 0x419abf
add eax, dword [eax]
sub dword [ecx + 0x7ab72d82], ebx
mov bh, 0x7a
adc eax, 0x9ce02e45
int 0x9e
fimul dword [ebp - 0x7d]
shr byte [edx - 0x675b92], 0xf3
ja 0x419b81
leave
inc edi
hlt
jge 0x419bb6
outsd dx, dword [esi]
dec eax
mov bl, dh
xor esi, ebp
aas
wait
sbb ebx, ebx
std
clc
into
ret 0xab06
salc
adc eax, 0xe3fec155
mov dword [0x7160e872], eax
and dword gs:[eax], ebx
lea ebp, [edx]
lea eax, [eax]
cmpsd dword [esi], dword es:[edi]
std
mov ebp, 0x4b70e31b
dec edi
sbb ch, cl
mov eax, 0xdabfde48
hlt
int 0xf8
scasb al, byte es:[edi]
xor ebx, dword [ebx + 0x54]
ret
Function at 0x560e78
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
mov ecx, dword fs:[0x30]
mov al, byte [ecx + 2]
leave
ret
Function at 0x566b07
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 0
jge 0x566b29
mov eax, 0xfffffffd
jmp 0x566ba1
mov ebx, dword [0x50441c]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
je 0x566b6f
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0xffff
shr ecx, 0x10
and ecx, 0xffff
mov edx, dword [ebp]
lea edx, [edx + 8]
call dword fs:[0xc0]
nop
nop
nop
nop
nop
leave
ret 4
mov ebx, dword [0x50441c]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
jne 0x566b97
mov eax, dword [ebp + 8]
mov edx, dword [ebp]
lea edx, [edx + 8]
int 0x2e
nop
leave
ret 4
mov eax, 0
jmp 0x566ba1
mov esp, ebp
pop ebp
ret 4