joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401060
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [edi]
mov ebx, eax
test esi, esi
jne 0x401071
pop esi
xor eax, eax
pop ebx
pop ecx
ret
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [edi], 0
mov edi, edi
mov eax, 0x400000
cmp esi, 0x400000
ja 0x40108f
mov eax, esi
mov edx, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x10]
push ecx
push eax
mov eax, dword [edx]
push ebx
push eax
mov dword [esp + 0x20], 0
call ebp
mov ecx, dword [esp + 0xc]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x4010c6
test ecx, ecx
je 0x4010bf
test esi, esi
jne 0x401080
pop ebp
pop esi
xor eax, eax
pop ebx
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebp
pop esi
pop ebx
pop ecx
ret

Function at 0x4010e0
Capabilities:
Write file on windows

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, dword [edi]
test esi, esi
je 0x401142
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x14]
mov dword [edi], 0
lea esp, [esp]
mov eax, 0x400000
cmp esi, 0x400000
ja 0x40110f
mov eax, esi
mov edx, dword [ebp]
push 0
lea ecx, [esp + 0x20]
push ecx
push eax
push ebx
push edx
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x1c]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x401147
test ecx, ecx
je 0x401140
test esi, esi
jne 0x401100
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
ret
pop ebp
pop ebx
pop edi
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x403890
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x532e40], ecx
inc edx
cmp edx, 0x100
jb 0x403892
ret

Function at 0x403940
Capabilities:
Encode data using xor

Disassembly:
or eax, 0xffffffff
test ecx, ecx
je 0x40396a
push esi
jmp 0x403950
movzx esi, byte [edx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x532e40]
inc edx
dec ecx
jne 0x403950
pop esi
ret
Function at 0x403e00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x90
mov eax, dword [0x52de08]
xor eax, esp
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x94]
push ebp
push esi
push edi
push ecx
mov dword [esp + 0x20], ecx
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0x10]
xor ebp, ebp
push ecx
lea esi, [esp + 0x28]
mov edi, edx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], ebp
call fcn.00406090
add esp, 8
cmp eax, ebp
jne 0x403f73
mov edx, dword [esp + 0xac]
mov eax, 1
mov dword [esp + 0x34], edi
mov dword [esp + 0x48], edx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x6c], eax
mov dword [esp + 0x68], ebp
mov dword [esp + 0x78], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x70], eax
lea ebx, [ebx]
mov eax, 0x40000
mov dword [esp + 0x14], ebp
mov dword [esp + 0xc], eax
cmp dword [esp + 0xa8], ebp
ja 0x403eac
jb 0x403ea1
cmp dword [esp + 0xa4], eax
jae 0x403eac
mov eax, dword [esp + 0xa4]
mov dword [esp + 0xc], eax
mov eax, dword [ebx]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
push ebx
call eax
mov esi, eax
add esp, 0xc
cmp esi, ebp
jne 0x403f5f
mov ecx, dword [esp + 0xc]
mov edi, dword [esp + 0x44]
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0xb0]
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x1c]
push ecx
push edx
lea eax, [esp + 0x30]
call fcn.00405d90
mov esi, eax
mov eax, dword [esp + 0x20]
sub dword [esp + 0x1c], eax
add esp, 0x10
sub dword [esp + 0xa4], eax
sbb dword [esp + 0xa8], ebp
cmp esi, ebp
jne 0x403f5f
mov ecx, dword [esp + 0x48]
cmp dword [esp + 0x44], ecx
je 0x403f3d
cmp eax, ebp
jne 0x403f27
cmp edi, dword [esp + 0x44]
je 0x403f3d
push eax
mov eax, dword [ebx + 4]
push ebx
call eax
mov esi, eax
add esp, 8
cmp esi, ebp
je 0x403e80
jmp 0x403f5f
cmp ecx, dword [esp + 0xac]
jne 0x403f5a
cmp dword [esp + 0xc], ebp
jne 0x403f5a
mov eax, dword [esp + 0x18]
cmp eax, 1
je 0x403f5f
cmp eax, 4
je 0x403f5f
mov esi, 1
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 4]
push ecx
push eax
call edx
add esp, 8
mov eax, esi
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004aaa9b
add esp, 0x90
ret
Function at 0x404640
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 8
push ebp
push esi
mov esi, dword [ecx]
xor ebp, ebp
and esi, 7
cmp eax, 5
jae 0x40465d
pop esi
xor eax, eax
pop ebp
add esp, 8
ret
mov edx, dword [esp + 0x14]
push ebx
lea ebx, [edx + eax - 4]
push edi
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], ebx
lea edi, [edx + ebp]
cmp edi, ebx
jae 0x40468d
lea ebx, [ebx]
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x40468d
inc edi
cmp edi, ebx
jb 0x404680
mov ebp, edi
sub ebp, edx
mov eax, ebp
sub eax, dword [esp + 0x10]
cmp edi, ebx
jae 0x404795
cmp eax, 3
jbe 0x4046c0
xor esi, esi
mov al, byte [edi + 4]
mov dword [esp + 0x10], ebp
test al, al
je 0x4046fb
cmp al, 0xff
je 0x4046fb
and esi, 3
add esi, esi
or esi, 1
inc ebp
jmp 0x404673
lea ecx, [eax - 1]
shl esi, cl
and esi, 7
je 0x4046a6
movzx ecx, byte [esi + 0x50a6e8]
mov eax, edi
sub eax, ecx
cmp byte [esi + 0x50a6e0], 0
mov al, byte [eax + 4]
je 0x4046e9
test al, al
je 0x4046e9
cmp al, 0xff
jne 0x4046a6
and esi, 3
add esi, esi
mov dword [esp + 0x10], ebp
or esi, 1
inc ebp
jmp 0x404673
movzx ecx, byte [edi + 3]
movzx edx, al
movzx eax, byte [edi + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 1]
shl edx, 8
or edx, eax
shl edx, 8
or edx, ecx
lea esp, [esp]
sub edx, ebp
lea eax, [edx - 5]
test esi, esi
je 0x404767
movzx edx, byte [esi + 0x50a6e8]
add edx, edx
add edx, edx
add edx, edx
mov ecx, 0x18
sub ecx, edx
mov ebx, eax
shr ebx, cl
mov cl, bl
test cl, cl
je 0x40474c
cmp cl, 0xff
jne 0x404763
mov ebx, dword [esp + 0x14]
mov ecx, 0x20
sub ecx, edx
mov edx, 1
shl edx, cl
dec edx
xor edx, eax
jmp 0x404720
mov ebx, dword [esp + 0x14]
mov edx, eax
shr edx, 0x18
and dl, 1
dec dl
not dl
mov byte [edi + 4], dl
mov edx, eax
shr edx, 8
mov ecx, eax
shr ecx, 0x10
mov byte [edi + 2], dl
mov edx, dword [esp + 0x1c]
mov byte [edi + 3], cl
mov byte [edi + 1], al
add ebp, 5
jmp 0x404673
pop edi
pop ebx
cmp eax, 3
jbe 0x4047ac
mov eax, dword [esp + 0x18]
xor esi, esi
mov dword [eax], esi
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret
lea ecx, [eax - 1]
mov eax, dword [esp + 0x18]
shl esi, cl
and esi, 7
mov dword [eax], esi
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret

Function at 0x406250
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40626b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4062a2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40629e
jmp 0x406290
cmp esi, eax
jae 0x4062a2
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x406290
cmp esi, eax
jb 0x4062a9
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40b850
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
lea edx, [ebp + 0x10]
push edx
mov edx, dword [ebp + 8]
push esi
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0xc]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40b8c2
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x40b891
cmp eax, 2
jne 0x40b8ac
mov eax, dword [ebp + 0x10]
test esi, esi
je 0x40b8bc
test eax, eax
je 0x40b8b7
test al, 1
jne 0x40b8ac
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x40b8bc
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x40bf90
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov ecx, dword [ecx]
lea eax, [ebp - 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40bfb7
call fcn.0040b660
test eax, eax
js 0x40bfc4
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov dword [ecx], eax
mov dword [ecx + 4], edx
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x40d460
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e1ab8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x52de08]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esi + 0x10]
mov dword [ebp - 0x14], edi
push edi
mov byte [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x10], 1
mov dword [ebp - 4], 0
mov eax, dword [esi + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_ResetEvent]
push eax
call ebx
mov ecx, dword [esi + 4]
push ecx
call ebx
push 0
push 0
push esi
push 0x40c0a0
push 0
push 0
call fcn.004ac218
add esp, 0x18
cmp byte [ebp + 8], 0
mov dword [esi + 8], eax
je 0x40d4e3
mov edx, dword [esi + 0xc]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], 0xffffffff
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 0x10], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40dbe0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e1ab8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x52de08]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esi + 0x6d0]
call fcn.0040b9a0
test al, al
jne 0x40dc85
add esi, 0x578
push 0
mov ecx, esi
call fcn.0040d510
test al, al
je 0x40dc85
lea edi, [esi + 0x10]
mov dword [ebp - 0x14], edi
push edi
mov byte [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x10], 1
mov dword [ebp - 4], 0
mov eax, dword [esi + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_ResetEvent]
push eax
call ebx
mov ecx, dword [esi + 4]
push ecx
call ebx
push 0
push 0
push esi
push 0x40c0a0
push 0
push 0
call fcn.004ac218
add esp, 0x18
mov dword [esi + 8], eax
mov dword [ebp - 4], 0xffffffff
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 0x10], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40f360
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cd598
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x52de08]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esi + 0x18]
push edi
mov dword [ebp - 0x1c], vtable.winhttp::locker_dm_cs.0
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x14]
push edx
push eax
lea ecx, [esi + 0x30]
call fcn.0040d140
mov esi, eax
test esi, esi
je 0x40f3dd
mov eax, dword [esi + 4]
test eax, eax
je 0x40f3dd
mov ecx, dword [eax + 0x54]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [esi + 4]
mov dword [edx + 0x58], 1
mov dword [ebp - 4], 0xffffffff
push edi
mov dword [ebp - 0x1c], vtable.winhttp::locker_dm_cs.0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x412da0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ce258
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x52de08]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push 0x40
lea eax, [ebp - 0x60]
push ebx
mov dword [ebp - 0xc0], ebx
push eax
mov dword [ebp - 0xc4], edi
mov dword [ebp - 0xbc], vtable.md5.0
call fcn.004aab30
mov byte [ebp - 0x60], 0x80
mov dword [ebp - 4], 1
push 0x40
lea ecx, [ebp - 0xb8]
push ebx
push ecx
call fcn.004aab30
mov edx, dword [ebp + 0x10]
add esp, 0x18
push edx
push esi
lea ecx, [ebp - 0xbc]
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x70], 0x67452301
mov dword [ebp - 0x6c], 0xefcdab89
mov dword [ebp - 0x68], 0x98badcfe
mov dword [ebp - 0x64], 0x10325476
call fcn.0040c240
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0xbc]
call fcn.0040c370
mov edx, dword [0x52ddd4]
mov eax, dword [edx + 0xc]
mov ecx, 0x52ddd4
call eax
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 1
mov dword [ebp - 0xc0], 1
xor esi, esi
mov edi, edi
movzx ecx, byte [ebp + esi - 0x20]
push ecx
push 0x4e7fc0
push edi
call fcn.00412c60
inc esi
add esp, 0xc
cmp esi, 0x10
jl 0x412e80
mov byte [ebp - 4], bl
mov dword [ebp - 0xbc], vtable.md5.0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004aaa9b
mov esp, ebp
pop ebp
ret
Function at 0x413200
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ce2c0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x52de08]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
je 0x413264
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
mov ecx, dword [edi + 4]
lea eax, [ebp - 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
or esi, 0xffffffff
mov dword [ebp - 0x14], eax
cmp eax, esi
jne 0x41327d
call fcn.0040b660
cmp eax, ebx
jge 0x41327a
mov dword [ebp - 4], esi
xor al, al
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
mov eax, dword [ebp - 0x14]
push esi
push eax
lea ecx, [ebp - 0x24]
call fcn.0040e200
mov eax, dword [edi + 4]
push ebx
lea edx, [ebp - 0x10]
push edx
push ebx
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, esi
jne 0x4132d3
call fcn.0040b660
cmp eax, ebx
jge 0x4132d3
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x24]
cmp eax, ebx
je 0x4132bd
push eax
call fcn.004aaaaa
add esp, 4
xor al, al
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
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x24]
push ecx
push esi
lea ecx, [edi + 4]
call fcn.0040bec0
cmp eax, ebx
jge 0x413311
mov dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x4132bd
push esi
call fcn.004aaaaa
add esp, 4
xor al, al
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
mov edx, dword [ebp - 0x20]
push edx
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.00412da0
add esp, 0xc
mov byte [ebp - 4], 1
mov eax, dword [eax]
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41333d
push 0x80004005
call fcn.00406170
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
push eax
push ecx
call fcn.004ab66d
add esp, 8
cmp eax, ebx
sete byte [ebp + 0xb]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x10]
call fcn.00406650
mov dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x413371
push esi
call fcn.004aaaaa
add esp, 4
mov al, byte [ebp + 0xb]
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 0x4134d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db821
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x52de08]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
mov eax, dword [0x52ddd4]
mov edx, dword [eax + 0xc]
mov ecx, 0x52ddd4
call edx
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], edi
mov eax, dword [esi]
mov ecx, 1
mov dword [ebp - 0x10], ecx
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
mov edi, 0x20
sub eax, edi
or eax, ecx
jge 0x41353b
push edi
mov ecx, esi
call fcn.00406e80
mov eax, dword [esi]
cmp dword [eax - 8], edi
jge 0x41354c
push 0x80070057
call fcn.00406170
mov dword [eax - 0xc], edi
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + 0x40], dx
mov ecx, 0x4e70c8
sub ecx, eax
mov edx, edi
mov ebx, 0xe620
xor bx, word [ecx + eax]
add eax, 2
dec edx
mov word [eax - 2], bx
jne 0x413560
mov eax, dword [esi]
cmp dword [eax - 8], edi
jl 0x413542
mov dword [eax - 0xc], edi
mov eax, dword [esi]
xor ecx, ecx
mov word [eax + 0x40], cx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4135a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db821
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x52de08]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
mov eax, dword [0x52ddd4]
mov edx, dword [eax + 0xc]
mov ecx, 0x52ddd4
call edx
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], edi
mov eax, dword [esi]
mov ecx, 1
mov dword [ebp - 0x10], ecx
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
mov edi, 0x1f
sub eax, edi
or eax, ecx
jge 0x41360b
push edi
mov ecx, esi
call fcn.00406e80
mov eax, dword [esi]
cmp dword [eax - 8], edi
jge 0x41361c
push 0x80070057
call fcn.00406170
mov dword [eax - 0xc], edi
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + 0x3e], dx
mov ecx, 0x4e7564
sub ecx, eax
mov edx, edi
mov ebx, 0xe620
xor bx, word [ecx + eax]
add eax, 2
dec edx
mov word [eax - 2], bx
jne 0x413630
mov eax, dword [esi]
cmp dword [eax - 8], edi
jl 0x413612
mov dword [eax - 0xc], edi
mov eax, dword [esi]
xor ecx, ecx
mov word [eax + 0x3e], cx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413670
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db821
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x52de08]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
mov eax, dword [0x52ddd4]
mov edx, dword [eax + 0xc]
mov ecx, 0x52ddd4
call edx
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], edi
mov eax, dword [esi]
mov ecx, 1
mov dword [ebp - 0x10], ecx
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
mov edi, 0xb
sub eax, edi
or eax, ecx
jge 0x4136db
push edi
mov ecx, esi
call fcn.00406e80
mov eax, dword [esi]
cmp dword [eax - 8], edi
jge 0x4136ec
push 0x80070057
call fcn.00406170
mov dword [eax - 0xc], edi
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + 0x16], dx
mov ecx, 0x4e7814
sub ecx, eax
mov edx, edi
mov ebx, 0xe620
xor bx, word [ecx + eax]
add eax, 2
dec edx
mov word [eax - 2], bx
jne 0x413700
mov eax, dword [esi]
cmp dword [eax - 8], edi
jl 0x4136e2
mov dword [eax - 0xc], edi
mov eax, dword [esi]
xor ecx, ecx
mov word [eax + 0x16], cx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x415740
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push 0
lea eax, [ebp + 0xc]
push eax
push ebx
mov esi, ecx
mov ecx, dword [esi + 4]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x415769
call fcn.0040b660
cmp byte [esi + 0xc], 0
je 0x415784
mov edx, dword [ebp + 0xc]
mov eax, dword [esi + 0x14]
push edx
lea ecx, [edi + ebx]
push ecx
push edi
push eax
lea ecx, [esi + 0x10]
call fcn.004143b0
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x415fb0
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ce86b
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x52de08]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov esi, ecx
cmp edi, ebx
je 0x41611f
mov dword [ebp - 0x94], ebx
mov dword [ebp - 4], ebx
xor eax, eax
cmp eax, ebx
ja 0x416001
cmp edi, 0xffffffff
jbe 0x41600b
push 0x80070216
call fcn.00406170
cmp edi, 0x80
jbe 0x416021
push edi
lea ecx, [ebp - 0x94]
call fcn.00415df0
jmp 0x41602d
lea eax, [ebp - 0x90]
mov dword [ebp - 0x94], eax
mov edx, dword [ebp - 0x94]
mov eax, dword [esi + 0x6c]
lea ecx, [ebp - 0x98]
push ecx
push edi
push edx
push eax
mov dword [ebp - 0x98], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x41607b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
je 0x41605d
mov dword [esi + 0x60], eax
mov eax, dword [esi + 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 0x6c]
cmp eax, ebx
je 0x41607b
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [esi + 0x6c], ebx
mov eax, dword [ebp - 0x98]
cmp eax, edi
je 0x416097
push eax
lea ecx, [ebp - 0x94]
call fcn.00415f00
mov eax, dword [ebp - 0x98]
mov ecx, dword [esi + 0x90]
cmp ecx, ebx
je 0x4160c8
mov edx, dword [ecx]
mov edx, dword [edx + 4]
push eax
mov eax, dword [ebp - 0x94]
push eax
call edx
mov ecx, dword [esi + 0x98]
cmp ecx, ebx
je 0x4160c8
mov eax, dword [ecx]
mov edx, dword [ebp - 0x98]
mov eax, dword [eax + 4]
push edx
call eax
mov eax, dword [esi + 0x6c]
lea ecx, [ebp - 0x9c]
push ecx
push eax
mov dword [ebp - 0x9c], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x4160fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
je 0x4160f0
mov dword [esi + 0x60], eax
mov esi, dword [esi + 0x94]
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [ebp - 4], 0xffffffff
lea edx, [ebp - 0x90]
cmp dword [ebp - 0x94], edx
je 0x41613d
lea ecx, [ebp - 0x94]
call fcn.004506e0
jmp 0x41613d
mov ecx, dword [esi + 0x90]
cmp ecx, ebx
je 0x416130
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
mov eax, dword [esi + 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004aaa9b
mov esp, ebp
pop ebp
ret 4