joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401ef0
Capabilities:
Encode data using xor
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, ecx
push ebx
push esi
push edi
mov ebx, dword [eax + 4]
mov edi, 0x40f020
xor ebx, dword [0x40f018]
mov dword [ebp - 4], eax
mov eax, dword [eax + 8]
nop dword [eax]
mov ecx, ebx
mov edx, ebx
shr ecx, 0x10
movzx ecx, cl
shr edx, 0x18
mov esi, dword [ecx*4 + 0x40f848]
mov ecx, ebx
add esi, dword [edx*4 + 0x40f448]
shr ecx, 8
movzx ecx, cl
xor esi, dword [ecx*4 + 0x410048]
movzx ecx, bl
add esi, dword [ecx*4 + 0x40fc48]
xor esi, dword [edi - 4]
xor eax, esi
mov ecx, eax
mov edx, eax
shr ecx, 0x10
movzx ecx, cl
shr edx, 0x18
mov esi, dword [ecx*4 + 0x40f848]
mov ecx, eax
add esi, dword [edx*4 + 0x40f448]
shr ecx, 8
movzx ecx, cl
xor esi, dword [ecx*4 + 0x410048]
movzx ecx, al
add esi, dword [ecx*4 + 0x40fc48]
xor ebx, esi
xor ebx, dword [edi]
add edi, 8
cmp edi, 0x40f060
jl 0x401f10
mov ecx, dword [ebp - 4]
xor eax, dword [0x40f05c]
pop edi
pop esi
mov dword [ecx + 8], ebx
mov dword [ecx + 4], eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404480
Capabilities:
Create http request
Read data from internet
Receive data
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40a0c1
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x40f008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x20], 0
push 0
push 0
push 0
push 1
push str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_58.0.3029.110_Safari_537.36
mov dword [ebp - 4], 1
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
push str.Accept:___r_n_r_n
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp + 8]
push 0
cmovae ecx, dword [ebp + 8]
push 0x4000000
push eax
push str.Accept:___r_n_r_n
push ecx
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
push 0x5f5e100
mov dword [ebp - 0x18], eax
call fcn.0040904b
push 0x5f5e100
mov esi, eax
push 0
push esi
call sub.VCRUNTIME140.dll_memset
mov dword [edi + 0x10], 0
add esp, 0x10
mov dword [edi + 0x14], 0xf
mov dword [ebp - 0x14], 1
mov byte [edi], 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x20], 1
push eax
push 0x5f5e100
push esi
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x404614
mov ecx, esi
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404573
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x38]
call fcn.00402160
lea eax, [ebp - 0x38]
cmp edi, eax
je 0x4045e4
mov ecx, dword [edi + 0x14]
cmp ecx, 0x10
jb 0x4045c0
mov eax, dword [edi]
inc ecx
cmp ecx, 0x1000
jb 0x4045b6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404659
mov eax, edx
push ecx
push eax
call fcn.0040903d
add esp, 8
movups xmm0, xmmword [ebp - 0x38]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x28]
movq qword [edi + 0x10], xmm0
jmp 0x404614
mov edx, dword [ebp - 0x24]
cmp edx, 0x10
jb 0x404614
mov ecx, dword [ebp - 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40460a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404659
push edx
push ecx
call fcn.0040903d
add esp, 8
push esi
call fcn.00409008
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
add esp, 4
push dword [ebp - 0x1c]
call esi
push dword [ebp - 0x18]
call esi
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x404669
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40465f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40465f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0040903d
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00408ff7
mov esp, ebp
pop ebp
ret
Function at 0x405180
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x4051ac
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x4051ce
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x4051d0
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x405255
jg 0x4051e5
test esi, esi
je 0x405255
test ecx, ecx
jl 0x40522e
jg 0x4051ef
test eax, eax
je 0x40522e
cmp edi, ecx
jg 0x405203
jl 0x4051f9
cmp esi, eax
jae 0x405203
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x405231
mov edx, dword [ebp + 8]
test edi, edi
jl 0x405255
jg 0x40523b
test esi, esi
je 0x405255
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x405255
push eax
push esi
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405270
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
push esi
mov esi, dword [ebp + 0xc]
test eax, eax
jg 0x40529c
jl 0x405290
test esi, esi
jne 0x40529c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x4052b5
push eax
push esi
push ecx
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, esi
mov edx, dword [eax]
test edx, edx
je 0x4052c8
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
jmp 0x4052ca
xor eax, eax
mov dword [ebp - 4], esi
test eax, eax
je 0x4052f9
mov edi, dword [ebp + 0xc]
cmp eax, edi
cmovb esi, eax
push esi
push edx
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [ebp - 8], esi
add esp, 0xc
mov dword [ebp - 4], edi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp + 0xc]
cmp dword [ebx + 0x4c], 0
je 0x4053ac
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x405324
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov eax, dword [ebp - 4]
mov edx, eax
mov ecx, dword [ebp - 8]
cmp eax, 0xfff
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov dword [ebp - 4], edx
jbe 0x40536f
nop dword [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push ecx
call eax
mov ecx, dword [ebp - 8]
sub edi, eax
add ecx, eax
mov dword [ebp - 4], edi
add esp, 0x10
mov dword [ebp - 8], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x405399
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x405340
cmp dword [ebp - 4], 0
jbe 0x4053af
push dword [ebx + 0x4c]
push edi
push 1
push ecx
call eax
mov edx, dword [ebp - 4]
add esp, 0x10
sub edx, eax
sub esi, edx
mov edx, dword [ebp + 0x10]
mov eax, esi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0x10]
sub esi, edi
pop edi
mov eax, esi
sbb edx, 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp - 4]
sub esi, edx
mov edx, dword [ebp + 0x10]
pop edi
mov eax, esi
sbb edx, 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4056e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x40f008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x405710
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408ff7
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x405740
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x405740
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408ff7
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x405815
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x405769
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x405775
movsx eax, bl
jmp 0x4057ac
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
test eax, eax
js 0x405815
cmp eax, 1
jle 0x4057d6
cmp eax, 3
jne 0x405815
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408ff7
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4057f4
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x405815
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x405815
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408ff7
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408ff7
mov esp, ebp
pop ebp
ret 4
Function at 0x405c80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x40f008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x405d3c
cmp byte [esi + 0x3d], 0
je 0x405d3c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x405d2a
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x405cf1
sub eax, 1
je 0x405cf5
sub eax, 2
jne 0x405d2a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408ff7
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x405d13
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x405d2a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408ff7
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408ff7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00408ff7
mov esp, ebp
pop ebp
ret
Function at 0xf51df0
Capabilities:
Encode data using xor

Disassembly:
jmp 0xf51dfa
pushal
call 0xf51e00
pop ebp
sub ebp, 0x10
sub ebp, 0xb51df0
jmp 0xf51e16
mov eax, 0xb51df0
add eax, ebp
add eax, 0x4c
mov ecx, 0x5a2
mov edx, 0x6c38861d
xor byte [eax], dl
inc eax
dec ecx
jne 0xf51e2d
jmp 0xf51e40
xchg esi, eax
rcl byte [esi + 0x1d1d2194]
sbb eax, 0x1de5dc9c
sbb eax, 0xa5d01e1d
adc eax, 0xa71d1d1d
shl byte [ebp + 0x1d1d1d15], 1
cmpsd dword [esi], dword es:[edi]
xor eax, 0xea1d1d1d
call [esi]
aad 0x96
pushfd
adc dword [0xd81e1d1d], ebx
dec ebp
dec ebp
jne 0xf51e4f
stc
add bl, byte [0x8825ea75]
sbb eax, 0x7539311c
sar byte [0x18f513cb], 1
sbb eax, 0x35f41d1d
sbb eax, 0x49481d1d
inc eax
xchg esi, eax
cwde
adc eax, 0x961d1d1d
mov byte [ecx], dl
sbb eax, 0x90961d1d
or eax, 0xdc1d1d1d
hlt
Function at 0x404d60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4879f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.DLL_GetParent]
mov eax, dword [esi + 0x1c]
push eax
call edi
push eax
call fcn.00463a73
push eax
lea ecx, [esp + 0x30]
call fcn.0046b402
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0xc]
push ecx
push edx
mov dword [esp + 0x50], 0
call dword [sym.imp.USER32.DLL_GetClientRect]
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.DLL_GetWindowRect]
mov edx, dword [esi + 0x1c]
push edx
call edi
push eax
call fcn.00463a73
lea ecx, [esp + 0x1c]
push ecx
mov ecx, eax
call fcn.0046b344
mov eax, dword [esi + 0xf4]
mov ebx, dword [sym.imp.GDI32.DLL_BitBlt]
test eax, eax
jne 0x404e96
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x2c]
neg eax
sbb eax, eax
and eax, ecx
push eax
call dword [sym.imp.GDI32.DLL_CreateCompatibleDC]
push eax
lea ecx, [esi + 0xf0]
call fcn.0046ab86
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
mov edx, dword [esp + 0x30]
sub eax, ecx
mov ecx, dword [esp + 0x14]
sub ecx, edi
push eax
push ecx
push edx
lea edi, [esi + 0x100]
call dword [sym.imp.GDI32.DLL_CreateCompatibleBitmap]
push eax
mov ecx, edi
call fcn.0046b6aa
test edi, edi
je 0x404e42
mov edi, dword [edi + 4]
mov eax, dword [esi + 0xf4]
push edi
push eax
call fcn.0046acc7
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov dword [esi + 0x108], eax
mov eax, dword [esp + 0xc]
sub ecx, edx
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x30]
sub edx, eax
lea eax, [esp + 0x2c]
push 0xcc0020
neg eax
sbb eax, eax
and eax, edi
mov edi, dword [esp + 0x24]
push edi
mov edi, dword [esp + 0x24]
push edi
push eax
push ecx
mov ecx, dword [esi + 0xf4]
push edx
push 0
push 0
push ecx
call ebx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
sub eax, ecx
mov ecx, dword [esp + 0x14]
lea edx, [esi + 0xf0]
sub ecx, edi
test edx, edx
je 0x404eb7
mov edx, dword [edx + 4]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x60]
push eax
push ecx
push 0
mov eax, dword [edx + 4]
push 0
push eax
call ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x48], 0xffffffff
call fcn.0046b474
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret 4
Function at 0x408c50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x488220
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
lea ecx, [esp + 0x18]
mov dword [esp + 0x34], 1
call fcn.00468d12
mov eax, dword [0x4acaa4]
mov dword [esp + 0x28], eax
push 0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x38], 3
mov dword [esp + 0x1c], 0x498464
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0xffffffff
call fcn.0046755c
lea ecx, [esp + 8]
mov byte [esp + 0x34], 4
call fcn.00469195
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x18]
push ecx
push 0x8042
push edx
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 5
call fcn.004692a7
test eax, eax
jne 0x408d2f
lea ecx, [esp + 8]
mov byte [esp + 0x34], 4
call fcn.004691ea
mov dword [esp + 0x18], 0x498464
lea ecx, [esp + 0x28]
mov byte [esp + 0x34], 6
call fcn.0046741f
lea ecx, [esp + 0x3c]
mov byte [esp + 0x34], 0
call fcn.0046741f
lea ecx, [esp + 0x40]
mov dword [esp + 0x34], 0xffffffff
call fcn.0046741f
xor eax, eax
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret 8
mov eax, dword [esp + 0x40]
push ebx
xor ebx, ebx
mov ecx, dword [eax - 8]
mov dword [esp + 8], ebx
test ecx, ecx
jle 0x408dc0
mov cl, byte [ebx + eax]
mov al, bl
add al, cl
push 0
push 0
lea ecx, [esp + 0x14]
mov byte [esp + 0xf], al
call fcn.00469449
lea eax, [esp + 6]
push 1
push eax
lea ecx, [esp + 0x14]
call fcn.004693c4
test eax, eax
je 0x408db2
add bl, byte [esp + 7]
push 1
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.00469449
mov dl, byte [esp + 6]
lea ecx, [esp + 6]
push 1
xor dl, bl
push ecx
lea ecx, [esp + 0x14]
mov byte [esp + 0xe], dl
inc bl
call fcn.004693fe
lea edx, [esp + 6]
push 1
push edx
lea ecx, [esp + 0x14]
call fcn.004693c4
test eax, eax
jne 0x408d71
mov ebx, dword [esp + 8]
mov eax, dword [esp + 0x44]
inc ebx
mov dword [esp + 8], ebx
cmp ebx, dword [eax - 8]
jl 0x408d41
lea ecx, [esp + 0xc]
call fcn.004694c2
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 4
call fcn.004691ea
mov dword [esp + 0x1c], 0x498464
lea ecx, [esp + 0x2c]
mov byte [esp + 0x38], 7
call fcn.0046741f
lea ecx, [esp + 0x40]
mov byte [esp + 0x38], 0
call fcn.0046741f
lea ecx, [esp + 0x44]
mov dword [esp + 0x38], 0xffffffff
call fcn.0046741f
mov ecx, dword [esp + 0x30]
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x412b80
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x124
lea eax, [esp + 0x10]
mov dword [esp], 3
push eax
mov dword [esp + 0x14], 0x94
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
test eax, eax
je 0x412bd0
cmp dword [esp + 0x20], 1
jne 0x412bb4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x412bd0
lea ecx, [esp]
push 0
push ecx
push 0
push 0x68
call dword [sym.imp.USER32.DLL_SystemParametersInfoA]
mov eax, dword [esp]
add esp, 0x124
ret
lea edx, [esp + 4]
push edx
push 1
push 0
push 0x4abbc8
push closesocket
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyExA]
test eax, eax
jne 0x412c3f
lea eax, [esp + 8]
lea ecx, [esp + 0xa4]
push eax
mov eax, dword [esp + 8]
lea edx, [esp + 0x10]
push ecx
push edx
push 0
push 0x4abbb4
push eax
mov dword [esp + 0x20], pe_nt_image_headers32
call dword [sym.imp.ADVAPI32.DLL_RegQueryValueExA]
test eax, eax
jne 0x412c34
push 0xa
lea ecx, [esp + 0xa8]
push eax
push ecx
call fcn.0044d1e1
add esp, 0xc
mov dword [esp], eax
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
mov eax, dword [esp]
add esp, 0x124
ret
Function at 0x425580
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4895fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
xor ebp, ebp
mov dword [esp + 0x1c], ebp
call fcn.00463652
mov dword [esi], 0x496a24
mov eax, dword [0x4acaa4]
lea edi, [esi + 0x44]
mov dword [edi], eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1c], 2
push ecx
mov ecx, edi
mov dword [esi], 0x491dd0
call fcn.0046750c
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x34]
mov dword [esi + 0x40], eax
mov eax, ecx
mov dword [esi + 0x3c], edx
mov dword [esi + 0x48], ebp
mov dword [esi + 0x4c], 1
mov ebx, dword [eax]
lea edx, [esi + 0x50]
mov dword [esi + 0x50], ebx
mov ebx, dword [eax + 4]
mov dword [edx + 4], ebx
mov ebx, dword [eax + 8]
mov dword [edx + 8], ebx
mov eax, dword [eax + 0xc]
mov ebx, dword [esp + 0x24]
mov dword [edx + 0xc], eax
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push edx
or eax, 0x50800080
push ebx
push ecx
push eax
mov ecx, esi
call fcn.00477fa0
test eax, eax
je 0x425746
mov eax, dword [ebx + 0x1c]
mov ebx, dword [sym.imp.USER32.DLL_SendMessageA]
push ebp
push ebp
push 0x31
push eax
call ebx
push eax
call fcn.0046b695
cmp eax, ebp
jne 0x42564c
xor eax, eax
jmp 0x42564f
mov eax, dword [eax + 4]
mov ecx, dword [esi + 0x1c]
push 1
push eax
push 0x30
push ecx
call ebx
mov edx, dword [esp + 0x3c]
mov ecx, esi
push edx
call fcn.00466a56
mov ecx, esi
call fcn.00466c04
mov ebp, dword [esp + 0x40]
lea eax, [ebp - 1]
cmp eax, 0x27
ja case.0x425685.4
xor ecx, ecx
mov cl, byte [eax + 0x425780]
jmp dword [ecx*4 + 0x425770]
mov edi, dword [edi]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esi + 0x1c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0xffffffffffffffff
push ecx
push 0xb1
push edx
call ebx
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebx
jmp 0x425746
mov edi, dword [edi]
or ecx, 0xffffffff
xor eax, eax
push 0xffffffffffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esi + 0x1c]
push 0xb1
push ecx
call ebx
mov edx, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push edx
jmp 0x42571f
mov eax, dword [esi + 0x1c]
push 0xffffffffffffffff
push 0
push 0xb1
push eax
call ebx
mov ecx, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push ecx
call ebx
jmp 0x425746
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
push 0
push 0xb1
push edx
call ebx
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebx
cmp ebp, 0x80
push 0
push ebp
jae 0x425737
mov ecx, dword [esi + 0x1c]
push 0x102
push ecx
jmp 0x425740
mov edx, dword [esi + 0x1c]
push 0x286
push edx
call dword [sym.imp.USER32.DLL_PostMessageA]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x1c], 0xffffffff
call fcn.0046741f
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x20
Function at 0x429230
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
lea ecx, [esp]
push ecx
push 0x429260
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0
call dword [sym.imp.USER32.DLL_EnumWindows]
mov eax, dword [esp + 4]
add esp, 8
ret 4

Function at 0x42e7c0
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
lea ecx, [esp]
push ecx
push 0x42e7f0
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0
call dword [sym.imp.USER32.DLL_EnumWindows]
mov eax, dword [esp + 4]
add esp, 8
ret 4

Function at 0x42ef30
Capabilities:
Connect socket
Resolve dns

Disassembly:
sub esp, 0x10
xor eax, eax
push ebx
mov dword [esp + 4], eax
push esi
mov esi, dword [esp + 0x20]
mov dword [esp + 0xc], eax
push edi
mov edi, dword [sym.imp.WS2_32.DLL_inet_addr]
mov dword [esp + 0x14], eax
mov ebx, ecx
push esi
mov dword [esp + 0x1c], eax
mov word [esp + 0x10], 2
call edi
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], eax
push ecx
call dword [sym.imp.WS2_32.DLL_htons]
push esi
mov word [esp + 0x12], ax
call dword [sym.imp.WS2_32.DLL_gethostbyname]
test eax, eax
je 0x42efce
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
mov eax, ecx
lea edi, [esp + 0x10]
mov esi, dword [edx]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0xc]
push 0x10
push ecx
push edx
call dword [sym.imp.WS2_32.DLL_connect]
cmp eax, 0xffffffff
jne 0x42eff9
push 0x4ac1b4
push 0x441
mov ecx, ebx
call fcn.0046695e
pop edi
pop esi
mov eax, 0xfffffffc
pop ebx
add esp, 0x10
ret 0xc
push esi
call edi
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x42ef98
push 0x4ac19c
push 0x441
mov ecx, ebx
call fcn.0046695e
pop edi
pop esi
mov eax, 0xfffffffd
pop ebx
add esp, 0x10
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret 0xc