joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4428a0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4ae389
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.0048e220
xor ebx, ebx
lea ecx, [esi + 0x20]
mov dword [esp + 0x1c], ebx
call fcn.004258f4
lea edi, [esi + 0x4c]
mov byte [esp + 0x1c], 1
mov ecx, edi
call fcn.00425cde
mov dword [edi], 0x508d30
mov dword [edi + 0x10], ebx
lea ebp, [esi + 0x6c]
push 0xa
mov ecx, ebp
mov byte [esp + 0x20], 2
call fcn.0048e412
push ebx
push 0xc7
mov ecx, ebp
mov byte [esp + 0x24], 3
mov dword [esi], 0x508cd8
call fcn.0048e40c
mov dword [esi + 0x30], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x68], ebx
call fcn.00425c90
mov eax, dword [eax + 8]
push ebx
push ebx
push eax
mov ecx, esi
call fcn.004430a0
lea eax, [esi + 0x64]
push eax
push 0x200
push 0x200
push ebx
mov dword [eax], ebx
call fcn.00434710
add esp, 0x10
mov dword [esi + 0x60], eax
push ebx
call dword [0x52a434]
mov ebp, eax
push ebp
call dword [0x529490]
push eax
mov ecx, edi
call fcn.00425d1a
push ebp
push ebx
call dword [0x52a438]
lea eax, [esi + 0x34]
push eax
call dword [0x529628]
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x443380
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ae550
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push ecx
lea eax, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
mov dword [esp + 0x30], 1
call fcn.004258dc
push ecx
lea edx, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
mov byte [esp + 0x34], 2
call fcn.004258dc
lea eax, [esp + 0x10]
mov ecx, esi
push eax
mov byte [esp + 0x34], 1
call fcn.00443550
mov eax, dword [esp + 8]
xor ebx, ebx
cmp dword [eax - 8], ebx
jne 0x443429
lea ecx, [esp + 8]
mov byte [esp + 0x28], 1
call fcn.004258be
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], bl
call fcn.004258be
lea ecx, [esp + 0x34]
mov dword [esp + 0x28], 0xffffffff
call fcn.004258be
or eax, 0xffffffff
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop esi
pop ebx
add esp, 0x24
ret 8
lea ecx, [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
push edx
push ecx
push str._i__i__i
push eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
call dword [0x52a214]
mov eax, dword [esp + 0x28]
xor edx, edx
mov dh, byte [esp + 0x20]
and eax, 0xff
mov dl, byte [esp + 0x24]
add esp, 0x14
shl edx, 8
or edx, eax
lea ecx, [esp + 8]
mov esi, edx
mov byte [esp + 0x28], 1
call fcn.004258be
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], bl
call fcn.004258be
lea ecx, [esp + 0x34]
mov dword [esp + 0x28], 0xffffffff
call fcn.004258be
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret 8
Function at 0x446de0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ae9f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
xor ebx, ebx
mov dword [esp + 8], 0x508f7c
mov dword [esp + 0xc], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebx
mov edx, dword [esp + 0x30]
lea eax, [esp + 8]
push eax
push edx
mov dword [esp + 0x2c], ebx
call fcn.00446c50
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x446e53
lea ecx, [esp + 8]
mov dword [esp + 0x24], 0xffffffff
call fcn.00447e00
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 8
push ebp
push esi
xor esi, esi
cmp eax, ebx
push edi
mov ebp, 4
jle 0x446e8e
mov eax, dword [esp + 0x18]
mov edi, dword [eax + esi*4]
mov ecx, dword [edi + 8]
push ecx
call dword [0x52a194]
mov dl, byte [edi]
add esp, 4
not dl
shr edx, 3
and edx, 2
lea eax, [edx + eax*2 + 4]
add ebp, eax
mov eax, dword [esp + 0x1c]
inc esi
cmp esi, eax
jl 0x446e61
lea edi, [ebp + 6]
push edi
call dword [0x52a170]
mov ecx, edi
mov esi, eax
mov edx, ecx
xor eax, eax
mov edi, esi
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov dword [esp + 0x10], esi
and ecx, 3
lea ebp, [esi + 4]
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x3c], ebx
cmp eax, ebx
jle 0x446f5e
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
mov ebx, dword [eax + ecx*4]
mov dx, word [ebx]
mov word [ebp], dx
mov al, byte [ebx]
test al, 0x10
je 0x446ef9
mov eax, dword [ebx + 8]
push eax
call dword [0x52a194]
mov esi, dword [ebx + 8]
add esp, 4
lea ecx, [eax + eax + 2]
lea edi, [ebp + 2]
jmp 0x446f18
mov ax, word [ebx + 2]
mov word [ebp + 2], ax
mov ecx, dword [ebx + 8]
push ecx
call dword [0x52a194]
mov esi, dword [ebx + 8]
add esp, 4
lea ecx, [eax + eax + 2]
lea edi, [ebp + 4]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 8]
push eax
call dword [0x52a194]
mov cl, byte [ebx]
add esp, 4
not cl
shr ecx, 3
and ecx, 2
lea eax, [ecx + eax*2 + 4]
mov ecx, dword [esp + 0x1c]
add ebp, eax
mov eax, dword [esp + 0x3c]
inc eax
cmp eax, ecx
mov dword [esp + 0x3c], eax
jl 0x446ec8
mov esi, dword [esp + 0x10]
xor ebx, ebx
push esi
mov word [ebp], 0x80
call dword [0x52a404]
mov ecx, dword [esp + 0x38]
push eax
call fcn.00425b22
push esi
mov dword [esp + 0x40], eax
call dword [0x52a168]
add esp, 4
mov eax, dword [esp + 0x1c]
xor edi, edi
cmp eax, ebx
mov dword [esp + 0x30], 2
jle 0x446fc2
mov ebp, dword [0x52a2a8]
mov edx, dword [esp + 0x18]
mov esi, dword [edx + edi*4]
cmp esi, ebx
je 0x446fb9
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x446fb0
push eax
call ebp
push esi
call fcn.004258b2
add esp, 4
mov eax, dword [esp + 0x1c]
inc edi
cmp edi, eax
jl 0x446f9b
mov dword [esp + 0x14], 0x508f7c
mov eax, dword [esp + 0x18]
pop edi
pop esi
cmp eax, ebx
mov dword [esp + 0x28], 3
pop ebp
je 0x446fe6
push eax
call fcn.004258b2
add esp, 4
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x30]
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 8
Function at 0x45175c
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4af3c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [esp + 0x34]
push esi
mov esi, ecx
push eax
lea ecx, [esp + 8]
call fcn.00452270
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
sub esp, 0x10
mov dword [esp + 0x30], 0
mov ecx, esp
push esi
mov dword [ecx], edx
mov edx, dword [esp + 0x44]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x48]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x18]
call fcn.00452350
lea ecx, [esp + 4]
mov dword [esp + 0x20], 0xffffffff
call fcn.0044e900
mov ecx, dword [esp + 0x18]
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 0x14

Function at 0x454d10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4af7e7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
lea ecx, [esp + 8]
mov dword [esp + 0xc], 0
call fcn.004258f4
mov esi, dword [esp + 0x34]
mov ebx, 1
mov dword [esp + 0x28], ebx
fld qword [esi]
call fcn.0042602c
test eax, eax
jne 0x454d80
lea eax, [esp + 0x34]
push str._H:_M:_S
push eax
mov ecx, esi
call fcn.0048e4e4
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 2
call fcn.00425afe
mov byte [esp + 0x28], bl
lea ecx, [esp + 0x34]
jmp 0x454e01
mov ecx, dword [esi]
mov edx, dword [esi + 4]
fld qword [esi]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
call fcn.0042602c
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0
fild qword [esp + 0x10]
fcomp qword [esp + 0x18]
fnstsw ax
test ah, 0x40
je 0x454dd9
lea eax, [esp + 0x34]
push str._Y__d__m
push eax
mov ecx, esi
call fcn.0048e4e4
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 3
call fcn.00425afe
mov byte [esp + 0x28], bl
lea ecx, [esp + 0x34]
jmp 0x454e01
lea ecx, [esp + 0x34]
push str._Y__d__mT_H:_M:_S
push ecx
mov ecx, esi
call fcn.0048e4e4
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 4
call fcn.00425afe
mov byte [esp + 0x28], bl
lea ecx, [esp + 0x34]
call fcn.004258be
mov esi, dword [esp + 0x30]
lea edx, [esp + 8]
push edx
mov ecx, esi
call fcn.004258dc
mov dword [esp + 0xc], ebx
lea ecx, [esp + 8]
mov byte [esp + 0x28], 0
call fcn.004258be
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x45b270
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4aff6e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.0048e220
xor edi, edi
mov dword [esi + 0x20], 0x509b78
mov dword [esp + 0x14], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x34], 0x509b64
mov dword [esi + 0x38], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x3c], edi
lea ecx, [esi + 0x4c]
mov byte [esp + 0x14], 2
call fcn.0045b1f0
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x48], edi
mov dword [esi], 0x509b08
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x45f970
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4b04dd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.0048e220
lea ebp, [esi + 0x98]
xor eax, eax
mov dword [esp + 0x170], eax
mov dword [ebp + 4], eax
mov dword [ebp], 0x5048ec
lea ebx, [esi + 0xa0]
mov dword [ebx + 4], eax
mov dword [ebx], 0x5048ec
push eax
mov byte [esp + 0x174], 2
mov dword [esi], 0x50a100
mov dword [esi + 0x60], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], 1
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
call dword [0x52a360]
cdq
sub eax, edx
mov ecx, 0xb
sar eax, 1
mov dword [esi + 0x3c], eax
xor eax, eax
lea edi, [esi + 0x64]
rep stosd dword es:[edi], eax
call fcn.00444220
mov ecx, eax
call fcn.00444490
push 0
mov dword [esi + 0x34], eax
push 0
push 0
lea eax, [esi + 0x44]
or edi, 0xffffffff
push 0
push eax
mov dword [esi + 0x90], edi
mov dword [esi + 0x94], edi
mov dword [esi + 0x38], 1
mov dword [esi + 0x40], 2
call dword [0x52a3cc]
mov dword [esi + 0x58], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x5c], edi
mov ecx, 0x55
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push eax
push ecx
push 0x154
push 0x29
mov dword [esp + 0x24], 0x154
call dword [0x52a3c8]
mov edi, dword [0x5294d4]
lea edx, [esp + 0xf0]
push edx
mov dword [esp + 0x104], 0x190
call edi
push eax
mov ecx, ebp
call fcn.00425a80
lea eax, [esp + 0xf0]
mov dword [esp + 0x100], 0x2bc
push eax
call edi
push eax
mov ecx, ebx
call fcn.00425a80
mov ecx, dword [esp + 0x168]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x164
ret
Function at 0x479020
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b261f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
lea ecx, [esp + 4]
mov dword [esp + 8], 0
call fcn.004258f4
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x24]
push ecx
push edx
lea ecx, [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x28], 1
call fcn.004258ee
mov esi, dword [esp + 0x30]
add esp, 0x14
lea edx, [esp + 4]
mov ecx, esi
push edx
call fcn.004258dc
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call fcn.004258be
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x410020
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa000]
push edi
or ebp, 0xffffffff
jmp 0x410042
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x410049
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x410038
mov eax, 1
add ebx, ebx
jne 0x41005b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x410050
jne 0x41006c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x410050
xor ecx, ecx
sub eax, 3
jb 0x410080
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4100f2
mov ebp, eax
add ebx, ebx
jne 0x41008b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x410098
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4100bc
inc ecx
add ebx, ebx
jne 0x4100a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41009d
jne 0x4100b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41009d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4100dc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4100cd
jmp 0x41003e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4100dc
add edi, ecx
jmp 0x41003e
pop esi
mov edi, esi
mov ecx, 0x1d7
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4100fa
cmp byte [edi], 6
jne 0x4100fa
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 0x4100ff
lea edi, [esi + 0xe000]
mov eax, dword [edi]
or eax, eax
je 0x41016e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x10000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x10028]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41012c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1002c]
or eax, eax
je 0x410168
mov dword [ebx], eax
add ebx, 4
jmp 0x410149
call dword [esi + 0x10030]
popal
jmp 0x402749
Function at 0x401ca0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x234
mov eax, dword [0x40d004]
xor eax, esp
mov dword [esp + 0x230], eax
xor eax, eax
push esi
lea ecx, [esp + 8]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
push ecx
mov word [esp + 0x2c], ax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], 0x40c130
mov dword [esp + 0x1c], 1
call dword [0x40a108]
test eax, eax
je 0x401da2
lea edx, [esp + 0x28]
push edx
push eax
call dword [0x40a10c]
test eax, eax
je 0x401da2
lea eax, [esp + 0x28]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401d20
sub eax, edx
sar eax, 1
lea esi, [esp + eax*2 + 0x28]
push 0x40c320
mov edx, esi
call fcn.00401c00
add esp, 4
lea eax, [esp + 0x28]
call fcn.00401c20
test eax, eax
je 0x401db9
push 0x40c344
mov edx, esi
call fcn.00401c00
lea eax, [esp + 0x2c]
push str._Base_Class_Array
push eax
call fcn.00401eba
mov esi, eax
add esp, 0xc
test esi, esi
je 0x401db9
push esi
push 1
push 0x1bc
push 0x40c160
call fcn.004020e2
push esi
call fcn.004021c9
add esp, 0x14
push 0
push 0x40c368
push 0x40c370
push 0
call dword [0x40a114]
xor eax, eax
pop esi
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00401ded
mov esp, ebp
pop ebp
ret 0x10
push 0
push 0x40c3e8
push 0x40c3f0
push 0
call dword [0x40a114]
mov ecx, dword [esp + 0x234]
pop esi
xor ecx, esp
call fcn.00401ded
mov esp, ebp
pop ebp
ret 0x10
Function at 0x401000
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x68
mov eax, dword [0x4eb664]
xor eax, esp
mov dword [esp + 0x64], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push 0x58
lea eax, [esp + 0xc]
push 0
push eax
call fcn.004921d0
push dword [ebp + 0x10]
and dword [esp + 0x2c], 0
and dword [esp + 0x28], 0
mov edx, esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0x67452301
mov dword [esp + 0x1c], 0xefcdab89
mov dword [esp + 0x20], 0x98badcfe
mov dword [esp + 0x24], 0x10325476
call fcn.004010d0
push 8
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x78]
call fcn.00401857
mov edx, dword [esp + 0x2c]
push 0x38
pop ecx
shr edx, 3
and edx, 0x3f
push 0x78
sub ecx, edx
pop eax
sub eax, edx
cmp edx, 0x38
cmovb eax, ecx
push eax
mov edx, 0x4ecd10
lea ecx, [esp + 0x20]
call fcn.004010d0
push 8
lea edx, [esp + 0x80]
lea ecx, [esp + 0x24]
call fcn.004010d0
push 0x10
lea edx, [esp + 0x28]
mov ecx, edi
call fcn.00401857
mov ecx, dword [esp + 0x8c]
add esp, 0x20
pop edi
pop esi
xor ecx, esp
call fcn.0048f059
mov esp, ebp
pop ebp
ret

Function at 0x4018b6
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
xor esi, esi
push edi
mov edi, ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
test edx, edx
je 0x40197e
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x40197d
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40197d
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x40197d
mov dword [edx], esi
mov dword [ebx], esi
mov dword [eax], esi
lea eax, [ebp - 4]
push eax
push edi
mov dword [ecx], esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x40197d
push eax
call fcn.0048eb44
mov edi, eax
pop ecx
test edi, edi
je 0x40197d
push edi
push dword [ebp - 0x10]
push dword [ebp - 4]
push dword [ebp - 0x14]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x401976
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x4d3c8c
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x401976
cmp dword [ebp - 8], esi
jbe 0x401973
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
mov eax, dword [ecx + 8]
mov dword [edx], eax
mov eax, dword [ecx + 0xc]
mov edx, dword [ebp + 0xc]
mov dword [ebx], eax
mov eax, dword [ecx + 0x10]
mov dword [edx], eax
mov eax, dword [ecx + 0x14]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor esi, esi
inc esi
push edi
call fcn.0048eb4d
pop ecx
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x401ca4
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28c
mov eax, dword [0x4eb664]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
xor eax, eax
push 0x286
push eax
mov word [ebp - 0x28c], ax
lea eax, [ebp - 0x28a]
push eax
mov edi, ecx
call fcn.004921d0
add esp, 0xc
lea eax, [ebp - 0x28c]
push 0x104
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x28c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.kdumpcfg.dat
lea eax, [ebp - 0x28c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x28c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401e3e
test al, 0x10
jne 0x401e3e
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea eax, [ebp - 0x28c]
push eax
xor ebx, ebx
inc ebx
push ebx
push str.autorecovery
push 0x4d32ac
call esi
mov dword [edi + 0x10], eax
lea eax, [ebp - 0x28c]
push eax
push 0
push str.checkbrowsercrash
push 0x4d32ac
call esi
mov dword [edi + 8], eax
lea eax, [ebp - 0x28c]
push eax
push ebx
push str.checkbsod
push 0x4d32ac
call esi
mov dword [edi + 0xc], eax
lea eax, [ebp - 0x28c]
push eax
push ebx
push str.checkdriverversion
push 0x4d32ac
call esi
mov dword [edi + 0x14], eax
lea eax, [ebp - 0x28c]
push eax
push ebx
push str.deletedump
push 0x4d32ac
call esi
mov dword [edi + 0x1c], eax
lea eax, [ebp - 0x28c]
push eax
push ebx
push str.enablereport
push 0x4d32ac
call esi
mov dword [edi], eax
lea eax, [ebp - 0x28c]
push eax
push ebx
push str.scanissuefile
push 0x4d32ac
call esi
mov dword [edi + 4], eax
lea eax, [ebp - 0x28c]
push eax
push ebx
push str.silentreport
push 0x4d32ac
call esi
mov dword [edi + 0x18], eax
lea eax, [ebp - 0x28c]
push eax
push ebx
push str.checkonlinesolution
push 0x4d32ac
call esi
mov dword [edi + 0x20], eax
lea eax, [ebp - 0x28c]
push eax
push 6
push str.bsoddelayhour
push 0x4d32ac
call esi
mov dword [edi + 0x24], eax
lea eax, [ebp - 0x28c]
push eax
push 0xffff
push str.productid
push 0x4d32ac
call esi
mov dword [edi + 0x28], eax
mov eax, ebx
pop esi
jmp 0x401e6c
and dword [edi + 8], 0
xor ebx, ebx
inc ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x1c], ebx
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x20], ebx
mov dword [edi + 0x24], 6
mov dword [edi + 0x28], 0xffff
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0048f059
leave
ret
Function at 0x405ed7
Capabilities:
Create process on windows
Impersonate user

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x4eb664]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x84], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
mov esi, ecx
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x74], edi
test eax, eax
je 0x40605e
test edi, edi
je 0x40605e
lea ecx, [ebp - 0x68]
call fcn.00405c43
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x88]
push ecx
push 4
lea ecx, [ebp - 0x70]
push ecx
push 8
push eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x70], 1
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
xor ebx, ebx
test eax, eax
je 0x406052
cmp dword [ebp - 0x70], 1
je 0x405f74
lea eax, [ebp - 0x6c]
push eax
push 1
push 2
push ebx
push 0xb
push dword [esi + 4]
mov dword [ebp - 0x6c], ebx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x406052
cmp dword [esi + 8], ebx
jne 0x405ff2
push ecx
push ecx
lea eax, [ebp - 0x68]
push eax
mov ecx, esi
call fcn.00406d8e
test al, al
jne 0x405fa2
cmp dword [ebp - 0x70], 1
je 0x406052
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x406052
push 8
xor eax, eax
pop ecx
lea edi, [ebp - 0xa8]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xa8], 0x20
cmp dword [eax - 0xc], ebx
jne 0x405fcc
lea ecx, [ebp - 0x68]
call fcn.00405d91
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xa0], eax
lea eax, [ebp - 0xa8]
push eax
push dword [ebp - 0x6c]
call dword [sym.imp.USERENV.dll_LoadUserProfileW]
mov edi, dword [ebp - 0x74]
test eax, eax
je 0x405ff2
mov eax, dword [ebp - 0x8c]
mov dword [esi + 8], eax
push ebx
push dword [ebp - 0x6c]
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x406052
push dword [ebp - 0x7c]
push edi
push ebx
push dword [ebp - 0x78]
push dword [ebp + 0x18]
push ebx
push ebx
push ebx
push dword [ebp - 0x80]
push dword [ebp - 0x84]
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x70], 1
mov edi, eax
je 0x40603d
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x78]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
setne bl
lea ecx, [ebp - 0x68]
call fcn.00405ca5
mov al, bl
jmp 0x406060
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048f059
leave
ret 0x28