joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407010
Capabilities:
Enumerate pe sections

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

Function at 0x407120
Capabilities:
Parse pe header

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

Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x433072
nop
nop
nop
nop
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x428062fb
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4330d2
nop
mov ebx, 0x4304d8
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x38280678
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404399

Function at 0x409070
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x40907f
pop dword [ebp - 0x24]
mov eax, 0xbb7482f2
add eax, 0x44cc0d8d
sub dword [ebp - 0x24], eax
push 0x40
push 0x1000
push 0x37242
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x24]
call dword [eax]
mov ecx, 0xfb33d60c
add ecx, 0x4cc69b4
xor edx, edx
add edx, eax
mov esi, 0x413bc4
add esi, dword [ebp - 0x24]
mov ebx, 0xb0cfc856
sub ebx, 0x8bb7ecbc
add dword [ebp - 0x18], 0x97e5486f
mov edi, dword [esi]
sub dword [ebp - 0x20], ecx
xor edi, ebx
mov dword [edx], edi
xor dword [ebp - 0x14], 0x5f392dd9
add edx, 0x849bc609
sub edx, 0x849bc605
add esi, 0xa75bab41
sub esi, 0xa75bab3d
loop 0x4090d5
add eax, 0x2424b23c
add eax, 0xdbdc3f97
mov ebx, eax
add eax, 0x77de3c3a
sub eax, 0x77de3c35
mov ecx, 0x9f20afe1
add ecx, 0x611f501f
add ecx, dword [ebp - 0x24]
call ebx
leave
ret

Function at 0x418180
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x12000]
push edi
or ebp, 0xffffffff
jmp 0x4181a2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4181a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x418198
mov eax, 1
add ebx, ebx
jne 0x4181bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4181b0
jne 0x4181cc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4181b0
xor ecx, ecx
sub eax, 3
jb 0x4181e0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x418252
mov ebp, eax
add ebx, ebx
jne 0x4181eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4181f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41821c
inc ecx
add ebx, ebx
jne 0x418208
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4181fd
jne 0x418219
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4181fd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41823c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41822d
jmp 0x41819e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41823c
add edi, ecx
jmp 0x41819e
pop esi
mov edi, esi
mov ecx, 0x3b2
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41825a
cmp byte [edi], 0
jne 0x41825a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x41825f
lea edi, [esi + 0x16000]
mov eax, dword [edi]
or eax, eax
je 0x4182ce
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x180b0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x18114]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41828c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x18118]
or eax, eax
je 0x4182c8
mov dword [ebx], eax
add ebx, 4
jmp 0x4182a9
call dword [esi + 0x1811c]
popal
jmp 0x40a630
Function at 0x4013c5
Capabilities:
Encode data using xor

Disassembly:
jmp 0x4159d0
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x415b7a
push ebx
mov ebx, dword [esp + 0x10]
nop word [eax + eax]
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0x11
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0xdd
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
xor byte [esi + ebx], 5
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0x44
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0xe6
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
add esp, 0x44
push eax
call fcn.0040616d
add byte [esi + ebx], 0x24
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0xe6
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0x33
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0xe1
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0x82
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0xf2
add esp, 0x40
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0xb5
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
xor byte [esi + ebx], 0xf
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0x5a
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0x3b
add esp, 0x30
inc esi
cmp esi, edi
jb 0x4159f0
pop ebx
pop edi
pop esi
ret

Function at 0x4035f3
Capabilities:
Terminate process

Disassembly:
jmp 0x453df9
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x453e0a
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405948
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x40371f
Capabilities:
Query environment variable

Disassembly:
jmp 0x49c842
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49c853
pop esi
ret
push ebx
push edi
push esi
call fcn.0049c729
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403fe4
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49c87b
push ebx
push esi
push edi
call fcn.0040572c
add esp, 0xc
push 0
call fcn.004062b2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x402450
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov edi, ecx
mov eax, dword [0x43e00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push 0x4000000
push 2
call fcn.0040e780
add esp, 8
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x402546
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x28]
mov dword [ecx], eax
xor esi, esi
mov dword [ecx + 4], esi
mov dword [ecx + 8], esi
mov eax, dword [edi + 8]
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], esi
mov eax, dword [edi + 0x10]
mov dword [ecx + 0x14], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
test eax, eax
je 0x40254d
cmp esi, eax
jge 0x4024e0
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x20]
jne 0x4024e0
push dword [edi + 0xc]
push dword [edi + 4]
push esi
push dword [ebp + 8]
push dword [edi]
call fcn.0040cb00
add esp, 0x14
test eax, eax
jle 0x40255b
add esi, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x2c]
call fcn.0040d740
add esp, 8
mov ebx, eax
mov eax, dword [ebp - 0x18]
cmp eax, dword [edi + 0x10]
jne 0x402518
push dword [ebp + 0xc]
push eax
push 1
push dword [edi + 8]
call fcn.0041f052
add esp, 0x10
cmp eax, dword [ebp - 0x18]
jne 0x402554
mov dword [ebp - 0x18], 0
xor eax, eax
test ebx, ebx
je 0x40249e
mov esi, 0x27
cmp ebx, 1
jne 0x402560
push dword [ebp + 0xc]
push eax
push 1
push dword [edi + 8]
call fcn.0041f052
add esp, 0x10
xor ecx, ecx
cmp eax, dword [ebp - 0x18]
mov esi, 0x46
cmove esi, ecx
jmp 0x402560
mov esi, 0x27
jmp 0x40256b
mov esi, 0x28
jmp 0x402560
mov esi, 0x46
jmp 0x402560
mov esi, 6
push dword [ebp - 0x2c]
call fcn.0040e880
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412b41
mov eax, esi
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x404510
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov edi, ecx
push 0x2f
push ecx
call fcn.004152a7
add esp, 8
test eax, eax
je 0x404542
mov esi, eax
mov word [eax], 0
mov ecx, edi
call fcn.00404510
mov ebx, eax
test eax, eax
je 0x40454b
mov word [esi], 0x2f
jmp 0x404544
xor ebx, ebx
mov eax, ebx
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebx, ebx
cmp word [edi], 0
je 0x40453b
push edi
call fcn.0041d748
add esp, 4
test eax, eax
jns 0x40453b
call fcn.004122fc
cmp dword [eax], 0x11
je 0x40453b
mov eax, dword [0x4405f4]
mov ecx, dword [0x43eb8c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4045a8
call fcn.004122fc
push dword [eax]
push edi
push str.ensure_parent_dir:_failed_to_create_directory:__S__err:__d
push 0x4403e8
call fcn.00410340
add esp, 0x10
mov ebx, 7
jmp 0x40453b
push 0x4405f4
call fcn.00412337
add esp, 4
cmp dword [0x4405f4], 0xffffffff
jne 0x404587
mov dword [0x4403e8], 0
push 0x40ab00
call fcn.004125ac
add esp, 4
push 0x4405f4
call fcn.00412389
add esp, 4
jmp 0x404587
Function at 0x405f10
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov esi, edx
mov edi, ecx
mov bl, byte [ebp + 0xc]
mov eax, dword [0x43e00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push str.MOZ_LAUNCHED_CHILD1
call fcn.0041c845
add esp, 4
push edi
call fcn.0041cf0d
add esp, 4
test eax, eax
je 0x405f77
mov eax, dword [0x4405f4]
mov ecx, dword [0x43eb8c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40600b
push str.Warning:_chdir_failed
push 0x4403e8
call fcn.00410340
add esp, 8
test bl, bl
je 0x405f8d
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412b41
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edi, [ebp - 0x14]
mov edx, esi
push edi
push eax
call fcn.004300a0
add esp, 8
test eax, eax
je 0x405f7b
mov edi, dword [ebp - 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov esi, eax
call ebx
sub eax, esi
cmp eax, 0x270f
ja 0x405ffd
mov ebx, 0x2710
sub ebx, eax
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
push edi
call dword [sym.imp.USER32.dll_WaitForInputIdle]
cmp eax, 0xffffffff
jne 0x405ffd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x5bf
jne 0x405ffd
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, 0x2710
jb 0x405fbd
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x405f7b
push 0x4405f4
call fcn.00412337
add esp, 4
cmp dword [0x4405f4], 0xffffffff
jne 0x405f65
mov dword [0x4403e8], 0
push 0x40ab00
call fcn.004125ac
add esp, 4
push 0x4405f4
call fcn.00412389
add esp, 4
jmp 0x405f65
Function at 0x408510
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x210
mov esi, ecx
mov eax, dword [0x43e00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea edi, [ebp - 0x21a]
push 0x20a
push 0
push edi
call fcn.00414ee0
add esp, 0xc
cmp byte [0x4401dc], 0
je 0x408560
push edi
push 0x437e04
push 0x43f7a8
call fcn.00410b80
add esp, 0xc
test eax, eax
jne 0x40857d
jmp 0x4085ca
push 0x437df8
push 0x43f7a8
push str._s_s
push 0x105
push edi
call fcn.00404cf0
add esp, 0x14
push 0x4387ee
push edi
call fcn.0041d63e
add esp, 8
test eax, eax
je 0x4085ca
mov edi, eax
push esi
call fcn.0041f720
add esp, 4
push edi
push 1
push eax
push esi
call fcn.0041f052
add esp, 0x10
cmp eax, 1
jne 0x4085ce
cmp byte [0x4401dc], 0
je 0x4085c6
push 0x43f7a8
call fcn.00410c00
add esp, 4
test eax, eax
je 0x4085ce
mov bl, 1
jmp 0x4085d0
xor ebx, ebx
jmp 0x4085d9
xor ebx, ebx
push edi
call fcn.0041e96c
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412b41
mov eax, ebx
add esp, 0x210
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4085f0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x624
mov eax, dword [0x43e00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x4405f4]
mov ecx, dword [0x43eb8c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40872f
mov eax, dword [0x4403e8]
test eax, eax
je 0x408643
push eax
call fcn.0041e96c
add esp, 4
mov dword [0x4403e8], 0
cmp byte [0x43ffd1], 1
jne 0x40871a
lea esi, [ebp - 0x21a]
push 0x20a
push 0
push esi
call fcn.00414ee0
add esp, 0xc
push esi
push 0x437e04
push 0x43f7a8
call fcn.00410b80
add esp, 0xc
test eax, eax
je 0x4086b5
xor edi, edi
lea ebx, [ebp - 0x424]
push 0x20a
push edi
push ebx
call fcn.00414ee0
add esp, 0xc
push 0x43f7a8
push str._supdate.status
push 0x105
push ebx
call fcn.00404cf0
add esp, 0x10
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea esi, [ebp - 0x424]
push 0x20a
push 0
push esi
call fcn.00414ee0
add esp, 0xc
push esi
push 0x438434
push 0x43f7a8
call fcn.00410b80
add esp, 0xc
test eax, eax
je 0x40871a
xor edi, edi
lea ebx, [ebp - 0x62e]
push 0x20a
push edi
push ebx
call fcn.00414ee0
add esp, 0xc
push 0x43f7a8
push str._supdate.log
push 0x105
push ebx
call fcn.00404cf0
add esp, 0x10
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412b41
add esp, 0x624
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x4405f4
call fcn.00412337
add esp, 4
cmp dword [0x4405f4], 0xffffffff
jne 0x408627
mov dword [0x4403e8], 0
push 0x40ab00
call fcn.004125ac
add esp, 4
push 0x4405f4
call fcn.00412389
add esp, 4
jmp 0x408627
Function at 0x40b880
Capabilities:
Hash data via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
test ecx, ecx
je 0x40b8d5
mov esi, edx
test edx, edx
je 0x40b8d5
cmp dword [ebp + 0xc], 0
je 0x40b8d5
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x40b8d5
push ecx
push 1
push dword [ebp + 8]
push esi
call fcn.0041ee3f
add esp, 0x10
cmp eax, 1
jne 0x40b8ef
xor edi, edi
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
push dword [ebp + 8]
push esi
mov eax, dword [ebp + 0xc]
push dword [eax + edi*4]
call ebx
test eax, eax
je 0x40b910
inc edi
cmp dword [ebp + 0x10], edi
jne 0x40b8b9
xor eax, eax
jmp 0x40b90b
push 2
call fcn.004121ed
add esp, 4
push str.ERROR:_Invalid_parameter_specified._n
push eax
call fcn.00401220
add esp, 8
jmp 0x40b908
push 2
call fcn.004121ed
add esp, 4
push edi
push str.ERROR:_Could_not_read__s_n
push eax
call fcn.00401220
add esp, 0xc
xor eax, eax
dec eax
pop esi
pop edi
pop ebx
pop ebp
ret
push 2
call fcn.004121ed
add esp, 4
push dword [ebp + 0x14]
push str.ERROR:_Could_not_update_verify_context_for__s_n
push eax
call fcn.00401220
add esp, 0xc
mov eax, 0xfffffffe
jmp 0x40b90b
Function at 0x40c120
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x38
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov eax, dword [0x43e00c]
xor eax, ebp
mov dword [esp + 0x30], eax
push ebx
push 0x20
push 1
push edi
call fcn.0041ee3f
add esp, 0x10
mov esi, 6
cmp eax, 0x20
jne 0x40c1e8
mov esi, dword [sym.imp.WSOCK32.dll_ntohl]
push dword [edi + 8]
call esi
mov dword [edi + 8], eax
push dword [edi + 0xc]
call esi
mov dword [edi + 0xc], eax
push dword [edi + 0x10]
call esi
mov dword [edi + 0x10], eax
push dword [edi + 0x14]
call esi
mov dword [edi + 0x14], eax
push dword [edi + 0x18]
call esi
mov dword [edi + 0x18], eax
push dword [edi + 0x1c]
call esi
mov dword [edi + 0x1c], eax
push ebx
call fcn.00419ff6
add esp, 4
mov ecx, esp
push ecx
push eax
call fcn.0041a374
add esp, 8
mov esi, 6
test eax, eax
jne 0x40c1e8
mov eax, 0x4944424d
xor eax, dword [edi]
mov ecx, 0x30314646
xor ecx, dword [edi + 4]
or ecx, eax
mov esi, 0x29
jne 0x40c1e8
mov eax, dword [esp + 0x14]
cmp eax, 0x20
jb 0x40c1e8
add eax, 0xffffffe0
sub eax, dword [edi + 0x14]
jb 0x40c1e8
sub eax, dword [edi + 0x18]
jb 0x40c1e8
xor ecx, ecx
cmp eax, dword [edi + 0x1c]
mov esi, 0x29
cmove esi, ecx
mov ecx, dword [esp + 0x30]
xor ecx, ebp
call fcn.00412b41
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40c200
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
add eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
mov ebx, dword [esi + 0x14]
mov edi, dword [esi + 0x18]
add edi, ebx
add edi, dword [esi + 0x1c]
push edi
call fcn.0041f4bf
add esp, 4
test eax, eax
je 0x40c284
test edi, edi
mov dword [ebp - 0x1c], eax
je 0x40c267
mov ebx, eax
mov eax, 0x7fffffff
cmp edi, eax
mov esi, 0x7fffffff
cmovb esi, edi
push dword [ebp + 0xc]
push esi
push 1
push ebx
call fcn.0041ee3f
add esp, 0x10
cmp eax, esi
jne 0x40c28e
add ebx, esi
sub edi, esi
jne 0x40c236
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 0x14]
mov eax, dword [ebp - 0x1c]
imul ecx, ebx, 0xaaaaaaab
ror ecx, 2
cmp ecx, 0x15555555
jbe 0x40c29a
mov dword [ebp - 0x10], 0x29
jmp 0x40c3a5
mov eax, 0xc
jmp 0x40c3b3
mov dword [ebp - 0x10], 6
jmp 0x40c3a5
test ebx, ebx
jle 0x40c395
mov ecx, eax
add ecx, ebx
mov edx, dword [esi + 0x18]
add edx, ecx
mov esi, dword [esi + 0x1c]
add esi, edx
mov dword [ebp - 0x28], esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x24], ecx
mov ebx, ecx
mov edi, eax
push dword [edi]
call dword [sym.imp.WSOCK32.dll_ntohl]
mov dword [edi], eax
push dword [edi + 4]
call dword [sym.imp.WSOCK32.dll_ntohl]
mov dword [edi + 4], eax
push dword [edi + 8]
call dword [sym.imp.WSOCK32.dll_ntohl]
mov dword [edi + 8], eax
mov eax, dword [edi]
mov ecx, dword [ebp - 0x20]
sub ecx, esi
cmp eax, ecx
ja 0x40c278
mov ecx, dword [ebp - 0x2c]
sub ecx, ebx
cmp eax, ecx
ja 0x40c278
test eax, eax
je 0x40c312
xor eax, eax
mov cl, byte [esi + eax]
add byte [ebx + eax], cl
inc eax
mov ecx, dword [edi]
cmp eax, ecx
jb 0x40c303
jmp 0x40c314
xor ecx, ecx
push dword [ebp + 0x14]
push ecx
push 1
push ebx
call fcn.0041f052
add esp, 0x10
mov dword [ebp - 0x18], eax
cmp eax, dword [edi]
jne 0x40c39e
mov dword [ebp - 0x10], 0x40
mov eax, dword [edi + 4]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x14]
sub ecx, edx
cmp eax, ecx
ja 0x40c278
push dword [ebp + 0x14]
push eax
push 1
push edx
call fcn.0041f052
add esp, 0x10
cmp eax, dword [edi + 4]
jne 0x40c3a5
add esi, dword [ebp - 0x18]
mov ecx, dword [edi + 8]
mov edx, dword [ebp + 0x10]
sub edx, esi
cmp ecx, edx
jl 0x40c278
mov edx, dword [ebp - 0x20]
sub edx, esi
cmp ecx, edx
jg 0x40c278
add ebx, dword [ebp - 0x18]
add dword [ebp - 0x14], eax
add esi, ecx
add edi, 0xc
mov dword [ebp - 0x10], 0
cmp edi, dword [ebp - 0x24]
jb 0x40c2c3
jmp 0x40c3a5
mov dword [ebp - 0x10], 0
jmp 0x40c3a5
mov dword [ebp - 0x10], 0x40
push dword [ebp - 0x1c]
call fcn.0041f035
add esp, 4
mov eax, dword [ebp - 0x10]
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40cb00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edi, dword [ecx + 8]
xor esi, esi
cmp edi, eax
je 0x40cb33
xor esi, esi
dec esi
sub edi, eax
jl 0x40cb33
mov ebx, dword [ebp + 8]
add eax, dword [ecx + 4]
push 0
push eax
push dword [ebx]
call fcn.0041a01c
add esp, 0xc
test eax, eax
je 0x40cb3a
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 0x18]
cmp edi, eax
cmovg edi, eax
push dword [ebx]
push edi
push 1
push dword [ebp + 0x14]
call fcn.0041ee3f
add esp, 0x10
jmp 0x40cb35

Function at 0x40cb60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
movdqa xmm0, xmmword [0x435460]
mov eax, 0xfffffc00
movdqa xmm1, xmmword [0x435470]
movdqa xmm2, xmmword [0x435480]
movdqa xmm3, xmmword [0x435490]
movdqa xmm4, xmm0
psrld xmm4, 1
movdqa xmm5, xmm0
pand xmm5, xmm1
pxor xmm6, xmm6
psubd xmm6, xmm5
pand xmm6, xmm2
pxor xmm6, xmm4
psrld xmm6, 1
pand xmm4, xmm1
pxor xmm5, xmm5
psubd xmm5, xmm4
pand xmm5, xmm2
pxor xmm5, xmm6
psrld xmm5, 1
pand xmm6, xmm1
pxor xmm4, xmm4
psubd xmm4, xmm6
pand xmm4, xmm2
pxor xmm4, xmm5
psrld xmm4, 1
pand xmm5, xmm1
pxor xmm6, xmm6
psubd xmm6, xmm5
pand xmm6, xmm2
pxor xmm6, xmm4
psrld xmm6, 1
pand xmm4, xmm1
pxor xmm5, xmm5
psubd xmm5, xmm4
pand xmm5, xmm2
pxor xmm5, xmm6
psrld xmm5, 1
pand xmm6, xmm1
pxor xmm4, xmm4
psubd xmm4, xmm6
pand xmm4, xmm2
pxor xmm4, xmm5
psrld xmm4, 1
pand xmm5, xmm1
pxor xmm6, xmm6
psubd xmm6, xmm5
pand xmm6, xmm2
pxor xmm6, xmm4
psrld xmm6, 1
pand xmm4, xmm1
pxor xmm5, xmm5
psubd xmm5, xmm4
pand xmm5, xmm2
pxor xmm5, xmm6
movdqu xmmword [eax + 0x440a00], xmm5
paddd xmm0, xmm3
add eax, 0x10
jne 0x40cb88
pop ebp
ret

Function at 0x40cc70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
movdqa xmm0, xmmword [0x4354a0]
mov eax, 0xfffff800
pxor xmm1, xmm1
movdqa xmm2, xmmword [0x4354b0]
movdqa xmm3, xmmword [0x4354c0]
movdqa xmm4, xmmword [0x435450]
movdqa xmm5, xmm0
punpckldq xmm5, xmm1
movdqa xmm6, xmm5
psrlq xmm6, 1
pand xmm5, xmm2
pxor xmm7, xmm7
psubq xmm7, xmm5
pand xmm7, xmm3
pxor xmm7, xmm6
psrlq xmm7, 1
pand xmm6, xmm2
pxor xmm5, xmm5
psubq xmm5, xmm6
pand xmm5, xmm3
pxor xmm5, xmm7
psrlq xmm5, 1
pand xmm7, xmm2
pxor xmm6, xmm6
psubq xmm6, xmm7
pand xmm6, xmm3
pxor xmm6, xmm5
psrlq xmm6, 1
pand xmm5, xmm2
pxor xmm7, xmm7
psubq xmm7, xmm5
pand xmm7, xmm3
pxor xmm7, xmm6
psrlq xmm7, 1
pand xmm6, xmm2
pxor xmm5, xmm5
psubq xmm5, xmm6
pand xmm5, xmm3
pxor xmm5, xmm7
psrlq xmm5, 1
pand xmm7, xmm2
pxor xmm6, xmm6
psubq xmm6, xmm7
pand xmm6, xmm3
pxor xmm6, xmm5
psrlq xmm6, 1
pand xmm5, xmm2
pxor xmm7, xmm7
psubq xmm7, xmm5
pand xmm7, xmm3
pxor xmm7, xmm6
psrlq xmm7, 1
pand xmm6, xmm2
pxor xmm5, xmm5
psubq xmm5, xmm6
pand xmm5, xmm3
pxor xmm5, xmm7
movdqu xmmword [eax + 0x441200], xmm5
paddd xmm0, xmm4
add eax, 0x10
jne 0x40cc9c
pop ebp
ret