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

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0xc], 0
je 0x4cf51f
mov ecx, dword [esi]
mov eax, dword [esi + 0x10]
cmp eax, dword [ecx]
je 0x4cf543
mov eax, dword [esi]
push dword [esi + 0xc]
mov eax, dword [eax + 0x18]
push eax
call dword [eax + 4]
mov eax, dword [esi]
mov ecx, dword [eax]
mov dword [esi + 0x10], ecx
mov eax, dword [eax + 0x18]
push ecx
push eax
call dword [eax]
add esp, 0x10
mov dword [esi + 0xc], eax
test eax, eax
je 0x4cf5a0
cmp dword [esi + 4], 0
je 0x4cf553
mov ecx, dword [esi]
mov eax, dword [esi + 8]
cmp eax, dword [ecx + 4]
je 0x4cf578
mov eax, dword [esi]
push dword [esi + 4]
mov eax, dword [eax + 0x18]
push eax
call dword [eax + 4]
mov eax, dword [esi]
mov ecx, dword [eax + 4]
mov dword [esi + 8], ecx
mov eax, dword [eax + 0x18]
push ecx
push eax
call dword [eax]
add esp, 0x10
mov dword [esi + 4], eax
test eax, eax
je 0x4cf5a0
and dword [esi + 0x34], 0
lea eax, [esi + 0x3c]
and dword [esi + 0x38], 0
push eax
call fcn.004d2584
pop ecx
test eax, eax
jne 0x4cf59c
lea eax, [esi + 0x40]
push eax
call fcn.004d2584
pop ecx
test eax, eax
je 0x4cf5a3
push 0xc
jmp 0x4cf5a2
push 2
pop eax
pop esi
pop ebp
ret

Function at 0x4cf60a
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
and dword [esi + 0xc], 0
lea eax, [esi + 4]
push eax
call fcn.004d2584
pop ecx
test eax, eax
jne 0x4cf640
lea eax, [esi + 8]
push eax
call fcn.004d2584
pop ecx
test eax, eax
jne 0x4cf640
push esi
push 0x4cf5a6
push esi
call fcn.004d2700
add esp, 0xc
pop esi
pop ebp
ret

Function at 0x4d231c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor bl, bl
push edi
mov edi, dword [ebp + 0xc]
xor cl, cl
xor eax, eax
or dword [esi], 0xffffffff
mov byte [esi + 4], 0
test edi, edi
je 0x4d2381
mov edx, dword [ebp + 8]
xor cl, byte [eax + edx]
inc eax
cmp eax, edi
jb 0x4d233b
test cl, cl
jne 0x4d2381
test edi, edi
je 0x4d2381
mov ecx, dword [ebp + 8]
xor ebx, ebx
inc ebx
mov edx, edi
mov byte [esi + 4], bl
call fcn.004ba123
mov edx, eax
xor ecx, ecx
xor eax, eax
cmp dword [eax + 0x58fa54], edx
jne 0x4d2371
cmp dword [eax + 0x58fa50], edi
je 0x4d238a
add eax, 0xc
inc ecx
cmp eax, 0x48
jb 0x4d2361
or dword [esi], 0xffffffff
mov byte [esi + 4], 0
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret 8
mov dword [esi], ecx
test ecx, ecx
js 0x4d237d
jmp 0x4d2381

Function at 0x4d2700
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
push esi
call fcn.00538888
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
jne 0x4d272c
call fcn.004d2644
mov esi, eax
mov eax, esi
pop esi
leave
ret
Function at 0x4d7077
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0x200
jb 0x4d70dd
mov edx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [edx], ax
jne 0x4d70dd
mov ecx, dword [edx + 0x3c]
cmp ecx, 0x1000
jae 0x4d70dd
lea eax, [ecx + 0x200]
cmp eax, dword [ebp + 0xc]
ja 0x4d70dd
test cl, 7
jne 0x4d70dd
add ecx, edx
cmp dword [ecx], 0x4550
jne 0x4d70dd
movzx eax, word [ecx + 4]
sub eax, 0x14c
je 0x4d70f6
sub eax, 0x74
je 0x4d70ef
dec eax
sub eax, 1
je 0x4d70ef
dec eax
sub eax, 1
je 0x4d70e8
sub eax, 0x3c
je 0x4d70e1
sub eax, 0x8464
je 0x4d70f6
xor eax, eax
pop ebp
ret
mov edx, 0x3030401
jmp 0x4d70fb
mov edx, 0x3030701
jmp 0x4d70fb
mov edx, 0x3030501
jmp 0x4d70fb
mov edx, 0x3030103
mov eax, 0x400
cmp word [ecx + 0x14], ax
ja 0x4d70dd
movzx eax, word [ecx + 0x18]
mov ecx, 0x10b
cmp ax, cx
je 0x4d711e
mov ecx, 0x20b
cmp ax, cx
jne 0x4d70dd
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
xor eax, eax
inc eax
pop ebp
ret
Function at 0x4dc643
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x18], 0
and dword [eax + 0x1c], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
pop ebp
ret

Function at 0x4dc845
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x5d2640]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x44]
push esi
push edi
push 5
mov esi, ecx
push eax
push esi
mov dword [ebp - 0x88], esi
call fcn.004dbc8c
push 5
lea ecx, [ebp - 0x84]
lea eax, [esi + 0x60]
push ecx
push eax
mov dword [ebp - 0x8c], eax
call fcn.004dbc8c
add esp, 0x18
lea edi, [ebp - 0x44]
mov esi, ebx
push 5
pop ecx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x4dc8e9
lea esi, [ebp - 0x44]
sub esi, ebx
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x88]
call fcn.004dbdbb
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x8c]
call fcn.004dbdbb
add esp, 0x18
mov ecx, ebx
push 5
pop edx
mov eax, dword [esi + ecx]
xor dword [ecx], eax
lea ecx, [ecx + 4]
sub edx, 1
jne 0x4dc8d7
sub edi, 1
jne 0x4dc8a3
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050f496
leave
ret 8
Function at 0x4dc8fa
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
mov eax, dword [0x5d2640]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x10
xor eax, eax
mov dword [ebp - 0xbc], ebx
pop ecx
lea edi, [ebp - 0x58]
mov dword [ebp - 0xc0], esi
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 0xc]
cmp edi, 0x40
jbe 0x4dc978
lea eax, [ebp - 0xb8]
push eax
call fcn.004dc643
push edi
lea eax, [ebp - 0xb8]
push esi
push eax
call fcn.004dc675
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.004dbd2b
add esp, 0x18
xor esi, esi
mov ecx, esi
mov eax, dword [ebp + ecx - 0x18]
bswap eax
mov dword [ebp + ecx - 0x58], eax
add ecx, 4
cmp ecx, 0x14
jb 0x4dc964
jmp 0x4dc9af
xor esi, esi
mov ebx, esi
test edi, edi
je 0x4dc9a9
mov esi, dword [ebp - 0xc0]
mov eax, ebx
mov edx, ebx
and eax, 3
shr edx, 2
push 3
pop ecx
sub ecx, eax
movzx eax, byte [esi + ebx]
shl ecx, 3
shl eax, cl
or dword [ebp + edx*4 - 0x58], eax
inc ebx
cmp ebx, edi
jb 0x4dc986
xor esi, esi
mov ebx, dword [ebp - 0xbc]
mov eax, esi
movups xmm0, xmmword [ebp + eax*4 - 0x58]
pxor xmm0, xmmword [str.6666666666666666jjjjjjjjjjjjjjjj_bO_]
movups xmmword [ebp + eax*4 - 0x58], xmm0
add eax, 4
cmp eax, 0x10
jb 0x4dc9b1
push ebx
call fcn.004dc643
push 0x10
lea eax, [ebp - 0x58]
push eax
push ebx
call fcn.004dbcdc
add esp, 0x10
movups xmm0, xmmword [ebp + esi*4 - 0x58]
pxor xmm0, xmmword [0x590110]
movups xmmword [ebp + esi*4 - 0x58], xmm0
add esi, 4
cmp esi, 0x10
jb 0x4dc9e0
lea esi, [ebx + 0x60]
push esi
call fcn.004dc643
push 0x10
lea eax, [ebp - 0x58]
push eax
push esi
call fcn.004dbcdc
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0050f496
leave
ret 8

Function at 0x4dca23
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x5d2640]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov ecx, dword [ebp + 8]
mov eax, ebx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x48], ecx
mov byte [ebp + eax - 0x44], bl
inc eax
cmp eax, 0x40
jb 0x4dca45
cmp edi, 0x40
jbe 0x4dca73
push esi
call fcn.004dc643
push edi
push dword [ebp - 0x48]
push esi
call fcn.004dc675
lea eax, [ebp - 0x44]
push eax
push esi
call fcn.004dbd2b
add esp, 0x18
jmp 0x4dca85
test edi, edi
je 0x4dca85
push edi
push ecx
lea eax, [ebp - 0x44]
push eax
call fcn.0051e150
add esp, 0xc
mov eax, ebx
xor byte [ebp + eax - 0x44], 0x36
inc eax
cmp eax, 0x40
jb 0x4dca87
push esi
call fcn.004dc643
push 0x40
lea eax, [ebp - 0x44]
push eax
push esi
call fcn.004dc675
add esp, 0x10
xor byte [ebp + ebx - 0x44], 0x6a
inc ebx
cmp ebx, 0x40
jb 0x4dcaa7
add esi, 0x60
push esi
call fcn.004dc643
push 0x40
lea eax, [ebp - 0x44]
push eax
push esi
call fcn.004dc675
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0050f496
leave
ret 8
Function at 0x4dd5ef
Capabilities:
Terminate process

Disassembly:
push esi
push edi
mov edi, ecx
xor esi, esi
lea eax, [edi + 8]
cmp dword [eax], esi
jne 0x4dd607
push eax
call fcn.004d2584
pop ecx
test eax, eax
jne 0x4dd619
lea eax, [edi + 0xc]
cmp dword [eax], esi
jne 0x4dd617
push eax
call fcn.004d2584
pop ecx
mov esi, eax
mov eax, esi
pop edi
pop esi
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi + 0x18]
mov dword [esi + 8], eax
mov eax, dword [edi + 0x1c]
mov dword [esi + 0xc], eax
xor eax, eax
mov word [esi], ax
cmp byte [edi + 1], al
je 0x4dda6e
mov bl, byte [edi + 2]
lea eax, [edi + 0x20]
push eax
lea ecx, [esi + 0x24]
call fcn.0049bb48
movzx eax, byte [edi + 4]
mov ecx, esi
push eax
push 0x800
call fcn.004ddad3
mov eax, dword [edi + 0x10]
mov dword [esi + 0x44], eax
mov eax, dword [edi + 0x14]
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0x2c]
mov dword [esi + 0x68], eax
mov eax, dword [edi + 0x30]
mov dword [esi + 0x6c], eax
mov eax, dword [edi + 0x34]
mov dword [esi + 0x70], eax
mov eax, dword [edi + 0x38]
mov dword [esi + 0x74], eax
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x78], eax
mov eax, dword [edi + 0x40]
mov dword [esi + 0x7c], eax
mov al, byte [edi + 3]
mov byte [esi + 0x80], al
jmp 0x4dda77
mov ecx, esi
call fcn.004c8d25
mov bl, al
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x38]
mov dword [esi + 0x48], ecx
mov ecx, dword [edx + 0x3c]
mov dword [esi + 0x4c], ecx
xor ecx, ecx
mov dword [esi + 0x40], 0x3f
mov byte [esi + 5], cl
test bl, bl
jne 0x4ddaa2
mov eax, dword [ebp + 0xc]
mov byte [ebp + 0x14], 1
cmp byte [eax + 0x24], cl
jne 0x4ddaa5
mov byte [ebp + 0x14], cl
push dword [ebp + 0x14]
mov ecx, esi
push 1
call fcn.004ddad3
test bl, bl
je 0x4ddace
xor eax, eax
mov byte [esi + 4], 0x14
mov word [esi + 2], ax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x1c], eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4e0879
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi], 0
je 0x4e088c
xor eax, eax
jmp 0x4e0916
lea eax, [esi + 0x30]
push edi
push eax
call fcn.004d2598
pop ecx
test eax, eax
jne 0x4e0912
xor edi, edi
lea eax, [esi + 0x14]
inc edi
push eax
mov dword [esi + 0x28], edi
call fcn.004d2584
pop ecx
test eax, eax
jne 0x4e0912
lea eax, [esi + 0x18]
push eax
call fcn.004d2584
pop ecx
test eax, eax
jne 0x4e0912
lea eax, [esi + 0x1c]
push eax
call fcn.004d2584
pop ecx
test eax, eax
jne 0x4e0912
push dword [ebp + 0x14]
lea eax, [esi + 0x20]
push dword [ebp + 0x14]
push eax
call fcn.004d26a1
add esp, 0xc
test eax, eax
jne 0x4e0912
push dword [ebp + 0x14]
push eax
lea eax, [esi + 0x24]
push eax
call fcn.004d26a1
add esp, 0xc
test eax, eax
jne 0x4e0912
push dword [ebp + 0x10]
lea eax, [esi + 0x10]
mov dword [esi + 4], edi
push dword [ebp + 0xc]
push eax
call fcn.004d2700
add esp, 0xc
test eax, eax
jne 0x4e0912
mov dword [esi], edi
jmp 0x4e0915
push 0xc
pop eax
pop edi
pop esi
pop ebp
ret
Function at 0x4e0ac4
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 4]
cmp dword [ebx], 0
jne 0x4e0adb
push ebx
call fcn.004d2584
pop ecx
test eax, eax
jne 0x4e0b1d
push edi
lea edi, [esi + 8]
cmp dword [edi], 0
jne 0x4e0aef
push edi
call fcn.004d2584
pop ecx
test eax, eax
jne 0x4e0b1c
push ebx
call fcn.004d260c
push edi
call fcn.004d260c
lea eax, [esi + 0xc]
mov byte [esi + 0x10], 0
cmp dword [eax], 0
pop ecx
pop ecx
je 0x4e0b0d
xor eax, eax
jmp 0x4e0b1c
push esi
push 0x4e0a86
push eax
call fcn.004d2700
add esp, 0xc
pop edi
pop esi
pop ebx
ret
Function at 0x4e67bd
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5d2640]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [edi]
and dword [edi + 4], 0
mov word [eax], cx
xor eax, eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x210]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
mov ecx, edi
lea eax, [ebp - 0x210]
push eax
call fcn.0049bc56
lea eax, [esi - 1]
mov ecx, 0x103
cmp ecx, eax
mov ecx, dword [ebp - 4]
pop edi
sbb al, al
xor ecx, ebp
inc al
pop esi
call fcn.0050f496
leave
ret

Function at 0x4e684a
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
pop ebp
ret

Function at 0x4e6eba
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, eax
mov eax, ecx
pop ebp
ret
Function at 0x4eb5d0
Capabilities:
Prepare http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], ecx
cmp dword [ebp + 0xc], 0
jne 0x4eb5e8
mov dword [ebp - 8], 0x5906a8
jmp 0x4eb5ef
mov dword [ebp - 8], 0x5906b0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0x10]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x14], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x14], 0
je 0x4eb62c
mov dword [ebp - 0xc], 1
jmp 0x4eb633
mov dword [ebp - 0xc], 0
movzx eax, byte [ebp - 0xc]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4ebbd0
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 0
push 0
push 0
push 0
push str.Microsoft_Internet_Explorer
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0xc], 0
jne 0x4ebc0a
mov eax, dword [ebp - 4]
mov dword [eax + 0x84], 1
xor al, al
jmp 0x4ebc30
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x20]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x18]
push eax
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x4ebe90
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x5d2640]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x40], ecx
mov byte [ebp - 0x35], 0
push 0x30
push 0
lea eax, [ebp - 0x34]
push eax
call fcn.0051e6d0
add esp, 0xc
mov dword [ebp - 0x3c], 0x30
push 0
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x34]
push edx
push 0
push 5
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 0x14]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x4ebeff
mov dword [ebp - 0x44], 0
push 0xa
lea edx, [ebp - 0x44]
push edx
lea eax, [ebp - 0x34]
push eax
call fcn.005389f1
add esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov byte [ebp - 0x35], 1
movzx eax, byte [ebp - 0x35]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050f496
mov esp, ebp
pop ebp
ret 4

Function at 0x4ebf20
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x5d2640]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x38], 0
push 0x30
push 0
lea eax, [ebp - 0x34]
push eax
call fcn.0051e6d0
add esp, 0xc
mov dword [ebp - 0x3c], 0x30
push 0
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x34]
push edx
push 0
push 0x13
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 0x14]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x4ebf8c
mov dword [ebp - 0x44], 0
push 0xa
lea edx, [ebp - 0x44]
push edx
lea eax, [ebp - 0x34]
push eax
call fcn.005389f1
add esp, 0xc
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050f496
mov esp, ebp
pop ebp
ret
Function at 0x4ec360
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57486d
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x5d2640]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x28]
call fcn.0041eac0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x30]
call fcn.004ebc40
movzx ecx, al
test ecx, ecx
jne 0x4ec3ec
lea edx, [ebp - 0x28]
push edx
mov ecx, dword [ebp + 8]
call fcn.0040bee0
mov eax, dword [ebp - 0x3c]
or eax, 1
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040d060
mov eax, dword [ebp + 8]
jmp 0x4ec4f6
mov ecx, dword [ebp - 0x30]
call fcn.004ebf20
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x30]
cmp dword [edx + 4], 0x194
jne 0x4ec41b
mov dword [ebp - 0x40], 5
push 0x5c6dc4
lea eax, [ebp - 0x40]
push eax
call fcn.0051db86
push 0x1000
call fcn.00533222
add esp, 4
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x29], 0
mov ecx, 1
test ecx, ecx
je 0x4ec4b3
lea edx, [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x14]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x4ec44f
jmp 0x4ec4b3
cmp dword [ebp - 0x38], 0
ja 0x4ec45b
mov byte [ebp - 0x29], 1
jmp 0x4ec4b3
cmp dword [ebp - 0x38], 0x1000
jbe 0x4ec47f
mov edx, dword [ebp - 0x34]
push edx
call fcn.005221d0
add esp, 4
mov eax, dword [ebp - 0x38]
push eax
call fcn.00533222
add esp, 4
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x14]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x4ec49e
jmp 0x4ec4b3
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040f750
jmp 0x4ec42f
mov edx, dword [ebp - 0x34]
push edx
call fcn.005221d0
add esp, 4
movzx eax, byte [ebp - 0x29]
test eax, eax
jne 0x4ec4cf
lea ecx, [ebp - 0x28]
call fcn.004ec6b0
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040bee0
mov edx, dword [ebp - 0x3c]
or edx, 1
mov dword [ebp - 0x3c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040d060
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050f496
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4ec520
Capabilities:
Set http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5748ad
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x5d2640]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4c], ecx
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x4c]
add ecx, 0x24
call fcn.004eeb20
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x60], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x60]
push edx
lea eax, [ebp - 0x28]
push eax
call fcn.004e9800
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0040d060
push 0xa0000000
lea ecx, [ebp - 0x28]
call fcn.004e95f0
push eax
lea ecx, [ebp - 0x28]
call fcn.004e9550
push eax
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 0x14]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
cmp dword [ebp + 8], 0
jne 0x4ec5bc
mov dword [ebp - 0x50], 0
jmp 0x4ec5cb
mov eax, dword [ebp + 8]
push eax
call fcn.00533ad0
add esp, 4
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x48], ecx
cmp dword [ebp + 0xc], 0
jne 0x4ec61e
push 0
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 0x14]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
cmp eax, 1
jne 0x4ec604
mov dword [ebp - 0x54], 1
jmp 0x4ec60b
mov dword [ebp - 0x54], 0
mov cl, byte [ebp - 0x54]
mov byte [ebp - 0x41], cl
lea ecx, [ebp - 0x28]
call fcn.004046e0
mov al, byte [ebp - 0x41]
jmp 0x4ec665
push 0
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 0x14]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
cmp eax, 1
jne 0x4ec64d
mov dword [ebp - 0x58], 1
jmp 0x4ec654
mov dword [ebp - 0x58], 0
mov dl, byte [ebp - 0x58]
mov byte [ebp - 0x42], dl
lea ecx, [ebp - 0x28]
call fcn.004046e0
mov al, byte [ebp - 0x42]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050f496
mov esp, ebp
pop ebp
ret 8
Function at 0x4f0400
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x574da7
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5d2640]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0x10], 0
je 0x4f0455
mov dword [ebx], 0x590ba8
mov dword [ebx + 0x50], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
push 0
lea esi, [ebx + 4]
mov ecx, ebx
push 0
push esi
mov dword [ebp + 0xc], esi
call fcn.0040bcd0
mov eax, dword [ebx]
push 8
mov dword [ebp - 4], 1
mov dword [ebp - 0x18], esi
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ecx + ebx - 4], eax
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00495822
mov esi, eax
add esp, 4
test esi, esi
je 0x4f04b2
push 1
mov byte [ebp - 4], 2
call fcn.0050e047
add esp, 4
mov dword [esi + 4], eax
jmp 0x4f04b4
xor esi, esi
lea eax, [ebx + 4]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
lea ecx, [eax + 0x18]
mov dword [eax + 0x20], ecx
lea edx, [eax + 0x24]
mov dword [eax + 0x2c], edx
lea edi, [eax + 0x14]
mov dword [eax + 0x1c], edi
add eax, 0x28
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x10]
mov dword [esi], 0
mov esi, dword [ebp + 0xc]
mov dword [ecx], 0
mov dword [eax], 0
mov dword [ebx], 0
mov ebx, dword [ebp + 8]
mov ecx, ebx
not ecx
mov dword [edi], 0
mov dword [edx], 0
and ecx, 1
shl ecx, 2
mov eax, ebx
mov edx, ecx
mov dword [esi], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
or edx, 8
mov dword [esi + 0x38], 0
and al, 8
cmove edx, ecx
mov eax, edx
or eax, 0x10
and bl, 4
cmove eax, edx
mov dword [esi + 0x3c], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x5106c3
Capabilities:
Parse pe header

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