joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402e70
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x506008], 0x8088405
inc edx
mov dword [ebx + 0x506008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x428ad8
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x428ade
ret

Function at 0x436e4c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x436ffd
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x10]
mov edx, 0x1b
mov al, 0x2d
call fcn.004049e0
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, 0x437014
call fcn.0040463c
mov eax, ebx
call fcn.00426954
mov edi, eax
dec edi
test edi, edi
jl 0x436f04
inc edi
xor esi, esi
mov edx, esi
mov eax, ebx
call fcn.00426928
mov edx, dword [0x45e7c0]
call fcn.00403650
test al, al
je 0x436f00
push dword [ebp - 0xc]
mov edx, esi
mov eax, ebx
call fcn.00426928
lea edx, [ebp - 0x14]
call fcn.0046bf90
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
mov edx, 3
mov al, 0x20
call fcn.004049e0
push dword [ebp - 0x18]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004046b0
inc esi
dec edi
jne 0x436eb2
mov al, byte [0x437018]
push eax
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
mov edx, 0x437024
mov eax, dword [ebp - 0xc]
call fcn.0040e9b4
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
call fcn.004043ac
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
lea edx, [ebp - 0x70]
mov eax, ebx
call fcn.0046bf90
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0xb
mov eax, 0x437014
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
lea edx, [ebp - 0x74]
mov eax, dword [ebx + 0x2f8]
call fcn.0046bf90
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
mov eax, 0x437014
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
mov eax, 0x437014
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x6c]
mov ecx, 9
mov eax, 0x437030
call fcn.0040a4cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x437004
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.00404338
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00404338
lea eax, [ebp - 0x14]
call fcn.00404314
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404338
ret
Function at 0x473f3c
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov esi, edx
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, ecx
mov dword [ebp - 4], eax
mov esi, dword [0x509294]
mov eax, dword [ebp - 4]
mov byte [eax + 0x210], 1
xor eax, eax
push ebp
push 0x474115
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0046bfc0
add dword [ebp - 0xc], 4
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0046d1e8
mov eax, dword [esi]
call fcn.00489f18
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x4c]
add edx, dword [ebp - 0x14]
cmp eax, edx
jge 0x473fae
mov eax, dword [esi]
call fcn.00489f18
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x4c]
mov dword [ebp - 0x14], eax
mov eax, dword [esi]
call fcn.00489f24
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x48]
add edx, dword [ebp - 0x18]
cmp eax, edx
jge 0x473fd2
mov eax, dword [esi]
call fcn.00489f24
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x48]
mov dword [ebp - 0x18], eax
mov eax, dword [esi]
call fcn.00489f0c
cmp eax, dword [ebp - 0x18]
jle 0x473fe8
mov eax, dword [esi]
call fcn.00489f0c
mov dword [ebp - 0x18], eax
mov eax, dword [esi]
call fcn.00489f00
cmp eax, dword [ebp - 0xc]
jle 0x473ffe
mov eax, dword [esi]
call fcn.00489f00
mov dword [ebp - 0xc], eax
push 0x10
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
call fcn.004728c4
push eax
call fcn.004077fc
call fcn.00406dbc
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x214]
cmp eax, 0xfa
jbe 0x4740c5
mov eax, ebx
call fcn.004045f0
cmp eax, 0x64
jge 0x4740c5
cmp dword [0x5070ac], 0
je 0x4740c5
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0x1016
call fcn.0040784c
cmp dword [ebp - 8], 0
je 0x4740c5
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0x1018
call fcn.0040784c
cmp dword [ebp - 8], 0
je 0x474088
mov bl, 2
jmp 0x4740a3
lea edx, [ebp - 0x20]
mov eax, dword [0x50ab78]
call fcn.004771d4
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x14]
jle 0x4740a1
xor ebx, ebx
jmp 0x4740a3
mov bl, 1
xor eax, eax
mov al, bl
mov eax, dword [eax*4 + 0x5071b4]
or eax, 0x40000
push eax
push 0x64
mov eax, dword [ebp - 4]
call fcn.004728c4
push eax
call dword [0x5070ac]
mov eax, dword [0x508f9c]
mov eax, dword [eax]
mov edx, dword [eax + 0x30]
mov eax, dword [ebp - 4]
call fcn.0046ffc0
push 4
mov eax, dword [ebp - 4]
call fcn.004728c4
push eax
call fcn.00407844
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x7c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47411c
call fcn.00406dbc
mov edx, dword [ebp - 4]
mov dword [edx + 0x214], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x210], 0
ret
Function at 0x4bb818
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4bb846
mov eax, ebx
call fcn.004bc2cc
cmp dword [ebx + 0x40], 0
je 0x4bb83f
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4bb8b7
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4bb8a9
cmp dword [ebx + 8], 0
je 0x4bb868
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4bb87a
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4bb8a9
cmp dword [ebx + 8], 0
je 0x4bb85b
cmp eax, 3
je 0x4bb88d
dec eax
jne 0x4bb85b
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4bb85b
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4bb85b
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4bb8d5
cmp dword [ebx + 0x14], 0xcc
je 0x4bb8d5
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004bb8e0
pop ebx
ret
Function at 0x4daf60
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x4daf68
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4db15a
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x4db170
mov eax, esi
call fcn.004d8dec
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.00404368
lea ecx, [ebp - 0x10]
mov edx, 0x4db184
mov eax, esi
call fcn.004d8dec
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.00404368
lea ecx, [ebp - 0x14]
mov edx, 0x4db19c
mov eax, esi
call fcn.004d8dec
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.00404368
lea ecx, [ebp - 0x18]
mov edx, 0x4db1b8
mov eax, esi
call fcn.004d8dec
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.00404368
lea ecx, [ebp - 0x1c]
mov edx, 0x4db1d4
mov eax, esi
call fcn.004d8dec
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.00404368
lea ecx, [ebp - 0x24]
mov edx, 0x4db1ec
mov eax, esi
call fcn.004d8dec
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00409198
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.0040970c
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x4db204
mov eax, esi
call fcn.004d8dec
mov eax, dword [ebp - 0x28]
call fcn.004d28c4
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x4db214
mov eax, esi
call fcn.004d8dec
mov eax, dword [ebp - 0x2c]
call fcn.004d28c4
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x4db22c
mov eax, esi
call fcn.004d8dec
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.0040970c
inc eax
je 0x4db0fd
lea ecx, [ebp - 0x34]
mov edx, 0x4db22c
mov eax, esi
call fcn.004d8dec
mov eax, dword [ebp - 0x34]
call fcn.004096d0
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.0040b314
fstp qword [ebp - 0x3c]
wait
call fcn.0040b678
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x4db118
lea ecx, [ebp - 0x40]
mov edx, 0x4db22c
mov eax, esi
call fcn.004d8dec
mov eax, dword [ebp - 0x40]
call fcn.004d28c4
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x4db23c
mov eax, esi
call fcn.004d8dec
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.00404368
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4db161
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00404338
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.00404338
ret
Function at 0x4e1eec
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x4e1f46
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.004e1edc
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.004d1530
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.004d1130
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e1f4d
lea eax, [ebp - 4]
call fcn.00404314
ret

Function at 0x4f16e8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004047e0
mov eax, dword [ebp - 8]
call fcn.004047e0
lea ebx, [ebp - 0x40]
xor eax, eax
push ebp
push 0x4f17b7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004047f0
push eax
call fcn.004cd278
mov dword [ebx], eax
mov eax, dword [ebp - 8]
call fcn.004047f0
push eax
call fcn.004cd278
mov dword [ebx + 4], eax
mov eax, dword [0x5090f0]
mov eax, dword [eax]
call fcn.004047f0
push eax
call fcn.004cd278
mov dword [ebx + 0xc], eax
mov eax, dword [0x509088]
mov eax, dword [eax]
mov dword [ebx + 0x10], eax
xor eax, eax
mov dword [ebx + 8], eax
mov eax, dword [0x508fb0]
mov eax, dword [eax]
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], 3
xor eax, eax
mov dword [ebx + 0x1c], eax
xor eax, eax
mov dword [ebx + 0x20], eax
mov eax, dword [0x509038]
mov eax, dword [eax]
mov dword [ebx + 0x24], eax
xor eax, eax
mov dword [ebx + 0x28], eax
xor eax, eax
mov dword [ebx + 0x2c], eax
xor eax, eax
mov dword [ebx + 0x30], eax
xor eax, eax
mov dword [ebx + 0x34], eax
push ebx
call fcn.004f1454
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f17be
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404338
ret
Function at 0x54662c
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
pushal
push ebp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add dl, dl
jne 0x546649
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x54663a
add dl, dl
jne 0x546654
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x5466a0
xor eax, eax
add dl, dl
jne 0x546661
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x54673d
add dl, dl
jne 0x546670
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x54667b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x546686
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x546691
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x54669b
push edi
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
jmp 0x546640
mov eax, 1
add dl, dl
jne 0x5466ae
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x5466b9
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x5466a5
sub eax, 2
jne 0x5466e8
mov ecx, 1
add dl, dl
jne 0x5466ce
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x5466d9
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x5466c5
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x546640
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x5466ff
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x54670a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x5466f6
cmp eax, 0x7d00
jae 0x54672d
cmp eax, 0x500
jb 0x546728
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x546640
cmp eax, 0x7f
ja 0x546730
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x546640
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x546759
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x546640
pop ebp
sub edi, dword [ebp + 0xc]
mov dword [ebp - 4], edi
popal
pop ebp
ret 8
Function at 0x4077a1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x4077b0
pop dword [ebp - 0x38]
mov eax, 0x26981309
sub eax, 0x26579b59
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0x7b54c62f
sub dword [ebp - 0x48], 0x2d0280e4
mov dword [ebp - 0x44], 0x44398db7
add dword [ebp - 0x44], 0xedf9be8e
mov dword [ebp - 0x40], 0x8ca8d894
sub dword [ebp - 0x40], 0x405c9466
mov dword [ebp - 0x3c], 0xb0ebeb82
add dword [ebp - 0x3c], 0x4f14147e
lea eax, [ebp - 0x48]
push eax
mov eax, 0xf94933a3
sub eax, 0xf908b2e7
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0xa5121549
sub dword [ebp - 0x48], 0x309fabf3
mov dword [ebp - 0x44], 0x50f17468
add dword [ebp - 0x44], 0xf07aed0d
mov dword [ebp - 0x40], 0x47fb4dd0
sub dword [ebp - 0x40], 0xe48be164
mov dword [ebp - 0x3c], 0x2baed8cb
sub dword [ebp - 0x3c], 0x2baed8cb
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, 0xfa8129d
add eax, 0xf0986d73
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x35f84
push 0
call eax
mov ecx, 0x43e6
xor edi, edi
add edi, eax
mov ebx, 0x40ec00
add ebx, dword [ebp - 0x38]
mov esi, 0xe470daf7
add esi, 0x8414fe2f
xor dword [ebp - 0xc], edi
mov edx, dword [ebx]
xor dword [ebp - 0x28], 0xfaf75d60
xor edx, esi
add dword [ebp - 4], eax
mov dword [edi], edx
mov dword [ebp - 0x14], 0xccced0fc
add edi, 0xd448bacc
sub edi, 0xd448bac8
add ebx, 0x9e9405f0
add ebx, 0x616bfa14
loop 0x4078c8
add eax, 0x1026b
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x21a11115
sub ecx, 0x21611115
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x4020c0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415e98
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x41e358]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x34], edi
call fcn.00404510
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
cmp esi, edi
je 0x4021da
cmp dword [ebp - 0x1c], edi
je 0x4021da
push str.MSIFile
push 0x81
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x402134
mov dword [ebx + 0x10], eax
push eax
jmp 0x4021de
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x402162
mov eax, 0x41a2c0
mov ecx, ebx
call fcn.00402950
cmp dword [ebp - 0x18], 8
jb 0x402208
mov edx, dword [ebp - 0x2c]
push edx
jmp 0x402200
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp dword [ebp - 0x18], 8
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
jae 0x402185
lea eax, [ebp - 0x2c]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, dword [ebp - 0x30]
push 0
lea ecx, [ebp - 0x34]
push ecx
push edi
mov esi, eax
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x34], edi
jne 0x4021d8
lea edi, [ebp - 0x2c]
mov eax, ebx
call fcn.00402990
mov esi, edi
call fcn.004029b0
jmp 0x402208
xor edi, edi
mov dword [ebx + 0x10], edi
push edi
xor eax, eax
mov dword [ebx + 0x14], 7
mov word [ebx], ax
mov eax, 0x41a2c0
mov esi, ebx
call fcn.00402f20
cmp dword [ebp - 0x18], 8
jb 0x402208
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00408abf
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040893a
mov esp, ebp
pop ebp
ret
Function at 0x402740
Capabilities:
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415dab
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x41e358]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0x23c], edi
xor eax, eax
mov word [ebp - 0x234], ax
push edi
mov eax, 0x41a2c0
lea esi, [ebp - 0x234]
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], edi
call fcn.00402f20
lea ecx, [ebp - 0x218]
push ecx
push 0x104
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4027f8
push str.dotnetfx_x86.exe
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x4027f8
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4027d7
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
lea esi, [ebp - 0x234]
call fcn.00402f20
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
cmp esi, edi
je 0x4028ff
cmp dword [ebp - 0x224], edi
je 0x4028ff
push str.DotNetFx
push 0x82
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x402835
mov dword [ebx + 0x10], eax
push eax
jmp 0x402903
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x238], eax
test eax, eax
jne 0x40286c
mov eax, 0x41a2c0
mov ecx, ebx
call fcn.00402950
cmp dword [ebp - 0x220], 8
jb 0x402933
mov edx, dword [ebp - 0x234]
push edx
jmp 0x40292b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov eax, dword [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp dword [ebp - 0x220], 8
mov dword [ebp - 0x238], eax
mov eax, dword [ebp - 0x234]
jae 0x40289e
lea eax, [ebp - 0x234]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, dword [ebp - 0x238]
push 0
lea ecx, [ebp - 0x23c]
push ecx
push edi
mov esi, eax
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x23c], edi
jne 0x4028fd
lea edi, [ebp - 0x234]
mov eax, ebx
call fcn.00402990
mov esi, edi
call fcn.004029b0
jmp 0x402933
xor edi, edi
mov dword [ebx + 0x10], edi
push edi
xor eax, eax
mov dword [ebx + 0x14], 7
mov word [ebx], ax
mov eax, 0x41a2c0
mov esi, ebx
call fcn.00402f20
cmp dword [ebp - 0x220], 8
jb 0x402933
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.00408abf
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040893a
mov esp, ebp
pop ebp
ret
Function at 0x404040
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x41e358]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0x25
push 0
mov esi, ecx
mov dword [ebp - 0x210], 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x4040c8
push 0x41a7f0
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x4040c8
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
lea eax, [ebp - 0x20c]
mov word [esi], dx
lea edx, [eax + 2]
jmp 0x4040b0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4040b0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
jmp 0x4040e1
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
push eax
mov eax, 0x41a2c0
call fcn.00402f20
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040893a
mov esp, ebp
pop ebp
ret

Function at 0x404510
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x41e358]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x104
mov esi, ecx
mov dword [ebp - 0x210], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x404598
push str.BingDict.msi
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x404598
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
lea eax, [ebp - 0x20c]
mov word [esi], dx
lea edx, [eax + 2]
jmp 0x404580
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404580
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
jmp 0x4045b1
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
push eax
mov eax, 0x41a2c0
call fcn.00402f20
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040893a
mov esp, ebp
pop ebp
ret