joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412e2a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42d520]
jne 0x412e34
repz ret
jmp fcn.0041935a

Function at 0x42194c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42d520]
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.00418b92
and dword [ebp - 0x14], 0
cmp dword [0x464778], 0
mov dword [ebp - 0x18], eax
jne 0x4219ff
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x421aa7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x421aa7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x464778], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x46477c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x464780], eax
call edi
push eax
call esi
mov dword [0x464788], eax
test eax, eax
je 0x4219ff
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x464784], eax
mov eax, dword [0x464784]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x421a58
cmp dword [0x464788], ecx
je 0x421a58
push eax
call esi
push dword [0x464788]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x421a58
test ebx, ebx
je 0x421a58
call edi
test eax, eax
je 0x421a4f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x421a4f
test byte [ebp - 8], 1
jne 0x421a58
or dword [ebp + 0x10], 0x200000
jmp 0x421a8b
mov eax, dword [0x46477c]
cmp eax, dword [ebp - 0x18]
je 0x421a8b
push eax
call esi
test eax, eax
je 0x421a8b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x421a8b
mov eax, dword [0x464780]
cmp eax, dword [ebp - 0x18]
je 0x421a8b
push eax
call esi
test eax, eax
je 0x421a8b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x464778]
call esi
test eax, eax
je 0x421aa7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x421aa9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412e2a
leave
ret
Function at 0x4024ab
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2c
mov eax, dword [0x49a040]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
mov esi, dword [0x4f37ec]
xor ebx, ebx
push edi
mov dword [esp + 0x14], edx
mov eax, dword [esi + 0x3c]
mov ebp, dword [eax + esi + 0x78]
add ebp, esi
mov edi, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
add edi, esi
mov dword [esp + 0x18], eax
test eax, eax
je 0x402512
mov eax, dword [edi]
lea ecx, [esp + 0x1c]
add eax, esi
push eax
call fcn.00402907
lea ecx, [esp + 0x1c]
call fcn.004022db
cmp eax, dword [esp + 0x14]
je 0x40252a
lea ecx, [esp + 0x1c]
add edi, 4
call fcn.00402a0b
inc ebx
cmp ebx, dword [esp + 0x18]
jb 0x4024e2
xor edi, edi
mov ecx, dword [esp + 0x34]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042eafb
add esp, 0x2c
ret
mov edx, str.QwruxAA
call fcn.00402cdb
push eax
call fcn.00402f54
mov eax, dword [ebp + 0x24]
pop ecx
lea eax, [eax + ebx*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebp + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x1c]
call fcn.00402a0b
jmp 0x402514
Function at 0x402606
Capabilities:
Access peb ldr_data
Create thread
Get kernel32 base address
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x49a040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
sub cx, 0x1f9
mul edi
dec cx
mul di
mul ebx
sub ax, 0x22b
or edi, ebx
shr cx, 2
rcl eax, 0x6e
rol ax, 0x19
rcl cx, 0xcb
mul si
mov si, 0x1b0
rcr esi, 0xed
inc si
dec dx
movsx ebx, dh
movsx ecx, si
rcl cx, 0x33
mov edx, esi
shr ax, 0xb9
dec cx
ja 0x40266c
test edx, 0x43
ja 0x40268d
dec bx
imul eax
jmp 0x40267c
rol bx, 0x64
sub di, cx
ror esi, 0x18
ror ecx, 0xef
movsx ebx, bx
rcl eax, 0x5b
mul esi
jae 0x40268d
inc ax
movsx ecx, si
rcr ebx, 0x8e
jmp 0x4026a8
and ecx, 0x33b
ror edx, 0x56
rcr di, 0xc6
or esi, 0x389
movzx edi, al
movsx edi, si
imul edx
mul cx
ror ax, 0x4e
sub ebx, 0xb9
rcl cx, 0x60
jb 0x4026c7
imul si
mul eax
inc esi
xor bx, dx
inc ebx
jmp 0x4026d9
mul eax
add eax, edi
mov ax, 0x2a4
mul ebx
ror edi, 0xfc
xor di, 0xdb
movsx ecx, bh
dec bx
push str.IOanz_UZA891nNAIUsy_U_Ahy8_
lea ecx, [ebp - 0x1c]
call fcn.00402907
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x34]
call fcn.0040257a
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x4f37ec], eax
push 0x27
mov esi, 0x4f0b30
mov edx, 0x547
push 0x49ab00
mov ecx, esi
call fcn.00402093
pop ecx
pop ecx
mov edx, 0x8aafdc01
call fcn.004024ab
lea ecx, [ebp - 0x38]
push ecx
push 0x40
push 0x4e4
push esi
call eax
test eax, eax
je 0x402784
push 0x29
mov esi, 0x49ab30
mov edx, 0x56000
push str._Yzd
mov ecx, esi
call fcn.00402093
pop ecx
pop ecx
xor eax, eax
push eax
push eax
push esi
push 0x4f0cb8
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x34]
call fcn.00402a0b
lea ecx, [ebp - 0x1c]
call fcn.00402a0b
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042eafb
leave
ret 0x10
Function at 0x46fa2e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0046f615

Function at 0x46fa39
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0046f7a4

Function at 0x46ff5c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00430030
mov eax, dword [0x49a040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0046d70b
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x46ff9e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4700fa
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00484da0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4f3470]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004714f1
mov ecx, dword [esi*4 + 0x4f3470]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4700f3
cmp eax, dword [edi + ecx + 0x24]
jne 0x4700f3
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4700f3
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004714f1
add esp, 0x14
test edx, edx
jl 0x4700f3
jg 0x470069
test eax, eax
jb 0x4700f3
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4700f3
jl 0x470083
cmp dword [ebp - 0x1008], eax
ja 0x4700f3
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4700a1
test ebx, ebx
je 0x4700da
cmp ecx, edi
jae 0x4700da
mov al, byte [ecx]
cmp al, 0xd
jne 0x4700bb
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4700c7
cmp byte [ecx + 1], 0xa
jne 0x4700c7
inc ecx
jmp 0x4700c7
movzx eax, al
movsx eax, byte [eax + 0x49a318]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4700a1
cmp edx, ebx
jne 0x4700a1
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4700f8
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0042eafb
leave
ret
Function at 0x470678
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 + 0x4f3470]
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 0x4706b8
cmp byte [ebx], 0xa
jne 0x4706b8
or byte [eax + edi + 0x28], 4
jmp 0x4706bd
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4707bb
mov al, byte [edx]
cmp al, 0x1a
je 0x47079d
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4706ec
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x470711
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x47071b
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 0x4706ce
jmp 0x4707bb
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 0x470798
cmp dword [ebp - 0xc], 0
je 0x470798
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4f3470]
test byte [eax + edi + 0x28], 0x48
je 0x470772
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x47075d
mov byte [esi], dl
jmp 0x47076e
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4f3470]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4707bb
cmp byte [ebp - 1], 0xa
jne 0x470781
cmp esi, ebx
jne 0x470781
mov byte [esi], 0xa
jmp 0x4707ba
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0047150f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4707bb
mov byte [esi], 0xd
jmp 0x4707ba
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4f3470]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4707b7
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4707bb
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4707c4
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 + 0x4f3470]
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 0x470807
cmp word [esi], dx
jne 0x470807
or byte [edi + eax + 0x28], 4
jmp 0x47080c
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 0x47095f
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 0x47093f
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x47084e
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x470884
cmp eax, edx
jae 0x470890
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 0x470826
jmp 0x47095f
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 0x47093b
cmp dword [ebp - 0x14], 0
je 0x47093b
mov eax, dword [ebx*4 + 0x4f3470]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x470913
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4708dc
mov word [esi], cx
jmp 0x47090f
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4f3470]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4f3470]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4f3470]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x47095f
pop ebx
cmp word [ebp - 4], bx
jne 0x470924
cmp esi, dword [ebp + 0xc]
jne 0x470924
mov word [esi], bx
jmp 0x47095c
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0047150f
add esp, 0x10
cmp word [ebp - 4], bx
je 0x47095f
push 0xd
jmp 0x470958
mov ecx, dword [ebx*4 + 0x4f3470]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x470956
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x47095f
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 0x401d10
Capabilities:
Initialize winhttp library
Prepare http request

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, 0x436dc0
push esi
mov esi, eax
mov eax, ecx
push ebx
mov ebx, edx
movzx esi, si
sub esp, 0x20
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0xc], 0
cmp ecx, 1
sbb edx, edx
and edx, 5
add edx, 5
test ecx, ecx
mov ecx, 0x436e00
cmovne ecx, edi
mov dword [eax + 8], edx
mov edi, dword fs:[0x18]
mov dword [eax + 4], ecx
mov dword [esp + 0x10], 0x10000000
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0x4361aa
call dword [sym.imp.winhttp.dll_WinHttpOpen]
mov dword [ebx], eax
sub esp, 0x14
call fcn.00431c30
mov dword [eax], 0x436036
mov dword [eax + 4], 0x66c
mov eax, dword [edi + 0x34]
mov dword [esp + 4], 0x4361bc
mov dword [esp + 8], eax
mov edx, dword [ebx]
xor eax, eax
test edx, edx
setne al
mov dword [esp], eax
call fcn.00401be0
lea eax, [ebp - 0x10]
mov dword [esp + 0xc], 4
mov dword [esp + 8], eax
mov dword [esp + 4], 0x2d
mov eax, dword [ebx]
mov dword [esp], eax
call dword [sym.imp.winhttp.dll_WinHttpSetOption]
sub esp, 0x10
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], 0x402f30
mov eax, dword [ebx]
mov dword [esp], eax
call dword [sym.imp.winhttp.dll_WinHttpSetStatusCallback]
mov eax, dword [ebp - 0x10]
mov edx, 1
mov ecx, 0x671
sub esp, 0x10
call fcn.00401c00
mov dword [esp + 8], esi
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0x4361d8
mov eax, dword [ebx]
mov dword [esp], eax
call dword [sym.imp.winhttp.dll_WinHttpConnect]
mov dword [ebx + 4], eax
sub esp, 0x10
call fcn.00431c30
mov dword [eax], 0x436036
mov dword [eax + 4], 0x673
mov eax, dword [edi + 0x34]
mov dword [esp + 4], 0x4361ec
mov dword [esp + 8], eax
mov ecx, dword [ebx + 4]
xor eax, eax
test ecx, ecx
setne al
mov dword [esp], eax
call fcn.00401be0
mov eax, dword [ebp - 0x10]
mov ecx, 0x675
mov edx, 2
call fcn.00401c00
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [ebx + 4]
mov dword [esp], eax
call dword [sym.imp.winhttp.dll_WinHttpOpenRequest]
mov dword [ebx + 8], eax
sub esp, 0x1c
call fcn.00431c30
mov dword [eax], 0x436036
mov dword [eax + 4], 0x677
mov eax, dword [edi + 0x34]
mov dword [esp + 4], 0x43620d
mov dword [esp + 8], eax
mov esi, dword [ebx + 8]
xor eax, eax
test esi, esi
setne al
mov dword [esp], eax
call fcn.00401be0
mov eax, dword [ebp - 0x10]
mov ecx, 0x679
mov edx, 3
call fcn.00401c00
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebx + 8]
mov dword [esp], eax
call dword [sym.imp.winhttp.dll_WinHttpSendRequest]
sub esp, 0x1c
mov ebx, eax
call fcn.00431c30
mov dword [eax], 0x436036
mov dword [eax + 4], 0x67b
mov eax, dword [edi + 0x34]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], 0x43622b
call fcn.00401be0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4020b0
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
mov eax, ebx
sub esp, 0x414
mov dword [edx + 4], 0x436cc0
mov dword [edx + 8], 3
mov dword [edx + 0xc], 0
mov edx, 0xb
mov dword [ebp - 0x410], ecx
mov ecx, dword [ebp + 8]
call fcn.00401c00
lea edx, [ebp - 0x40c]
mov eax, 0x3f3f3f3f
mov ecx, 0x100
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [esp + 4], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x400
mov eax, dword [esi + 8]
mov dword [esp], eax
call dword [sym.imp.winhttp.dll_WinHttpReadData]
sub esp, 0x10
mov esi, eax
call fcn.00431c30
mov dword [eax], 0x436036
mov dword [eax + 4], 0x6ed
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp], esi
mov dword [esp + 4], 0x436268
mov dword [esp + 8], eax
call fcn.00401be0
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov edi, dword [ebp - 0x410]
sub esp, 8
mov dword [esp], edi
call dword [sym.imp.msvcrt.dll_strlen]
mov ebx, eax
call fcn.00431c30
lea edx, [ebp - 0x40c]
mov dword [eax], 0x436036
mov dword [eax + 4], 0x6f2
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], edx
call sub.msvcrt.dll_memcmp
mov dword [esp + 4], str.unexpected_data_n
test eax, eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00401be0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4021d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x40c]
mov esi, eax
push ebx
sub esp, 0x410
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x400
mov dword [esp + 4], edi
mov eax, dword [0x45202c]
mov dword [esp], eax
call dword [sym.imp.ws2_32.dll_recv]
sub esp, 0x10
mov ebx, eax
call fcn.00431c30
mov dword [eax], 0x436036
mov dword [eax + 4], esi
xor eax, eax
cmp ebx, 0x14
seta al
mov dword [esp + 4], str.data_too_short_n
mov dword [esp], eax
call fcn.00401be0
cmp ebx, 0x13
ja 0x402240
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov byte [ebp - 0x3f8], 0
call fcn.00431c30
mov dword [eax + 4], esi
mov dword [eax], 0x436036
mov dword [esp], edi
mov dword [esp + 4], str.GET__test_HTTP_1.1_r_n
call sub.msvcrt.dll_strcmp
mov dword [esp + 8], edi
test eax, eax
mov dword [esp + 4], str.unexpected_data___s__n
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00401be0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x402650
Capabilities:
Receive http response
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
mov esi, ecx
push ebx
mov ebx, edx
sub esp, 0x10
mov dword [esp], ecx
call dword [sym.imp.msvcrt.dll_strlen]
mov dword [esp + 4], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov eax, dword [0x45202c]
mov dword [esp], eax
call dword [sym.imp.ws2_32.dll_send]
mov esi, dword [sym.imp.kernel32.dll_WaitForSingleObject]
sub esp, 0x10
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call esi
mov dword [ebx + 4], 0x436d80
mov ecx, 0x696
mov eax, ebx
mov dword [ebx + 8], 3
mov edx, 3
sub esp, 8
mov dword [ebx + 0xc], 0
call fcn.00401c00
mov dword [esp + 4], 0
mov eax, dword [edi + 8]
mov dword [esp], eax
call dword [sym.imp.winhttp.dll_WinHttpReceiveResponse]
sub esp, 8
mov edi, eax
call fcn.00431c30
mov dword [eax], 0x436036
mov dword [eax + 4], 0x698
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp], edi
mov dword [esp + 4], 0x4362dc
mov dword [esp + 8], eax
call fcn.00401be0
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call esi
sub esp, 8
call fcn.00431c30
mov dword [eax + 4], 0x69b
mov dword [eax], 0x436036
mov edx, dword [ebx + 0xc]
mov ecx, dword [ebx + 4]
lea eax, [edx + edx*2]
lea eax, [ecx + eax*4]
mov eax, dword [eax + 4]
mov dword [esp + 4], str.some_notifications_were_missing:__x_n
mov dword [esp + 8], eax
xor eax, eax
cmp dword [ebx + 8], edx
sete al
mov dword [esp], eax
call fcn.00401be0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40f640
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
lea eax, [ebp - 0x14]
mov esi, edx
push ebx
mov ebx, ecx
sub esp, 0x24
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsConnections
mov dword [esp], 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
xor edx, edx
sub esp, 0x14
test eax, eax
je 0x40f690
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], str.WinHttpSettings
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov dword [ebp - 0x18], eax
call eax
lea ecx, [ebp - 0x10]
sub esp, 0x18
test eax, eax
jne 0x40f709
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
cmp esi, edx
jb 0x40f70e
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], str.WinHttpSettings
mov dword [esp], eax
mov eax, dword [ebp - 0x18]
call eax
sub esp, 0x18
test eax, eax
je 0x40f730
mov eax, dword [ebp - 0x14]
xor edx, edx
mov dword [ebp - 0x18], edx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov edx, dword [ebp - 0x18]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
mov eax, edx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
jmp 0x40f70e

Function at 0x40f740
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, edx
push ebx
lea edx, [ebp - 0xc]
mov ebx, ecx
sub esp, 0x28
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsConnections
mov dword [esp], 0x80000002
call dword [sym.imp.advapi32.dll_RegCreateKeyExW]
sub esp, 0x24
test eax, eax
jne 0x40f7c5
mov eax, dword [ebp - 0xc]
test ebx, ebx
jne 0x40f7d0
mov dword [esp + 4], str.WinHttpSettings
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegDeleteValueW]
sub esp, 8
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov edx, dword [ebp + 8]
mov dword [esp + 8], 0
mov dword [esp + 0xc], edx
mov dword [esp + 4], str.WinHttpSettings
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
jmp 0x40f7b6
Function at 0x40fb00
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ecx, edx
mov ebp, esp
push edi
lea edi, [edx + 4]
and edi, 0xfffffffc
push esi
mov esi, eax
xor eax, eax
push ebx
sub ecx, edi
mov ebx, edx
add ecx, 0x100
shr ecx, 2
sub esp, 0x10
mov dword [edx], 0
mov dword [edx + 0xfc], 0
rep stosd dword es:[edi], eax
xor edi, edi
lea esi, [esi]
lea esi, [esi]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], ebx
mov dword [esp], esi
call dword [sym.imp.ws2_32.dll_recv]
sub esp, 0x10
cmp eax, 1
jne 0x40fb7e
cmp edi, 3
jle 0x40fb90
cmp byte [ebx - 2], 0xa
je 0x40fba0
add edi, 1
add ebx, 1
cmp edi, 0xff
jne 0x40fb40
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
add edi, 1
add ebx, 1
jmp 0x40fb40
cmp byte [ebx], 0xa
jne 0x40fb70
cmp byte [ebx - 3], 0xd
jne 0x40fb70
cmp byte [ebx - 1], 0xd
jne 0x40fb70
jmp 0x40fb7e