joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4191ad
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
push ecx
push ebx
push esi
push edi
call fcn.0041a785
xor ebx, ebx
cmp dword [0x4a8e34], ebx
mov esi, eax
je 0x4191d9
mov edi, dword [esp + 0x18]
lea eax, [edi + 0x1c]
push eax
call dword [0x48a164]
mov dword [edi + 8], esi
jmp 0x419339
test byte [esi + 0x8c], 0x80
jne 0x419242
cmp dword [0x4a7e00], ebx
je 0x419201
mov eax, dword fs:[0x2c]
mov ecx, dword [0x4a9bfc]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax + 0xc]
jmp 0x41920d
push dword [0x4aa03c]
call dword [0x48a15c]
cmp dword [0x4a7e00], ebx
mov dword [esp + 0x10], eax
je 0x419234
mov eax, dword fs:[0x2c]
mov ecx, dword [0x4a9bfc]
mov eax, dword [eax + ecx*4]
mov dword [eax + 0xc], 1
jmp 0x419242
push 1
push dword [0x4aa03c]
call dword [0x48a160]
mov edi, dword [esp + 0x18]
push ebp
mov ebp, dword [0x48a164]
lea eax, [edi + 0x1c]
push eax
mov dword [esp + 0x14], eax
call ebp
cmp dword [edi + 8], ebx
je 0x4192d6
lea ebx, [esi + 0x6c]
lea ecx, [edi + 0xc]
mov eax, dword [ecx]
cmp eax, ecx
je 0x419285
mov ecx, dword [edi + 0x10]
mov edx, dword [eax - 0x68]
cmp edx, dword [ecx - 0x68]
je 0x419285
mov ecx, edx
cmp dword [esi + 4], ecx
jg 0x419288
mov eax, dword [eax]
lea edx, [edi + 0xc]
cmp eax, edx
jne 0x419275
jmp 0x419288
lea eax, [edi + 0xc]
mov dword [ebx], eax
mov ecx, dword [eax + 4]
mov dword [esi + 0x70], ecx
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [eax + 4], ebx
lea eax, [esi + 0x3c]
push eax
call ebp
lea eax, [esi + 0x3c]
push eax
mov dword [esi], 3
mov dword [esi + 0x80], edi
call dword [0x48a168]
push dword [esp + 0x10]
call dword [0x48a168]
push 0xffffffffffffffff
push esi
call fcn.0041b0c9
pop ecx
pop ecx
push dword [esp + 0x10]
call ebp
cmp dword [edi + 8], 0
jne 0x41925f
xor ebx, ebx
push dword [esp + 0x10]
mov dword [edi + 8], esi
mov eax, dword [esi + 4]
mov dword [edi + 0x14], eax
lea eax, [esi + 0x74]
mov dword [edi], eax
mov eax, dword [esi + 0x78]
mov dword [edi + 4], eax
mov eax, dword [esi + 0x78]
mov dword [eax], edi
mov dword [esi + 0x78], edi
call dword [0x48a168]
test byte [esi + 0x8c], 0x80
pop ebp
jne 0x419339
cmp dword [0x4a7e00], ebx
je 0x419329
mov ecx, dword [0x4a9bfc]
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ecx*4]
mov ecx, dword [esp + 0x10]
mov dword [eax + 0xc], ecx
jmp 0x419339
push dword [esp + 0x10]
push dword [0x4aa03c]
call dword [0x48a160]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
ret
Function at 0x42ef70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x485bb1
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x4a89e8]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
push str.PROPFIND
lea ecx, [esp + 0x10]
call dword [0x48a320]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x3c]
push ecx
push edx
push eax
mov ecx, esi
mov dword [esp + 0x40], 0
call fcn.0042ee30
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 2
call dword [0x48a314]
mov dword [esi], 0x48cf64
mov dword [esi + 0x144], 0
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret 0xc

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

Disassembly:
push 0xffffffffffffffff
push 0x4865e3
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x4a89e8]
xor eax, esp
mov dword [esp + 0x54], eax
push ebx
push esi
push edi
mov eax, dword [0x4a89e8]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov esi, dword [esp + 0x78]
mov edi, dword [esp + 0x7c]
mov ebx, dword [esp + 0x80]
mov ecx, esi
mov dword [esp + 0x70], 0
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], 0
call dword [0x48a25c]
mov eax, dword [esi + 0x14]
add eax, 0x20
push eax
mov ecx, esi
mov dword [esp + 0x74], 0
mov dword [esp + 0x14], 1
call dword [0x48a268]
push edi
mov ecx, esi
call dword [0x48a250]
push ebx
mov ecx, esi
call dword [0x48a26c]
push 0x48d4d8
mov ecx, esi
call dword [0x48a264]
mov edi, dword [esi + 0x14]
push esi
xor bl, bl
call fcn.00433d50
add esp, 4
jmp 0x434350
cmp bl, 0xff
je 0x4343e0
mov eax, dword [0x48a278]
mov ecx, dword [eax]
push ecx
push edi
mov ecx, esi
call dword [0x48a2ac]
movzx eax, bl
push eax
push 0x48ab20
lea edx, [esp + 0x5c]
push 0x10
push edx
call fcn.00417194
add esp, 0x10
lea eax, [esp + 0x54]
push eax
mov ecx, esi
add bl, 1
call dword [0x48a264]
cmp dword [esi + 0x18], 0x10
jb 0x43439d
mov eax, dword [esi + 4]
jmp 0x4343a0
lea eax, [esi + 4]
push 0x180
push 0x88
push eax
call fcn.00418bce
add esp, 0xc
test eax, eax
je 0x434350
push eax
call fcn.00418363
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.0047ff5a
add esp, 0x64
ret
push str.unable_to_create_temp_file.__max_temp_files_exist
lea ecx, [esp + 0x3c]
call dword [0x48a320]
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x74], 1
mov dword [esp + 0x1c], 0x48a840
call dword [0x48a32c]
push 0x49aba0
lea edx, [esp + 0x1c]
push edx
call fcn.0047ff76
int3
Function at 0x434420
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x486633
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4a89e8]
xor eax, esp
mov dword [esp + 0x44], eax
push esi
push edi
mov eax, dword [0x4a89e8]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov esi, dword [esp + 0x64]
mov edi, dword [esp + 0x68]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
call fcn.004171da
push eax
push 0x48ab20
lea eax, [esp + 0x38]
push 0x20
push eax
call fcn.00417194
add esp, 0x10
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x18]
call dword [0x48a320]
push eax
push edi
push esi
mov dword [esp + 0x68], 1
call fcn.004342a0
add esp, 0xc
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], 1
mov byte [esp + 0x5c], 0
call dword [0x48a314]
mov eax, esi
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.0047ff5a
add esp, 0x54
ret

Function at 0x434670
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x482943
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x4a89e8]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0xc], 0
call fcn.004344e0
mov esi, dword [esp + 0x3c]
push eax
push esi
mov dword [esp + 0x3c], 1
call fcn.00434420
add esp, 0xc
lea ecx, [esp + 0xc]
mov dword [esp + 8], 1
mov byte [esp + 0x30], 0
call dword [0x48a314]
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret
Function at 0x434a90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4866f0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a89e8]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x14], edi
lea eax, [edi + 0xc]
mov dword [esp + 0x20], eax
mov eax, dword [eax]
test eax, eax
je 0x434ad3
push eax
call fcn.00415225
add esp, 4
mov ebx, 1
mov dword [esp + 0x24], ebx
cmp dword [edi + 0x10], 0
mov dword [esp + 0x38], 0
je 0x434b7a
mov eax, dword [edi]
test eax, eax
mov dword [esp + 0x28], edi
je 0x434b01
push eax
call fcn.00415225
add esp, 4
mov dword [esp + 0x2c], ebx
mov eax, dword [edi + 0x24]
mov ebp, dword [eax]
add edi, 0x20
mov esi, edi
mov byte [esp + 0x38], bl
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], esi
jmp 0x434b20
test esi, esi
mov ebx, dword [edi + 4]
je 0x434b2b
cmp esi, edi
je 0x434b31
call dword [0x48a3b8]
cmp ebp, ebx
je 0x434b67
test esi, esi
jne 0x434b3f
call dword [0x48a3b8]
cmp ebp, dword [esi + 4]
jne 0x434b4a
call dword [0x48a3b8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
lea ecx, [esp + 0x18]
call fcn.004117d0
mov ebp, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
jmp 0x434b20
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
test eax, eax
je 0x434b7a
push eax
call fcn.00415285
add esp, 4
mov edx, dword [esp + 0x20]
mov eax, dword [edx]
test eax, eax
je 0x434b8d
push eax
call fcn.00415285
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0x437090
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x486d07
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a89e8]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, dword [esp + 0x48]
xor ebx, ebx
mov edi, ecx
mov ecx, esi
mov dword [esp + 0x40], ebx
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], ebx
call dword [0x48a25c]
cmp byte [edi + 4], bl
lea ecx, [edi + 4]
mov ebp, 1
mov dword [esp + 0x40], ebx
mov dword [esp + 0x30], ebp
je 0x43711c
lea eax, [esp + 0x14]
push eax
call fcn.00436780
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
mov dword [esp + 0x44], ebp
call dword [0x48a26c]
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], bl
call dword [0x48a314]
push 0x3a
push ebp
mov ecx, esi
call dword [0x48a2d4]
cmp byte [edi + 0x24], bl
lea ebp, [edi + 0x24]
je 0x437160
push 0x48d6f8
mov ecx, esi
call dword [0x48a264]
lea edx, [esp + 0x14]
push edx
mov ecx, ebp
call fcn.00436780
lea eax, [esp + 0x14]
push eax
mov ecx, esi
mov dword [esp + 0x44], 2
call dword [0x48a26c]
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], bl
call dword [0x48a314]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [edi + 0x44]
call fcn.00436780
lea edx, [esp + 0x14]
push edx
mov ecx, esi
mov dword [esp + 0x44], 3
call dword [0x48a26c]
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], bl
call dword [0x48a314]
cmp byte [edi + 0x64], bl
lea ebp, [edi + 0x64]
je 0x4371d3
push 0x3f
push 1
mov ecx, esi
call dword [0x48a2d4]
lea eax, [esp + 0x14]
push eax
mov ecx, ebp
call fcn.00436780
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
mov dword [esp + 0x44], 4
call dword [0x48a26c]
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], bl
call dword [0x48a314]
add edi, 0x84
cmp byte [edi], bl
je 0x437218
push 0x23
push 1
mov ecx, esi
call dword [0x48a2d4]
lea edx, [esp + 0x14]
push edx
mov ecx, edi
call fcn.00436780
lea eax, [esp + 0x14]
push eax
mov ecx, esi
mov dword [esp + 0x44], 5
call dword [0x48a26c]
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], bl
call dword [0x48a314]
mov eax, esi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 4
Function at 0x4395e0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, dword [esp + 8]
cmp ebp, 3
push esi
push edi
mov edi, dword [0x4a84e4]
mov esi, eax
jb 0x439656
mov eax, 0xaaaaaaab
mul ebp
shr edx, 1
push ebx
mov edi, edi
movzx ebx, byte [esi + 2]
xor eax, eax
mov ah, byte [esi]
add esi, 3
add ecx, 4
sub ebp, 3
mov al, byte [esi - 2]
shl eax, 8
or eax, ebx
mov ebx, eax
shr ebx, 0x12
and ebx, 0x3f
movzx ebx, byte [ebx + edi]
mov byte [ecx - 4], bl
mov ebx, eax
shr ebx, 0xc
and ebx, 0x3f
movzx ebx, byte [ebx + edi]
mov byte [ecx - 3], bl
mov ebx, eax
shr ebx, 6
and ebx, 0x3f
movzx ebx, byte [ebx + edi]
and eax, 0x3f
sub edx, 1
mov byte [ecx - 2], bl
movzx eax, byte [eax + edi]
mov byte [ecx - 1], al
jne 0x439600
pop ebx
sub ebp, 1
je 0x43969b
sub ebp, 1
jne 0x4396bf
movzx edx, byte [esi]
shr edx, 2
movzx eax, byte [edx + edi]
mov byte [ecx], al
movzx edx, byte [esi]
movzx eax, byte [esi + 1]
and edx, 3
shl edx, 4
shr eax, 4
or edx, eax
movzx edx, byte [edx + edi]
mov byte [ecx + 1], dl
movzx eax, byte [esi + 1]
and eax, 0xf
movzx edx, byte [edi + eax*4]
pop edi
pop esi
mov byte [ecx + 2], dl
mov byte [ecx + 3], 0x3d
pop ebp
ret
movzx eax, byte [esi]
shr eax, 2
movzx edx, byte [eax + edi]
mov byte [ecx], dl
movzx eax, byte [esi]
and eax, 3
shl eax, 4
movzx edx, byte [eax + edi]
mov al, 0x3d
mov byte [ecx + 1], dl
mov byte [ecx + 2], al
mov byte [ecx + 3], al
pop edi
pop esi
pop ebp
ret

Function at 0x439ab0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
ret

Function at 0x43cbd0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4876c4
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4a89e8]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
push 0x7c
xor edi, edi
push edi
call fcn.0043eb40
mov dword [esi], 0x48da8c
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esp + 0x1c], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov eax, dword [esp + 0x24]
lea ebx, [esi + 0x24]
mov ecx, ebx
mov byte [esp + 0x1c], 1
mov dword [esi + 0x20], eax
call fcn.0043c000
mov dword [ebx + 4], eax
mov dword [ebx + 8], edi
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x30]
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], edx
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x40], 0x48ac24
mov dword [esi + 0x54], edi
lea ecx, [esi + 0x60]
mov byte [esp + 0x1c], 4
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
call dword [0x48a25c]
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 0x10
Function at 0x446430
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x488b44
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4a89e8]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
mov eax, dword [edi]
mov dword [esi], eax
mov cl, byte [edi + 4]
lea edx, [edi + 8]
mov byte [esi + 4], cl
push edx
lea ecx, [esi + 8]
call dword [0x48a32c]
mov al, byte [edi + 0x24]
mov byte [esi + 0x24], al
mov ecx, dword [edi + 0x28]
mov dword [esi + 0x28], ecx
mov edx, dword [edi + 0x2c]
mov dword [esi + 0x2c], edx
mov eax, dword [edi + 0x30]
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0x34]
mov dword [esi + 0x34], ecx
mov edx, dword [edi + 0x38]
mov dword [esi + 0x38], edx
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x3c], eax
mov ecx, dword [edi + 0x40]
mov dword [esi + 0x40], ecx
mov edx, dword [edi + 0x44]
lea ecx, [edi + 0x4c]
mov dword [esi + 0x44], edx
mov eax, dword [edi + 0x48]
push ecx
lea ecx, [esi + 0x4c]
mov dword [esp + 0x1c], 0
mov dword [esi + 0x48], eax
call dword [0x48a32c]
lea edx, [edi + 0x68]
push edx
lea ecx, [esi + 0x68]
mov byte [esp + 0x1c], 1
call dword [0x48a32c]
mov eax, dword [edi + 0x84]
mov dword [esi + 0x84], eax
mov ecx, dword [edi + 0x88]
mov dword [esi + 0x88], ecx
mov edx, dword [edi + 0x8c]
lea eax, [edi + 0x90]
push eax
lea ecx, [esi + 0x90]
mov byte [esp + 0x1c], 2
mov dword [esi + 0x8c], edx
call fcn.00432880
mov ecx, dword [edi + 0x9c]
mov dword [esi + 0x9c], ecx
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x102f5be
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x80
push 3
push 0
push 7
push 0xc0000000
push 0x10030ec
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x102f5ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x102f5fb
mov eax, dword [ebp + 8]
and dword [eax], 0
xor eax, eax
inc eax
jmp 0x102f60e
xor eax, eax
jmp 0x102f60e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 8]
xor eax, eax
inc eax
mov dword [ecx], eax
pop ebp
ret 4

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

Disassembly:
pushal
nop
nop
nop
call 0x43300c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401045
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push 0x59b010
call fcn.00401c3a
mov ecx, esi
push str.EBWebViewx86EmbeddedBrowserWebView.dll
call fcn.00401c3a
mov ecx, esi
call fcn.00401cec
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
pop esi
pop ebp
ret

Function at 0x401837
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x230
mov esi, edx
mov edi, ecx
mov eax, dword [0x5f3040]
xor eax, ebp
mov dword [esp + 0x228], eax
lea eax, [esp + 0x20]
push 0x208
push 0xff
push eax
call fcn.0055fae0
add esp, 0xc
mov dword [esp + 0xc], 0x104
lea eax, [esp + 8]
mov dword [eax], 0xffffffff
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
sub ecx, esi
push eax
push 0x20219
push 0
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ebx, ebx
test eax, eax
jne 0x401934
lea eax, [esp + 0xc]
push eax
lea edi, [esp + 0x24]
push edi
push ebx
push ebx
push str.EBWebView
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x401932
cmp dword [esp + 0xc], 3
mov ebx, 0
jb 0x401934
mov esi, dword [ebp + 0xc]
mov ecx, esi
push edi
call fcn.00401b6a
mov ecx, esi
call fcn.00401cec
push 0x5c
push eax
call fcn.0055fa34
add esp, 8
test eax, eax
je 0x401932
mov edi, eax
add edi, 2
pcmpeqd xmm0, xmm0
lea edx, [esp + 0x10]
movdqa xmmword [edx], xmm0
mov ecx, edi
call fcn.00401794
test al, al
je 0x401932
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x401923
push edi
call fcn.00401b6a
lea ecx, [esp + 0x10]
mov edx, esi
call fcn.0040194c
mov ebx, eax
jmp 0x401934
xor ebx, ebx
mov ecx, dword [esp + 0x228]
xor ecx, ebp
call fcn.0055d3df
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x40194c
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
xor eax, eax
mov edx, dword [eax + 0x59b1f8]
cmp dword [ecx + eax], edx
ja 0x40196a
jb 0x401975
add eax, 4
cmp eax, 0x10
jne 0x401955
push esi
call fcn.00401045
add esp, 4
jmp 0x401995
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.Loader_skipped_an_incompatible_version:
call edi
mov ecx, esi
call fcn.00401cec
push eax
call edi
push 0x59b25a
call edi
xor eax, eax
pop esi
pop edi
pop ebp
ret
Function at 0x402112
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov esi, edx
mov edi, ecx
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [0x5f3040]
xor eax, ebp
mov dword [ebp - 0x10], eax
test ebx, ebx
je 0x402185
mov dword [ebp - 0x1c], ecx
xor eax, eax
lea ecx, [ebp - 0x14]
mov dword [ecx], eax
lea edx, [ebp - 0x18]
mov dword [edx], 4
push edx
push ecx
push eax
push 0x10
push esi
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x40219f
mov ecx, edi
mov edx, esi
push dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
push esi
call fcn.004021c6
add esp, 8
test al, al
je 0x4021b0
push 0xa
push 0
push dword [esi]
call fcn.00569e10
add esp, 0xc
jmp 0x4021a2
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055d3df
mov ecx, edi
mov edx, esi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.004021c6
mov eax, dword [ebp - 0x14]
xor ecx, ecx
cmp eax, 1
sete cl
mov dword [ebx], ecx
mov bl, 1
jmp 0x4021b2
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055d3df
mov eax, ebx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4021c6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x214
mov esi, edx
mov dword [ebp - 0x220], ecx
mov eax, dword [0x5f3040]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor ebx, ebx
lea edi, [ebp - 0x218]
push 0x208
push ebx
push edi
call fcn.0055fae0
add esp, 0xc
lea eax, [ebp - 0x21c]
mov dword [eax], 0x104
push eax
push edi
push ebx
push 2
push esi
push ebx
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov esi, eax
test eax, eax
jne 0x40223d
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov ecx, edi
lea eax, [ebp - 0x218]
push eax
call fcn.00401b6a
mov ecx, edi
call fcn.00401cec
mov dword [ebx], eax
test esi, esi
sete bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055d3df
mov eax, ebx
add esp, 0x214
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4030d0
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]
mov eax, edi
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x4030f9
pop edi
pop ebx
pop ebp
ret
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40310f
xor esi, esi
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403106
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x403142
nop
cmp esi, ecx
jae 0x403106
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x403130
cmp esi, ecx
jae 0x403106
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x403370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.0041ccaf
Function at 0x4051c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5891d0
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x5f3040]
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 ebx, dword [ebp + 8]
lea edx, [ebp - 0x218]
mov eax, edx
mov esi, 0x104
sub ecx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
nop dword [eax]
lea eax, [esi + 0x7ffffefa]
test eax, eax
je 0x40522e
movzx eax, word [ecx + edx]
test ax, ax
je 0x40522e
mov word [edx], ax
add edx, 2
sub esi, 1
jne 0x405210
test esi, esi
lea eax, [edx - 2]
cmovne eax, edx
xor ecx, ecx
mov word [eax], cx
mov ecx, 0x104
lea eax, [ebp - 0x218]
cmp word [eax], 0
je 0x405254
add eax, 2
sub ecx, 1
jne 0x405246
mov edx, 0x104
mov esi, ecx
mov eax, edx
sub eax, ecx
neg esi
sbb esi, esi
and esi, eax
test ecx, ecx
je 0x4052a8
lea ecx, [ebp - 0x218]
lea ecx, [ecx + esi*2]
sub edx, esi
je 0x40529b
mov edi, 0x5d0e94
mov eax, SysReAllocString
sub edi, ecx
test eax, eax
je 0x40529b
movzx esi, word [edi + ecx]
test si, si
je 0x40529b
mov word [ecx], si
dec eax
add ecx, 2
sub edx, 1
jne 0x405282
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
push 0
push MoveWindow
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov esi, eax
test esi, esi
jne 0x4052e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4052d1
xor edi, edi
jmp 0x405315
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xc9
call fcn.00404d20
add esp, 4
mov edi, eax
jmp 0x405315
lea edx, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0
mov ecx, esi
call fcn.00405020
mov edi, eax
test edi, edi
jns 0x40531b
push edi
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xcf
call fcn.00404d00
add esp, 8
test esi, esi
jne 0x405329
jmp 0x405336
mov eax, dword [ebp - 0x21c]
xor edi, edi
cdq
mov dword [ebx], eax
mov dword [ebx + 4], edx
push esi
mov dword [ebp - 4], 2
call fcn.00404dd0
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.0055d3df
mov esp, ebp
pop ebp
ret