joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10061520
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
push edi
push 0x40
push 0x1000
xor edi, edi
push 0x1000
mov esi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esi + 0x20], eax
lea ebp, [eax + 0xa00]
mov eax, dword [esi + 0x4c]
push ebp
push eax
mov dword [esi + 0x54], ebp
mov dword [esp + 0x18], edi
call fcn.100610b0
mov ebx, eax
add esp, 8
cmp ebx, 5
jne 0x100615bf
cmp byte [ebp], 0xe9
jne 0x100615bf
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
mov edx, dword [esi + 0x4c]
lea ecx, [esp + 0x14]
stosw word es:[edi], ax
push 0x104
push ecx
push edx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.PSAPI.DLL_GetMappedFileNameA
test eax, eax
je 0x100616a6
mov al, byte [esp + 0x14]
test al, al
je 0x100616a6
mov eax, dword [esi + 0x4c]
mov ecx, 1
mov edx, dword [eax + 1]
lea edi, [edx + eax + 5]
jmp 0x100615c3
mov ecx, dword [esp + 0x10]
mov al, byte [ebp]
cmp al, 0xe8
je 0x100616a6
cmp al, 0xea
je 0x100616a6
cmp al, 0xeb
je 0x100616a6
cmp ebx, 5
jl 0x100616a6
mov eax, dword [esi + 0x4c]
mov edx, dword [esi + 0x20]
mov dword [esi + 0x24], eax
mov dword [esi + 0x50], ebx
mov dword [edx + 0x800], esi
mov eax, dword [esi + 0x20]
mov dword [eax + 0x810], ebp
mov edx, dword [esi + 0x20]
mov dword [edx + 0x818], 0x10061490
mov byte [ebx + ebp], 0xe9
mov eax, dword [esi + 0x4c]
sub eax, ebp
sub eax, 5
test ecx, ecx
mov dword [ebx + ebp + 1], eax
je 0x1006162f
sub edi, ebp
mov byte [ebp], 0xe9
sub edi, 5
mov dword [ebp + 1], edi
mov ecx, ebx
mov eax, 0x90909090
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esi + 0x20]
mov ebp, dword [esi + 0x4c]
mov eax, edi
push edi
sub eax, ebp
mov ecx, esi
sub eax, 5
mov byte [esi], 0xe9
mov dword [esi + 1], eax
call fcn.100613e0
mov ecx, dword [esi + 0x30]
test ecx, ecx
jne 0x10061677
mov cx, word [esi + 0x2c]
shl cx, 2
mov word [eax + edi - 2], cx
jmp 0x1006167e
mov word [eax + edi - 2], 0
mov edx, dword [esi + 0x50]
mov eax, dword [esi + 0x24]
push 0
push edx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x108
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x108
ret

Function at 0x10063ea0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov eax, edx
push esi
lea esi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10063eb0
sub eax, esi
add eax, edx
mov ecx, 0x811c9dc5
cmp edx, eax
je 0x10063ed4
movsx esi, byte [edx]
imul ecx, ecx, 0x1000193
inc edx
xor ecx, esi
cmp edx, eax
jne 0x10063ec4
and ecx, 0x7fffffff
push 0x1f31d
push ecx
call fcn.100b0111
imul eax, eax, 0xb14
imul edx, edx, 0x41a7
add esp, 8
sub edx, eax
pop esi
mov eax, edx
jns 0x10063f00
add eax, 0x7fffffff
pop ebp
ret 4
Function at 0x10070330
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b3746
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
mov eax, dword [0x100d9f50]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
xor ebx, ebx
mov dword [esi], eax
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov byte [esi + 0x1c], bl
mov dword [esi + 0x34], 0xf
mov dword [esi + 0x30], ebx
mov dword [ebp - 4], ebx
mov byte [esi + 0x20], bl
push 0x14
mov byte [ebp - 4], 1
mov dword [esi + 0x4c], ebx
call fcn.10047d9f
add esp, 4
cmp eax, ebx
je 0x100703e4
mov dword [esi + 0x48], eax
mov dword [eax], eax
mov eax, dword [esi + 0x48]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x48]
mov dword [eax + 8], eax
mov eax, dword [esi + 0x48]
mov byte [eax + 0x10], 1
mov ecx, dword [esi + 0x48]
mov byte [ecx + 0x11], 1
mov dword [esi + 0x54], ebx
mov dword [esi + 0x6c], 0xf
mov dword [esi + 0x68], ebx
mov byte [esi + 0x58], bl
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea edx, [ebp + 8]
push edx
lea ecx, [ebp - 0x1c]
mov dword [ebp + 8], ebx
call fcn.10047eb8
push 0x100d5a98
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], vtable.std::bad_alloc.0
call fcn.1004ae38
int3
Function at 0x10071920
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
mov eax, dword [ebx + 4]
mov ecx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
cmp esi, dword [eax]
jne 0x1007194f
cmp ecx, eax
jne 0x1007194f
mov ecx, ebx
call fcn.100708d0
mov eax, dword [ebx + 4]
mov ecx, dword [eax]
mov eax, dword [ebp + 8]
pop esi
mov dword [eax], ecx
pop ebx
pop ebp
ret 0xc
cmp esi, ecx
je 0x10071a2d
push edi
mov edx, dword [esi]
mov dword [ebp + 0xc], edx
mov edx, dword [esi + 8]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10071965
sub eax, edi
add eax, edx
mov ecx, 0x811c9dc5
cmp edx, eax
je 0x10071990
lea esp, [esp]
movsx edi, byte [edx]
imul ecx, ecx, 0x1000193
inc edx
xor ecx, edi
cmp edx, eax
jne 0x10071980
and ecx, 0x7fffffff
push 0x1f31d
push ecx
call fcn.100b0111
imul edx, edx, 0x41a7
imul eax, eax, 0xb14
add esp, 8
sub edx, eax
jns 0x100719ba
add edx, 0x7fffffff
mov ecx, dword [ebx + 0x20]
mov eax, ecx
and eax, edx
cmp dword [ebx + 0x24], eax
ja 0x100719cf
shr ecx, 1
or edx, 0xffffffff
sub edx, ecx
add eax, edx
mov ecx, dword [ebx + 0x10]
cmp dword [ecx + eax*8 + 4], esi
lea ecx, [ecx + eax*8]
jne 0x100719f8
cmp dword [ecx], esi
jne 0x100719f0
mov edx, dword [ebx + 4]
mov dword [ecx], edx
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 4]
mov dword [ecx + eax*8 + 4], edx
jmp 0x10071a00
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
jmp 0x10071a00
cmp dword [ecx], esi
jne 0x10071a00
mov edx, dword [esi]
mov dword [ecx], edx
cmp esi, dword [ebx + 4]
je 0x10071a20
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov dword [eax], ecx
mov edx, dword [esi]
mov eax, dword [esi + 4]
push esi
mov dword [edx + 4], eax
call fcn.10047d94
add esp, 4
dec dword [ebx + 8]
mov esi, dword [ebp + 0xc]
cmp esi, dword [ebp + 0x10]
jne 0x10071958
pop edi
mov eax, dword [ebp + 8]
mov dword [eax], esi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x1008be70
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b7273
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x100d9f50]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x38
call fcn.10047d9f
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
xor edi, edi
mov dword [ebp - 4], edi
cmp esi, edi
je 0x1008bef5
lea ecx, [esi + 4]
mov byte [ebp - 4], 1
mov dword [esi], vtable.google::protobuf::SourceCodeInfo_Location.0
call fcn.10064df0
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov eax, 0x100dc684
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b5328
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x100d9f50]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor edi, edi
lea ecx, [esi + 4]
mov dword [ebp - 4], edi
mov dword [esi], vtable.google::protobuf::FileDescriptorProto.0
call fcn.10064df0
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
mov eax, 0x100dc684
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x80], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x7c], edi
mov dword [esi + 0x84], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1008d010
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b5328
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x100d9f50]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor edi, edi
lea ecx, [esi + 4]
mov dword [ebp - 4], edi
mov dword [esi], vtable.google::protobuf::DescriptorProto.0
call fcn.10064df0
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x60], edi
mov dword [esi + 8], 0x100dc684
mov dword [esi + 0x5c], edi
mov dword [esi + 0x64], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b5328
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x100d9f50]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor edi, edi
lea ecx, [esi + 4]
mov dword [ebp - 4], edi
mov dword [esi], vtable.google::protobuf::UninterpretedOption.0
call fcn.10064df0
fldz
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
fstp qword [esi + 0x30]
mov eax, 0x100dc684
mov dword [esi + 0x18], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x44], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1008fda0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b7273
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x100d9f50]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x48
call fcn.10047d9f
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
xor edi, edi
mov dword [ebp - 4], edi
cmp esi, edi
je 0x1008fe33
lea ecx, [esi + 4]
mov byte [ebp - 4], 1
mov dword [esi], vtable.google::protobuf::UninterpretedOption.0
call fcn.10064df0
fldz
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
fstp qword [esi + 0x30]
mov eax, 0x100dc684
mov dword [esi + 0x18], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x44], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100aeac0
Capabilities:
Create service
Delete service
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x840
mov eax, dword [0x100d9f50]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x100df9e8]
test eax, eax
jg 0x100aece9
push esi
call fcn.100aeaa0
push 0x208
lea eax, [ebp - 0x414]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x824]
push edx
lea eax, [ebp - 0x414]
push eax
call fcn.100b07cf
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
add esp, 0x14
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push str..BackInDKB
call esi
mov dword [0x100dfa00], eax
cmp eax, 0xffffffff
je 0x100aeb5a
mov eax, 1
mov dword [0x100df9e8], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10047d85
mov esp, ebp
pop ebp
ret
push ebx
push edi
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push str..BugTrace_Device
call esi
mov dword [0x100dfa00], eax
cmp eax, 0xffffffff
jne 0x100aecd9
push 0x100c3f2c
push str.BugTrace
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x824]
push edx
lea eax, [ebp - 0x61c]
push eax
call fcn.100b081b
add esp, 0x14
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [0x100df9ec], eax
test eax, eax
jne 0x100aebc7
or esi, 0xffffffff
jmp 0x100aecde
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x61c]
push ecx
push 1
push 3
push 1
push 0xf01ff
push str.BugTrace
push str.BugTrace
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x100df9f0], eax
test eax, eax
jne 0x100aec56
call edi
cmp eax, 0x431
je 0x100aec25
mov ecx, dword [0x100df9ec]
push ecx
mov esi, 0xfffffffe
call ebx
jmp 0x100aecde
mov edx, dword [0x100df9ec]
push 0xf01ff
push str.BugTrace
push edx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [0x100df9f0], eax
test eax, eax
jne 0x100aec56
mov ecx, dword [0x100df9ec]
push ecx
lea esi, [eax - 4]
call ebx
jmp 0x100aecde
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x100aec75
call edi
cmp eax, 0x420
je 0x100aec75
mov esi, 0xfffffffa
jmp 0x100aecb9
cmp dword [0x100dfa00], 0xffffffff
jne 0x100aecd9
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push str..BugTrace_Device
call esi
mov dword [0x100dfa00], eax
cmp eax, 0xffffffff
jne 0x100aecd9
mov ecx, dword [0x100df9f0]
lea eax, [ebp - 0x840]
push eax
push 1
push ecx
mov esi, 0xfffffff8
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edx, dword [0x100df9f0]
push edx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov eax, dword [0x100df9f0]
push eax
call ebx
mov ecx, dword [0x100df9ec]
push ecx
call ebx
jmp 0x100aecde
mov esi, 1
pop edi
pop ebx
mov dword [0x100df9e8], esi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10047d85
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Hash data with md5

Disassembly:
push esi
xor ecx, ecx
push 0x40
lea esi, [eax + 0x58]
push ecx
push esi
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
call fcn.0040f690
add esp, 0xc
mov byte [esi], 0x80
pop esi
ret

Function at 0x40187c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor esi, esi
cmp dword [edi + 0x58], esi
mov dword [ebp - 4], esi
jne 0x4018b8
push 0x98
call fcn.0040fa93
mov ebx, eax
cmp ebx, esi
pop ecx
je 0x4018a8
call fcn.00401000
mov eax, ebx
jmp 0x4018aa
xor eax, eax
cmp eax, esi
mov dword [edi + 0x58], eax
jne 0x4018b8
xor eax, eax
jmp 0x40199c
cmp dword [ebp + 8], esi
je 0x4018b1
push esi
push 0x80
push 3
push esi
push 7
push closesocket
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x4018b1
cmp dword [edi + 0x5c], esi
mov ebx, 0xff
jne 0x4018fc
push ebx
call fcn.0040f564
push ebx
push esi
push eax
mov dword [edi + 0x5c], eax
call fcn.0040f690
add esp, 0x10
cmp dword [edi + 0x60], esi
jne 0x40196c
push 0x137478
call fcn.0040f564
pop ecx
mov dword [edi + 0x60], eax
jmp 0x40196c
mov ecx, dword [ebp - 4]
cmp ecx, esi
je 0x401986
xor edx, edx
mov esi, ebx
mov eax, ecx
div esi
mov eax, ecx
sub eax, edx
mov dword [ebp - 0x10], edx
xor edx, edx
div esi
xor esi, esi
cmp eax, esi
jle 0x401955
mov dword [ebp + 8], esi
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0x60]
add eax, dword [ebp + 8]
mov esi, dword [edi + 0x58]
push eax
mov eax, ebx
call fcn.00401038
add dword [ebp + 8], ebx
dec dword [ebp - 0xc]
jne 0x401937
mov ecx, dword [ebp - 4]
xor esi, esi
mov eax, dword [ebp - 0x10]
cmp eax, esi
jle 0x40196c
mov esi, dword [edi + 0x58]
sub ecx, eax
add ecx, dword [edi + 0x60]
push ecx
call fcn.00401038
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
push 0x137478
push dword [edi + 0x60]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x401911
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [edi + 0x58]
lea ebx, [edi + 4]
call fcn.004010cf
mov eax, ebx
pop esi
pop ebx
leave
ret 4
Function at 0x401abd
Capabilities:
Check if file exists

Disassembly:
push 0xc
mov eax, 0x4216d1
call fcn.00414607
xor edi, edi
cmp dword [ebp + 8], edi
mov dword [ebp - 0x18], edi
jne 0x401ae6
push 0x426f54
push ebx
call fcn.004022a3
mov eax, ebx
call fcn.004146df
ret
lea eax, [ebp - 0x10]
push eax
call fcn.00404629
pop ecx
mov dword [ebp - 4], edi
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x401b18
push 0x426f54
push ebx
call fcn.004022a3
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004028bd
jmp 0x401ade
mov eax, dword [ebp - 0x10]
mov esi, dword [eax - 0xc]
mov eax, dword [0x42b6ec]
mov ecx, 0x42b6ec
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea ecx, [esi - 1]
cmp ecx, edi
mov byte [ebp - 4], 1
jl 0x401bb8
mov eax, dword [ebp - 0x10]
mov esi, dword [eax - 0xc]
cmp ecx, esi
jg 0x401bb8
movzx edx, word [eax + ecx*2]
cmp dx, 0x5c
je 0x401b62
cmp ecx, edi
jl 0x401bb8
cmp ecx, esi
jg 0x401bb8
movzx eax, word [eax + ecx*2]
cmp ax, 0x2f
jne 0x401b88
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x10]
call fcn.00402352
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004022e8
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004028bd
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
push 0x423d74
call fcn.004027d8
mov esi, dword [ebp - 0x14]
pop ecx
add esi, 0xfffffff0
pop ecx
mov eax, esi
call fcn.0040252b
add eax, 0x10
mov dword [ebx], eax
mov eax, esi
call fcn.004028bd
jmp 0x401b0b
push 0x80070057
call fcn.004028d5
int3

Function at 0x401bc3
Capabilities:
Check if file exists

Disassembly:
push 0xc
mov eax, 0x4218a0
call fcn.00414607
push 0x423d7c
lea ebx, [ebp - 0x10]
call fcn.00401abd
pop ecx
xor esi, esi
mov dword [ebp - 4], esi
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x401c01
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004028bd
xor eax, eax
jmp 0x401cbc
push dword [ebp - 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
lea esi, [ebp - 0x18]
lea edi, [ebp - 0x14]
call fcn.00401cc2
test eax, eax
pop ecx
je 0x401bef
movzx eax, word [ebp - 0x18]
mov esi, dword [ebp - 0x18]
movzx ebx, word [ebp - 0x14]
mov edi, dword [ebp - 0x14]
push eax
shr esi, 0x10
push esi
push ebx
shr edi, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
push edi
push str._d._d._d._d
call fcn.0040278d
add esp, 0x14
test esi, esi
je 0x401c60
mov eax, dword [ebp + 0xc]
mov byte [eax], 2
xor esi, esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004028bd
mov eax, esi
jmp 0x401cbc
cmp edi, 4
jb 0x401ca2
jne 0x401c97
cmp ebx, 6
jb 0x401ca2
jne 0x401c77
cmp dword [ebp - 0x18], 0xe76
jb 0x401ca2
cmp ebx, 7
jne 0x401c97
cmp dword [ebp - 0x18], 0x1077
jae 0x401c97
mov ecx, dword [ebp + 8]
xor eax, eax
inc eax
mov dword [ecx], eax
mov ecx, dword [ebp + 0xc]
mov byte [ecx], 0
mov esi, eax
jmp 0x401c51
mov eax, dword [ebp + 0xc]
mov byte [eax], 1
jmp 0x401bef
mov eax, dword [ebp + 8]
and dword [eax], 0
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004028bd
xor eax, eax
inc eax
call fcn.004146df
ret
Function at 0x401cc2
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
cmp dword [ebp + 8], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
je 0x401d69
cmp esi, eax
je 0x401d69
cmp edi, eax
je 0x401d69
mov dword [esi], eax
push ebx
mov dword [edi], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x401d68
push ebx
call fcn.0040f564
pop ecx
push eax
push ebx
push dword [ebp - 8]
mov dword [ebp - 4], eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x401d59
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x423db0
push dword [ebp - 4]
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x401d59
cmp dword [ebp - 0xc], ebx
je 0x401d59
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x401d59
mov ecx, dword [eax + 8]
mov dword [edi], ecx
mov eax, dword [eax + 0xc]
mov dword [esi], eax
mov dword [ebp - 0x14], 1
cmp dword [ebp - 4], 0
je 0x401d68
push dword [ebp - 4]
call fcn.0040fa75
pop ecx
pop ebx
mov eax, dword [ebp - 0x14]
leave
ret

Function at 0x401d6e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
cmp edi, esi
mov dword [ebp - 4], esi
je 0x401deb
push ebx
push 0x423db4
push 0x67
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
cmp ebx, esi
je 0x401dea
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
xor eax, eax
inc eax
cmp esi, eax
jb 0x401dea
cmp dword [edi], esi
jae 0x401dad
mov dword [edi], esi
mov dword [ebp - 4], eax
jmp 0x401dea
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x401dea
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x401de3
cmp dword [ebp + 8], 0
je 0x401dda
push esi
push eax
push dword [ebp + 8]
call fcn.0040f710
add esp, 0xc
mov dword [edi], esi
mov dword [ebp - 4], 1
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
mov eax, dword [ebp - 4]
pop esi
leave
ret